From 4708b5ecf8dd224adad11dc640e5485157a1f3ea Mon Sep 17 00:00:00 2001 From: Nikita Manovich Date: Thu, 23 Dec 2021 06:47:30 +0300 Subject: [PATCH] IAM: Open Policy Agent integration (#3788) Co-authored-by: Boris Sekachev Co-authored-by: Dmitry Kruchinin --- .github/workflows/main.yml | 19 + .gitignore | 1 + .vscode/launch.json | 14 +- CHANGELOG.md | 11 +- Dockerfile | 1 - .../analytics/docker-compose.analytics.yml | 1 - .../serverless/docker-compose.serverless.yml | 1 - cvat-canvas/package-lock.json | 4 +- cvat-canvas/package.json | 2 +- cvat-canvas/src/typescript/cuboid.ts | 40 +- cvat-core/package-lock.json | 4 +- cvat-core/package.json | 2 +- cvat-core/src/annotations.js | 2 +- cvat-core/src/api-implementation.js | 58 +- cvat-core/src/api.js | 49 +- cvat-core/src/comment.js | 48 +- cvat-core/src/common.js | 42 +- cvat-core/src/config.js | 1 + cvat-core/src/enums.js | 70 +- cvat-core/src/frames.js | 33 +- cvat-core/src/issue.js | 139 +- cvat-core/src/lambda-manager.js | 32 +- cvat-core/src/organization.js | 372 + cvat-core/src/project-implementation.js | 28 +- cvat-core/src/project.js | 11 + cvat-core/src/review.js | 405 - cvat-core/src/server-proxy.js | 469 +- cvat-core/src/session.js | 488 +- cvat-core/src/user.js | 6 +- cvat-core/tests/api/annotations.js | 6 +- cvat-core/tests/api/jobs.js | 27 +- cvat-core/tests/mocks/dummy-data.mock.js | 87 +- cvat-core/tests/mocks/server-proxy.mock.js | 21 +- cvat-ui/package-lock.json | 4 +- cvat-ui/package.json | 2 +- cvat-ui/src/actions/annotation-actions.ts | 70 +- cvat-ui/src/actions/auth-actions.ts | 2 +- cvat-ui/src/actions/models-actions.ts | 8 +- cvat-ui/src/actions/organization-actions.ts | 266 + cvat-ui/src/actions/review-actions.ts | 107 +- cvat-ui/src/actions/tasks-actions.ts | 86 +- cvat-ui/src/assets/account-icon.svg | 1 - cvat-ui/src/base.scss | 2 +- .../annotation-page/annotation-page.tsx | 16 +- .../annotation-page/appearance-block.tsx | 2 +- .../annotation-page/canvas/canvas-wrapper.tsx | 2 +- .../canvas/canvas-wrapper3D.tsx | 2 +- .../annotation-page/request-review-modal.tsx | 64 - .../review-workspace/review-workspace.tsx | 28 +- .../annotation-page/review/issue-dialog.tsx | 2 +- .../review/issues-aggregator.tsx | 4 +- .../review/submit-review-modal.tsx | 149 - .../controls-side-bar/draw-shape-popover.tsx | 2 +- .../controls-side-bar/group-control.tsx | 2 +- .../controls-side-bar/tools-control.tsx | 43 +- .../objects-side-bar/issues-list.tsx | 21 +- .../objects-side-bar/object-item-menu.tsx | 2 +- .../objects-side-bar/objects-side-bar.tsx | 6 +- .../components/annotation-page/styles.scss | 29 +- .../top-bar/annotation-menu.tsx | 96 +- .../annotation-page/top-bar/right-group.tsx | 2 +- .../top-bar/statistics-modal.tsx | 77 +- .../cloud-storage-form.tsx | 17 +- .../manifests-manager.tsx | 1 + .../create-cloud-storage-page/styles.scss | 6 + .../create-organization-form.tsx | 99 + .../create-organization-page.tsx | 23 + .../create-organization-page/styles.scss | 52 + .../advanced-configuration-form.tsx | 11 +- .../create-task-page/create-task-content.tsx | 10 +- cvat-ui/src/components/cvat-app.tsx | 49 +- .../export-dataset/export-dataset-modal.tsx | 19 +- cvat-ui/src/components/header/header.tsx | 217 +- .../header/settings-modal/settings-modal.tsx | 2 +- .../header/settings-modal/styles.scss | 14 +- cvat-ui/src/components/header/styles.scss | 61 +- .../model-runner-modal/detector-runner.tsx | 58 +- .../model-runner-dialog.tsx | 31 +- .../organization-page/member-item.tsx | 86 + .../organization-page/members-list.tsx | 83 + .../organization-page/organization-page.tsx | 86 + .../components/organization-page/styles.scss | 150 + .../components/organization-page/top-bar.tsx | 341 + .../shortcuts-dialog/shortcuts-dialog.tsx | 22 +- cvat-ui/src/components/task-page/job-list.tsx | 120 +- cvat-ui/src/components/task-page/styles.scss | 22 +- .../src/components/task-page/task-page.tsx | 6 +- .../components/task-page/user-selector.tsx | 5 +- cvat-ui/src/components/tasks-page/styles.scss | 4 +- .../src/components/tasks-page/task-item.tsx | 2 +- cvat-ui/src/consts.ts | 5 +- .../top-bar/annotation-menu.tsx | 58 +- .../top-bar/statistics-modal.tsx | 81 - .../annotation-page/top-bar/top-bar.tsx | 5 +- cvat-ui/src/icons.tsx | 2 - cvat-ui/src/index.tsx | 8 + cvat-ui/src/reducers/annotation-reducer.ts | 43 +- cvat-ui/src/reducers/export-reducer.ts | 20 +- cvat-ui/src/reducers/interfaces.ts | 45 +- cvat-ui/src/reducers/models-reducer.ts | 14 +- cvat-ui/src/reducers/notifications-reducer.ts | 218 +- cvat-ui/src/reducers/organizations-reducer.ts | 176 + cvat-ui/src/reducers/review-reducer.ts | 39 +- cvat-ui/src/reducers/root-reducer.ts | 2 + cvat-ui/src/reducers/settings-reducer.ts | 4 +- cvat-ui/src/reducers/tasks-reducer.ts | 26 +- cvat-ui/src/styles.scss | 5 +- cvat-ui/src/utils/validation-patterns.ts | 12 +- cvat/apps/authentication/__init__.py | 17 - cvat/apps/authentication/apps.py | 14 - cvat/apps/authentication/auth.py | 356 - cvat/apps/authentication/auth_basic.py | 24 - cvat/apps/authentication/auth_ldap.py | 33 - cvat/apps/authentication/signature.py | 44 - cvat/apps/authentication/views.py | 56 - cvat/apps/dataset_manager/__init__.py | 4 + .../tests/assets/projects.json | 2 - .../dataset_manager/tests/assets/tasks.json | 27 +- .../tests/test_rest_api_formats.py | 2 +- cvat/apps/dataset_repo/apps.py | 2 +- cvat/apps/dataset_repo/views.py | 23 +- cvat/apps/engine/__init__.py | 1 - cvat/apps/engine/backup.py | 118 +- cvat/apps/engine/frame_provider.py | 13 +- .../migrations/0012_auto_20181025_1618.py | 6 +- .../migrations/0015_db_redesign_20190217.py | 8 +- .../migrations/0022_auto_20191004_0817.py | 2 +- ...123_0824.py => 0045_auto_20211123_0824.py} | 1 + ..._method.py => 0046_data_sorting_method.py} | 3 +- .../migrations/0047_auto_20211110_1938.py | 52 + .../migrations/0048_auto_20211112_1918.py | 60 + cvat/apps/engine/mixins.py | 9 +- cvat/apps/engine/models.py | 96 +- cvat/apps/engine/parsers.py | 17 + cvat/apps/engine/serializers.py | 218 +- cvat/apps/engine/tests/test_rest_api.py | 633 +- cvat/apps/engine/tests/test_rest_api_3D.py | 6 +- cvat/apps/engine/urls.py | 8 +- cvat/apps/engine/views.py | 593 +- cvat/apps/iam/__init__.py | 4 + cvat/apps/{authentication => iam}/admin.py | 3 +- cvat/apps/iam/apps.py | 8 + cvat/apps/iam/authentication.py | 89 + .../{authentication => iam}/decorators.py | 6 +- cvat/apps/iam/filters.py | 30 + cvat/apps/iam/models.py | 4 + cvat/apps/iam/permissions.py | 982 + cvat/apps/iam/rules/auth.csv | 9 + cvat/apps/iam/rules/cloudstorages.csv | 21 + cvat/apps/iam/rules/cloudstorages.rego | 121 + .../iam/rules/cloudstorages_test.gen.rego | 2405 ++ cvat/apps/iam/rules/comments.csv | 19 + cvat/apps/iam/rules/comments.rego | 255 + cvat/apps/iam/rules/comments_test.gen.rego | 13895 ++++++++++++ cvat/apps/iam/rules/invitations.csv | 16 + cvat/apps/iam/rules/invitations.rego | 173 + cvat/apps/iam/rules/invitations_test.gen.rego | 13404 +++++++++++ cvat/apps/iam/rules/issues.csv | 19 + cvat/apps/iam/rules/issues.rego | 240 + cvat/apps/iam/rules/issues_test.gen.rego | 11686 ++++++++++ cvat/apps/iam/rules/jobs.csv | 39 + cvat/apps/iam/rules/jobs.rego | 206 + cvat/apps/iam/rules/jobs_test.gen.rego | 12129 ++++++++++ cvat/apps/iam/rules/lambda.csv | 6 + cvat/apps/iam/rules/lambda.rego | 44 + cvat/apps/iam/rules/lambda_test.gen.rego | 525 + cvat/apps/iam/rules/memberships.csv | 11 + cvat/apps/iam/rules/memberships.rego | 102 + cvat/apps/iam/rules/memberships_test.gen.rego | 10756 +++++++++ cvat/apps/iam/rules/organizations.csv | 10 + cvat/apps/iam/rules/organizations.rego | 117 + .../iam/rules/organizations_test.gen.rego | 7370 ++++++ cvat/apps/iam/rules/projects.csv | 46 + cvat/apps/iam/rules/projects.rego | 219 + cvat/apps/iam/rules/projects_test.gen.rego | 11467 ++++++++++ cvat/apps/iam/rules/restrictions.csv | 3 + cvat/apps/iam/rules/server.csv | 5 + cvat/apps/iam/rules/server.rego | 39 + cvat/apps/iam/rules/server_test.gen.rego | 556 + cvat/apps/iam/rules/tasks.csv | 78 + cvat/apps/iam/rules/tasks.rego | 286 + cvat/apps/iam/rules/tasks_test.gen.rego | 18785 ++++++++++++++++ cvat/apps/iam/rules/users.csv | 9 + cvat/apps/iam/rules/users.rego | 63 + cvat/apps/iam/rules/users_test.gen.rego | 2697 +++ cvat/apps/iam/rules/utils.rego | 98 + .../{authentication => iam}/serializers.py | 3 +- cvat/apps/iam/signals.py | 64 + .../email_confirmation_signup_message.html | 0 .../authentication/password_reset_email.html | 0 cvat/apps/{authentication => iam}/urls.py | 11 +- cvat/apps/iam/views.py | 114 + cvat/apps/lambda_manager/apps.py | 2 +- .../lambda_manager/tests/assets/tasks.json | 2 - cvat/apps/lambda_manager/tests/test_lambda.py | 6 +- cvat/apps/lambda_manager/views.py | 37 +- cvat/apps/log_viewer/views.py | 2 +- cvat/apps/opencv/apps.py | 4 +- cvat/apps/organizations/__init__.py | 4 + cvat/apps/organizations/apps.py | 4 + .../organizations/migrations/0001_initial.py | 60 + .../apps/organizations/migrations/__init__.py | 0 cvat/apps/organizations/models.py | 70 + cvat/apps/organizations/serializers.py | 122 + cvat/apps/organizations/urls.py | 13 + cvat/apps/organizations/views.py | 95 + cvat/apps/restrictions/serializers.py | 2 +- cvat/apps/restrictions/urls.py | 4 + cvat/apps/training/__init__.py | 5 +- cvat/apps/training/views.py | 9 +- cvat/requirements/base.txt | 6 +- cvat/settings/base.py | 61 +- cvat/settings/development.py | 1 + docker-compose.yml | 24 +- .../advanced/iam_system_roles.md | 9 + site/content/en/docs/getting_started.md | 20 +- .../manual/basics/attach-cloud-storage.md | 2 + .../case_108_rotated_bounding_boxes.js | 5 +- .../base_actions_project_task_user.js | 12 +- ..._import_annotations_frames_dots_in_name.js | 2 +- .../case_39_issue_2572_rename_task.js | 12 +- .../case_69_filters_sorting_jobs.js | 78 +- .../case_35_search_task_feature.js | 1 + .../case_97_export_import_task.js | 2 +- .../case_109_dummy_cloud_storage.js | 6 +- .../case_18_filters_functionality.js | 60 +- ...44_changing_default_value_for_attribute.js | 7 +- .../actions_users/issue_1810_login_logout.js | 8 +- ...t_after_change_task_issue_point_firefox.js | 11 +- .../case_28_review_pipeline_feature.js | 97 +- .../case_2_register_user_change_pass.js | 12 +- .../case_4_assign_taks_job_users.js | 22 +- tests/cypress/support/commands.js | 6 +- .../support/commands_review_pipeline.js | 42 +- tests/rest_api/README.md | 111 + tests/rest_api/__init__.py | 3 + tests/rest_api/assets/cvat_data.tar.bz2 | Bin 0 -> 41539 bytes tests/rest_api/assets/cvat_db.sql | 6315 ++++++ tests/rest_api/assets/invitations.json | 147 + tests/rest_api/assets/jobs.json | 244 + tests/rest_api/assets/memberships.json | 142 + tests/rest_api/assets/organizations.json | 38 + tests/rest_api/assets/projects.json | 106 + tests/rest_api/assets/tasks.json | 300 + tests/rest_api/assets/users.json | 287 + tests/rest_api/requirements.txt | 3 + .../test_0000_check_objects_integrity.py | 24 + tests/rest_api/test_0001_users_api.py | 35 + tests/rest_api/test_0002_organizations.py | 25 + tests/rest_api/utils/config.py | 14 + tests/rest_api/utils/dump_objects.py | 14 + 251 files changed, 122452 insertions(+), 3949 deletions(-) create mode 100644 cvat-core/src/organization.js delete mode 100644 cvat-core/src/review.js create mode 100644 cvat-ui/src/actions/organization-actions.ts delete mode 100644 cvat-ui/src/assets/account-icon.svg delete mode 100644 cvat-ui/src/components/annotation-page/request-review-modal.tsx delete mode 100644 cvat-ui/src/components/annotation-page/review/submit-review-modal.tsx create mode 100644 cvat-ui/src/components/create-organization-page/create-organization-form.tsx create mode 100644 cvat-ui/src/components/create-organization-page/create-organization-page.tsx create mode 100644 cvat-ui/src/components/create-organization-page/styles.scss create mode 100644 cvat-ui/src/components/organization-page/member-item.tsx create mode 100644 cvat-ui/src/components/organization-page/members-list.tsx create mode 100644 cvat-ui/src/components/organization-page/organization-page.tsx create mode 100644 cvat-ui/src/components/organization-page/styles.scss create mode 100644 cvat-ui/src/components/organization-page/top-bar.tsx delete mode 100644 cvat-ui/src/containers/annotation-page/top-bar/statistics-modal.tsx create mode 100644 cvat-ui/src/reducers/organizations-reducer.ts delete mode 100644 cvat/apps/authentication/__init__.py delete mode 100644 cvat/apps/authentication/apps.py delete mode 100644 cvat/apps/authentication/auth.py delete mode 100644 cvat/apps/authentication/auth_basic.py delete mode 100644 cvat/apps/authentication/auth_ldap.py delete mode 100644 cvat/apps/authentication/signature.py delete mode 100644 cvat/apps/authentication/views.py rename cvat/apps/engine/migrations/{0044_auto_20211123_0824.py => 0045_auto_20211123_0824.py} (91%) rename cvat/apps/engine/migrations/{0045_data_sorting_method.py => 0046_data_sorting_method.py} (84%) create mode 100644 cvat/apps/engine/migrations/0047_auto_20211110_1938.py create mode 100644 cvat/apps/engine/migrations/0048_auto_20211112_1918.py create mode 100644 cvat/apps/engine/parsers.py create mode 100644 cvat/apps/iam/__init__.py rename cvat/apps/{authentication => iam}/admin.py (90%) create mode 100644 cvat/apps/iam/apps.py create mode 100644 cvat/apps/iam/authentication.py rename cvat/apps/{authentication => iam}/decorators.py (88%) create mode 100644 cvat/apps/iam/filters.py create mode 100644 cvat/apps/iam/models.py create mode 100644 cvat/apps/iam/permissions.py create mode 100644 cvat/apps/iam/rules/auth.csv create mode 100644 cvat/apps/iam/rules/cloudstorages.csv create mode 100644 cvat/apps/iam/rules/cloudstorages.rego create mode 100644 cvat/apps/iam/rules/cloudstorages_test.gen.rego create mode 100644 cvat/apps/iam/rules/comments.csv create mode 100644 cvat/apps/iam/rules/comments.rego create mode 100644 cvat/apps/iam/rules/comments_test.gen.rego create mode 100644 cvat/apps/iam/rules/invitations.csv create mode 100644 cvat/apps/iam/rules/invitations.rego create mode 100644 cvat/apps/iam/rules/invitations_test.gen.rego create mode 100644 cvat/apps/iam/rules/issues.csv create mode 100644 cvat/apps/iam/rules/issues.rego create mode 100644 cvat/apps/iam/rules/issues_test.gen.rego create mode 100644 cvat/apps/iam/rules/jobs.csv create mode 100644 cvat/apps/iam/rules/jobs.rego create mode 100644 cvat/apps/iam/rules/jobs_test.gen.rego create mode 100644 cvat/apps/iam/rules/lambda.csv create mode 100644 cvat/apps/iam/rules/lambda.rego create mode 100644 cvat/apps/iam/rules/lambda_test.gen.rego create mode 100644 cvat/apps/iam/rules/memberships.csv create mode 100644 cvat/apps/iam/rules/memberships.rego create mode 100644 cvat/apps/iam/rules/memberships_test.gen.rego create mode 100644 cvat/apps/iam/rules/organizations.csv create mode 100644 cvat/apps/iam/rules/organizations.rego create mode 100644 cvat/apps/iam/rules/organizations_test.gen.rego create mode 100644 cvat/apps/iam/rules/projects.csv create mode 100644 cvat/apps/iam/rules/projects.rego create mode 100644 cvat/apps/iam/rules/projects_test.gen.rego create mode 100644 cvat/apps/iam/rules/restrictions.csv create mode 100644 cvat/apps/iam/rules/server.csv create mode 100644 cvat/apps/iam/rules/server.rego create mode 100644 cvat/apps/iam/rules/server_test.gen.rego create mode 100644 cvat/apps/iam/rules/tasks.csv create mode 100644 cvat/apps/iam/rules/tasks.rego create mode 100644 cvat/apps/iam/rules/tasks_test.gen.rego create mode 100644 cvat/apps/iam/rules/users.csv create mode 100644 cvat/apps/iam/rules/users.rego create mode 100644 cvat/apps/iam/rules/users_test.gen.rego create mode 100644 cvat/apps/iam/rules/utils.rego rename cvat/apps/{authentication => iam}/serializers.py (92%) create mode 100644 cvat/apps/iam/signals.py rename cvat/apps/{authentication => iam}/templates/account/email/email_confirmation_signup_message.html (100%) rename cvat/apps/{authentication => iam}/templates/authentication/password_reset_email.html (100%) rename cvat/apps/{authentication => iam}/urls.py (82%) create mode 100644 cvat/apps/iam/views.py create mode 100644 cvat/apps/organizations/__init__.py create mode 100644 cvat/apps/organizations/apps.py create mode 100644 cvat/apps/organizations/migrations/0001_initial.py create mode 100644 cvat/apps/organizations/migrations/__init__.py create mode 100644 cvat/apps/organizations/models.py create mode 100644 cvat/apps/organizations/serializers.py create mode 100644 cvat/apps/organizations/urls.py create mode 100644 cvat/apps/organizations/views.py create mode 100644 site/content/en/docs/administration/advanced/iam_system_roles.md create mode 100644 tests/rest_api/README.md create mode 100644 tests/rest_api/__init__.py create mode 100644 tests/rest_api/assets/cvat_data.tar.bz2 create mode 100644 tests/rest_api/assets/cvat_db.sql create mode 100644 tests/rest_api/assets/invitations.json create mode 100644 tests/rest_api/assets/jobs.json create mode 100644 tests/rest_api/assets/memberships.json create mode 100644 tests/rest_api/assets/organizations.json create mode 100644 tests/rest_api/assets/projects.json create mode 100644 tests/rest_api/assets/tasks.json create mode 100644 tests/rest_api/assets/users.json create mode 100644 tests/rest_api/requirements.txt create mode 100644 tests/rest_api/test_0000_check_objects_integrity.py create mode 100644 tests/rest_api/test_0001_users_api.py create mode 100644 tests/rest_api/test_0002_organizations.py create mode 100644 tests/rest_api/utils/config.py create mode 100644 tests/rest_api/utils/dump_objects.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b37402c3..587f8222 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.8' - name: Getting SHA from the default branch id: get-sha run: | @@ -63,6 +66,22 @@ jobs: cache-from: type=local,src=/tmp/cvat_cache_server tags: openvino/cvat_server:latest load: true + - name: Running OPA tests + run: | + curl -L -o opa https://openpolicyagent.org/downloads/v0.34.2/opa_linux_amd64_static + chmod +x ./opa + ./opa test cvat/apps/iam/rules + - name: Running REST API tests + env: + API_ABOUT_PAGE: "localhost:8080/api/v1/server/about" + run: | + docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml up -d + /bin/bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${API_ABOUT_PAGE})" != "401" ]]; do sleep 5; done' + cat tests/rest_api/assets/cvat_db.sql | docker exec -i cvat_db psql -q -U root -d cvat + cat tests/rest_api/assets/cvat_data.tar.bz2 | docker run --rm -i --volumes-from cvat ubuntu tar -xj --strip 3 -C /home/django/data + pip3 install --user -r tests/rest_api/requirements.txt + pytest tests/rest_api/ + docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml down -v - name: Running unit tests env: HOST_COVERAGE_DATA_DIR: ${{ github.workspace }} diff --git a/.gitignore b/.gitignore index d12c5861..8e22339a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ __pycache__ *.pyc ._* .coverage +.husky/ # Ignore npm logs file npm-debug.log* diff --git a/.vscode/launch.json b/.vscode/launch.json index b85b591e..903ed413 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -45,7 +45,7 @@ "python": "${command:python.interpreterPath}", "program": "${workspaceRoot}/manage.py", "env": { - "CVAT_SERVERLESS": "1" + "CVAT_SERVERLESS": "1" }, "args": [ "runserver", @@ -62,10 +62,10 @@ "type": "pwa-chrome", "request": "launch", "url": "http://localhost:7000/", - "disableNetworkCache":true, + "disableNetworkCache": true, "trace": true, "showAsyncStacks": true, - "pathMapping":{ + "pathMapping": { "/static/engine/": "${workspaceFolder}/cvat/apps/engine/static/engine/", "/static/dashboard/": "${workspaceFolder}/cvat/apps/dashboard/static/dashboard/", } @@ -111,7 +111,7 @@ "request": "launch", "justMyCode": false, "stopOnEntry": false, - "python":"${command:python.interpreterPath}", + "python": "${command:python.interpreterPath}", "program": "${workspaceRoot}/manage.py", "args": [ "rqworker", @@ -195,8 +195,8 @@ "name": "jest debug", "program": "${workspaceFolder}/node_modules/.bin/jest", "args": [ - "--config", - "${workspaceFolder}/cvat-core/jest.config.js" + "--config", + "${workspaceFolder}/cvat-core/jest.config.js" ], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", @@ -215,4 +215,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b936471..65fa2ede 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,18 +21,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Data sorting option () - Options to change font size & position of text labels on the canvas () - Add "tag" return type for automatic annotation in Nuclio () +- Advanced identity access management system, using open policy agent () +- Organizations to create "shared space" for different groups of users () - Dataset importing to a project () - User is able to customize information that text labels show () - Support for uploading manifest with any name () ### Changed -- TDB +- Users don't have access to a task object anymore if they are assigneed only on some jobs of the task () +- Different resources (tasks, projects) are not visible anymore for all CVAT instance users by default () ### Deprecated -- TDB +- Job field "status" is not used in UI anymore, but it has not been removed from the database yet () ### Removed -- TDB +- Review rating, reviewer field from the job instance (use assignee field together with stage field instead) () ### Fixed - Fixed Interaction handler keyboard handlers () @@ -55,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - interactor: add HRNet interactive segmentation serverless function () - Added GPU implementation for SiamMask, reworked tracking approach () - Progress bar for manifest creating () +- IAM: Open Policy Agent integration () - Add a tutorial on attaching cloud storage AWS-S3 () and Azure Blob Container () - The feature to remove annotations in a specified range of frames () @@ -63,6 +67,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - UI tracking has been reworked () +- Updated Django till 3.2.7 (automatic AppConfig discovery) - Manifest generation: Reduce creating time () - Migration from NPM 6 to NPM 7 () - Update Datumaro dependency to 0.2.0 () diff --git a/Dockerfile b/Dockerfile index 7e720aa7..689a48b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -152,7 +152,6 @@ USER ${USER} WORKDIR ${HOME} RUN mkdir data share media keys logs /tmp/supervisord -RUN python3 manage.py collectstatic EXPOSE 8080 ENTRYPOINT ["/usr/bin/supervisord"] diff --git a/components/analytics/docker-compose.analytics.yml b/components/analytics/docker-compose.analytics.yml index 2c5aa814..4092f7ff 100644 --- a/components/analytics/docker-compose.analytics.yml +++ b/components/analytics/docker-compose.analytics.yml @@ -79,7 +79,6 @@ services: DJANGO_LOG_VIEWER_HOST: kibana DJANGO_LOG_VIEWER_PORT: 5601 CVAT_ANALYTICS: 1 - no_proxy: kibana,logstash,nuclio,${no_proxy} volumes: cvat_events: diff --git a/components/serverless/docker-compose.serverless.yml b/components/serverless/docker-compose.serverless.yml index 13f97132..34414dfc 100644 --- a/components/serverless/docker-compose.serverless.yml +++ b/components/serverless/docker-compose.serverless.yml @@ -21,7 +21,6 @@ services: cvat: environment: CVAT_SERVERLESS: 1 - no_proxy: kibana,logstash,nuclio,${no_proxy} volumes: cvat_events: diff --git a/cvat-canvas/package-lock.json b/cvat-canvas/package-lock.json index 94ea84c0..fc32d85d 100644 --- a/cvat-canvas/package-lock.json +++ b/cvat-canvas/package-lock.json @@ -1,12 +1,12 @@ { "name": "cvat-canvas", - "version": "2.11.0", + "version": "2.11.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cvat-canvas", - "version": "2.11.0", + "version": "2.11.1", "license": "MIT", "dependencies": { "@types/polylabel": "^1.0.5", diff --git a/cvat-canvas/package.json b/cvat-canvas/package.json index 1654fabd..4f0d4b72 100644 --- a/cvat-canvas/package.json +++ b/cvat-canvas/package.json @@ -1,6 +1,6 @@ { "name": "cvat-canvas", - "version": "2.11.0", + "version": "2.11.1", "description": "Part of Computer Vision Annotation Tool which presents its canvas library", "main": "src/canvas.ts", "scripts": { diff --git a/cvat-canvas/src/typescript/cuboid.ts b/cvat-canvas/src/typescript/cuboid.ts index 955bd056..fce04b81 100644 --- a/cvat-canvas/src/typescript/cuboid.ts +++ b/cvat-canvas/src/typescript/cuboid.ts @@ -10,30 +10,28 @@ export enum Orientation { RIGHT = 'right', } -function line(p1: Point, p2: Point): number[] { - const a = p1.y - p2.y; - const b = p2.x - p1.x; - const c = b * p1.y + a * p1.x; - return [a, b, c]; -} - export function intersection(p1: Point, p2: Point, p3: Point, p4: Point): Point | null { - const L1 = line(p1, p2); - const L2 = line(p3, p4); - - const D = L1[0] * L2[1] - L1[1] * L2[0]; - const Dx = L1[2] * L2[1] - L1[1] * L2[2]; - const Dy = L1[0] * L2[2] - L1[2] * L2[0]; - - let x = null; - let y = null; - if (Math.abs(D) > Number.EPSILON) { - x = Dx / D; - y = Dy / D; - return { x, y }; + // Check if none of the lines are of length 0 + const { x: x1, y: y1 } = p1; + const { x: x2, y: y2 } = p2; + const { x: x3, y: y3 } = p3; + const { x: x4, y: y4 } = p4; + + if ((x1 === x2 && y1 === y2) || (x3 === x4 && y3 === y4)) { + return null; + } + + const denominator = ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1)); + + // Lines are parallel + if (Math.abs(denominator) < Number.EPSILON) { + return null; } - return null; + const ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denominator; + + // Return a object with the x and y coordinates of the intersection + return { x: x1 + ua * (x2 - x1), y: y1 + ua * (y2 - y1) }; } export class Equation { diff --git a/cvat-core/package-lock.json b/cvat-core/package-lock.json index 8e2d1dc1..73f8b2f1 100644 --- a/cvat-core/package-lock.json +++ b/cvat-core/package-lock.json @@ -1,12 +1,12 @@ { "name": "cvat-core", - "version": "3.23.0", + "version": "4.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cvat-core", - "version": "3.23.0", + "version": "4.0.0", "license": "MIT", "dependencies": { "axios": "^0.21.4", diff --git a/cvat-core/package.json b/cvat-core/package.json index 159b1c54..ae4152a9 100644 --- a/cvat-core/package.json +++ b/cvat-core/package.json @@ -1,6 +1,6 @@ { "name": "cvat-core", - "version": "3.23.0", + "version": "4.0.0", "description": "Part of Computer Vision Tool which presents an interface for client-side integration", "main": "babel.config.js", "scripts": { diff --git a/cvat-core/src/annotations.js b/cvat-core/src/annotations.js index e2868caf..a511f0f8 100644 --- a/cvat-core/src/annotations.js +++ b/cvat-core/src/annotations.js @@ -276,7 +276,7 @@ if (instance instanceof Task) { result = await serverProxy.tasks.exportDataset(instance.id, format, name, saveImages); } else if (instance instanceof Job) { - result = await serverProxy.tasks.exportDataset(instance.task.id, format, name, saveImages); + result = await serverProxy.tasks.exportDataset(instance.taskId, format, name, saveImages); } else { result = await serverProxy.projects.exportDataset(instance.id, format, name, saveImages); } diff --git a/cvat-core/src/api-implementation.js b/cvat-core/src/api-implementation.js index c571cdff..98a962b2 100644 --- a/cvat-core/src/api-implementation.js +++ b/cvat-core/src/api-implementation.js @@ -2,6 +2,8 @@ // // SPDX-License-Identifier: MIT +const config = require('./config'); + (() => { const PluginRegistry = require('./plugins'); const serverProxy = require('./server-proxy'); @@ -14,6 +16,7 @@ checkFilter, checkExclusiveFields, camelToSnake, + checkObjectType, } = require('./common'); const { @@ -27,9 +30,10 @@ const User = require('./user'); const { AnnotationFormats } = require('./annotation-formats'); const { ArgumentError } = require('./exceptions'); - const { Task } = require('./session'); + const { Task, Job } = require('./session'); const { Project } = require('./project'); const { CloudStorage } = require('./cloud-storage'); + const Organization = require('./organization'); function implementAPI(cvat) { cvat.plugins.list.implementation = PluginRegistry.list; @@ -139,7 +143,7 @@ searchParams[key] = filter[key]; } } - users = await serverProxy.users.get(new URLSearchParams(searchParams).toString()); + users = await serverProxy.users.get(searchParams); } users = users.map((user) => new User(user)); @@ -160,23 +164,21 @@ throw new ArgumentError('Job filter must not be empty'); } - let tasks = []; if ('taskID' in filter) { - tasks = await serverProxy.tasks.getTasks(`id=${filter.taskID}`); - } else { - const job = await serverProxy.jobs.get(filter.jobID); - if (typeof job.task_id !== 'undefined') { - tasks = await serverProxy.tasks.getTasks(`id=${job.task_id}`); + const [task] = await serverProxy.tasks.get({ id: filter.taskID }); + if (task) { + return new Task(task).jobs; } + + return []; } - // If task was found by its id, then create task instance and get Job instance from it - if (tasks.length) { - const task = new Task(tasks[0]); - return filter.jobID ? task.jobs.filter((job) => job.id === filter.jobID) : task.jobs; + const job = await serverProxy.jobs.get(filter.jobID); + if (job) { + return [new Job(job)]; } - return tasks; + return []; }; cvat.tasks.get.implementation = async (filter) => { @@ -196,8 +198,7 @@ checkExclusiveFields(filter, ['id', 'search', 'projectId'], ['page']); - const searchParams = new URLSearchParams(); - + const searchParams = {}; for (const field of [ 'name', 'owner', @@ -212,11 +213,11 @@ 'dimension', ]) { if (Object.prototype.hasOwnProperty.call(filter, field)) { - searchParams.set(camelToSnake(field), filter[field]); + searchParams[camelToSnake(field)] = filter[field]; } } - const tasksData = await serverProxy.tasks.getTasks(searchParams.toString()); + const tasksData = await serverProxy.tasks.get(searchParams); const tasks = tasksData.map((task) => new Task(task)); tasks.count = tasksData.count; @@ -237,14 +238,14 @@ checkExclusiveFields(filter, ['id', 'search'], ['page']); - const searchParams = new URLSearchParams(); + const searchParams = {}; for (const field of ['name', 'assignee', 'owner', 'search', 'status', 'id', 'page']) { if (Object.prototype.hasOwnProperty.call(filter, field)) { - searchParams.set(camelToSnake(field), filter[field]); + searchParams[camelToSnake(field)] = filter[field]; } } - const projectsData = await serverProxy.projects.get(searchParams.toString()); + const projectsData = await serverProxy.projects.get(searchParams); const projects = projectsData.map((project) => { project.task_ids = project.tasks; return project; @@ -295,12 +296,25 @@ const cloudStoragesData = await serverProxy.cloudStorages.get(searchParams.toString()); const cloudStorages = cloudStoragesData.map((cloudStorage) => new CloudStorage(cloudStorage)); - cloudStorages.count = cloudStoragesData.count; - return cloudStorages; }; + cvat.organizations.get.implementation = async () => { + const organizationsData = await serverProxy.organizations.get(); + const organizations = organizationsData.map((organizationData) => new Organization(organizationData)); + return organizations; + }; + + cvat.organizations.activate.implementation = (organization) => { + checkObjectType('organization', organization, null, Organization); + config.organizationID = organization.slug; + }; + + cvat.organizations.deactivate.implementation = async () => { + config.organizationID = null; + }; + return cvat; } diff --git a/cvat-core/src/api.js b/cvat-core/src/api.js index 9b516347..265986b1 100644 --- a/cvat-core/src/api.js +++ b/cvat-core/src/api.js @@ -15,7 +15,6 @@ function build() { const Statistics = require('./statistics'); const Comment = require('./comment'); const Issue = require('./issue'); - const Review = require('./review'); const { Job, Task } = require('./session'); const { Project } = require('./project'); const implementProject = require('./project-implementation'); @@ -23,6 +22,7 @@ function build() { const MLModel = require('./ml-model'); const { FrameData } = require('./frames'); const { CloudStorage } = require('./cloud-storage'); + const Organization = require('./organization'); const enums = require('./enums'); @@ -792,6 +792,50 @@ function build() { return result; }, }, + /** + * This namespace could be used to get organizations list from the server + * @namespace organizations + * @memberof module:API.cvat + */ + organizations: { + /** + * Method returns a list of organizations + * @method get + * @async + * @memberof module:API.cvat.organizations + * @returns {module:API.cvat.classes.Organization[]} + * @throws {module:API.cvat.exceptions.PluginError} + * @throws {module:API.cvat.exceptions.ServerError} + */ + async get() { + const result = await PluginRegistry.apiWrapper(cvat.organizations.get); + return result; + }, + /** + * Method activates organization context + * @method activate + * @async + * @param {module:API.cvat.classes.Organization} + * @memberof module:API.cvat.organizations + * @throws {module:API.cvat.exceptions.ArgumentError} + * @throws {module:API.cvat.exceptions.PluginError} + */ + async activate(organization) { + const result = await PluginRegistry.apiWrapper(cvat.organizations.activate, organization); + return result; + }, + /** + * Method deactivates organization context + * @method deactivate + * @async + * @memberof module:API.cvat.organizations + * @throws {module:API.cvat.exceptions.PluginError} + */ + async deactivate() { + const result = await PluginRegistry.apiWrapper(cvat.organizations.deactivate); + return result; + }, + }, /** * Namespace is used for access to classes * @namespace classes @@ -810,9 +854,9 @@ function build() { MLModel, Comment, Issue, - Review, FrameData, CloudStorage, + Organization, }, }; @@ -826,6 +870,7 @@ function build() { cvat.client = Object.freeze(cvat.client); cvat.enums = Object.freeze(cvat.enums); cvat.cloudStorages = Object.freeze(cvat.cloudStorages); + cvat.organizations = Object.freeze(cvat.organizations); const implementAPI = require('./api-implementation'); diff --git a/cvat-core/src/comment.js b/cvat-core/src/comment.js index e8e18cb4..cee8724b 100644 --- a/cvat-core/src/comment.js +++ b/cvat-core/src/comment.js @@ -1,10 +1,9 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT const User = require('./user'); const { ArgumentError } = require('./exceptions'); -const { negativeIDGenerator } = require('./common'); /** * Class representing a single comment @@ -18,8 +17,7 @@ class Comment { message: undefined, created_date: undefined, updated_date: undefined, - removed: false, - author: undefined, + owner: undefined, }; for (const property in data) { @@ -28,11 +26,7 @@ class Comment { } } - if (data.author && !(data.author instanceof User)) data.author = new User(data.author); - - if (typeof id === 'undefined') { - data.id = negativeIDGenerator(); - } + if (data.owner && !(data.owner instanceof User)) data.owner = new User(data.owner); if (typeof data.created_date === 'undefined') { data.created_date = new Date().toISOString(); } @@ -88,29 +82,14 @@ class Comment { }, /** * Instance of a user who has created the comment - * @name author + * @name owner * @type {module:API.cvat.classes.User} * @memberof module:API.cvat.classes.Comment * @readonly * @instance */ - author: { - get: () => data.author, - }, - /** - * @name removed - * @type {boolean} - * @memberof module:API.cvat.classes.Comment - * @instance - */ - removed: { - get: () => data.removed, - set: (value) => { - if (typeof value !== 'boolean') { - throw new ArgumentError('Value must be a boolean value'); - } - data.removed = value; - }, + owner: { + get: () => data.owner, }, __internal: { get: () => data, @@ -124,7 +103,7 @@ class Comment { message: this.message, }; - if (this.id > 0) { + if (typeof this.id === 'number') { data.id = this.id; } if (this.createdDate) { @@ -133,21 +112,12 @@ class Comment { if (this.updatedDate) { data.updated_date = this.updatedDate; } - if (this.author) { - data.author = this.author.serialize(); + if (this.owner) { + data.owner_id = this.owner.serialize().id; } return data; } - - toJSON() { - const data = this.serialize(); - const { author, ...updated } = data; - return { - ...updated, - author_id: author ? author.id : undefined, - }; - } } module.exports = Comment; diff --git a/cvat-core/src/common.js b/cvat-core/src/common.js index 19fee58b..0710e99f 100644 --- a/cvat-core/src/common.js +++ b/cvat-core/src/common.js @@ -97,37 +97,30 @@ ); } - function negativeIDGenerator() { - const value = negativeIDGenerator.start; - negativeIDGenerator.start -= 1; - return value; - } - negativeIDGenerator.start = -1; - class FieldUpdateTrigger { - constructor(initialFields) { - const data = { ...initialFields }; + constructor() { + let updatedFlags = {}; Object.defineProperties( this, Object.freeze({ - ...Object.assign( - {}, - ...Array.from(Object.keys(data), (key) => ({ - [key]: { - get: () => data[key], - set: (value) => { - data[key] = value; - }, - enumerable: true, - }, - })), - ), reset: { value: () => { - Object.keys(data).forEach((key) => { - data[key] = false; - }); + updatedFlags = {}; + }, + }, + update: { + value: (name) => { + updatedFlags[name] = true; + }, + }, + getUpdated: { + value: (data, propMap = {}) => { + const result = {}; + for (const updatedField of Object.keys(updatedFlags)) { + result[propMap[updatedField] || updatedField] = data[updatedField]; + } + return result; }, }, }), @@ -142,7 +135,6 @@ isString, checkFilter, checkObjectType, - negativeIDGenerator, checkExclusiveFields, camelToSnake, FieldUpdateTrigger, diff --git a/cvat-core/src/config.js b/cvat-core/src/config.js index 36950278..9b31d424 100644 --- a/cvat-core/src/config.js +++ b/cvat-core/src/config.js @@ -5,5 +5,6 @@ module.exports = { backendAPI: '/api/v1', proxy: false, + organizationID: null, origin: '', }; diff --git a/cvat-core/src/enums.js b/cvat-core/src/enums.js index 3b63224f..81cf1099 100644 --- a/cvat-core/src/enums.js +++ b/cvat-core/src/enums.js @@ -34,33 +34,51 @@ }); /** - * Task dimension - * @enum - * @name DimensionType + * Job stages + * @enum {string} + * @name JobStage * @memberof module:API.cvat.enums - * @property {string} DIMENSION_2D '2d' - * @property {string} DIMENSION_3D '3d' + * @property {string} ANNOTATION 'annotation' + * @property {string} VALIDATION 'validation' + * @property {string} ACCEPTANCE 'acceptance' * @readonly */ - const DimensionType = Object.freeze({ - DIMENSION_2D: '2d', - DIMENSION_3D: '3d', + const JobStage = Object.freeze({ + ANNOTATION: 'annotation', + VALIDATION: 'validation', + ACCEPTANCE: 'acceptance', }); /** - * Review statuses + * Job states * @enum {string} - * @name ReviewStatus + * @name JobState * @memberof module:API.cvat.enums - * @property {string} ACCEPTED 'accepted' + * @property {string} NEW 'new' + * @property {string} IN_PROGRESS 'in progress' + * @property {string} COMPLETED 'completed' * @property {string} REJECTED 'rejected' - * @property {string} REVIEW_FURTHER 'review_further' * @readonly */ - const ReviewStatus = Object.freeze({ - ACCEPTED: 'accepted', + const JobState = Object.freeze({ + NEW: 'new', + IN_PROGRESS: 'in progress', + COMPLETED: 'completed', REJECTED: 'rejected', - REVIEW_FURTHER: 'review_further', + }); + + /** + * Task dimension + * @enum + * @name DimensionType + * @memberof module:API.cvat.enums + * @property {string} DIMENSION_2D '2d' + * @property {string} DIMENSION_3D '3d' + * @readonly + */ + const DimensionType = Object.freeze({ + DIMENSION_2D: '2d', + DIMENSION_3D: '3d', }); /** @@ -367,6 +385,24 @@ KEY_FILE_PATH: 'KEY_FILE_PATH', }); + /** + * Task statuses + * @enum {string} + * @name MembershipRole + * @memberof module:API.cvat.enums + * @property {string} WORKER 'worker' + * @property {string} SUPERVISOR 'supervisor' + * @property {string} MAINTAINER 'maintainer' + * @property {string} OWNER 'owner' + * @readonly + */ + const MembershipRole = Object.freeze({ + WORKER: 'worker', + SUPERVISOR: 'supervisor', + MAINTAINER: 'maintainer', + OWNER: 'owner', + }); + /** * Sorting methods * @enum {string} @@ -388,7 +424,8 @@ module.exports = { ShareFileType, TaskStatus, - ReviewStatus, + JobStage, + JobState, TaskMode, AttributeType, ObjectType, @@ -402,6 +439,7 @@ DimensionType, CloudStorageProviderType, CloudStorageCredentialsType, + MembershipRole, SortingMethod, }; })(); diff --git a/cvat-core/src/frames.js b/cvat-core/src/frames.js index a3f0db0d..f62af19f 100644 --- a/cvat-core/src/frames.js +++ b/cvat-core/src/frames.js @@ -23,6 +23,7 @@ height, name, taskID, + jobID, frameNumber, startFrame, stopFrame, @@ -69,6 +70,17 @@ value: taskID, writable: false, }, + /** + * @name jid + * @type {integer} + * @memberof module:API.cvat.classes.FrameData + * @readonly + * @instance + */ + jid: { + value: jobID, + writable: false, + }, /** * @name number * @type {integer} @@ -191,7 +203,7 @@ const taskDataCache = frameDataCache[this.tid]; const activeChunk = taskDataCache.activeChunkRequest; activeChunk.request = serverProxy.frames - .getData(this.tid, activeChunk.chunkNumber) + .getData(this.tid, this.jid, activeChunk.chunkNumber) .then((chunk) => { frameDataCache[this.tid].activeChunkRequest.completed = true; if (!taskDataCache.nextChunkRequest) { @@ -366,7 +378,7 @@ } class FrameBuffer { - constructor(size, chunkSize, stopFrame, taskID) { + constructor(size, chunkSize, stopFrame, taskID, jobID) { this._size = size; this._buffer = {}; this._contextImage = {}; @@ -375,6 +387,7 @@ this._stopFrame = stopFrame; this._activeFillBufferRequest = false; this._taskID = taskID; + this._jobID = jobID; } isContextImageAvailable(frame) { @@ -411,6 +424,7 @@ const frameData = new FrameData({ ...frameMeta, taskID: this._taskID, + jobID: this._jobID, frameNumber: requestedFrame, startFrame: frameDataCache[this._taskID].startFrame, stopFrame: frameDataCache[this._taskID].stopFrame, @@ -508,7 +522,7 @@ } } - async require(frameNumber, taskID, fillBuffer, frameStep) { + async require(frameNumber, taskID, jobID, fillBuffer, frameStep) { for (const frame in this._buffer) { if (frame < frameNumber || frame >= frameNumber + this._size * frameStep) { delete this._buffer[frame]; @@ -520,6 +534,7 @@ let frame = new FrameData({ ...frameMeta, taskID, + jobID, frameNumber, startFrame: frameDataCache[taskID].startFrame, stopFrame: frameDataCache[taskID].stopFrame, @@ -576,10 +591,10 @@ } } - async function getImageContext(taskID, frame) { + async function getImageContext(jobID, frame) { return new Promise((resolve, reject) => { serverProxy.frames - .getImageContext(taskID, frame) + .getImageContext(jobID, frame) .then((result) => { if (isNode) { // eslint-disable-next-line no-undef @@ -598,11 +613,11 @@ }); } - async function getContextImage(taskID, frame) { + async function getContextImage(taskID, jobID, frame) { if (frameDataCache[taskID].frameBuffer.isContextImageAvailable(frame)) { return frameDataCache[taskID].frameBuffer.getContextImage(frame); } - const response = getImageContext(taskID, frame); + const response = getImageContext(jobID, frame); frameDataCache[taskID].frameBuffer.addContextImage(frame, response); return frameDataCache[taskID].frameBuffer.getContextImage(frame); } @@ -632,6 +647,7 @@ async function getFrame( taskID, + jobID, chunkSize, chunkType, mode, @@ -674,6 +690,7 @@ chunkSize, stopFrame, taskID, + jobID, ), decodedBlocksCacheSize, activeChunkRequest: null, @@ -684,7 +701,7 @@ frameDataCache[taskID].provider.setRenderSize(frameMeta.width, frameMeta.height); } - return frameDataCache[taskID].frameBuffer.require(frame, taskID, isPlaying, step); + return frameDataCache[taskID].frameBuffer.require(frame, taskID, jobID, isPlaying, step); } function getRanges(taskID) { diff --git a/cvat-core/src/issue.js b/cvat-core/src/issue.js index c6fe6e44..a83a2a47 100644 --- a/cvat-core/src/issue.js +++ b/cvat-core/src/issue.js @@ -8,7 +8,6 @@ const PluginRegistry = require('./plugins'); const Comment = require('./comment'); const User = require('./user'); const { ArgumentError } = require('./exceptions'); -const { negativeIDGenerator } = require('./common'); const serverProxy = require('./server-proxy'); /** @@ -20,14 +19,13 @@ class Issue { constructor(initialData) { const data = { id: undefined, + job: undefined, position: undefined, - comment_set: [], + comments: [], frame: undefined, created_date: undefined, - resolved_date: undefined, owner: undefined, - resolver: undefined, - removed: false, + resolved: undefined, }; for (const property in data) { @@ -37,15 +35,11 @@ class Issue { } if (data.owner && !(data.owner instanceof User)) data.owner = new User(data.owner); - if (data.resolver && !(data.resolver instanceof User)) data.resolver = new User(data.resolver); - if (data.comment_set) { - data.comment_set = data.comment_set.map((comment) => new Comment(comment)); + if (data.comments) { + data.comments = data.comments.map((comment) => new Comment(comment)); } - if (typeof data.id === 'undefined') { - data.id = negativeIDGenerator(); - } if (typeof data.created_date === 'undefined') { data.created_date = new Date().toISOString(); } @@ -81,6 +75,18 @@ class Issue { data.position = value; }, }, + /** + * ID of a job, the issue is linked with + * @name job + * @type {number} + * @memberof module:API.cvat.classes.Issue + * @instance + * @readonly + * @throws {module:API.cvat.exceptions.ArgumentError} + */ + job: { + get: () => data.job, + }, /** * List of comments attached to the issue * @name comments @@ -91,7 +97,7 @@ class Issue { * @throws {module:API.cvat.exceptions.ArgumentError} */ comments: { - get: () => data.comment_set.filter((comment) => !comment.removed), + get: () => [...data.comments], }, /** * @name frame @@ -113,16 +119,6 @@ class Issue { createdDate: { get: () => data.created_date, }, - /** - * @name resolvedDate - * @type {string} - * @memberof module:API.cvat.classes.Issue - * @readonly - * @instance - */ - resolvedDate: { - get: () => data.resolved_date, - }, /** * An instance of a user who has raised the issue * @name owner @@ -135,30 +131,15 @@ class Issue { get: () => data.owner, }, /** - * An instance of a user who has resolved the issue - * @name resolver + * The flag defines issue status + * @name resolved * @type {module:API.cvat.classes.User} * @memberof module:API.cvat.classes.Issue * @readonly * @instance */ - resolver: { - get: () => data.resolver, - }, - /** - * @name removed - * @type {boolean} - * @memberof module:API.cvat.classes.Comment - * @instance - */ - removed: { - get: () => data.removed, - set: (value) => { - if (typeof value !== 'boolean') { - throw new ArgumentError('Value must be a boolean value'); - } - data.removed = value; - }, + resolved: { + get: () => data.resolved, }, __internal: { get: () => data, @@ -184,7 +165,6 @@ class Issue { /** * @typedef {Object} CommentData - * @property {number} [author] an ID of a user who has created the comment * @property {string} message a comment message * @global */ @@ -261,89 +241,68 @@ class Issue { const data = { position: this.position, frame: this.frame, - comment_set: comments.map((comment) => comment.serialize()), + comments: comments.map((comment) => comment.serialize()), }; - if (this.id > 0) { + if (typeof this.id === 'number') { data.id = this.id; } - if (this.createdDate) { - data.created_date = this.createdDate; + if (typeof this.job === 'number') { + data.job = this.job; } - if (this.resolvedDate) { - data.resolved_date = this.resolvedDate; + if (typeof this.createdDate === 'string') { + data.created_date = this.createdDate; } - if (this.owner) { - data.owner = this.owner.toJSON(); + if (typeof this.resolved === 'boolean') { + data.resolved = this.resolved; } - if (this.resolver) { - data.resolver = this.resolver.toJSON(); + if (this.owner instanceof User) { + data.owner = this.owner.serialize().id; } return data; } - - toJSON() { - const data = this.serialize(); - const { owner, resolver, ...updated } = data; - return { - ...updated, - comment_set: this.comments.map((comment) => comment.toJSON()), - owner_id: owner ? owner.id : undefined, - resolver_id: resolver ? resolver.id : undefined, - }; - } } Issue.prototype.comment.implementation = async function (data) { if (typeof data !== 'object' || data === null) { - throw new ArgumentError(`The argument "data" must be a not null object. Got ${data}`); + throw new ArgumentError(`The argument "data" must be an object. Got "${data}"`); } if (typeof data.message !== 'string' || data.message.length < 1) { - throw new ArgumentError(`Comment message must be a not empty string. Got ${data.message}`); - } - if (!(data.author instanceof User)) { - throw new ArgumentError(`Author of the comment must a User instance. Got ${data.author}`); + throw new ArgumentError(`Comment message must be a not empty string. Got "${data.message}"`); } const comment = new Comment(data); - const { id } = this; - if (id >= 0) { - const jsonified = comment.toJSON(); - jsonified.issue = id; - const response = await serverProxy.comments.create(jsonified); + if (typeof this.id === 'number') { + const serialized = comment.serialize(); + serialized.issue = this.id; + const response = await serverProxy.comments.create(serialized); const savedComment = new Comment(response); - this.__internal.comment_set.push(savedComment); + this.__internal.comments.push(savedComment); } else { - this.__internal.comment_set.push(comment); + this.__internal.comments.push(comment); } }; Issue.prototype.resolve.implementation = async function (user) { if (!(user instanceof User)) { - throw new ArgumentError(`The argument "user" must be an instance of a User class. Got ${typeof user}`); + throw new ArgumentError(`The argument "user" must be an instance of a User class. Got "${typeof user}"`); } - const { id } = this; - if (id >= 0) { - const response = await serverProxy.issues.update(id, { resolver_id: user.id }); - this.__internal.resolved_date = response.resolved_date; - this.__internal.resolver = new User(response.resolver); + if (typeof this.id === 'number') { + const response = await serverProxy.issues.update(this.id, { resolved: true }); + this.__internal.resolved = response.resolved; } else { - this.__internal.resolved_date = new Date().toISOString(); - this.__internal.resolver = user; + this.__internal.resolved = true; } }; Issue.prototype.reopen.implementation = async function () { - const { id } = this; - if (id >= 0) { - const response = await serverProxy.issues.update(id, { resolver_id: null }); - this.__internal.resolved_date = response.resolved_date; - this.__internal.resolver = response.resolver; + if (typeof this.id === 'number') { + const response = await serverProxy.issues.update(this.id, { resolved: false }); + this.__internal.resolved = response.resolved; } else { - this.__internal.resolved_date = null; - this.__internal.resolver = null; + this.__internal.resolved = false; } }; diff --git a/cvat-core/src/lambda-manager.js b/cvat-core/src/lambda-manager.js index 921cd861..66014953 100644 --- a/cvat-core/src/lambda-manager.js +++ b/cvat-core/src/lambda-manager.js @@ -1,10 +1,9 @@ -// Copyright (C) 2019-2020 Intel Corporation +// Copyright (C) 2019-2021 Intel Corporation // // SPDX-License-Identifier: MIT const serverProxy = require('./server-proxy'); const { ArgumentError } = require('./exceptions'); -const { Task } = require('./session'); const MLModel = require('./ml-model'); const { RQStatus } = require('./enums'); @@ -35,11 +34,9 @@ class LambdaManager { return models; } - async run(task, model, args) { - if (!(task instanceof Task)) { - throw new ArgumentError( - `Argument task is expected to be an instance of Task class, but got ${typeof task}`, - ); + async run(taskID, model, args) { + if (!Number.isInteger(taskID) || taskID < 0) { + throw new ArgumentError(`Argument taskID must be a positive integer. Got "${taskID}"`); } if (!(model instanceof MLModel)) { @@ -52,17 +49,26 @@ class LambdaManager { throw new ArgumentError(`Argument args is expected to be an object, but got ${typeof model}`); } - const body = args; - body.task = task.id; - body.function = model.id; + const body = { + ...args, + task: taskID, + function: model.id, + }; const result = await serverProxy.lambda.run(body); return result.id; } - async call(task, model, args) { - const body = args; - body.task = task.id; + async call(taskID, model, args) { + if (!Number.isInteger(taskID) || taskID < 0) { + throw new ArgumentError(`Argument taskID must be a positive integer. Got "${taskID}"`); + } + + const body = { + ...args, + task: taskID, + }; + const result = await serverProxy.lambda.call(model.id, body); return result; } diff --git a/cvat-core/src/organization.js b/cvat-core/src/organization.js new file mode 100644 index 00000000..f3e13190 --- /dev/null +++ b/cvat-core/src/organization.js @@ -0,0 +1,372 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +const { checkObjectType, isEnum } = require('./common'); +const config = require('./config'); +const { MembershipRole } = require('./enums'); +const { ArgumentError, ServerError } = require('./exceptions'); +const PluginRegistry = require('./plugins'); +const serverProxy = require('./server-proxy'); +const User = require('./user'); + +/** + * Class representing an organization + * @memberof module:API.cvat.classes + */ +class Organization { + /** + * @param {object} initialData - Object which is used for initialization + *
It must contains keys: + *
  • slug + + *
    It can contains keys: + *
  • name + *
  • description + *
  • owner + *
  • created_date + *
  • updated_date + *
  • contact + */ + constructor(initialData) { + const data = { + id: undefined, + slug: undefined, + name: undefined, + description: undefined, + created_date: undefined, + updated_date: undefined, + owner: undefined, + contact: undefined, + }; + + for (const prop of Object.keys(data)) { + if (prop in initialData) { + data[prop] = initialData[prop]; + } + } + + if (data.owner) data.owner = new User(data.owner); + + checkObjectType('slug', data.slug, 'string'); + if (typeof data.name !== 'undefined') { + checkObjectType('name', data.name, 'string'); + } + + if (typeof data.description !== 'undefined') { + checkObjectType('description', data.description, 'string'); + } + + if (typeof data.id !== 'undefined') { + checkObjectType('id', data.id, 'number'); + } + + if (typeof data.contact !== 'undefined') { + checkObjectType('contact', data.contact, 'object'); + for (const prop in data.contact) { + if (typeof data.contact[prop] !== 'string') { + throw ArgumentError(`Contact fields must be strings, tried to set ${typeof data.contact[prop]}`); + } + } + } + + if (typeof data.owner !== 'undefined' && data.owner !== null) { + checkObjectType('owner', data.owner, null, User); + } + + Object.defineProperties(this, { + id: { + get: () => data.id, + }, + slug: { + get: () => data.slug, + }, + name: { + get: () => data.name, + set: (name) => { + if (typeof name !== 'string') { + throw ArgumentError(`Name property must be a string, tried to set ${typeof description}`); + } + data.name = name; + }, + }, + description: { + get: () => data.description, + set: (description) => { + if (typeof description !== 'string') { + throw ArgumentError( + `Description property must be a string, tried to set ${typeof description}`, + ); + } + data.description = description; + }, + }, + contact: { + get: () => ({ ...data.contact }), + set: (contact) => { + if (typeof contact !== 'object') { + throw ArgumentError(`Contact property must be an object, tried to set ${typeof contact}`); + } + for (const prop in contact) { + if (typeof contact[prop] !== 'string') { + throw ArgumentError(`Contact fields must be strings, tried to set ${typeof contact[prop]}`); + } + } + data.contact = { ...contact }; + }, + }, + owner: { + get: () => data.owner, + }, + createdDate: { + get: () => data.created_date, + }, + updatedDate: { + get: () => data.updated_date, + }, + }); + } + + /** + * Method updates organization data if it was created before, or creates a new organization + * @method save + * @returns {module:API.cvat.classes.Organization} + * @memberof module:API.cvat.classes.Organization + * @readonly + * @instance + * @async + * @throws {module:API.cvat.exceptions.ServerError} + * @throws {module:API.cvat.exceptions.PluginError} + */ + async save() { + const result = await PluginRegistry.apiWrapper.call(this, Organization.prototype.save); + return result; + } + + /** + * Method returns paginatable list of organization members + * @method save + * @returns {module:API.cvat.classes.Organization} + * @param page page number + * @param page_size number of results per page + * @memberof module:API.cvat.classes.Organization + * @readonly + * @instance + * @async + * @throws {module:API.cvat.exceptions.ServerError} + * @throws {module:API.cvat.exceptions.PluginError} + * @throws {module:API.cvat.exceptions.ArgumentError} + */ + async members(page = 1, page_size = 10) { + const result = await PluginRegistry.apiWrapper.call( + this, + Organization.prototype.members, + this.slug, + page, + page_size, + ); + return result; + } + + /** + * Method removes the organization + * @method remove + * @returns {module:API.cvat.classes.Organization} + * @memberof module:API.cvat.classes.Organization + * @readonly + * @instance + * @async + * @throws {module:API.cvat.exceptions.ServerError} + * @throws {module:API.cvat.exceptions.PluginError} + */ + async remove() { + const result = await PluginRegistry.apiWrapper.call(this, Organization.prototype.remove); + return result; + } + + /** + * Method invites new members by email + * @method invite + * @returns {module:API.cvat.classes.Organization} + * @param {string} email + * @param {string} role + * @memberof module:API.cvat.classes.Organization + * @readonly + * @instance + * @async + * @throws {module:API.cvat.exceptions.ArgumentError} + * @throws {module:API.cvat.exceptions.ServerError} + * @throws {module:API.cvat.exceptions.PluginError} + */ + async invite(email, role) { + const result = await PluginRegistry.apiWrapper.call(this, Organization.prototype.invite, email, role); + return result; + } + + /** + * Method allows a user to get out from an organization + * The difference between deleteMembership is that membershipId is unknown in this case + * @method leave + * @returns {module:API.cvat.classes.Organization} + * @memberof module:API.cvat.classes.Organization + * @param {module:API.cvat.classes.User} user + * @readonly + * @instance + * @async + * @throws {module:API.cvat.exceptions.ServerError} + * @throws {module:API.cvat.exceptions.ArgumentError} + * @throws {module:API.cvat.exceptions.PluginError} + */ + async leave(user) { + const result = await PluginRegistry.apiWrapper.call(this, Organization.prototype.leave, user); + return result; + } + + /** + * Method allows to change a membership role + * @method updateMembership + * @returns {module:API.cvat.classes.Organization} + * @param {number} membershipId + * @param {string} role + * @memberof module:API.cvat.classes.Organization + * @readonly + * @instance + * @async + * @throws {module:API.cvat.exceptions.ArgumentError} + * @throws {module:API.cvat.exceptions.ServerError} + * @throws {module:API.cvat.exceptions.PluginError} + */ + async updateMembership(membershipId, role) { + const result = await PluginRegistry.apiWrapper.call( + this, + Organization.prototype.updateMembership, + membershipId, + role, + ); + return result; + } + + /** + * Method allows to kick a user from an organization + * @method deleteMembership + * @returns {module:API.cvat.classes.Organization} + * @param {number} membershipId + * @memberof module:API.cvat.classes.Organization + * @readonly + * @instance + * @async + * @throws {module:API.cvat.exceptions.ArgumentError} + * @throws {module:API.cvat.exceptions.ServerError} + * @throws {module:API.cvat.exceptions.PluginError} + */ + async deleteMembership(membershipId) { + const result = await PluginRegistry.apiWrapper.call( + this, + Organization.prototype.deleteMembership, + membershipId, + ); + return result; + } +} + +Organization.prototype.save.implementation = async function () { + if (typeof this.id === 'number') { + const organizationData = { + name: this.name || this.slug, + description: this.description, + contact: this.contact, + }; + + const result = await serverProxy.organizations.update(this.id, organizationData); + return new Organization(result); + } + + const organizationData = { + slug: this.slug, + name: this.name || this.slug, + description: this.description, + contact: this.contact, + }; + + const result = await serverProxy.organizations.create(organizationData); + return new Organization(result); +}; + +Organization.prototype.members.implementation = async function (orgSlug, page, pageSize) { + checkObjectType('orgSlug', orgSlug, 'string'); + checkObjectType('page', page, 'number'); + checkObjectType('pageSize', pageSize, 'number'); + + const result = await serverProxy.organizations.members(orgSlug, page, pageSize); + await Promise.all( + result.results.map((membership) => { + const { invitation } = membership; + membership.user = new User(membership.user); + if (invitation) { + return serverProxy.organizations + .invitation(invitation) + .then((invitationData) => { + membership.invitation = invitationData; + }) + .catch(() => { + membership.invitation = null; + }); + } + + return Promise.resolve(); + }), + ); + + result.results.count = result.count; + return result.results; +}; + +Organization.prototype.remove.implementation = async function () { + if (typeof this.id === 'number') { + await serverProxy.organizations.delete(this.id); + config.organizationID = null; + } +}; + +Organization.prototype.invite.implementation = async function (email, role) { + checkObjectType('email', email, 'string'); + if (!isEnum.bind(MembershipRole)(role)) { + throw new ArgumentError(`Role must be one of: ${Object.values(MembershipRole).toString()}`); + } + + if (typeof this.id === 'number') { + await serverProxy.organizations.invite(this.id, { email, role }); + } +}; + +Organization.prototype.updateMembership.implementation = async function (membershipId, role) { + checkObjectType('membershipId', membershipId, 'number'); + if (!isEnum.bind(MembershipRole)(role)) { + throw new ArgumentError(`Role must be one of: ${Object.values(MembershipRole).toString()}`); + } + + if (typeof this.id === 'number') { + await serverProxy.organizations.updateMembership(membershipId, { role }); + } +}; + +Organization.prototype.deleteMembership.implementation = async function (membershipId) { + checkObjectType('membershipId', membershipId, 'number'); + if (typeof this.id === 'number') { + await serverProxy.organizations.deleteMembership(membershipId); + } +}; + +Organization.prototype.leave.implementation = async function (user) { + checkObjectType('user', user, null, User); + if (typeof this.id === 'number') { + const result = await serverProxy.organizations.members(this.slug, 1, 10, { user: user.id }); + const [membership] = result.results; + if (!membership) { + throw new ServerError(`Could not find membership for user ${user.username} in organization ${this.slug}`); + } + await serverProxy.organizations.deleteMembership(membership.id); + } +}; + +module.exports = Organization; diff --git a/cvat-core/src/project-implementation.js b/cvat-core/src/project-implementation.js index 4baa0e77..92908617 100644 --- a/cvat-core/src/project-implementation.js +++ b/cvat-core/src/project-implementation.js @@ -11,36 +11,36 @@ function implementProject(projectClass) { projectClass.prototype.save.implementation = async function () { - const trainingProjectCopy = this.trainingProject; if (typeof this.id !== 'undefined') { - // project has been already created, need to update some data - const projectData = { - name: this.name, - assignee_id: this.assignee ? this.assignee.id : null, - bug_tracker: this.bugTracker, - labels: [...this._internalData.labels.map((el) => el.toJSON())], - }; - - if (trainingProjectCopy) { - projectData.training_project = trainingProjectCopy; + const projectData = this._updateTrigger.getUpdated(this, { + bugTracker: 'bug_tracker', + trainingProject: 'training_project', + assignee: 'assignee_id', + }); + if (projectData.assignee_id) { + projectData.assignee_id = projectData.assignee_id.id; + } + if (projectData.labels) { + projectData.labels = projectData.labels.map((el) => el.toJSON()); } await serverProxy.projects.save(this.id, projectData); + this._updateTrigger.reset(); return this; } // initial creating const projectSpec = { name: this.name, - labels: [...this.labels.map((el) => el.toJSON())], + labels: this.labels.map((el) => el.toJSON()), }; if (this.bugTracker) { projectSpec.bug_tracker = this.bugTracker; } - if (trainingProjectCopy) { - projectSpec.training_project = trainingProjectCopy; + if (this.trainingProject) { + projectSpec.training_project = this.trainingProject; } const project = await serverProxy.projects.create(projectSpec); diff --git a/cvat-core/src/project.js b/cvat-core/src/project.js index 32764744..45467a43 100644 --- a/cvat-core/src/project.js +++ b/cvat-core/src/project.js @@ -7,6 +7,7 @@ const { ArgumentError } = require('./exceptions'); const { Label } = require('./labels'); const User = require('./user'); + const { FieldUpdateTrigger } = require('./common'); /** * Class representing a project @@ -36,6 +37,8 @@ dimension: undefined, }; + const updateTrigger = new FieldUpdateTrigger(); + for (const property in data) { if (Object.prototype.hasOwnProperty.call(data, property) && property in initialData) { data[property] = initialData[property]; @@ -82,6 +85,7 @@ throw new ArgumentError('Value must not be empty'); } data.name = value; + updateTrigger.update('name'); }, }, @@ -110,6 +114,7 @@ throw new ArgumentError('Value must be a user instance'); } data.assignee = assignee; + updateTrigger.update('assignee'); }, }, /** @@ -134,6 +139,7 @@ get: () => data.bug_tracker, set: (tracker) => { data.bug_tracker = tracker; + updateTrigger.update('bugTracker'); }, }, /** @@ -195,6 +201,7 @@ }); data.labels = [...deletedLabels, ...labels]; + updateTrigger.update('labels'); }, }, /** @@ -231,11 +238,15 @@ } else { data.training_project = updatedProject; } + updateTrigger.update('trainingProject'); }, }, _internalData: { get: () => data, }, + _updateTrigger: { + get: () => updateTrigger, + }, }), ); diff --git a/cvat-core/src/review.js b/cvat-core/src/review.js deleted file mode 100644 index 320fc200..00000000 --- a/cvat-core/src/review.js +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (C) 2020-2021 Intel Corporation -// -// SPDX-License-Identifier: MIT - -const store = require('store'); - -const PluginRegistry = require('./plugins'); -const Issue = require('./issue'); -const User = require('./user'); -const { ArgumentError, DataError } = require('./exceptions'); -const { ReviewStatus } = require('./enums'); -const { negativeIDGenerator } = require('./common'); -const serverProxy = require('./server-proxy'); - -/** - * Class representing a single review - * @memberof module:API.cvat.classes - * @hideconstructor - */ -class Review { - constructor(initialData) { - const data = { - id: undefined, - job: undefined, - issue_set: [], - estimated_quality: undefined, - status: undefined, - reviewer: undefined, - assignee: undefined, - reviewed_frames: undefined, - reviewed_states: undefined, - }; - - for (const property in data) { - if (Object.prototype.hasOwnProperty.call(data, property) && property in initialData) { - data[property] = initialData[property]; - } - } - - if (data.reviewer && !(data.reviewer instanceof User)) data.reviewer = new User(data.reviewer); - if (data.assignee && !(data.assignee instanceof User)) data.assignee = new User(data.assignee); - - data.reviewed_frames = Array.isArray(data.reviewed_frames) ? new Set(data.reviewed_frames) : new Set(); - data.reviewed_states = Array.isArray(data.reviewed_states) ? new Set(data.reviewed_states) : new Set(); - if (data.issue_set) { - data.issue_set = data.issue_set.map((issue) => new Issue(issue)); - } - - if (typeof data.id === 'undefined') { - data.id = negativeIDGenerator(); - } - - Object.defineProperties( - this, - Object.freeze({ - /** - * @name id - * @type {integer} - * @memberof module:API.cvat.classes.Review - * @readonly - * @instance - */ - id: { - get: () => data.id, - }, - /** - * An identifier of a job the review is attached to - * @name job - * @type {integer} - * @memberof module:API.cvat.classes.Review - * @readonly - * @instance - */ - job: { - get: () => data.job, - }, - /** - * List of attached issues - * @name issues - * @type {number[]} - * @memberof module:API.cvat.classes.Review - * @instance - * @readonly - */ - issues: { - get: () => data.issue_set.filter((issue) => !issue.removed), - }, - /** - * Estimated quality of the review - * @name estimatedQuality - * @type {number} - * @memberof module:API.cvat.classes.Review - * @instance - * @readonly - * @throws {module:API.cvat.exceptions.ArgumentError} - */ - estimatedQuality: { - get: () => data.estimated_quality, - set: (value) => { - if (typeof value !== 'number' || value < 0 || value > 5) { - throw new ArgumentError(`Value must be a number in range [0, 5]. Got ${value}`); - } - data.estimated_quality = value; - }, - }, - /** - * @name status - * @type {module:API.cvat.enums.ReviewStatus} - * @memberof module:API.cvat.classes.Review - * @instance - * @readonly - * @throws {module:API.cvat.exceptions.ArgumentError} - */ - status: { - get: () => data.status, - set: (status) => { - const type = ReviewStatus; - let valueInEnum = false; - for (const value in type) { - if (type[value] === status) { - valueInEnum = true; - break; - } - } - - if (!valueInEnum) { - throw new ArgumentError( - 'Value must be a value from the enumeration cvat.enums.ReviewStatus', - ); - } - - data.status = status; - }, - }, - /** - * An instance of a user who has done the review - * @name reviewer - * @type {module:API.cvat.classes.User} - * @memberof module:API.cvat.classes.Review - * @readonly - * @instance - * @throws {module:API.cvat.exceptions.ArgumentError} - */ - reviewer: { - get: () => data.reviewer, - set: (reviewer) => { - if (!(reviewer instanceof User)) { - throw new ArgumentError(`Reviewer must be an instance of the User class. Got ${reviewer}`); - } - - data.reviewer = reviewer; - }, - }, - /** - * An instance of a user who was assigned for annotation before the review - * @name assignee - * @type {module:API.cvat.classes.User} - * @memberof module:API.cvat.classes.Review - * @readonly - * @instance - */ - assignee: { - get: () => data.assignee, - }, - /** - * A set of frames that have been visited during review - * @name reviewedFrames - * @type {number[]} - * @memberof module:API.cvat.classes.Review - * @readonly - * @instance - */ - reviewedFrames: { - get: () => Array.from(data.reviewed_frames), - }, - /** - * A set of reviewed states (server IDs combined with frames) - * @name reviewedFrames - * @type {string[]} - * @memberof module:API.cvat.classes.Review - * @readonly - * @instance - */ - reviewedStates: { - get: () => Array.from(data.reviewed_states), - }, - __internal: { - get: () => data, - }, - }), - ); - } - - /** - * Method appends a frame to a set of reviewed frames - * Reviewed frames are saved only in local storage - * @method reviewFrame - * @memberof module:API.cvat.classes.Review - * @param {number} frame - * @readonly - * @instance - * @async - * @throws {module:API.cvat.exceptions.ArgumentError} - * @throws {module:API.cvat.exceptions.PluginError} - */ - async reviewFrame(frame) { - const result = await PluginRegistry.apiWrapper.call(this, Review.prototype.reviewFrame, frame); - return result; - } - - /** - * Method appends a frame to a set of reviewed frames - * Reviewed states are saved only in local storage. They are used to automatic annotations quality assessment - * @method reviewStates - * @memberof module:API.cvat.classes.Review - * @param {string[]} stateIDs - * @readonly - * @instance - * @async - * @throws {module:API.cvat.exceptions.ArgumentError} - * @throws {module:API.cvat.exceptions.PluginError} - */ - async reviewStates(stateIDs) { - const result = await PluginRegistry.apiWrapper.call(this, Review.prototype.reviewStates, stateIDs); - return result; - } - - /** - * @typedef {Object} IssueData - * @property {number} frame - * @property {number[]} position - * @property {number} owner - * @property {CommentData[]} comment_set - * @global - */ - /** - * Method adds a new issue to the review - * @method openIssue - * @memberof module:API.cvat.classes.Review - * @param {IssueData} data - * @returns {module:API.cvat.classes.Issue} - * @readonly - * @instance - * @async - * @throws {module:API.cvat.exceptions.ArgumentError} - * @throws {module:API.cvat.exceptions.PluginError} - */ - async openIssue(data) { - const result = await PluginRegistry.apiWrapper.call(this, Review.prototype.openIssue, data); - return result; - } - - async deleteIssue(issueId) { - await PluginRegistry.apiWrapper.call(this, Review.prototype.deleteIssue, issueId); - } - - /** - * Method submits local review to the server - * @method submit - * @memberof module:API.cvat.classes.Review - * @readonly - * @instance - * @async - * @throws {module:API.cvat.exceptions.DataError} - * @throws {module:API.cvat.exceptions.PluginError} - */ - async submit() { - const result = await PluginRegistry.apiWrapper.call(this, Review.prototype.submit); - return result; - } - - serialize() { - const { issues, reviewedFrames, reviewedStates } = this; - const data = { - job: this.job, - issue_set: issues.map((issue) => issue.serialize()), - reviewed_frames: Array.from(reviewedFrames), - reviewed_states: Array.from(reviewedStates), - }; - - if (this.id > 0) { - data.id = this.id; - } - if (typeof this.estimatedQuality !== 'undefined') { - data.estimated_quality = this.estimatedQuality; - } - if (typeof this.status !== 'undefined') { - data.status = this.status; - } - if (this.reviewer) { - data.reviewer = this.reviewer.toJSON(); - } - if (this.assignee) { - data.reviewer = this.assignee.toJSON(); - } - - return data; - } - - toJSON() { - const data = this.serialize(); - const { - reviewer, - assignee, - reviewed_frames: reviewedFrames, - reviewed_states: reviewedStates, - ...updated - } = data; - - return { - ...updated, - issue_set: this.issues.map((issue) => issue.toJSON()), - reviewer_id: reviewer ? reviewer.id : undefined, - assignee_id: assignee ? assignee.id : undefined, - }; - } - - async toLocalStorage() { - const data = this.serialize(); - store.set(`job-${this.job}-review`, JSON.stringify(data)); - } -} - -Review.prototype.reviewFrame.implementation = function (frame) { - if (!Number.isInteger(frame)) { - throw new ArgumentError(`The argument "frame" is expected to be an integer. Got ${frame}`); - } - this.__internal.reviewed_frames.add(frame); -}; - -Review.prototype.reviewStates.implementation = function (stateIDs) { - if (!Array.isArray(stateIDs) || stateIDs.some((stateID) => typeof stateID !== 'string')) { - throw new ArgumentError(`The argument "stateIDs" is expected to be an array of string. Got ${stateIDs}`); - } - - stateIDs.forEach((stateID) => this.__internal.reviewed_states.add(stateID)); -}; - -Review.prototype.openIssue.implementation = async function (data) { - if (typeof data !== 'object' || data === null) { - throw new ArgumentError(`The argument "data" must be a not null object. Got ${data}`); - } - - if (typeof data.frame !== 'number') { - throw new ArgumentError(`Issue frame must be a number. Got ${data.frame}`); - } - - if (!(data.owner instanceof User)) { - throw new ArgumentError(`Issue owner must be a User instance. Got ${data.owner}`); - } - - if (!Array.isArray(data.position) || data.position.some((coord) => typeof coord !== 'number')) { - throw new ArgumentError(`Issue position must be an array of numbers. Got ${data.position}`); - } - - if (!Array.isArray(data.comment_set)) { - throw new ArgumentError(`Issue comment set must be an array. Got ${data.comment_set}`); - } - - const copied = { - frame: data.frame, - position: Issue.hull(data.position), - owner: data.owner, - comment_set: [], - }; - - const issue = new Issue(copied); - - for (const comment of data.comment_set) { - await issue.comment.implementation.call(issue, comment); - } - - this.__internal.issue_set.push(issue); - return issue; -}; - -Review.prototype.submit.implementation = async function () { - if (typeof this.estimatedQuality === 'undefined') { - throw new DataError('Estimated quality is expected to be a number. Got "undefined"'); - } - - if (typeof this.status === 'undefined') { - throw new DataError('Review status is expected to be a string. Got "undefined"'); - } - - if (this.id < 0) { - const data = this.toJSON(); - - const response = await serverProxy.jobs.reviews.create(data); - store.remove(`job-${this.job}-review`); - this.__internal.id = response.id; - this.__internal.issue_set = response.issue_set.map((issue) => new Issue(issue)); - this.__internal.estimated_quality = response.estimated_quality; - this.__internal.status = response.status; - - if (response.reviewer) this.__internal.reviewer = new User(response.reviewer); - if (response.assignee) this.__internal.assignee = new User(response.assignee); - } -}; - -Review.prototype.deleteIssue.implementation = function (issueId) { - this.__internal.issue_set = this.__internal.issue_set.filter((issue) => issue.id !== issueId); -}; - -module.exports = Review; diff --git a/cvat-core/src/server-proxy.js b/cvat-core/src/server-proxy.js index b20e784f..a8d5a5bc 100644 --- a/cvat-core/src/server-proxy.js +++ b/cvat-core/src/server-proxy.js @@ -8,8 +8,18 @@ const store = require('store'); const config = require('./config'); const DownloadWorker = require('./download.worker'); + const Axios = require('axios'); const tus = require('tus-js-client'); + function enableOrganization() { + return { org: config.organizationID || '' }; + } + + function removeToken() { + Axios.defaults.headers.common.Authorization = ''; + store.remove('token'); + } + function waitFor(frequencyHz, predicate) { return new Promise((resolve, reject) => { if (typeof predicate !== 'function') { @@ -61,8 +71,8 @@ } class WorkerWrappedAxios { - constructor() { - const worker = new DownloadWorker(); + constructor(requestInterseptor) { + const worker = new DownloadWorker(requestInterseptor); const requests = {}; let requestId = 0; @@ -123,11 +133,18 @@ class ServerProxy { constructor() { - const Axios = require('axios'); Axios.defaults.withCredentials = true; Axios.defaults.xsrfHeaderName = 'X-CSRFTOKEN'; Axios.defaults.xsrfCookieName = 'csrftoken'; const workerAxios = new WorkerWrappedAxios(); + Axios.interceptors.request.use((reqConfig) => { + if ('params' in reqConfig && 'org' in reqConfig.params) { + return reqConfig; + } + + reqConfig.params = { ...enableOrganization(), ...(reqConfig.params || {}) }; + return reqConfig; + }); let token = store.get('token'); if (token) { @@ -151,12 +168,13 @@ async function share(directoryArg) { const { backendAPI } = config; - const directory = encodeURIComponent(directoryArg); + const directory = encodeURI(directoryArg); let response = null; try { - response = await Axios.get(`${backendAPI}/server/share?directory=${directory}`, { + response = await Axios.get(`${backendAPI}/server/share`, { proxy: config.proxy, + params: { directory }, }); } catch (errorData) { throw generateError(errorData); @@ -242,7 +260,7 @@ .join('&') .replace(/%20/g, '+'); - Axios.defaults.headers.common.Authorization = ''; + removeToken(); let authenticationResponse = null; try { authenticationResponse = await Axios.post(`${config.backendAPI}/auth/login`, authenticationData, { @@ -269,12 +287,10 @@ await Axios.post(`${config.backendAPI}/auth/logout`, { proxy: config.proxy, }); + removeToken(); } catch (errorData) { throw generateError(errorData); } - - store.remove('token'); - Axios.defaults.headers.common.Authorization = ''; } async function changePassword(oldPassword, newPassword1, newPassword2) { @@ -335,6 +351,7 @@ await module.exports.users.self(); } catch (serverError) { if (serverError.code === 401) { + removeToken(); return false; } @@ -362,12 +379,15 @@ let response = null; try { - response = await Axios.get( - `${backendAPI}/projects?names_only=true&page=1&page_size=${limit}&search=${search}`, - { - proxy, + response = await Axios.get(`${backendAPI}/projects`, { + proxy, + params: { + names_only: true, + page: 1, + page_size: limit, + search, }, - ); + }); } catch (errorData) { throw generateError(errorData); } @@ -376,12 +396,25 @@ return response.data.results; } - async function getProjects(filter = '') { + async function getProjects(filter = {}) { const { backendAPI, proxy } = config; let response = null; try { - response = await Axios.get(`${backendAPI}/projects?page_size=12&${filter}`, { + if ('id' in filter) { + response = await Axios.get(`${backendAPI}/projects/${filter.id}`, { + proxy, + }); + const results = [response.data]; + results.count = 1; + return results; + } + + response = await Axios.get(`${backendAPI}/projects`, { + params: { + ...filter, + page_size: 12, + }, proxy, }); } catch (errorData) { @@ -411,7 +444,9 @@ const { backendAPI } = config; try { - await Axios.delete(`${backendAPI}/projects/${id}`); + await Axios.delete(`${backendAPI}/projects/${id}`, { + proxy: config.proxy, + }); } catch (errorData) { throw generateError(errorData); } @@ -433,12 +468,25 @@ } } - async function getTasks(filter = '') { + async function getTasks(filter = {}) { const { backendAPI } = config; let response = null; try { - response = await Axios.get(`${backendAPI}/tasks?page_size=10&${filter}`, { + if ('id' in filter) { + response = await Axios.get(`${backendAPI}/tasks/${filter.id}`, { + proxy: config.proxy, + }); + const results = [response.data]; + results.count = 1; + return results; + } + + response = await Axios.get(`${backendAPI}/tasks`, { + params: { + ...filter, + page_size: 10, + }, proxy: config.proxy, }); } catch (errorData) { @@ -452,8 +500,9 @@ async function saveTask(id, taskData) { const { backendAPI } = config; + let response = null; try { - await Axios.patch(`${backendAPI}/tasks/${id}`, JSON.stringify(taskData), { + response = await Axios.patch(`${backendAPI}/tasks/${id}`, JSON.stringify(taskData), { proxy: config.proxy, headers: { 'Content-Type': 'application/json', @@ -462,13 +511,16 @@ } catch (errorData) { throw generateError(errorData); } + + return response.data; } - async function deleteTask(id) { + async function deleteTask(id, organizationID = null) { const { backendAPI } = config; try { await Axios.delete(`${backendAPI}/tasks/${id}`, { + ...(organizationID ? { org: organizationID } : {}), proxy: config.proxy, headers: { 'Content-Type': 'application/json', @@ -483,25 +535,27 @@ return async function (id, format, name, saveImages) { const { backendAPI } = config; const baseURL = `${backendAPI}/${instanceType}/${id}/${saveImages ? 'dataset' : 'annotations'}`; - let query = `format=${encodeURIComponent(format)}`; + const params = { + ...enableOrganization(), + format, + }; + if (name) { - const filename = name.replace(/\//g, '_'); - query += `&filename=${encodeURIComponent(filename)}`; + params.filename = name.replace(/\//g, '_'); } - let url = `${baseURL}?${query}`; return new Promise((resolve, reject) => { async function request() { - Axios.get(`${url}`, { + Axios.get(baseURL, { proxy: config.proxy, + params, }) .then((response) => { if (response.status === 202) { setTimeout(request, 3000); } else { - query = `${query}&action=download`; - url = `${baseURL}?${query}`; - resolve(url); + params.action = 'download'; + resolve(`${baseURL}?${new URLSearchParams(params).toString()}`); } }) .catch((errorData) => { @@ -554,6 +608,9 @@ async function exportTask(id) { const { backendAPI } = config; + const params = { + ...enableOrganization(), + }; const url = `${backendAPI}/tasks/${id}/backup`; return new Promise((resolve, reject) => { @@ -561,11 +618,13 @@ try { const response = await Axios.get(url, { proxy: config.proxy, + params, }); if (response.status === 202) { setTimeout(request, 3000); } else { - resolve(`${url}?action=download`); + params.action = 'download'; + resolve(`${url}?${new URLSearchParams(params).toString()}`); } } catch (errorData) { reject(generateError(errorData)); @@ -578,6 +637,8 @@ async function importTask(file) { const { backendAPI } = config; + // keep current default params to 'freeze" them during this request + const params = enableOrganization(); let taskData = new FormData(); taskData.append('task_file', file); @@ -587,13 +648,15 @@ try { const response = await Axios.post(`${backendAPI}/tasks/backup`, taskData, { proxy: config.proxy, + params, }); if (response.status === 202) { taskData = new FormData(); taskData.append('rq_id', response.data.rq_id); setTimeout(request, 3000); } else { - const importedTask = await getTasks(`?id=${response.data.id}`); + // to be able to get the task after it was created, pass frozen params + const importedTask = await getTasks({ id: response.data.id, ...params }); resolve(importedTask[0]); } } catch (errorData) { @@ -607,6 +670,8 @@ async function backupProject(id) { const { backendAPI } = config; + // keep current default params to 'freeze" them during this request + const params = enableOrganization(); const url = `${backendAPI}/projects/${id}/backup`; return new Promise((resolve, reject) => { @@ -614,11 +679,13 @@ try { const response = await Axios.get(url, { proxy: config.proxy, + params, }); if (response.status === 202) { setTimeout(request, 3000); } else { - resolve(`${url}?action=download`); + params.action = 'download'; + resolve(`${url}?${new URLSearchParams(params).toString()}`); } } catch (errorData) { reject(generateError(errorData)); @@ -631,6 +698,8 @@ async function restoreProject(file) { const { backendAPI } = config; + // keep current default params to 'freeze" them during this request + const params = enableOrganization(); let data = new FormData(); data.append('project_file', file); @@ -640,13 +709,15 @@ try { const response = await Axios.post(`${backendAPI}/projects/backup`, data, { proxy: config.proxy, + params, }); if (response.status === 202) { data = new FormData(); data.append('rq_id', response.data.rq_id); setTimeout(request, 3000); } else { - const restoredProject = await getProjects(`?id=${response.data.id}`); + // to be able to get the task after it was created, pass frozen params + const restoredProject = await getProjects({ id: response.data.id, ...params }); resolve(restoredProject[0]); } } catch (errorData) { @@ -660,12 +731,14 @@ async function createTask(taskSpec, taskDataSpec, onUpdate) { const { backendAPI, origin } = config; + // keep current default params to 'freeze" them during this request + const params = enableOrganization(); async function wait(id) { return new Promise((resolve, reject) => { async function checkStatus() { try { - const response = await Axios.get(`${backendAPI}/tasks/${id}/status`); + const response = await Axios.get(`${backendAPI}/tasks/${id}/status`, { params }); if (['Queued', 'Started'].includes(response.data.state)) { if (response.data.message !== '') { onUpdate(response.data.message, response.data.progress || 0); @@ -732,6 +805,7 @@ try { response = await Axios.post(`${backendAPI}/tasks`, JSON.stringify(taskSpec), { proxy: config.proxy, + params, headers: { 'Content-Type': 'application/json', }, @@ -760,6 +834,8 @@ }, onBeforeRequest(req) { const xhr = req.getUnderlyingObject(); + const { org } = params; + req.setHeader('X-Organization', org); xhr.withCredentials = true; }, onProgress(bytesUploaded) { @@ -796,6 +872,7 @@ onUpdate(`The data are being uploaded to the server ${((totalSentSize / totalSize) * 100).toFixed(2)}%`); await Axios.post(`${backendAPI}/tasks/${taskId}/data`, taskData, { + ...params, proxy: config.proxy, headers: { 'Upload-Multiple': true }, }); @@ -810,6 +887,7 @@ try { await Axios.post(`${backendAPI}/tasks/${response.data.id}/data`, taskData, { + ...params, proxy: config.proxy, headers: { 'Upload-Start': true }, }); @@ -821,12 +899,13 @@ } await Axios.post(`${backendAPI}/tasks/${response.data.id}/data`, taskData, { + ...params, proxy: config.proxy, headers: { 'Upload-Finish': true }, }); } catch (errorData) { try { - await deleteTask(response.data.id); + await deleteTask(response.data.id, params.org || null); } catch (_) { // ignore } @@ -836,11 +915,12 @@ try { await wait(response.data.id); } catch (createException) { - await deleteTask(response.data.id); + await deleteTask(response.data.id, params.org || null); throw createException; } - const createdTask = await getTasks(`?id=${response.id}`); + // to be able to get the task after it was created, pass frozen params + const createdTask = await getTasks({ id: response.data.id, ...params }); return createdTask[0]; } @@ -859,12 +939,12 @@ return response.data; } - async function getJobReviews(jobID) { + async function getJobIssues(jobID) { const { backendAPI } = config; let response = null; try { - response = await Axios.get(`${backendAPI}/jobs/${jobID}/reviews`, { + response = await Axios.get(`${backendAPI}/jobs/${jobID}/issues`, { proxy: config.proxy, }); } catch (errorData) { @@ -874,12 +954,12 @@ return response.data; } - async function createReview(data) { + async function createComment(data) { const { backendAPI } = config; let response = null; try { - response = await Axios.post(`${backendAPI}/reviews`, JSON.stringify(data), { + response = await Axios.post(`${backendAPI}/comments`, JSON.stringify(data), { proxy: config.proxy, headers: { 'Content-Type': 'application/json', @@ -892,27 +972,12 @@ return response.data; } - async function getJobIssues(jobID) { - const { backendAPI } = config; - - let response = null; - try { - response = await Axios.get(`${backendAPI}/jobs/${jobID}/issues`, { - proxy: config.proxy, - }); - } catch (errorData) { - throw generateError(errorData); - } - - return response.data; - } - - async function createComment(data) { + async function createIssue(data) { const { backendAPI } = config; let response = null; try { - response = await Axios.post(`${backendAPI}/comments`, JSON.stringify(data), { + response = await Axios.post(`${backendAPI}/issues`, JSON.stringify(data), { proxy: config.proxy, headers: { 'Content-Type': 'application/json', @@ -956,8 +1021,9 @@ async function saveJob(id, jobData) { const { backendAPI } = config; + let response = null; try { - await Axios.patch(`${backendAPI}/jobs/${id}`, JSON.stringify(jobData), { + response = await Axios.patch(`${backendAPI}/jobs/${id}`, JSON.stringify(jobData), { proxy: config.proxy, headers: { 'Content-Type': 'application/json', @@ -966,15 +1032,20 @@ } catch (errorData) { throw generateError(errorData); } + + return response.data; } - async function getUsers(filter = 'page_size=all') { + async function getUsers(filter = { page_size: 'all' }) { const { backendAPI } = config; let response = null; try { - response = await Axios.get(`${backendAPI}/users?${filter}`, { + response = await Axios.get(`${backendAPI}/users`, { proxy: config.proxy, + params: { + ...filter, + }, }); } catch (errorData) { throw generateError(errorData); @@ -1003,7 +1074,10 @@ let response = null; try { - response = await Axios.get(`${backendAPI}/tasks/${tid}/data?type=preview`, { + response = await Axios.get(`${backendAPI}/tasks/${tid}/data`, { + params: { + type: 'preview', + }, proxy: config.proxy, responseType: 'blob', }); @@ -1015,18 +1089,20 @@ return response.data; } - async function getImageContext(tid, frame) { + async function getImageContext(jid, frame) { const { backendAPI } = config; let response = null; try { - response = await Axios.get( - `${backendAPI}/tasks/${tid}/data?quality=original&type=context_image&number=${frame}`, - { - proxy: config.proxy, - responseType: 'blob', + response = await Axios.get(`${backendAPI}/jobs/${jid}/data`, { + params: { + quality: 'original', + type: 'context_image', + number: frame, }, - ); + proxy: config.proxy, + responseType: 'blob', + }); } catch (errorData) { throw generateError(errorData); } @@ -1034,18 +1110,23 @@ return response.data; } - async function getData(tid, chunk) { + async function getData(tid, jid, chunk) { const { backendAPI } = config; + const url = jid === null ? `tasks/${tid}/data` : `jobs/${jid}/data`; + let response = null; try { - response = await workerAxios.get( - `${backendAPI}/tasks/${tid}/data?type=chunk&number=${chunk}&quality=compressed`, - { - proxy: config.proxy, - responseType: 'arraybuffer', + response = await workerAxios.get(`${backendAPI}/${url}`, { + params: { + ...enableOrganization(), + quality: 'compressed', + type: 'chunk', + number: chunk, }, - ); + proxy: config.proxy, + responseType: 'arraybuffer', + }); } catch (errorData) { throw generateError({ message: '', @@ -1093,20 +1174,22 @@ // Session is 'task' or 'job' async function updateAnnotations(session, id, data, action) { const { backendAPI } = config; + const url = `${backendAPI}/${session}s/${id}/annotations`; + const params = {}; let requestFunc = null; - let url = null; + if (action.toUpperCase() === 'PUT') { requestFunc = Axios.put.bind(Axios); - url = `${backendAPI}/${session}s/${id}/annotations`; } else { requestFunc = Axios.patch.bind(Axios); - url = `${backendAPI}/${session}s/${id}/annotations?action=${action}`; + params.action = action; } let response = null; try { response = await requestFunc(url, JSON.stringify(data), { proxy: config.proxy, + params, headers: { 'Content-Type': 'application/json', }, @@ -1121,7 +1204,10 @@ // Session is 'task' or 'job' async function uploadAnnotations(session, id, file, format) { const { backendAPI } = config; - + const params = { + ...enableOrganization(), + format, + }; let annotationData = new FormData(); annotationData.append('annotation_file', file); @@ -1129,9 +1215,10 @@ async function request() { try { const response = await Axios.put( - `${backendAPI}/${session}s/${id}/annotations?format=${format}`, + `${backendAPI}/${session}s/${id}/annotations`, annotationData, { + params, proxy: config.proxy, }, ); @@ -1154,25 +1241,25 @@ async function dumpAnnotations(id, name, format) { const { backendAPI } = config; const baseURL = `${backendAPI}/tasks/${id}/annotations`; - let query = `format=${encodeURIComponent(format)}`; + const params = enableOrganization(); + params.format = encodeURIComponent(format); if (name) { const filename = name.replace(/\//g, '_'); - query += `&filename=${encodeURIComponent(filename)}`; + params.filename = encodeURIComponent(filename); } - let url = `${baseURL}?${query}`; return new Promise((resolve, reject) => { async function request() { - Axios.get(`${url}`, { + Axios.get(baseURL, { proxy: config.proxy, + params, }) .then((response) => { if (response.status === 202) { setTimeout(request, 3000); } else { - query = `${query}&action=download`; - url = `${baseURL}?${query}`; - resolve(url); + params.action = 'download'; + resolve(`${baseURL}?${new URLSearchParams(params).toString()}`); } }) .catch((errorData) => { @@ -1291,7 +1378,11 @@ return new Promise((resolve, reject) => { async function request() { try { - const response = await Axios.get(`${backendAPI}/predict/status?project=${projectId}`); + const response = await Axios.get(`${backendAPI}/predict/status`, { + params: { + project: projectId, + }, + }); return response.data; } catch (errorData) { throw generateError(errorData); @@ -1324,9 +1415,12 @@ async function request() { try { - const response = await Axios.get( - `${backendAPI}/predict/frame?task=${taskId}&frame=${frame}`, - ); + const response = await Axios.get(`${backendAPI}/predict/frame`, { + params: { + task: taskId, + frame, + }, + }); return response.data; } catch (errorData) { throw generateError(errorData); @@ -1456,6 +1550,7 @@ try { const url = `${backendAPI}/cloudstorages/${id}/preview`; response = await workerAxios.get(url, { + params: enableOrganization(), proxy: config.proxy, responseType: 'arraybuffer', }); @@ -1492,10 +1587,164 @@ const { backendAPI } = config; try { - await Axios.delete(`${backendAPI}/cloudstorages/${id}`); + await Axios.delete(`${backendAPI}/cloudstorages/${id}`, { + proxy: config.proxy, + }); + } catch (errorData) { + throw generateError(errorData); + } + } + + async function getOrganizations() { + const { backendAPI } = config; + + let response = null; + try { + response = await Axios.get(`${backendAPI}/organizations`, { + proxy: config.proxy, + }); + } catch (errorData) { + throw generateError(errorData); + } + + return response.data; + } + + async function createOrganization(data) { + const { backendAPI } = config; + + let response = null; + try { + response = await Axios.post(`${backendAPI}/organizations`, JSON.stringify(data), { + proxy: config.proxy, + headers: { + 'Content-Type': 'application/json', + }, + }); + } catch (errorData) { + throw generateError(errorData); + } + + return response.data; + } + + async function updateOrganization(id, data) { + const { backendAPI } = config; + + let response = null; + try { + response = await Axios.patch(`${backendAPI}/organizations/${id}`, JSON.stringify(data), { + proxy: config.proxy, + headers: { + 'Content-Type': 'application/json', + }, + }); + } catch (errorData) { + throw generateError(errorData); + } + + return response.data; + } + + async function deleteOrganization(id) { + const { backendAPI } = config; + + try { + await Axios.delete(`${backendAPI}/organizations/${id}`, { + proxy: config.proxy, + headers: { + 'Content-Type': 'application/json', + }, + }); + } catch (errorData) { + throw generateError(errorData); + } + } + + async function getOrganizationMembers(orgSlug, page, pageSize, filters = {}) { + const { backendAPI } = config; + + let response = null; + try { + response = await Axios.get(`${backendAPI}/memberships`, { + proxy: config.proxy, + params: { + ...filters, + org: orgSlug, + page, + page_size: pageSize, + }, + }); + } catch (errorData) { + throw generateError(errorData); + } + + return response.data; + } + + async function inviteOrganizationMembers(orgId, data) { + const { backendAPI } = config; + try { + await Axios.post( + `${backendAPI}/invitations`, + { + ...data, + organization: orgId, + }, + { + proxy: config.proxy, + }, + ); + } catch (errorData) { + throw generateError(errorData); + } + } + + async function updateOrganizationMembership(membershipId, data) { + const { backendAPI } = config; + let response = null; + try { + response = await Axios.patch( + `${backendAPI}/memberships/${membershipId}`, + { + ...data, + }, + { + proxy: config.proxy, + }, + ); } catch (errorData) { throw generateError(errorData); } + + return response.data; + } + + async function deleteOrganizationMembership(membershipId) { + const { backendAPI } = config; + + try { + await Axios.delete(`${backendAPI}/memberships/${membershipId}`, { + proxy: config.proxy, + }); + } catch (errorData) { + throw generateError(errorData); + } + } + + async function getMembershipInvitation(id) { + const { backendAPI } = config; + + let response = null; + try { + response = await Axios.get(`${backendAPI}/invitations/${id}`, { + proxy: config.proxy, + }); + } catch (errorData) { + throw generateError(errorData); + } + + return response.data; } Object.defineProperties( @@ -1538,13 +1787,13 @@ tasks: { value: Object.freeze({ - getTasks, - saveTask, - createTask, - deleteTask, + get: getTasks, + save: saveTask, + create: createTask, + delete: deleteTask, exportDataset: exportDataset('tasks'), - exportTask, - importTask, + export: exportTask, + import: importTask, }), writable: false, }, @@ -1553,11 +1802,6 @@ value: Object.freeze({ get: getJob, save: saveJob, - issues: getJobIssues, - reviews: { - get: getJobReviews, - create: createReview, - }, }), writable: false, }, @@ -1611,7 +1855,9 @@ issues: { value: Object.freeze({ + create: createIssue, update: updateIssue, + get: getJobIssues, delete: deleteIssue, }), writable: false, @@ -1644,6 +1890,21 @@ }), writable: false, }, + + organizations: { + value: Object.freeze({ + get: getOrganizations, + create: createOrganization, + update: updateOrganization, + members: getOrganizationMembers, + invitation: getMembershipInvitation, + delete: deleteOrganization, + invite: inviteOrganizationMembers, + updateMembership: updateOrganizationMembership, + deleteMembership: deleteOrganizationMembership, + }), + writable: false, + }, }), ); } diff --git a/cvat-core/src/session.js b/cvat-core/src/session.js index 6f7b3b04..f2e86cb3 100644 --- a/cvat-core/src/session.js +++ b/cvat-core/src/session.js @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT (() => { - const store = require('store'); const PluginRegistry = require('./plugins'); const loggerStorage = require('./logger-storage'); const serverProxy = require('./server-proxy'); @@ -11,12 +10,11 @@ getFrame, getRanges, getPreview, clear: clearFrames, getContextImage, } = require('./frames'); const { ArgumentError, DataError } = require('./exceptions'); - const { TaskStatus } = require('./enums'); + const { JobStage, JobState } = require('./enums'); const { Label } = require('./labels'); const User = require('./user'); const Issue = require('./issue'); - const Review = require('./review'); - const { FieldUpdateTrigger } = require('./common'); + const { FieldUpdateTrigger, checkObjectType } = require('./common'); function buildDuplicatedAPI(prototype) { Object.defineProperties(prototype, { @@ -180,11 +178,10 @@ const result = await PluginRegistry.apiWrapper.call(this, prototype.frames.preview); return result; }, - async contextImage(taskId, frameId) { + async contextImage(frameId) { const result = await PluginRegistry.apiWrapper.call( this, prototype.frames.contextImage, - taskId, frameId, ); return result; @@ -709,18 +706,21 @@ const data = { id: undefined, assignee: null, - reviewer: null, - status: undefined, + stage: undefined, + state: undefined, start_frame: undefined, stop_frame: undefined, - task: undefined, + project_id: null, + task_id: undefined, + labels: undefined, + dimension: undefined, + data_compressed_chunk_type: undefined, + data_chunk_size: undefined, + bug_tracker: null, + mode: undefined, }; - const updatedFields = new FieldUpdateTrigger({ - assignee: false, - reviewer: false, - status: false, - }); + const updateTrigger = new FieldUpdateTrigger(); for (const property in data) { if (Object.prototype.hasOwnProperty.call(data, property)) { @@ -735,7 +735,19 @@ } if (data.assignee) data.assignee = new User(data.assignee); - if (data.reviewer) data.reviewer = new User(data.reviewer); + if (Array.isArray(initialData.labels)) { + data.labels = initialData.labels.map((labelData) => { + // can be already wrapped to the class + // when create this job from Task constructor + if (labelData instanceof Label) { + return labelData; + } + + return new Label(labelData); + }); + } else { + throw new Error('Job labels must be an array'); + } Object.defineProperties( this, @@ -764,42 +776,53 @@ if (assignee !== null && !(assignee instanceof User)) { throw new ArgumentError('Value must be a user instance'); } - updatedFields.assignee = true; + updateTrigger.update('assignee'); data.assignee = assignee; }, }, /** - * Instance of a user who is responsible for review - * @name reviewer - * @type {module:API.cvat.classes.User} + * @name stage + * @type {module:API.cvat.enums.JobStage} * @memberof module:API.cvat.classes.Job * @instance * @throws {module:API.cvat.exceptions.ArgumentError} */ - reviewer: { - get: () => data.reviewer, - set: (reviewer) => { - if (reviewer !== null && !(reviewer instanceof User)) { - throw new ArgumentError('Value must be a user instance'); + stage: { + get: () => data.stage, + set: (stage) => { + const type = JobStage; + let valueInEnum = false; + for (const value in type) { + if (type[value] === stage) { + valueInEnum = true; + break; + } + } + + if (!valueInEnum) { + throw new ArgumentError( + 'Value must be a value from the enumeration cvat.enums.JobStage', + ); } - updatedFields.reviewer = true; - data.reviewer = reviewer; + + updateTrigger.update('stage'); + data.stage = stage; }, }, /** - * @name status - * @type {module:API.cvat.enums.TaskStatus} + * @name state + * @type {module:API.cvat.enums.JobState} * @memberof module:API.cvat.classes.Job * @instance * @throws {module:API.cvat.exceptions.ArgumentError} */ - status: { - get: () => data.status, - set: (status) => { - const type = TaskStatus; + state: { + get: () => data.state, + set: (state) => { + const type = JobState; let valueInEnum = false; for (const value in type) { - if (type[value] === status) { + if (type[value] === state) { valueInEnum = true; break; } @@ -807,12 +830,12 @@ if (!valueInEnum) { throw new ArgumentError( - 'Value must be a value from the enumeration cvat.enums.TaskStatus', + 'Value must be a value from the enumeration cvat.enums.JobState', ); } - updatedFields.status = true; - data.status = status; + updateTrigger.update('state'); + data.state = state; }, }, /** @@ -836,17 +859,96 @@ get: () => data.stop_frame, }, /** - * @name task - * @type {module:API.cvat.classes.Task} + * @name projectId + * @type {integer|null} + * @memberof module:API.cvat.classes.Job + * @readonly + * @instance + */ + projectId: { + get: () => data.project_id, + }, + /** + * @name taskId + * @type {integer} + * @memberof module:API.cvat.classes.Job + * @readonly + * @instance + */ + taskId: { + get: () => data.task_id, + }, + /** + * @name labels + * @type {module:API.cvat.classes.Label[]} + * @memberof module:API.cvat.classes.Job + * @readonly + * @instance + */ + labels: { + get: () => data.labels.filter((_label) => !_label.deleted), + }, + /** + * @name dimension + * @type {module:API.cvat.enums.DimensionType} + * @memberof module:API.cvat.classes.Task + * @readonly + * @instance + */ + dimension: { + get: () => data.dimension, + }, + /** + * @name dataChunkSize + * @type {integer} + * @memberof module:API.cvat.classes.Job + * @readonly + * @instance + */ + dataChunkSize: { + get: () => data.data_chunk_size, + set: (chunkSize) => { + if (typeof chunkSize !== 'number' || chunkSize < 1) { + throw new ArgumentError( + `Chunk size value must be a positive number. But value ${chunkSize} has been got.`, + ); + } + + data.data_chunk_size = chunkSize; + }, + }, + /** + * @name dataChunkSize + * @type {string} + * @memberof module:API.cvat.classes.Job + * @readonly + * @instance + */ + dataChunkType: { + get: () => data.data_compressed_chunk_type, + }, + /** + * @name mode + * @type {string} * @memberof module:API.cvat.classes.Job * @readonly * @instance */ - task: { - get: () => data.task, + mode: { + get: () => data.mode, + }, + /** + * @name bugTracker + * @type {string|null} + * @memberof module:API.cvat.classes.Job + * @instance + * @readonly + */ + bugTracker: { + get: () => data.bug_tracker, }, - __updatedFields: { - get: () => updatedFields, + _updateTrigger: { + get: () => updateTrigger, }, }), ); @@ -870,6 +972,7 @@ export: Object.getPrototypeOf(this).annotations.export.bind(this), statistics: Object.getPrototypeOf(this).annotations.statistics.bind(this), hasUnsavedChanges: Object.getPrototypeOf(this).annotations.hasUnsavedChanges.bind(this), + exportDataset: Object.getPrototypeOf(this).annotations.exportDataset.bind(this), }; this.actions = { @@ -898,7 +1001,7 @@ } /** - * Method updates job data like status or assignee + * Method updates job data like state, stage or assignee * @method save * @memberof module:API.cvat.classes.Job * @readonly @@ -916,7 +1019,7 @@ * Method returns a list of issues for a job * @method issues * @memberof module:API.cvat.classes.Job - * @type {module:API.cvat.classes.Issue[]} + * @returns {module:API.cvat.classes.Issue[]} * @readonly * @instance * @async @@ -929,44 +1032,36 @@ } /** - * Method returns a list of reviews for a job - * @method reviews - * @type {module:API.cvat.classes.Review[]} + * Method adds a new issue to a job + * @method openIssue * @memberof module:API.cvat.classes.Job + * @returns {module:API.cvat.classes.Issue} + * @param {module:API.cvat.classes.Issue} issue + * @param {string} message * @readonly * @instance * @async + * @throws {module:API.cvat.exceptions.ArgumentError} * @throws {module:API.cvat.exceptions.ServerError} * @throws {module:API.cvat.exceptions.PluginError} */ - async reviews() { - const result = await PluginRegistry.apiWrapper.call(this, Job.prototype.reviews); + async openIssue(issue, message) { + const result = await PluginRegistry.apiWrapper.call(this, Job.prototype.openIssue, issue, message); return result; } /** - * /** - * @typedef {Object} ReviewSummary - * @property {number} reviews Number of done reviews - * @property {number} average_estimated_quality - * @property {number} issues_unsolved - * @property {number} issues_resolved - * @property {string[]} assignees - * @property {string[]} reviewers - */ - /** - * Method returns brief summary of within all reviews - * @method reviewsSummary - * @type {ReviewSummary} + * Method removes all job related data from the client (annotations, history, etc.) + * @method close + * @returns {module:API.cvat.classes.Job} * @memberof module:API.cvat.classes.Job * @readonly - * @instance * @async - * @throws {module:API.cvat.exceptions.ServerError} + * @instance * @throws {module:API.cvat.exceptions.PluginError} */ - async reviewsSummary() { - const result = await PluginRegistry.apiWrapper.call(this, Job.prototype.reviewsSummary); + async close() { + const result = await PluginRegistry.apiWrapper.call(this, Job.prototype.close); return result; } } @@ -993,7 +1088,7 @@ const data = { id: undefined, name: undefined, - project_id: undefined, + project_id: null, status: undefined, size: undefined, mode: undefined, @@ -1020,14 +1115,7 @@ sorting_method: undefined, }; - const updatedFields = new FieldUpdateTrigger({ - name: false, - assignee: false, - bug_tracker: false, - subset: false, - labels: false, - project_id: false, - }); + const updateTrigger = new FieldUpdateTrigger(); for (const property in data) { if (Object.prototype.hasOwnProperty.call(data, property) && property in initialData) { @@ -1046,6 +1134,13 @@ remote_files: [], }); + if (Array.isArray(initialData.labels)) { + for (const label of initialData.labels) { + const classInstance = new Label(label); + data.labels.push(classInstance); + } + } + if (Array.isArray(initialData.segments)) { for (const segment of initialData.segments) { if (Array.isArray(segment.jobs)) { @@ -1054,25 +1149,28 @@ url: job.url, id: job.id, assignee: job.assignee, - reviewer: job.reviewer, - status: job.status, + state: job.state, + stage: job.stage, start_frame: segment.start_frame, stop_frame: segment.stop_frame, - task: this, + // following fields also returned when doing API request /jobs/ + // here we know them from task and append to constructor + task_id: data.id, + project_id: data.project_id, + labels: data.labels, + bug_tracker: data.bug_tracker, + mode: data.mode, + dimension: data.dimension, + data_compressed_chunk_type: data.data_compressed_chunk_type, + data_chunk_size: data.data_chunk_size, }); + data.jobs.push(jobInstance); } } } } - if (Array.isArray(initialData.labels)) { - for (const label of initialData.labels) { - const classInstance = new Label(label); - data.labels.push(classInstance); - } - } - Object.defineProperties( this, Object.freeze({ @@ -1099,7 +1197,7 @@ if (!value.trim().length) { throw new ArgumentError('Value must not be empty'); } - updatedFields.name = true; + updateTrigger.update('name'); data.name = value; }, }, @@ -1116,7 +1214,7 @@ throw new ArgumentError('Value must be a positive integer'); } - updatedFields.project_id = true; + updateTrigger.update('projectId'); data.project_id = projectId; }, }, @@ -1175,7 +1273,7 @@ if (assignee !== null && !(assignee instanceof User)) { throw new ArgumentError('Value must be a user instance'); } - updatedFields.assignee = true; + updateTrigger.update('assignee'); data.assignee = assignee; }, }, @@ -1215,7 +1313,7 @@ ); } - updatedFields.bug_tracker = true; + updateTrigger.update('bugTracker'); data.bug_tracker = tracker; }, }, @@ -1235,7 +1333,7 @@ ); } - updatedFields.subset = true; + updateTrigger.update('subset'); data.subset = subset; }, }, @@ -1364,7 +1462,7 @@ _label.deleted = true; }); - updatedFields.labels = true; + updateTrigger.update('labels'); data.labels = [...deletedLabels, ...labels]; }, }, @@ -1531,14 +1629,14 @@ dataChunkType: { get: () => data.data_compressed_chunk_type, }, + /** + * @name dimension + * @type {module:API.cvat.enums.DimensionType} + * @memberof module:API.cvat.classes.Task + * @readonly + * @instance + */ dimension: { - /** - * @name enabled - * @type {string} - * @memberof module:API.cvat.enums.DimensionType - * @readonly - * @instance - */ get: () => data.dimension, }, /** @@ -1563,8 +1661,8 @@ _internalData: { get: () => data, }, - __updatedFields: { - get: () => updatedFields, + _updateTrigger: { + get: () => updateTrigger, }, }), ); @@ -1731,70 +1829,32 @@ Job.prototype.save.implementation = async function () { if (this.id) { - const jobData = {}; - - for (const [field, isUpdated] of Object.entries(this.__updatedFields)) { - if (isUpdated) { - switch (field) { - case 'status': - jobData.status = this.status; - break; - case 'assignee': - jobData.assignee_id = this.assignee ? this.assignee.id : null; - break; - case 'reviewer': - jobData.reviewer_id = this.reviewer ? this.reviewer.id : null; - break; - default: - break; - } - } + const jobData = this._updateTrigger.getUpdated(this); + if (jobData.assignee) { + jobData.assignee = jobData.assignee.id; } - await serverProxy.jobs.save(this.id, jobData); - - this.__updatedFields.reset(); - - return this; + const data = await serverProxy.jobs.save(this.id, jobData); + this._updateTrigger.reset(); + return new Job(data); } - throw new ArgumentError('Can not save job without and id'); + throw new ArgumentError('Could not save job without id'); }; Job.prototype.issues.implementation = async function () { - const result = await serverProxy.jobs.issues(this.id); + const result = await serverProxy.issues.get(this.id); return result.map((issue) => new Issue(issue)); }; - Job.prototype.reviews.implementation = async function () { - const result = await serverProxy.jobs.reviews.get(this.id); - const reviews = result.map((review) => new Review(review)); - - // try to get not finished review from the local storage - const data = store.get(`job-${this.id}-review`); - if (data) { - reviews.push(new Review(JSON.parse(data))); - } - - return reviews; - }; - - Job.prototype.reviewsSummary.implementation = async function () { - const reviews = await serverProxy.jobs.reviews.get(this.id); - const issues = await serverProxy.jobs.issues(this.id); - - const qualities = reviews.map((review) => review.estimated_quality); - const reviewers = reviews.filter((review) => review.reviewer).map((review) => review.reviewer.username); - const assignees = reviews.filter((review) => review.assignee).map((review) => review.assignee.username); - - return { - reviews: reviews.length, - average_estimated_quality: qualities.reduce((acc, quality) => acc + quality, 0) / (qualities.length || 1), - issues_unsolved: issues.filter((issue) => !issue.resolved_date).length, - issues_resolved: issues.filter((issue) => issue.resolved_date).length, - assignees: Array.from(new Set(assignees.filter((assignee) => assignee !== null))), - reviewers: Array.from(new Set(reviewers.filter((reviewer) => reviewer !== null))), - }; + Job.prototype.openIssue.implementation = async function (issue, message) { + checkObjectType('issue', issue, null, Issue); + checkObjectType('message', message, 'string'); + const result = await serverProxy.issues.create({ + ...issue.serialize(), + message, + }); + return new Issue(result); }; Job.prototype.frames.get.implementation = async function (frame, isPlaying, step) { @@ -1807,27 +1867,28 @@ } const frameData = await getFrame( - this.task.id, - this.task.dataChunkSize, - this.task.dataChunkType, - this.task.mode, + this.taskId, + this.id, + this.dataChunkSize, + this.dataChunkType, + this.mode, frame, this.startFrame, this.stopFrame, isPlaying, step, - this.task.dimension, + this.dimension, ); return frameData; }; Job.prototype.frames.ranges.implementation = async function () { - const rangesData = await getRanges(this.task.id); + const rangesData = await getRanges(this.taskId); return rangesData; }; Job.prototype.frames.preview.implementation = async function () { - const frameData = await getPreview(this.task.id); + const frameData = await getPreview(this.taskId); return frameData; }; @@ -1950,7 +2011,7 @@ }; Job.prototype.annotations.exportDataset.implementation = async function (format, saveImages, customName) { - const result = await exportDataset(this.task, format, customName, saveImages); + const result = await exportDataset(this, format, customName, saveImages); return result; }; @@ -1980,20 +2041,54 @@ }; Job.prototype.logger.log.implementation = async function (logType, payload, wait) { - const result = await this.task.logger.log(logType, { ...payload, job_id: this.id }, wait); + const result = await loggerStorage.log(logType, { ...payload, task_id: this.taskId, job_id: this.id }, wait); return result; }; Job.prototype.predictor.status.implementation = async function () { - const result = await this.task.predictor.status(); - return result; + if (!Number.isInteger(this.projectId)) { + throw new DataError('The job must belong to a project to use the feature'); + } + + const result = await serverProxy.predictor.status(this.projectId); + return { + message: result.message, + progress: result.progress, + projectScore: result.score, + timeRemaining: result.time_remaining, + mediaAmount: result.media_amount, + annotationAmount: result.annotation_amount, + }; }; Job.prototype.predictor.predict.implementation = async function (frame) { - const result = await this.task.predictor.predict(frame); + if (!Number.isInteger(frame) || frame < 0) { + throw new ArgumentError(`Frame must be a positive integer. Got: "${frame}"`); + } + + if (frame < this.startFrame || frame > this.stopFrame) { + throw new ArgumentError(`The frame with number ${frame} is out of the job`); + } + + if (!Number.isInteger(this.projectId)) { + throw new DataError('The job must belong to a project to use the feature'); + } + + const result = await serverProxy.predictor.predict(this.taskId, frame); + return result; + }; + + Job.prototype.frames.contextImage.implementation = async function (frameId) { + const result = await getContextImage(this.taskId, this.id, frameId); return result; }; + Job.prototype.close.implementation = function closeTask() { + clearFrames(this.taskId); + closeSession(this); + return this; + }; + Task.prototype.close.implementation = function closeTask() { clearFrames(this.id); for (const job of this.jobs) { @@ -2008,40 +2103,22 @@ // TODO: Add ability to change an owner and an assignee if (typeof this.id !== 'undefined') { // If the task has been already created, we update it - const taskData = {}; - - for (const [field, isUpdated] of Object.entries(this.__updatedFields)) { - if (isUpdated) { - switch (field) { - case 'assignee': - taskData.assignee_id = this.assignee ? this.assignee.id : null; - break; - case 'name': - taskData.name = this.name; - break; - case 'bug_tracker': - taskData.bug_tracker = this.bugTracker; - break; - case 'subset': - taskData.subset = this.subset; - break; - case 'project_id': - taskData.project_id = this.projectId; - break; - case 'labels': - taskData.labels = [...this._internalData.labels.map((el) => el.toJSON())]; - break; - default: - break; - } - } + const taskData = this._updateTrigger.getUpdated(this, { + bugTracker: 'bug_tracker', + projectId: 'project_id', + assignee: 'assignee_id', + }); + if (taskData.assignee_id) { + taskData.assignee_id = taskData.assignee_id.id; + } + if (taskData.labels) { + taskData.labels = this._internalData.labels; + taskData.labels = taskData.labels.map((el) => el.toJSON()); } - await serverProxy.tasks.saveTask(this.id, taskData); - - this.__updatedFields.reset(); - - return this; + const data = await serverProxy.tasks.save(this.id, taskData); + this._updateTrigger.reset(); + return new Task(data); } const taskSpec = { @@ -2094,22 +2171,23 @@ taskDataSpec.cloud_storage_id = this.cloudStorageId; } - const task = await serverProxy.tasks.createTask(taskSpec, taskDataSpec, onUpdate); + const task = await serverProxy.tasks.create(taskSpec, taskDataSpec, onUpdate); return new Task(task); }; Task.prototype.delete.implementation = async function () { - const result = await serverProxy.tasks.deleteTask(this.id); + const result = await serverProxy.tasks.delete(this.id); return result; }; Task.prototype.export.implementation = async function () { - const result = await serverProxy.tasks.exportTask(this.id); + const result = await serverProxy.tasks.export(this.id); return result; }; Task.import.implementation = async function (file) { - const result = await serverProxy.tasks.importTask(file); + // eslint-disable-next-line no-unsanitized/method + const result = await serverProxy.tasks.import(file); return result; }; @@ -2124,6 +2202,7 @@ const result = await getFrame( this.id, + null, this.dataChunkSize, this.dataChunkType, this.mode, @@ -2329,9 +2408,4 @@ const result = await serverProxy.predictor.predict(this.id, frame); return result; }; - - Job.prototype.frames.contextImage.implementation = async function (taskId, frameId) { - const result = await getContextImage(taskId, frameId); - return result; - }; })(); diff --git a/cvat-core/src/user.js b/cvat-core/src/user.js index d826c822..d83be1fe 100644 --- a/cvat-core/src/user.js +++ b/cvat-core/src/user.js @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Intel Corporation +// Copyright (C) 2019-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -174,10 +174,6 @@ email_verification_required: this.isVerified, }; } - - toJSON() { - return this.serialize(); - } } module.exports = User; diff --git a/cvat-core/tests/api/annotations.js b/cvat-core/tests/api/annotations.js index fb78ea59..4df92a21 100644 --- a/cvat-core/tests/api/annotations.js +++ b/cvat-core/tests/api/annotations.js @@ -125,7 +125,7 @@ describe('Feature: put annotations', () => { shapeType: window.cvat.enums.ObjectShape.RECTANGLE, points: [0, 0, 100, 100], occluded: false, - label: job.task.labels[0], + label: job.labels[0], zOrder: 0, }); @@ -169,7 +169,7 @@ describe('Feature: put annotations', () => { shapeType: window.cvat.enums.ObjectShape.RECTANGLE, points: [0, 0, 100, 100], occluded: false, - label: job.task.labels[0], + label: job.labels[0], zOrder: 0, }); @@ -419,7 +419,7 @@ describe('Feature: save annotations', () => { shapeType: window.cvat.enums.ObjectShape.POLYGON, points: [0, 0, 100, 0, 100, 50], occluded: true, - label: job.task.labels[0], + label: job.labels[0], zOrder: 0, }); diff --git a/cvat-core/tests/api/jobs.js b/cvat-core/tests/api/jobs.js index 5cbe97ff..41d473e0 100644 --- a/cvat-core/tests/api/jobs.js +++ b/cvat-core/tests/api/jobs.js @@ -1,4 +1,4 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -25,8 +25,8 @@ describe('Feature: get a list of jobs', () => { expect(el).toBeInstanceOf(Job); } - expect(result[0].task.id).toBe(3); - expect(result[0].task).toBe(result[1].task); + expect(result[0].taskId).toBe(3); + expect(result[0].taskId).toBe(result[1].taskId); }); test('get jobs by an unknown task id', async () => { @@ -89,18 +89,17 @@ describe('Feature: get a list of jobs', () => { }); describe('Feature: save job', () => { - test('save status of a job', async () => { - let result = await window.cvat.jobs.get({ + test('save stage and state of a job', async () => { + const result = await window.cvat.jobs.get({ jobID: 1, }); - result[0].status = 'validation'; - await result[0].save(); + result[0].stage = 'validation'; + result[0].state = 'new'; + const newJob = await result[0].save(); - result = await window.cvat.jobs.get({ - jobID: 1, - }); - expect(result[0].status).toBe('validation'); + expect(newJob.stage).toBe('validation'); + expect(newJob.state).toBe('new'); }); test('save invalid status of a job', async () => { @@ -108,9 +107,11 @@ describe('Feature: save job', () => { jobID: 1, }); - await result[0].save(); expect(() => { - result[0].status = 'invalid'; + result[0].state = 'invalid'; + }).toThrow(window.cvat.exceptions.ArgumentError); + expect(() => { + result[0].stage = 'invalid'; }).toThrow(window.cvat.exceptions.ArgumentError); }); }); diff --git a/cvat-core/tests/mocks/dummy-data.mock.js b/cvat-core/tests/mocks/dummy-data.mock.js index 683fe64f..18849599 100644 --- a/cvat-core/tests/mocks/dummy-data.mock.js +++ b/cvat-core/tests/mocks/dummy-data.mock.js @@ -242,8 +242,9 @@ const projectsDummyData = { url: 'http://192.168.0.139:7000/api/v1/jobs/1', id: 1, assignee: null, - reviewer: null, status: 'completed', + stage: 'acceptance', + state: 'completed', }, ], }, @@ -255,8 +256,9 @@ const projectsDummyData = { url: 'http://192.168.0.139:7000/api/v1/jobs/2', id: 2, assignee: null, - reviewer: null, status: 'completed', + stage: 'acceptance', + state: 'completed', }, ], }, @@ -268,8 +270,9 @@ const projectsDummyData = { url: 'http://192.168.0.139:7000/api/v1/jobs/3', id: 3, assignee: null, - reviewer: null, status: 'completed', + stage: 'acceptance', + state: 'completed', }, ], }, @@ -281,8 +284,9 @@ const projectsDummyData = { url: 'http://192.168.0.139:7000/api/v1/jobs/4', id: 4, assignee: null, - reviewer: null, status: 'completed', + stage: 'acceptance', + state: 'completed', }, ], }, @@ -294,8 +298,9 @@ const projectsDummyData = { url: 'http://192.168.0.139:7000/api/v1/jobs/5', id: 5, assignee: null, - reviewer: null, status: 'completed', + stage: 'acceptance', + state: 'completed', }, ], }, @@ -344,6 +349,9 @@ const tasksDummyData = { updated_date: '2019-09-05T14:04:07.569344Z', overlap: 0, segment_size: 0, + dimension: '2d', + data_compressed_chunk_type: 'imageset', + data_chunk_size: 1, status: 'annotation', labels: [ { @@ -361,8 +369,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/112', id: 112, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -389,6 +398,9 @@ const tasksDummyData = { updated_date: '2019-07-16T15:51:29.142871+03:00', overlap: 0, segment_size: 0, + dimension: '2d', + data_compressed_chunk_type: 'imageset', + data_chunk_size: 1, status: 'annotation', labels: [ { @@ -411,8 +423,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/100', id: 100, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -439,6 +452,9 @@ const tasksDummyData = { updated_date: '2019-07-12T16:43:58.904892+03:00', overlap: 5, segment_size: 500, + dimension: '2d', + data_compressed_chunk_type: 'imageset', + data_chunk_size: 1, status: 'annotation', labels: [ { @@ -615,8 +631,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/10', id: 101, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -628,8 +645,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/11', id: 102, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -641,8 +659,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/12', id: 103, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -654,8 +673,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/13', id: 104, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -667,8 +687,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/14', id: 105, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -680,8 +701,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/15', id: 106, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -693,8 +715,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/16', id: 107, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -706,8 +729,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/17', id: 108, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -719,8 +743,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/18', id: 109, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -732,8 +757,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/19', id: 110, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -745,8 +771,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/20', id: 111, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -773,7 +800,9 @@ const tasksDummyData = { updated_date: '2019-05-16T13:08:00.621797+03:00', overlap: 5, segment_size: 5000, - flipped: false, + dimension: '2d', + data_compressed_chunk_type: 'imageset', + data_chunk_size: 1, status: 'annotation', labels: [ { @@ -950,8 +979,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/3', id: 3, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -963,8 +993,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/4', id: 4, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -989,7 +1020,9 @@ const tasksDummyData = { updated_date: '2019-05-15T16:58:27.992785+03:00', overlap: 5, segment_size: 0, - flipped: false, + dimension: '2d', + data_compressed_chunk_type: 'imageset', + data_chunk_size: 1, status: 'annotation', labels: [ { @@ -1166,8 +1199,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/2', id: 2, assignee: null, - reviewer: null, status: 'annotation', + stage: 'annotation', + state: 'new', }, ], }, @@ -1191,7 +1225,9 @@ const tasksDummyData = { updated_date: '2019-05-15T11:20:55.770587+03:00', overlap: 0, segment_size: 0, - flipped: false, + dimension: '2d', + data_compressed_chunk_type: 'imageset', + data_chunk_size: 1, status: 'annotation', labels: [ { @@ -1368,8 +1404,9 @@ const tasksDummyData = { url: 'http://localhost:7000/api/v1/jobs/1', id: 1, assignee: null, - reviewer: null, status: 'annotation', + stage: "annotation", + state: "new", }, ], }, diff --git a/cvat-core/tests/mocks/server-proxy.mock.js b/cvat-core/tests/mocks/server-proxy.mock.js index 5854f760..dbc1f914 100644 --- a/cvat-core/tests/mocks/server-proxy.mock.js +++ b/cvat-core/tests/mocks/server-proxy.mock.js @@ -76,7 +76,7 @@ class ServerProxy { } async function getProjects(filter = '') { - const queries = QueryStringToJSON(filter, ['without_tasks']); + const queries = QueryStringToJSON(filter); const result = projectsDummyData.results.filter((x) => { for (const key in queries) { if (Object.prototype.hasOwnProperty.call(queries, key)) { @@ -170,6 +170,9 @@ class ServerProxy { } } } + + const [updatedTask] = await getTasks({ id }); + return updatedTask; } async function createTask(taskData) { @@ -218,6 +221,12 @@ class ServerProxy { copy.start_frame = segment.start_frame; copy.stop_frame = segment.stop_frame; copy.task_id = task.id; + copy.dimension = task.dimension; + copy.data_compressed_chunk_type = task.data_compressed_chunk_type; + copy.data_chunk_size = task.data_chunk_size; + copy.bug_tracker = task.bug_tracker; + copy.mode = task.mode; + copy.labels = task.labels; acc.push(copy); } @@ -255,6 +264,8 @@ class ServerProxy { object[prop] = jobData[prop]; } } + + return getJob(id); } async function getUsers() { @@ -402,10 +413,10 @@ class ServerProxy { tasks: { value: Object.freeze({ - getTasks, - saveTask, - createTask, - deleteTask, + get: getTasks, + save: saveTask, + create: createTask, + delete: deleteTask, }), writable: false, }, diff --git a/cvat-ui/package-lock.json b/cvat-ui/package-lock.json index f113b9bf..670687ce 100644 --- a/cvat-ui/package-lock.json +++ b/cvat-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "cvat-ui", - "version": "1.31.0", + "version": "1.32.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cvat-ui", - "version": "1.31.0", + "version": "1.32.0", "license": "MIT", "dependencies": { "@ant-design/icons": "^4.6.3", diff --git a/cvat-ui/package.json b/cvat-ui/package.json index ec5942cf..f518c0ad 100644 --- a/cvat-ui/package.json +++ b/cvat-ui/package.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.31.0", + "version": "1.32.0", "description": "CVAT single-page application", "main": "src/index.tsx", "scripts": { diff --git a/cvat-ui/src/actions/annotation-actions.ts b/cvat-ui/src/actions/annotation-actions.ts index 99bfb84c..f52135e8 100644 --- a/cvat-ui/src/actions/annotation-actions.ts +++ b/cvat-ui/src/actions/annotation-actions.ts @@ -24,6 +24,7 @@ import { Task, Workspace, } from 'reducers/interfaces'; +import { updateJobAsync } from './tasks-actions'; interface AnnotationsParameters { filters: string[]; @@ -183,8 +184,6 @@ export enum AnnotationActionTypes { SAVE_LOGS_FAILED = 'SAVE_LOGS_FAILED', INTERACT_WITH_CANVAS = 'INTERACT_WITH_CANVAS', GET_DATA_FAILED = 'GET_DATA_FAILED', - SWITCH_REQUEST_REVIEW_DIALOG = 'SWITCH_REQUEST_REVIEW_DIALOG', - SWITCH_SUBMIT_REVIEW_DIALOG = 'SWITCH_SUBMIT_REVIEW_DIALOG', SET_FORCE_EXIT_ANNOTATION_PAGE_FLAG = 'SET_FORCE_EXIT_ANNOTATION_PAGE_FLAG', UPDATE_PREDICTOR_STATE = 'UPDATE_PREDICTOR_STATE', GET_PREDICTIONS = 'GET_PREDICTIONS', @@ -343,7 +342,7 @@ export function uploadJobAnnotationsAsync(job: any, loader: any, file: File): Th const state: CombinedState = getStore().getState(); const { filters, showAllInterpolationTracks } = receiveAnnotationsParameters(); - if (state.tasks.activities.loads[job.task.id]) { + if (state.tasks.activities.loads[job.taskId]) { throw Error('Annotations is being uploaded for the task'); } if (state.annotation.activities.loads[job.id]) { @@ -639,7 +638,7 @@ export function getPredictionsAsync(): ThunkAction { annotations = annotations.map( (data: any): any => new cvat.classes.ObjectState({ shapeType: data.type, - label: job.task.labels.filter((label: any): boolean => label.id === data.label)[0], + label: job.labels.filter((label: any): boolean => label.id === data.label)[0], points: data.points, objectType: ObjectType.SHAPE, frame, @@ -950,7 +949,7 @@ export function closeJob(): ThunkAction { return async (dispatch: ActionCreator): Promise => { const { jobInstance } = receiveAnnotationsParameters(); if (jobInstance) { - await jobInstance.task.close(); + await jobInstance.close(); } dispatch({ @@ -960,9 +959,9 @@ export function closeJob(): ThunkAction { } export function getJobAsync(tid: number, jid: number, initialFrame: number, initialFilters: object[]): ThunkAction { - return async (dispatch: ActionCreator): Promise => { + return async (dispatch: ActionCreator, getState): Promise => { try { - const state: CombinedState = getStore().getState(); + const state = getState(); const filters = initialFilters; const { settings: { @@ -986,20 +985,18 @@ export function getJobAsync(tid: number, jid: number, initialFrame: number, init true, ); - // Check state if the task is already there - let task = state.tasks.current + // Check if the task was already downloaded to the state + let job: any | null = null; + const [task] = state.tasks.current .filter((_task: Task) => _task.instance.id === tid) - .map((_task: Task) => _task.instance)[0]; - - // If there aren't the task, get it from the server - if (!task) { - [task] = await cvat.tasks.get({ id: tid }); - } - - // Finally get the job from the task - const job = task.jobs.filter((_job: any) => _job.id === jid)[0]; - if (!job) { - throw new Error(`Task ${tid} doesn't contain the job ${jid}`); + .map((_task: Task) => _task.instance); + if (task) { + [job] = task.jobs.filter((_job: any) => _job.id === jid); + if (!job) { + throw new Error(`Task ${tid} doesn't contain the job ${jid}`); + } + } else { + [job] = await cvat.jobs.get({ jobID: jid }); } const frameNumber = Math.max(Math.min(job.stopFrame, initialFrame), job.startFrame); @@ -1018,7 +1015,6 @@ export function getJobAsync(tid: number, jid: number, initialFrame: number, init } const states = await job.annotations.get(frameNumber, showAllInterpolationTracks, filters); const issues = await job.issues(); - const reviews = await job.reviews(); const [minZ, maxZ] = computeZRange(states); const colors = [...cvat.enums.colors]; @@ -1031,7 +1027,6 @@ export function getJobAsync(tid: number, jid: number, initialFrame: number, init openTime, job, issues, - reviews, states, frameNumber, frameFilename: frameData.filename, @@ -1044,14 +1039,14 @@ export function getJobAsync(tid: number, jid: number, initialFrame: number, init }, }); - if (job.task.dimension === DimensionType.DIM_3D) { + if (job.dimension === DimensionType.DIM_3D) { const workspace = Workspace.STANDARD3D; dispatch(changeWorkspace(workspace)); } const updatePredictorStatus = async (): Promise => { // get current job - const currentState: CombinedState = getStore().getState(); + const currentState: CombinedState = getState(); const { openTime: currentOpenTime, instance: currentJob } = currentState.annotation.job; if (currentJob === null || currentJob.id !== job.id || currentOpenTime !== openTime) { // the job was closed, changed or reopened @@ -1074,7 +1069,7 @@ export function getJobAsync(tid: number, jid: number, initialFrame: number, init } }; - if (state.plugins.list.PREDICT && job.task.projectId !== null) { + if (state.plugins.list.PREDICT && job.projectId !== null) { updatePredictorStatus(); } @@ -1120,6 +1115,11 @@ export function saveAnnotationsAsync(sessionInstance: any, afterSave?: () => voi afterSave(); } + if (sessionInstance instanceof cvat.classes.Job && sessionInstance.state === cvat.enums.JobState.NEW) { + sessionInstance.state = cvat.enums.JobState.IN_PROGRESS; + updateJobAsync(sessionInstance); + } + dispatch({ type: AnnotationActionTypes.SAVE_ANNOTATIONS_SUCCESS, payload: { @@ -1589,24 +1589,6 @@ export function redrawShapeAsync(): ThunkAction { }; } -export function switchRequestReviewDialog(visible: boolean): AnyAction { - return { - type: AnnotationActionTypes.SWITCH_REQUEST_REVIEW_DIALOG, - payload: { - visible, - }, - }; -} - -export function switchSubmitReviewDialog(visible: boolean): AnyAction { - return { - type: AnnotationActionTypes.SWITCH_SUBMIT_REVIEW_DIALOG, - payload: { - visible, - }, - }; -} - export function setForceExitAnnotationFlag(forceExit: boolean): AnyAction { return { type: AnnotationActionTypes.SET_FORCE_EXIT_ANNOTATION_PAGE_FLAG, @@ -1645,7 +1627,7 @@ export function getContextImageAsync(): ThunkAction { payload: {}, }); - const contextImageData = await job.frames.contextImage(job.task.id, frameNumber); + const contextImageData = await job.frames.contextImage(frameNumber); dispatch({ type: AnnotationActionTypes.GET_CONTEXT_IMAGE_SUCCESS, payload: { contextImageData }, diff --git a/cvat-ui/src/actions/auth-actions.ts b/cvat-ui/src/actions/auth-actions.ts index 7caaf4b9..b10a378b 100644 --- a/cvat-ui/src/actions/auth-actions.ts +++ b/cvat-ui/src/actions/auth-actions.ts @@ -106,7 +106,6 @@ export const loginAsync = (username: string, password: string): ThunkAction => a try { await cvat.server.login(username, password); const users = await cvat.users.get({ self: true }); - dispatch(authActions.loginSuccess(users[0])); } catch (error) { dispatch(authActions.loginFailed(error)); @@ -117,6 +116,7 @@ export const logoutAsync = (): ThunkAction => async (dispatch) => { dispatch(authActions.logout()); try { + await cvat.organizations.deactivate(); await cvat.server.logout(); dispatch(authActions.logoutSuccess()); } catch (error) { diff --git a/cvat-ui/src/actions/models-actions.ts b/cvat-ui/src/actions/models-actions.ts index 610544ef..39dbe5e5 100644 --- a/cvat-ui/src/actions/models-actions.ts +++ b/cvat-ui/src/actions/models-actions.ts @@ -146,23 +146,23 @@ export function getInferenceStatusAsync(): ThunkAction { }; } -export function startInferenceAsync(taskInstance: any, model: Model, body: object): ThunkAction { +export function startInferenceAsync(taskId: number, model: Model, body: object): ThunkAction { return async (dispatch): Promise => { try { - const requestID: string = await core.lambda.run(taskInstance, model, body); + const requestID: string = await core.lambda.run(taskId, model, body); const dispatchCallback = (action: ModelsActions): void => { dispatch(action); }; listen( { - taskID: taskInstance.id, + taskID: taskId, requestID, }, dispatchCallback, ); } catch (error) { - dispatch(modelsActions.startInferenceFailed(taskInstance.id, error)); + dispatch(modelsActions.startInferenceFailed(taskId, error)); } }; } diff --git a/cvat-ui/src/actions/organization-actions.ts b/cvat-ui/src/actions/organization-actions.ts new file mode 100644 index 00000000..27814827 --- /dev/null +++ b/cvat-ui/src/actions/organization-actions.ts @@ -0,0 +1,266 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +import { Store } from 'antd/lib/form/interface'; +import { User } from 'components/task-page/user-selector'; +import getCore from 'cvat-core-wrapper'; +import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; + +const core = getCore(); + +export enum OrganizationActionsTypes { + GET_ORGANIZATIONS = 'GET_ORGANIZATIONS', + GET_ORGANIZATIONS_SUCCESS = 'GET_ORGANIZATIONS_SUCCESS', + GET_ORGANIZATIONS_FAILED = 'GET_ORGANIZATIONS_FAILED', + ACTIVATE_ORGANIZATION_SUCCESS = 'ACTIVATE_ORGANIZATION_SUCCESS', + ACTIVATE_ORGANIZATION_FAILED = 'ACTIVATE_ORGANIZATION_FAILED', + CREATE_ORGANIZATION = 'CREATE_ORGANIZATION', + CREATE_ORGANIZATION_SUCCESS = 'CREATE_ORGANIZATION_SUCCESS', + CREATE_ORGANIZATION_FAILED = 'CREATE_ORGANIZATION_FAILED', + UPDATE_ORGANIZATION = 'UPDATE_ORGANIZATION', + UPDATE_ORGANIZATION_SUCCESS = 'UPDATE_ORGANIZATION_SUCCESS', + UPDATE_ORGANIZATION_FAILED = 'UPDATE_ORGANIZATION_FAILED', + REMOVE_ORGANIZATION = 'REMOVE_ORGANIZATION', + REMOVE_ORGANIZATION_SUCCESS = 'REMOVE_ORGANIZATION_SUCCESS', + REMOVE_ORGANIZATION_FAILED = 'REMOVE_ORGANIZATION_FAILED', + INVITE_ORGANIZATION_MEMBERS = 'INVITE_ORGANIZATION_MEMBERS', + INVITE_ORGANIZATION_MEMBERS_FAILED = 'INVITE_ORGANIZATION_MEMBERS_FAILED', + INVITE_ORGANIZATION_MEMBERS_DONE = 'INVITE_ORGANIZATION_MEMBERS_DONE', + INVITE_ORGANIZATION_MEMBER_SUCCESS = 'INVITE_ORGANIZATION_MEMBER_SUCCESS', + INVITE_ORGANIZATION_MEMBER_FAILED = 'INVITE_ORGANIZATION_MEMBER_FAILED', + LEAVE_ORGANIZATION = 'LEAVE_ORGANIZATION', + LEAVE_ORGANIZATION_SUCCESS = 'LEAVE_ORGANIZATION_SUCCESS', + LEAVE_ORGANIZATION_FAILED = 'LEAVE_ORGANIZATION_FAILED', + REMOVE_ORGANIZATION_MEMBER = 'REMOVE_ORGANIZATION_MEMBERS', + REMOVE_ORGANIZATION_MEMBER_SUCCESS = 'REMOVE_ORGANIZATION_MEMBER_SUCCESS', + REMOVE_ORGANIZATION_MEMBER_FAILED = 'REMOVE_ORGANIZATION_MEMBER_FAILED', + UPDATE_ORGANIZATION_MEMBER = 'UPDATE_ORGANIZATION_MEMBER', + UPDATE_ORGANIZATION_MEMBER_SUCCESS = 'UPDATE_ORGANIZATION_MEMBER_SUCCESS', + UPDATE_ORGANIZATION_MEMBER_FAILED = 'UPDATE_ORGANIZATION_MEMBER_FAILED', +} + +const organizationActions = { + getOrganizations: () => createAction(OrganizationActionsTypes.GET_ORGANIZATIONS), + getOrganizationsSuccess: (list: any[]) => createAction( + OrganizationActionsTypes.GET_ORGANIZATIONS_SUCCESS, { list }, + ), + getOrganizationsFailed: (error: any) => createAction(OrganizationActionsTypes.GET_ORGANIZATIONS_FAILED, { error }), + createOrganization: () => createAction(OrganizationActionsTypes.CREATE_ORGANIZATION), + createOrganizationSuccess: (organization: any) => createAction( + OrganizationActionsTypes.CREATE_ORGANIZATION_SUCCESS, { organization }, + ), + createOrganizationFailed: (slug: string, error: any) => createAction( + OrganizationActionsTypes.CREATE_ORGANIZATION_FAILED, { slug, error }, + ), + updateOrganization: () => createAction(OrganizationActionsTypes.UPDATE_ORGANIZATION), + updateOrganizationSuccess: (organization: any) => createAction( + OrganizationActionsTypes.UPDATE_ORGANIZATION_SUCCESS, { organization }, + ), + updateOrganizationFailed: (slug: string, error: any) => createAction( + OrganizationActionsTypes.UPDATE_ORGANIZATION_FAILED, { slug, error }, + ), + activateOrganizationSuccess: (organization: any | null) => createAction( + OrganizationActionsTypes.ACTIVATE_ORGANIZATION_SUCCESS, { organization }, + ), + activateOrganizationFailed: (error: any, slug: string | null) => createAction( + OrganizationActionsTypes.ACTIVATE_ORGANIZATION_FAILED, { slug, error }, + ), + removeOrganization: () => createAction(OrganizationActionsTypes.REMOVE_ORGANIZATION), + removeOrganizationSuccess: (slug: string) => createAction( + OrganizationActionsTypes.REMOVE_ORGANIZATION_SUCCESS, { slug }, + ), + removeOrganizationFailed: (error: any, slug: string) => createAction( + OrganizationActionsTypes.REMOVE_ORGANIZATION_FAILED, { error, slug }, + ), + inviteOrganizationMembers: () => createAction(OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBERS), + inviteOrganizationMembersFailed: (error: any) => createAction( + OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBERS_FAILED, { error }, + ), + inviteOrganizationMembersDone: () => createAction(OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBERS_DONE), + inviteOrganizationMemberSuccess: (email: string) => createAction( + OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBER_SUCCESS, { email }, + ), + inviteOrganizationMemberFailed: (email: string, error: any) => createAction( + OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBER_FAILED, { email, error }, + ), + leaveOrganization: () => createAction(OrganizationActionsTypes.LEAVE_ORGANIZATION), + leaveOrganizationSuccess: () => createAction(OrganizationActionsTypes.LEAVE_ORGANIZATION_SUCCESS), + leaveOrganizationFailed: (error: any) => createAction( + OrganizationActionsTypes.LEAVE_ORGANIZATION_FAILED, { error }, + ), + removeOrganizationMember: () => createAction(OrganizationActionsTypes.REMOVE_ORGANIZATION_MEMBER), + removeOrganizationMemberSuccess: () => createAction(OrganizationActionsTypes.REMOVE_ORGANIZATION_MEMBER_SUCCESS), + removeOrganizationMemberFailed: (username: string, error: any) => createAction( + OrganizationActionsTypes.REMOVE_ORGANIZATION_MEMBER_FAILED, { username, error }, + ), + updateOrganizationMember: () => createAction(OrganizationActionsTypes.UPDATE_ORGANIZATION_MEMBER), + updateOrganizationMemberSuccess: () => createAction(OrganizationActionsTypes.UPDATE_ORGANIZATION_MEMBER_SUCCESS), + updateOrganizationMemberFailed: (username: string, role: string, error: any) => createAction( + OrganizationActionsTypes.UPDATE_ORGANIZATION_MEMBER_FAILED, { username, role, error }, + ), +}; + +export function getOrganizationsAsync(): ThunkAction { + return async function (dispatch) { + dispatch(organizationActions.getOrganizations()); + + try { + const organizations = await core.organizations.get(); + let currentOrganization = null; + + try { + // this action is dispatched after user is authentificated + // need to configure organization at cvat-core immediately to get relevant data + const curSlug = localStorage.getItem('currentOrganization'); + if (curSlug) { + currentOrganization = + organizations.find((organization: any) => organization.slug === curSlug) || null; + if (currentOrganization) { + await core.organizations.activate(currentOrganization); + } else { + // not valid anymore (for example when organization + // does not exist anymore, or the user has been kicked from it) + localStorage.removeItem('currentOrganization'); + } + } + + dispatch(organizationActions.activateOrganizationSuccess(currentOrganization)); + } catch (error) { + dispatch( + organizationActions.activateOrganizationFailed(error, localStorage.getItem('currentOrganization')), + ); + } finally { + dispatch(organizationActions.getOrganizationsSuccess(organizations)); + } + } catch (error) { + dispatch(organizationActions.getOrganizationsFailed(error)); + } + }; +} + +export function createOrganizationAsync( + organizationData: Store, + onCreateSuccess?: (createdSlug: string) => void, +): ThunkAction { + return async function (dispatch) { + const { slug } = organizationData; + const organization = new core.classes.Organization(organizationData); + dispatch(organizationActions.createOrganization()); + + try { + const createdOrganization = await organization.save(); + dispatch(organizationActions.createOrganizationSuccess(createdOrganization)); + if (onCreateSuccess) onCreateSuccess(createdOrganization.slug); + } catch (error) { + dispatch(organizationActions.createOrganizationFailed(slug, error)); + } + }; +} + +export function updateOrganizationAsync(organization: any): ThunkAction { + return async function (dispatch) { + dispatch(organizationActions.updateOrganization()); + + try { + const updatedOrganization = await organization.save(); + dispatch(organizationActions.updateOrganizationSuccess(updatedOrganization)); + } catch (error) { + dispatch(organizationActions.updateOrganizationFailed(organization.slug, error)); + } + }; +} + +export function removeOrganizationAsync(organization: any): ThunkAction { + return async function (dispatch) { + try { + await organization.remove(); + localStorage.removeItem('currentOrganization'); + dispatch(organizationActions.removeOrganizationSuccess(organization.slug)); + } catch (error) { + dispatch(organizationActions.removeOrganizationFailed(error, organization.slug)); + } + }; +} + +export function inviteOrganizationMembersAsync( + organization: any, + members: { email: string; role: string }[], + onFinish: () => void, +): ThunkAction { + return async function (dispatch) { + dispatch(organizationActions.inviteOrganizationMembers()); + try { + for (let i = 0; i < members.length; i++) { + const { email, role } = members[i]; + organization + .invite(email, role) + .then(() => { + dispatch(organizationActions.inviteOrganizationMemberSuccess(email)); + }) + .catch((error: any) => { + dispatch(organizationActions.inviteOrganizationMemberFailed(email, error)); + }) + .finally(() => { + if (i === members.length - 1) { + dispatch(organizationActions.inviteOrganizationMembersDone()); + onFinish(); + } + }); + } + } catch (error) { + dispatch(organizationActions.inviteOrganizationMembersFailed(error)); + } + }; +} + +export function leaveOrganizationAsync(organization: any): ThunkAction { + return async function (dispatch, getState) { + const { user } = getState().auth; + dispatch(organizationActions.leaveOrganization()); + try { + await organization.leave(user); + dispatch(organizationActions.leaveOrganizationSuccess()); + localStorage.removeItem('currentOrganization'); + } catch (error) { + dispatch(organizationActions.leaveOrganizationFailed(error)); + } + }; +} + +export function removeOrganizationMemberAsync( + organization: any, + { user, id }: { user: User; id: number }, + onFinish: () => void, +): ThunkAction { + return async function (dispatch) { + dispatch(organizationActions.removeOrganizationMember()); + try { + await organization.deleteMembership(id); + dispatch(organizationActions.removeOrganizationMemberSuccess()); + onFinish(); + } catch (error) { + dispatch(organizationActions.removeOrganizationMemberFailed(user.username, error)); + } + }; +} + +export function updateOrganizationMemberAsync( + organization: any, + { user, id }: { user: User; id: number }, + role: string, + onFinish: () => void, +): ThunkAction { + return async function (dispatch) { + dispatch(organizationActions.updateOrganizationMember()); + try { + await organization.updateMembership(id, role); + dispatch(organizationActions.updateOrganizationMemberSuccess()); + onFinish(); + } catch (error) { + dispatch(organizationActions.updateOrganizationMemberFailed(user.username, role, error)); + } + }; +} + +export type OrganizationActions = ActionUnion; diff --git a/cvat-ui/src/actions/review-actions.ts b/cvat-ui/src/actions/review-actions.ts index 00e95fc2..a41aff68 100644 --- a/cvat-ui/src/actions/review-actions.ts +++ b/cvat-ui/src/actions/review-actions.ts @@ -4,13 +4,10 @@ import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import getCore from 'cvat-core-wrapper'; -import { updateTaskSuccess } from './tasks-actions'; const cvat = getCore(); export enum ReviewActionTypes { - INITIALIZE_REVIEW_SUCCESS = 'INITIALIZE_REVIEW_SUCCESS', - INITIALIZE_REVIEW_FAILED = 'INITIALIZE_REVIEW_FAILED', CREATE_ISSUE = 'CREATE_ISSUE', START_ISSUE = 'START_ISSUE', FINISH_ISSUE_SUCCESS = 'FINISH_ISSUE_SUCCESS', @@ -35,10 +32,6 @@ export enum ReviewActionTypes { } export const reviewActions = { - initializeReviewSuccess: (reviewInstance: any, frame: number) => ( - createAction(ReviewActionTypes.INITIALIZE_REVIEW_SUCCESS, { reviewInstance, frame }) - ), - initializeReviewFailed: (error: any) => createAction(ReviewActionTypes.INITIALIZE_REVIEW_FAILED, { error }), createIssue: () => createAction(ReviewActionTypes.CREATE_ISSUE, {}), startIssue: (position: number[]) => ( createAction(ReviewActionTypes.START_ISSUE, { position: cvat.classes.Issue.hull(position) }) @@ -57,9 +50,11 @@ export const reviewActions = { reopenIssue: (issueId: number) => createAction(ReviewActionTypes.REOPEN_ISSUE, { issueId }), reopenIssueSuccess: () => createAction(ReviewActionTypes.REOPEN_ISSUE_SUCCESS), reopenIssueFailed: (error: any) => createAction(ReviewActionTypes.REOPEN_ISSUE_FAILED, { error }), - submitReview: (reviewId: number) => createAction(ReviewActionTypes.SUBMIT_REVIEW, { reviewId }), + submitReview: (jobId: number) => createAction(ReviewActionTypes.SUBMIT_REVIEW, { jobId }), submitReviewSuccess: () => createAction(ReviewActionTypes.SUBMIT_REVIEW_SUCCESS), - submitReviewFailed: (error: any) => createAction(ReviewActionTypes.SUBMIT_REVIEW_FAILED, { error }), + submitReviewFailed: (error: any, jobId: number) => ( + createAction(ReviewActionTypes.SUBMIT_REVIEW_FAILED, { error, jobId }) + ), removeIssueSuccess: (issueId: number, frame: number) => ( createAction(ReviewActionTypes.REMOVE_ISSUE_SUCCESS, { issueId, frame }) ), @@ -72,59 +67,29 @@ export const reviewActions = { export type ReviewActions = ActionUnion; -export const initializeReviewAsync = (): ThunkAction => async (dispatch, getState) => { - try { - const state = getState(); - const { - annotation: { - job: { instance: jobInstance }, - player: { - frame: { number: frame }, - }, - }, - } = state; - - const reviews = await jobInstance.reviews(); - const count = reviews.length; - let reviewInstance = null; - if (count && reviews[count - 1].id < 0) { - reviewInstance = reviews[count - 1]; - } else { - reviewInstance = new cvat.classes.Review({ job: jobInstance.id }); - } - - dispatch(reviewActions.initializeReviewSuccess(reviewInstance, frame)); - } catch (error) { - dispatch(reviewActions.initializeReviewFailed(error)); - } -}; - export const finishIssueAsync = (message: string): ThunkAction => async (dispatch, getState) => { const state = getState(); const { - auth: { user }, annotation: { player: { frame: { number: frameNumber }, }, + job: { + instance: jobInstance, + }, }, - review: { activeReview, newIssuePosition }, + review: { newIssuePosition }, } = state; try { - const issue = await activeReview.openIssue({ + const issue = new cvat.classes.Issue({ + job: jobInstance.id, frame: frameNumber, position: newIssuePosition, - owner: user, - comment_set: [ - { - message, - author: user, - }, - ], }); - await activeReview.toLocalStorage(); - dispatch(reviewActions.finishIssueSuccess(frameNumber, issue)); + + const savedIssue = await jobInstance.openIssue(issue, message); + dispatch(reviewActions.finishIssueSuccess(frameNumber, savedIssue)); } catch (error) { dispatch(reviewActions.finishIssueFailed(error)); } @@ -134,7 +99,7 @@ export const commentIssueAsync = (id: number, message: string): ThunkAction => a const state = getState(); const { auth: { user }, - review: { frameIssues, activeReview }, + review: { frameIssues }, } = state; try { @@ -142,11 +107,9 @@ export const commentIssueAsync = (id: number, message: string): ThunkAction => a const [issue] = frameIssues.filter((_issue: any): boolean => _issue.id === id); await issue.comment({ message, - author: user, + owner: user, }); - if (activeReview && activeReview.issues.includes(issue)) { - await activeReview.toLocalStorage(); - } + dispatch(reviewActions.commentIssueSuccess()); } catch (error) { dispatch(reviewActions.commentIssueFailed(error)); @@ -157,17 +120,13 @@ export const resolveIssueAsync = (id: number): ThunkAction => async (dispatch, g const state = getState(); const { auth: { user }, - review: { frameIssues, activeReview }, + review: { frameIssues }, } = state; try { dispatch(reviewActions.resolveIssue(id)); const [issue] = frameIssues.filter((_issue: any): boolean => _issue.id === id); await issue.resolve(user); - if (activeReview && activeReview.issues.includes(issue)) { - await activeReview.toLocalStorage(); - } - dispatch(reviewActions.resolveIssueSuccess()); } catch (error) { dispatch(reviewActions.resolveIssueFailed(error)); @@ -178,47 +137,23 @@ export const reopenIssueAsync = (id: number): ThunkAction => async (dispatch, ge const state = getState(); const { auth: { user }, - review: { frameIssues, activeReview }, + review: { frameIssues }, } = state; try { dispatch(reviewActions.reopenIssue(id)); const [issue] = frameIssues.filter((_issue: any): boolean => _issue.id === id); await issue.reopen(user); - if (activeReview && activeReview.issues.includes(issue)) { - await activeReview.toLocalStorage(); - } - dispatch(reviewActions.reopenIssueSuccess()); } catch (error) { dispatch(reviewActions.reopenIssueFailed(error)); } }; -export const submitReviewAsync = (review: any): ThunkAction => async (dispatch, getState) => { - const state = getState(); - const { - annotation: { - job: { instance: jobInstance }, - }, - } = state; - - try { - dispatch(reviewActions.submitReview(review.id)); - await review.submit(jobInstance.id); - - const [task] = await cvat.tasks.get({ id: jobInstance.task.id }); - dispatch(updateTaskSuccess(task, jobInstance.task.id)); - dispatch(reviewActions.submitReviewSuccess()); - } catch (error) { - dispatch(reviewActions.submitReviewFailed(error)); - } -}; - export const deleteIssueAsync = (id: number): ThunkAction => async (dispatch, getState) => { const state = getState(); const { - review: { frameIssues, activeReview }, + review: { frameIssues }, annotation: { player: { frame: { number: frameNumber }, @@ -229,10 +164,6 @@ export const deleteIssueAsync = (id: number): ThunkAction => async (dispatch, ge try { const [issue] = frameIssues.filter((_issue: any): boolean => _issue.id === id); await issue.delete(); - if (activeReview !== null) { - await activeReview.deleteIssue(id); - await activeReview.toLocalStorage(); - } dispatch(reviewActions.removeIssueSuccess(id, frameNumber)); } catch (error) { dispatch(reviewActions.removeIssueFailed(error)); diff --git a/cvat-ui/src/actions/tasks-actions.ts b/cvat-ui/src/actions/tasks-actions.ts index 25df033d..53e91d51 100644 --- a/cvat-ui/src/actions/tasks-actions.ts +++ b/cvat-ui/src/actions/tasks-actions.ts @@ -28,6 +28,9 @@ export enum TasksActionTypes { UPDATE_TASK = 'UPDATE_TASK', UPDATE_TASK_SUCCESS = 'UPDATE_TASK_SUCCESS', UPDATE_TASK_FAILED = 'UPDATE_TASK_FAILED', + UPDATE_JOB = 'UPDATE_JOB', + UPDATE_JOB_SUCCESS = 'UPDATE_JOB_SUCCESS', + UPDATE_JOB_FAILED = 'UPDATE_JOB_FAILED', HIDE_EMPTY_TASKS = 'HIDE_EMPTY_TASKS', EXPORT_TASK = 'EXPORT_TASK', EXPORT_TASK_SUCCESS = 'EXPORT_TASK_SUCCESS', @@ -38,46 +41,42 @@ export enum TasksActionTypes { SWITCH_MOVE_TASK_MODAL_VISIBLE = 'SWITCH_MOVE_TASK_MODAL_VISIBLE', } -function getTasks(): AnyAction { +function getTasks(query: TasksQuery): AnyAction { const action = { type: TasksActionTypes.GET_TASKS, - payload: {}, + payload: { + query, + }, }; return action; } -export function getTasksSuccess( - array: any[], previews: string[], count: number, query: Partial, -): AnyAction { +export function getTasksSuccess(array: any[], previews: string[], count: number): AnyAction { const action = { type: TasksActionTypes.GET_TASKS_SUCCESS, payload: { previews, array, count, - query, }, }; return action; } -function getTasksFailed(error: any, query: Partial): AnyAction { +function getTasksFailed(error: any): AnyAction { const action = { type: TasksActionTypes.GET_TASKS_FAILED, - payload: { - error, - query, - }, + payload: { error }, }; return action; } -export function getTasksAsync(query: Partial): ThunkAction, {}, {}, AnyAction> { +export function getTasksAsync(query: TasksQuery): ThunkAction, {}, {}, AnyAction> { return async (dispatch: ActionCreator): Promise => { - dispatch(getTasks()); + dispatch(getTasks(query)); // We need remove all keys with null values from query const filteredQuery = { ...query }; @@ -91,7 +90,7 @@ export function getTasksAsync(query: Partial): ThunkAction): ThunkAction, CombinedState, {}, AnyAction> { - return async (dispatch: ActionCreator, getState: () => CombinedState): Promise => { + return async (dispatch: ActionCreator): Promise => { try { dispatch(updateTask()); - const currentUser = getState().auth.user; - await taskInstance.save(); - const nextUser = getState().auth.user; - const userFetching = getState().auth.fetching; - if (!userFetching && nextUser && currentUser.username === nextUser.username) { - const [task] = await cvat.tasks.get({ id: taskInstance.id }); - dispatch(updateTaskSuccess(task, taskInstance.id)); - } + const task = await taskInstance.save(); + dispatch(updateTaskSuccess(task, taskInstance.id)); } catch (error) { // try abort all changes let task = null; @@ -483,21 +503,11 @@ export function updateTaskAsync(taskInstance: any): ThunkAction, C export function updateJobAsync(jobInstance: any): ThunkAction, {}, {}, AnyAction> { return async (dispatch: ActionCreator): Promise => { try { - dispatch(updateTask()); - await jobInstance.save(); - const [task] = await cvat.tasks.get({ id: jobInstance.task.id }); - dispatch(updateTaskSuccess(task, jobInstance.task.id)); + dispatch(updateJob()); + const newJob = await jobInstance.save(); + dispatch(updateJobSuccess(newJob)); } catch (error) { - // try abort all changes - let task = null; - try { - [task] = await cvat.tasks.get({ id: jobInstance.task.id }); - } catch (fetchError) { - dispatch(updateTaskFailed(error, jobInstance.task)); - return; - } - - dispatch(updateTaskFailed(error, task)); + dispatch(updateJobFailed(jobInstance.id, error)); } }; } diff --git a/cvat-ui/src/assets/account-icon.svg b/cvat-ui/src/assets/account-icon.svg deleted file mode 100644 index e9bdc372..00000000 --- a/cvat-ui/src/assets/account-icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/cvat-ui/src/base.scss b/cvat-ui/src/base.scss index 288ffad1..23092de0 100644 --- a/cvat-ui/src/base.scss +++ b/cvat-ui/src/base.scss @@ -4,7 +4,7 @@ $grid-unit-size: 8px; -$header-height: $grid-unit-size * 7; +$header-height: $grid-unit-size * 6; $layout-sm-grid-size: $grid-unit-size * 0.5; $layout-lg-grid-size: $grid-unit-size * 2; diff --git a/cvat-ui/src/components/annotation-page/annotation-page.tsx b/cvat-ui/src/components/annotation-page/annotation-page.tsx index 973e8ceb..8ff586e5 100644 --- a/cvat-ui/src/components/annotation-page/annotation-page.tsx +++ b/cvat-ui/src/components/annotation-page/annotation-page.tsx @@ -10,14 +10,12 @@ import Spin from 'antd/lib/spin'; import notification from 'antd/lib/notification'; import AttributeAnnotationWorkspace from 'components/annotation-page/attribute-annotation-workspace/attribute-annotation-workspace'; -import SubmitAnnotationsModal from 'components/annotation-page/request-review-modal'; import ReviewAnnotationsWorkspace from 'components/annotation-page/review-workspace/review-workspace'; -import SubmitReviewModal from 'components/annotation-page/review/submit-review-modal'; import StandardWorkspaceComponent from 'components/annotation-page/standard-workspace/standard-workspace'; import StandardWorkspace3DComponent from 'components/annotation-page/standard3D-workspace/standard3D-workspace'; import TagAnnotationWorkspace from 'components/annotation-page/tag-annotation-workspace/tag-annotation-workspace'; import FiltersModalComponent from 'components/annotation-page/top-bar/filters-modal'; -import StatisticsModalContainer from 'containers/annotation-page/top-bar/statistics-modal'; +import StatisticsModalComponent from 'components/annotation-page/top-bar/statistics-modal'; import AnnotationTopBarContainer from 'containers/annotation-page/top-bar/top-bar'; import { Workspace } from 'reducers/interfaces'; import { usePrevious } from 'utils/hooks'; @@ -66,15 +64,15 @@ export default function AnnotationPageComponent(props: Props): JSX.Element { }, [job, fetching]); useEffect(() => { - if (prevFetching && !fetching && !prevJob && job && !job.task.labels.length) { + if (prevFetching && !fetching && !prevJob && job && !job.labels.length) { notification.warning({ message: 'No labels', description: ( - {`${job.task.projectId ? 'Project' : 'Task'} ${ - job.task.projectId || job.task.id + {`${job.projectId ? 'Project' : 'Task'} ${ + job.projectId || job.taskId } does not contain any label. `} - + Add {' the first one for editing annotation.'} @@ -132,9 +130,7 @@ export default function AnnotationPageComponent(props: Props): JSX.Element { )} - - - + ); } diff --git a/cvat-ui/src/components/annotation-page/appearance-block.tsx b/cvat-ui/src/components/annotation-page/appearance-block.tsx index e3edd85d..4ef79e58 100644 --- a/cvat-ui/src/components/annotation-page/appearance-block.tsx +++ b/cvat-ui/src/components/annotation-page/appearance-block.tsx @@ -121,7 +121,7 @@ function AppearanceBlock(props: Props): JSX.Element { jobInstance, } = props; - const is2D = jobInstance.task.dimension === DimensionType.DIM_2D; + const is2D = jobInstance.dimension === DimensionType.DIM_2D; return ( { } state.objectType = state.objectType || activeObjectType; - state.label = state.label || jobInstance.task.labels.filter((label: any) => label.id === activeLabelID)[0]; + state.label = state.label || jobInstance.labels.filter((label: any) => label.id === activeLabelID)[0]; state.occluded = state.occluded || false; state.frame = frame; const objectState = new cvat.classes.ObjectState(state); diff --git a/cvat-ui/src/components/annotation-page/canvas/canvas-wrapper3D.tsx b/cvat-ui/src/components/annotation-page/canvas/canvas-wrapper3D.tsx index 08ed0f1e..037f730f 100644 --- a/cvat-ui/src/components/annotation-page/canvas/canvas-wrapper3D.tsx +++ b/cvat-ui/src/components/annotation-page/canvas/canvas-wrapper3D.tsx @@ -237,7 +237,7 @@ const CanvasWrapperComponent = (props: Props): ReactElement => { } state.objectType = state.objectType || activeObjectType; - state.label = state.label || jobInstance.task.labels.filter((label: any) => label.id === activeLabelID)[0]; + state.label = state.label || jobInstance.labels.filter((label: any) => label.id === activeLabelID)[0]; state.occluded = state.occluded || false; state.frame = frame; state.zOrder = 0; diff --git a/cvat-ui/src/components/annotation-page/request-review-modal.tsx b/cvat-ui/src/components/annotation-page/request-review-modal.tsx deleted file mode 100644 index 884f1447..00000000 --- a/cvat-ui/src/components/annotation-page/request-review-modal.tsx +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (C) 2020 Intel Corporation -// -// SPDX-License-Identifier: MIT - -import React, { useState } from 'react'; -import { AnyAction } from 'redux'; -import { useSelector, useDispatch } from 'react-redux'; -import { useHistory } from 'react-router'; -import Text from 'antd/lib/typography/Text'; -import Title from 'antd/lib/typography/Title'; -import Modal from 'antd/lib/modal'; -import { Row, Col } from 'antd/lib/grid'; - -import UserSelector, { User } from 'components/task-page/user-selector'; -import { CombinedState, TaskStatus } from 'reducers/interfaces'; -import { switchRequestReviewDialog } from 'actions/annotation-actions'; -import { updateJobAsync } from 'actions/tasks-actions'; - -export default function RequestReviewModal(): JSX.Element | null { - const dispatch = useDispatch(); - const history = useHistory(); - const isVisible = useSelector((state: CombinedState): boolean => state.annotation.requestReviewDialogVisible); - const job = useSelector((state: CombinedState): any => state.annotation.job.instance); - const [reviewer, setReviewer] = useState(job.reviewer ? job.reviewer : null); - const close = (): AnyAction => dispatch(switchRequestReviewDialog(false)); - const submitAnnotations = (): void => { - job.reviewer = reviewer; - job.status = TaskStatus.REVIEW; - dispatch(updateJobAsync(job)); - history.push(`/tasks/${job.task.id}`); - }; - - if (!isVisible) { - return null; - } - - return ( - - - - Assign a user who is responsible for review - - - - - Reviewer: - - - - - - - You might not be able to change the job after this action. Continue? - - - ); -} diff --git a/cvat-ui/src/components/annotation-page/review-workspace/review-workspace.tsx b/cvat-ui/src/components/annotation-page/review-workspace/review-workspace.tsx index 095a69c7..8b3e88c7 100644 --- a/cvat-ui/src/components/annotation-page/review-workspace/review-workspace.tsx +++ b/cvat-ui/src/components/annotation-page/review-workspace/review-workspace.tsx @@ -1,14 +1,10 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT import './styles.scss'; -import React, { useEffect } from 'react'; +import React from 'react'; import Layout from 'antd/lib/layout'; -import { useDispatch, useSelector } from 'react-redux'; - -import { CombinedState } from 'reducers/interfaces'; -import { initializeReviewAsync } from 'actions/review-actions'; import CanvasWrapperContainer from 'containers/annotation-page/canvas/canvas-wrapper'; import ControlsSideBarContainer from 'containers/annotation-page/review-workspace/controls-side-bar/controls-side-bar'; @@ -18,26 +14,6 @@ import CanvasContextMenuContainer from 'containers/annotation-page/canvas/canvas import IssueAggregatorComponent from 'components/annotation-page/review/issues-aggregator'; export default function ReviewWorkspaceComponent(): JSX.Element { - const dispatch = useDispatch(); - const frame = useSelector((state: CombinedState): number => state.annotation.player.frame.number); - const states = useSelector((state: CombinedState): any[] => state.annotation.annotations.states); - const review = useSelector((state: CombinedState): any => state.review.activeReview); - - useEffect(() => { - if (review) { - review.reviewFrame(frame); - review.reviewStates( - states - .map((state: any): number | undefined => state.serverID) - .filter((serverID: number | undefined): boolean => typeof serverID !== 'undefined') - .map((serverID: number | undefined): string => `${frame}_${serverID}`), - ); - } - }, [frame, states, review]); - useEffect(() => { - dispatch(initializeReviewAsync()); - }, []); - return ( diff --git a/cvat-ui/src/components/annotation-page/review/issue-dialog.tsx b/cvat-ui/src/components/annotation-page/review/issue-dialog.tsx index c4b95375..d8b96c26 100644 --- a/cvat-ui/src/components/annotation-page/review/issue-dialog.tsx +++ b/cvat-ui/src/components/annotation-page/review/issue-dialog.tsx @@ -89,7 +89,7 @@ export default function IssueDialog(props: Props): JSX.Element { {_comment.author ? _comment.author.username : 'Unknown'}} + author={{_comment.owner ? _comment.owner.username : 'Unknown'}} content={

    {_comment.message}

    } datetime={( diff --git a/cvat-ui/src/components/annotation-page/review/issues-aggregator.tsx b/cvat-ui/src/components/annotation-page/review/issues-aggregator.tsx index a112a9e3..4507927c 100644 --- a/cvat-ui/src/components/annotation-page/review/issues-aggregator.tsx +++ b/cvat-ui/src/components/annotation-page/review/issues-aggregator.tsx @@ -84,8 +84,8 @@ export default function IssueAggregatorComponent(): JSX.Element | null { const { geometry } = canvasInstance; for (const issue of frameIssues) { if (issuesHidden) break; - if (issuesResolvedHidden && !!issue.resolvedDate) continue; - const issueResolved = !!issue.resolver; + const issueResolved = issue.resolved; + if (issuesResolvedHidden && issueResolved) continue; const offset = 15; const translated = issue.position.map((coord: number): number => coord + geometry.offset); const minX = Math.min(...translated.filter((_: number, idx: number): boolean => idx % 2 === 0)) + offset; diff --git a/cvat-ui/src/components/annotation-page/review/submit-review-modal.tsx b/cvat-ui/src/components/annotation-page/review/submit-review-modal.tsx deleted file mode 100644 index 7bbfeecf..00000000 --- a/cvat-ui/src/components/annotation-page/review/submit-review-modal.tsx +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (C) 2020 Intel Corporation -// -// SPDX-License-Identifier: MIT - -import React, { useState, useEffect } from 'react'; -import { AnyAction } from 'redux'; -import { useSelector, useDispatch } from 'react-redux'; -import Text from 'antd/lib/typography/Text'; -import Title from 'antd/lib/typography/Title'; -import Modal from 'antd/lib/modal'; -import Radio, { RadioChangeEvent } from 'antd/lib/radio'; -import RadioButton from 'antd/lib/radio/radioButton'; -import Description from 'antd/lib/descriptions'; -import Rate from 'antd/lib/rate'; -import { Row, Col } from 'antd/lib/grid'; - -import UserSelector, { User } from 'components/task-page/user-selector'; -import { CombinedState, ReviewStatus } from 'reducers/interfaces'; -import { switchSubmitReviewDialog } from 'actions/annotation-actions'; -import { submitReviewAsync } from 'actions/review-actions'; -import { clamp } from 'utils/math'; -import { useHistory } from 'react-router'; - -function computeEstimatedQuality(reviewedStates: number, openedIssues: number): number { - if (reviewedStates === 0 && openedIssues === 0) { - return 5; // corner case - } - - const K = 2; // means how many reviewed states are equivalent to one issue - const quality = reviewedStates / (reviewedStates + K * openedIssues); - return clamp(+(5 * quality).toPrecision(2), 0, 5); -} - -export default function SubmitReviewModal(): JSX.Element | null { - const dispatch = useDispatch(); - const history = useHistory(); - const isVisible = useSelector((state: CombinedState): boolean => state.annotation.submitReviewDialogVisible); - const job = useSelector((state: CombinedState): any => state.annotation.job.instance); - const activeReview = useSelector((state: CombinedState): any => state.review.activeReview); - const reviewIsBeingSubmitted = useSelector((state: CombinedState): any => state.review.fetching.reviewId); - const numberOfIssues = useSelector((state: CombinedState): any => state.review.issues.length); - const [isSubmitting, setIsSubmitting] = useState(false); - const numberOfNewIssues = activeReview ? activeReview.issues.length : 0; - const reviewedFrames = activeReview ? activeReview.reviewedFrames.length : 0; - const reviewedStates = activeReview ? activeReview.reviewedStates.length : 0; - - const [reviewer, setReviewer] = useState(job.reviewer ? job.reviewer : null); - const [reviewStatus, setReviewStatus] = useState(ReviewStatus.ACCEPTED); - const [estimatedQuality, setEstimatedQuality] = useState(0); - - const close = (): AnyAction => dispatch(switchSubmitReviewDialog(false)); - const submitReview = (): void => { - activeReview.estimatedQuality = estimatedQuality; - activeReview.status = reviewStatus; - if (reviewStatus === ReviewStatus.REVIEW_FURTHER) { - activeReview.reviewer = reviewer; - } - dispatch(submitReviewAsync(activeReview)); - }; - - useEffect(() => { - setEstimatedQuality(computeEstimatedQuality(reviewedStates, numberOfNewIssues)); - }, [reviewedStates, numberOfNewIssues]); - useEffect(() => { - if (!isSubmitting && activeReview && activeReview.id === reviewIsBeingSubmitted) { - setIsSubmitting(true); - } else if (isSubmitting && reviewIsBeingSubmitted === null) { - setIsSubmitting(false); - close(); - history.push(`/tasks/${job.task.id}`); - } - }, [reviewIsBeingSubmitted, activeReview]); - - if (!isVisible) { - return null; - } - - return ( - - - - Submitting your review - - - - - - {estimatedQuality} - - {numberOfIssues} - {!!numberOfNewIssues && {` (+${numberOfNewIssues})`}} - - {reviewedFrames} - {reviewedStates} - - - - - - { - if (typeof event.target.value !== 'undefined') { - setReviewStatus(event.target.value); - } - }} - > - Accept - Review next - Reject - - {reviewStatus === ReviewStatus.REVIEW_FURTHER && ( - - - Reviewer: - - - - - - )} - - - { - if (typeof value !== 'undefined') { - setEstimatedQuality(value); - } - }} - /> - - - - - - - - ); -} diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/draw-shape-popover.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/draw-shape-popover.tsx index b4a570a1..ff7d660a 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/draw-shape-popover.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/draw-shape-popover.tsx @@ -52,7 +52,7 @@ function DrawShapePopoverComponent(props: Props): JSX.Element { jobInstance, } = props; - const is2D = jobInstance.task.dimension === DimensionType.DIM_2D; + const is2D = jobInstance.dimension === DimensionType.DIM_2D; return (
    diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/group-control.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/group-control.tsx index cbaab46d..379a4e05 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/group-control.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/group-control.tsx @@ -52,7 +52,7 @@ function GroupControl(props: Props): JSX.Element { const title = [ `Group shapes${ - jobInstance && jobInstance.task.dimension === DimensionType.DIM_3D ? '' : '/tracks' + jobInstance && jobInstance.dimension === DimensionType.DIM_3D ? '' : '/tracks' } ${switchGroupShortcut}. `, `Select and press ${resetGroupShortcut} to reset a group.`, ].join(' '); diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx index 89a30a5d..9e9e5dde 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx @@ -340,7 +340,7 @@ export class ToolsControlComponent extends React.PureComponent { try { // run server request this.setState({ fetching: true }); - const response = await core.lambda.call(jobInstance.task, interactor, data); + const response = await core.lambda.call(jobInstance.taskId, interactor, data); // approximation with cv.approxPolyDP const approximated = await this.approximateResponsePoints(response); @@ -430,7 +430,7 @@ export class ToolsControlComponent extends React.PureComponent { } const { activeLabelID } = this.state; - const [label] = jobInstance.task.labels.filter((_label: any): boolean => _label.id === activeLabelID); + const [label] = jobInstance.labels.filter((_label: any): boolean => _label.id === activeLabelID); const { isDone, shapesUpdated } = (e as CustomEvent).detail; if (!isDone || !shapesUpdated) { @@ -535,8 +535,7 @@ export class ToolsControlComponent extends React.PureComponent { { const filteredStates = trackedShapes.filter( - (trackedShape: TrackedShape) => - trackedShape.clientID !== clientID, + (trackedShape: TrackedShape) => trackedShape.clientID !== clientID, ); /* eslint no-param-reassign: ["error", { "props": false }] */ objectState.descriptions = []; @@ -690,8 +689,7 @@ export class ToolsControlComponent extends React.PureComponent { 0, ); // eslint-disable-next-line no-await-in-loop - const response = await core.lambda.call(jobInstance.task, tracker, { - task: jobInstance.task, + const response = await core.lambda.call(jobInstance.taskId, tracker, { frame: frame - 1, shapes: trackableObjects.shapes, }); @@ -736,8 +734,7 @@ export class ToolsControlComponent extends React.PureComponent { 0, ); // eslint-disable-next-line no-await-in-loop - const response = await core.lambda.call(jobInstance.task, tracker, { - task: jobInstance.task, + const response = await core.lambda.call(jobInstance.taskId, tracker, { frame: frame - 1, shapes: trackableObjects.shapes, states: trackableObjects.states, @@ -1022,24 +1019,24 @@ export class ToolsControlComponent extends React.PureComponent { { + labels={jobInstance.labels} + dimension={jobInstance.dimension} + runInference={async (model: Model, body: object) => { try { this.setState({ mode: 'detection', fetching: true }); - const result = await core.lambda.call(task, model, { ...body, frame }); + const result = await core.lambda.call(jobInstance.taskId, model, { ...body, frame }); const states = result.map( - (data: any): any => - new core.classes.ObjectState({ - shapeType: data.type, - label: task.labels.filter((label: any): boolean => label.name === data.label)[0], - points: data.points, - objectType: ObjectType.SHAPE, - frame, - occluded: false, - source: 'auto', - attributes: {}, - zOrder: curZOrder, - }), + (data: any): any => new core.classes.ObjectState({ + shapeType: data.type, + label: jobInstance.labels.filter((label: any): boolean => label.name === data.label)[0], + points: data.points, + objectType: ObjectType.SHAPE, + frame, + occluded: false, + source: 'auto', + attributes: {}, + zOrder: curZOrder, + }), ); createAnnotations(jobInstance, frame, states); diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/issues-list.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/issues-list.tsx index 32f4f6c0..a2c9a049 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/issues-list.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/issues-list.tsx @@ -21,11 +21,9 @@ export default function LabelsListComponent(): JSX.Element { const frame = useSelector((state: CombinedState): number => state.annotation.player.frame.number); const frameIssues = useSelector((state: CombinedState): any[] => state.review.frameIssues); const issues = useSelector((state: CombinedState): any[] => state.review.issues); - const activeReview = useSelector((state: CombinedState): any => state.review.activeReview); const issuesHidden = useSelector((state: CombinedState): any => state.review.issuesHidden); const issuesResolvedHidden = useSelector((state: CombinedState): any => state.review.issuesResolvedHidden); - const combinedIssues = activeReview ? issues.concat(activeReview.issues) : issues; - const frames = combinedIssues.map((issue: any): number => issue.frame).sort((a: number, b: number) => +a - +b); + const frames = issues.map((issue: any): number => issue.frame).sort((a: number, b: number) => +a - +b); const nearestLeft = frames.filter((_frame: number): boolean => _frame < frame).reverse()[0]; const dinamicLeftProps: any = Number.isInteger(nearestLeft) ? { @@ -101,6 +99,7 @@ export default function LabelsListComponent(): JSX.Element { {frameIssues.map( (frameIssue: any): JSX.Element => (
    { @@ -120,20 +119,10 @@ export default function LabelsListComponent(): JSX.Element { } }} > - {frameIssue.resolver ? ( - {`By ${frameIssue.resolver.username}`}} - message='Resolved' - type='success' - showIcon - /> + {frameIssue.resolved ? ( + ) : ( - {`By ${frameIssue.owner.username}`}} - message='Opened' - type='warning' - showIcon - /> + )}
    ), diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item-menu.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item-menu.tsx index aede51a0..bb25fdcb 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item-menu.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item-menu.tsx @@ -225,7 +225,7 @@ export default function ItemMenu(props: Props): JSX.Element { REMOVE_ITEM = 'remove_item', } - const is2D = jobInstance.task.dimension === DimensionType.DIM_2D; + const is2D = jobInstance.dimension === DimensionType.DIM_2D; return ( diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/objects-side-bar.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/objects-side-bar.tsx index 302babcd..659f26d8 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/objects-side-bar.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/objects-side-bar.tsx @@ -81,11 +81,7 @@ function ObjectsSideBar(props: StateToProps & DispatchToProps & OwnProps): JSX.E collapseSidebar(); }; - let is2D = true; - if (jobInstance) { - is2D = jobInstance.task.dimension === DimensionType.DIM_2D; - } - + const is2D = jobInstance ? jobInstance.dimension === DimensionType.DIM_2D : true; return ( .ant-modal-content > .ant-modal-body { - > div:nth-child(2) { - margin-top: $grid-unit-size * 2; - } - - > div:nth-child(3) { - margin-top: $grid-unit-size * 2; - } - } -} - .cvat-submit-review-dialog { - > .ant-modal-content > .ant-modal-body { - > div:nth-child(2) > div:nth-child(2) { - .ant-col { + .ant-modal-body { + > div.ant-row:nth-child(2) { + > .ant-col { + width: 100%; + > div:nth-child(2) { margin-top: $grid-unit-size * 2; margin-bottom: $grid-unit-size * 2; @@ -496,3 +486,12 @@ button.cvat-predictor-button { } } } + +.cvat-submenu-current-job-state-item { + &::after { + content: ' \2713'; + float: right; + } + + font-weight: bold; +} diff --git a/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx b/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx index 72ff834d..a46a8961 100644 --- a/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx +++ b/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx @@ -3,25 +3,30 @@ // SPDX-License-Identifier: MIT import React from 'react'; +import { withRouter, RouteComponentProps } from 'react-router'; import Menu from 'antd/lib/menu'; import Modal from 'antd/lib/modal'; import Text from 'antd/lib/typography/Text'; -import { - InputNumber, Tooltip, Checkbox, Collapse, -} from 'antd'; +import InputNumber from 'antd/lib/input-number'; +import Checkbox from 'antd/lib/checkbox'; +import Collapse from 'antd/lib/collapse'; + // eslint-disable-next-line import/no-extraneous-dependencies import { MenuInfo } from 'rc-menu/lib/interface'; +import CVATTooltip from 'components/common/cvat-tooltip'; import LoadSubmenu from 'components/actions-menu/load-submenu'; -import { DimensionType } from '../../../reducers/interfaces'; +import getCore from 'cvat-core-wrapper'; +import { JobStage } from 'reducers/interfaces'; + +const core = getCore(); interface Props { taskMode: string; loaders: any[]; dumpers: any[]; loadActivity: string | null; - isReviewer: boolean; jobInstance: any; onClickMenu(params: MenuInfo): void; onUploadAnnotations(format: string, file: File): void; @@ -36,19 +41,17 @@ export enum Actions { EXPORT_TASK_DATASET = 'export_task_dataset', REMOVE_ANNO = 'remove_anno', OPEN_TASK = 'open_task', - REQUEST_REVIEW = 'request_review', - SUBMIT_REVIEW = 'submit_review', FINISH_JOB = 'finish_job', RENEW_JOB = 'renew_job', } -export default function AnnotationMenuComponent(props: Props): JSX.Element { +function AnnotationMenuComponent(props: Props & RouteComponentProps): JSX.Element { const { loaders, loadActivity, - isReviewer, jobInstance, stopFrame, + history, onClickMenu, onUploadAnnotations, removeAnnotations, @@ -56,8 +59,10 @@ export default function AnnotationMenuComponent(props: Props): JSX.Element { saveAnnotations, } = props; - const jobStatus = jobInstance.status; - const taskID = jobInstance.task.id; + const jobStage = jobInstance.stage; + const jobState = jobInstance.state; + const taskID = jobInstance.taskId; + const { JobState } = core.enums; function onClickMenuWrapper(params: MenuInfo): void { function checkUnsavedChanges(_params: MenuInfo): void { @@ -117,7 +122,7 @@ export default function AnnotationMenuComponent(props: Props): JSX.Element { max={stopFrame} onChange={(value) => { removeUpTo = value; }} /> - +

    Delete only keyframes for tracks -
    +
    @@ -142,12 +147,21 @@ export default function AnnotationMenuComponent(props: Props): JSX.Element { }, okText: 'Delete', }); - } else if (params.key === Actions.REQUEST_REVIEW) { - checkUnsavedChanges(params); + } else if (params.key.startsWith('state:')) { + Modal.confirm({ + title: 'Do you want to change current job state?', + content: `Job state will be switched to "${params.key.split(':')[1]}". Continue?`, + okText: 'Continue', + cancelText: 'Cancel', + className: 'cvat-modal-content-change-job-state', + onOk: () => { + checkUnsavedChanges(params); + }, + }); } else if (params.key === Actions.FINISH_JOB) { Modal.confirm({ - title: 'The job status is going to be switched', - content: 'Status will be changed to "completed". Would you like to continue?', + title: 'The job stage is going to be switched', + content: 'Stage will be changed to "acceptance". Would you like to continue?', okText: 'Continue', cancelText: 'Cancel', className: 'cvat-modal-content-finish-job', @@ -157,8 +171,8 @@ export default function AnnotationMenuComponent(props: Props): JSX.Element { }); } else if (params.key === Actions.RENEW_JOB) { Modal.confirm({ - title: 'The job status is going to be switched', - content: 'Status will be changed to "annotations". Would you like to continue?', + title: 'Do you want to renew the job?', + content: 'Stage will be set to "in progress", state will be set to "annotation". Would you like to continue?', okText: 'Continue', cancelText: 'Cancel', className: 'cvat-modal-content-renew-job', @@ -171,7 +185,10 @@ export default function AnnotationMenuComponent(props: Props): JSX.Element { } } - const is2d = jobInstance.task.dimension === DimensionType.DIM_2D; + const computeClassName = (menuItemState: string): string => { + if (menuItemState === jobState) return 'cvat-submenu-current-job-state-item'; + return ''; + }; return ( onClickMenuWrapper(params)} className='cvat-annotation-menu' selectable={false}> @@ -196,21 +213,44 @@ export default function AnnotationMenuComponent(props: Props): JSX.Element { } }, menuKey: Actions.LOAD_JOB_ANNO, - taskDimension: jobInstance.task.dimension, + taskDimension: jobInstance.dimension, })} Export task dataset Remove annotations - e.preventDefault()}> + { + e.preventDefault(); + history.push(`/tasks/${taskID}`); + return false; + }} + > Open the task - {jobStatus === 'annotation' && is2d && Request a review} - {jobStatus === 'annotation' && Finish the job} - {jobStatus === 'validation' && isReviewer && ( - Submit the review - )} - {jobStatus === 'completed' && Renew the job} + {jobStage !== JobStage.ACCEPTANCE ? ( + + + {JobState.NEW} + + + {JobState.IN_PROGRESS} + + + {JobState.REJECTED} + + + {JobState.COMPLETED} + + + ) : null } + {[JobStage.ANNOTATION, JobStage.REVIEW].includes(jobStage) ? + Finish the job : null} + {jobStage === JobStage.ACCEPTANCE ? + Renew the job : null} ); } + +export default withRouter(AnnotationMenuComponent); diff --git a/cvat-ui/src/components/annotation-page/top-bar/right-group.tsx b/cvat-ui/src/components/annotation-page/top-bar/right-group.tsx index a3805442..59d5b623 100644 --- a/cvat-ui/src/components/annotation-page/top-bar/right-group.tsx +++ b/cvat-ui/src/components/annotation-page/top-bar/right-group.tsx @@ -175,7 +175,7 @@ function RightGroup(props: Props): JSX.Element { value={workspace} > {Object.values(Workspace).map((ws) => { - if (jobInstance.task.dimension === DimensionType.DIM_3D) { + if (jobInstance.dimension === DimensionType.DIM_3D) { if (ws === Workspace.STANDARD) { return null; } diff --git a/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx b/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx index 10d7563b..7399bd4c 100644 --- a/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx +++ b/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx @@ -3,6 +3,7 @@ // SPDX-License-Identifier: MIT import React from 'react'; +import { connect } from 'react-redux'; import { Row, Col } from 'antd/lib/grid'; import { QuestionCircleOutlined } from '@ant-design/icons'; import Table from 'antd/lib/table'; @@ -11,38 +12,80 @@ import Spin from 'antd/lib/spin'; import Text from 'antd/lib/typography/Text'; import CVATTooltip from 'components/common/cvat-tooltip'; -import { DimensionType } from 'reducers/interfaces'; +import { CombinedState, DimensionType } from 'reducers/interfaces'; +import { showStatistics } from 'actions/annotation-actions'; -interface Props { +interface StateToProps { + visible: boolean; collecting: boolean; data: any; - visible: boolean; - assignee: string; - reviewer: string; - startFrame: number; - stopFrame: number; - bugTracker: string; jobStatus: string; savingJobStatus: boolean; + bugTracker: string | null; + startFrame: number; + stopFrame: number; + dimension: DimensionType; + assignee: any | null; +} + +interface DispatchToProps { closeStatistics(): void; - jobInstance: any; } -export default function StatisticsModalComponent(props: Props): JSX.Element { +function mapStateToProps(state: CombinedState): StateToProps { + const { + annotation: { + statistics: { visible, collecting, data }, + job: { + saving: savingJobStatus, + instance: { + bugTracker, + startFrame, + stopFrame, + assignee, + dimension, + status: jobStatus, + }, + }, + }, + } = state; + + return { + visible, + collecting, + data, + jobStatus, + savingJobStatus, + bugTracker, + startFrame, + stopFrame, + dimension, + assignee: assignee || 'Nobody', + }; +} + +function mapDispatchToProps(dispatch: any): DispatchToProps { + return { + closeStatistics(): void { + dispatch(showStatistics(false)); + }, + }; +} + +function StatisticsModalComponent(props: StateToProps & DispatchToProps): JSX.Element { const { collecting, data, visible, assignee, - reviewer, startFrame, stopFrame, bugTracker, closeStatistics, - jobInstance, + dimension, } = props; - const is2D = jobInstance.task.dimension === DimensionType.DIM_2D; + const is2D = dimension === DimensionType.DIM_2D; const baseProps = { cancelButtonProps: { style: { display: 'none' } }, @@ -184,12 +227,6 @@ export default function StatisticsModalComponent(props: Props): JSX.Element { {assignee} - - - Reviewer - - {reviewer} - Start frame @@ -235,3 +272,5 @@ export default function StatisticsModalComponent(props: Props): JSX.Element { ); } + +export default connect(mapStateToProps, mapDispatchToProps)(StatisticsModalComponent); diff --git a/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx b/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx index eb06ca76..9b68bb81 100644 --- a/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx +++ b/cvat-ui/src/components/create-cloud-storage-page/cloud-storage-form.tsx @@ -2,9 +2,7 @@ // // SPDX-License-Identifier: MIT -import React, { - useState, useEffect, useRef, -} from 'react'; +import React, { useState, useEffect, useRef } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useHistory } from 'react-router'; import { Row, Col } from 'antd/lib/grid'; @@ -238,9 +236,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element { if (cloudStorageData.manifests && cloudStorageData.manifests.length) { delete cloudStorageData.manifests; - cloudStorageData.manifests = form - .getFieldValue('manifests') - .map((manifest: any): string => manifest.name); + cloudStorageData.manifests = form.getFieldValue('manifests').map((manifest: any): string => manifest.name); } if (cloudStorage) { @@ -308,14 +304,13 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element { const commonProps = { className: 'cvat-cloud-storage-form-item', - labelCol: { span: 5 }, - wrapperCol: { offset: 1 }, }; const credentialsBlok = (): JSX.Element => { const internalCommonProps = { ...commonProps, labelCol: { span: 8, offset: 2 }, + wrapperCol: { offset: 2 }, }; if (providerType === ProviderType.AWS_S3_BUCKET && credentialsType === CredentialsType.KEY_SECRET_KEY_PAIR) { @@ -466,7 +461,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element { const AWSS3Configuration = (): JSX.Element => { const internalCommonProps = { ...commonProps, - labelCol: { span: 6, offset: 1 }, + labelCol: { offset: 1 }, wrapperCol: { offset: 1 }, }; @@ -506,7 +501,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element { const AzureBlobStorageConfiguration = (): JSX.Element => { const internalCommonProps = { ...commonProps, - labelCol: { span: 6, offset: 1 }, + labelCol: { offset: 1 }, wrapperCol: { offset: 1 }, }; @@ -595,7 +590,7 @@ export default function CreateCloudStorageForm(props: Props): JSX.Element { }; return ( -
    + Manifests diff --git a/cvat-ui/src/components/create-cloud-storage-page/styles.scss b/cvat-ui/src/components/create-cloud-storage-page/styles.scss index 265645e2..150da677 100644 --- a/cvat-ui/src/components/create-cloud-storage-page/styles.scss +++ b/cvat-ui/src/components/create-cloud-storage-page/styles.scss @@ -75,3 +75,9 @@ padding-left: $grid-unit-size * 0.5; padding-right: 0; } + +.cvat-manifests-manager-form-item { + > .ant-form-item-control { + display: none; + } +} diff --git a/cvat-ui/src/components/create-organization-page/create-organization-form.tsx b/cvat-ui/src/components/create-organization-page/create-organization-form.tsx new file mode 100644 index 00000000..734d08eb --- /dev/null +++ b/cvat-ui/src/components/create-organization-page/create-organization-form.tsx @@ -0,0 +1,99 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +import React from 'react'; +import { useHistory } from 'react-router'; +import { useDispatch, useSelector } from 'react-redux'; +import Form from 'antd/lib/form'; +import Input from 'antd/lib/input'; +import Button from 'antd/lib/button'; +import Space from 'antd/lib/space'; +import { Store } from 'antd/lib/form/interface'; +import { useForm } from 'antd/lib/form/Form'; +import notification from 'antd/lib/notification'; + +import { createOrganizationAsync } from 'actions/organization-actions'; +import validationPatterns from 'utils/validation-patterns'; +import { CombinedState } from 'reducers/interfaces'; + +function CreateOrganizationForm(): JSX.Element { + const [form] = useForm(); + const dispatch = useDispatch(); + const history = useHistory(); + const creating = useSelector((state: CombinedState) => state.organizations.creating); + const MAX_SLUG_LEN = 16; + const MAX_NAME_LEN = 64; + + const onFinish = (values: Store): void => { + const { + phoneNumber, location, email, ...rest + } = values; + + rest.contact = { + ...(phoneNumber ? { phoneNumber } : {}), + ...(email ? { email } : {}), + ...(location ? { location } : {}), + }; + + dispatch( + createOrganizationAsync(rest, (createdSlug: string): void => { + form.resetFields(); + notification.info({ message: `Organization ${createdSlug} has been successfully created` }); + }), + ); + }; + + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} + +export default React.memo(CreateOrganizationForm); diff --git a/cvat-ui/src/components/create-organization-page/create-organization-page.tsx b/cvat-ui/src/components/create-organization-page/create-organization-page.tsx new file mode 100644 index 00000000..cf210fc2 --- /dev/null +++ b/cvat-ui/src/components/create-organization-page/create-organization-page.tsx @@ -0,0 +1,23 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +import './styles.scss'; +import React from 'react'; +import { Row, Col } from 'antd/lib/grid'; +import Text from 'antd/lib/typography/Text'; + +import CreateOrganizationForm from './create-organization-form'; + +function CreateOrganizationComponent(): JSX.Element { + return ( + + + Create a new organization + + + + ); +} + +export default React.memo(CreateOrganizationComponent); diff --git a/cvat-ui/src/components/create-organization-page/styles.scss b/cvat-ui/src/components/create-organization-page/styles.scss new file mode 100644 index 00000000..65d77757 --- /dev/null +++ b/cvat-ui/src/components/create-organization-page/styles.scss @@ -0,0 +1,52 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +@import '../../base.scss'; + +.cvat-create-organization-page { + text-align: center; + padding-top: $grid-unit-size * 5; + overflow-y: auto; + height: 90%; + width: 100%; + + > div:first-child { + > span { + font-size: 36px; + } + } +} + +.cvat-create-organization-form { + text-align: initial; + margin-top: $grid-unit-size * 2; + width: 100%; + height: auto; + border: 1px solid $border-color-1; + border-radius: 3px; + padding: $grid-unit-size * 2; + background: $background-color-1; + + > div:not(first-child) { + margin-top: $grid-unit-size; + } + + .cvat-create-organization-form-buttons-block { + display: flex; + justify-content: flex-end; + } + + .cvat-create-organization-form-contact-block { + display: flex; + align-items: flex-end; + + > .ant-space-item:first-child { + width: 100%; + } + } + + .cvat-create-organization-form-add-contact-block { + align-items: baseline; + } +} diff --git a/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx b/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx index 537426cc..f9e1cac2 100644 --- a/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx +++ b/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx @@ -325,9 +325,16 @@ class AdvancedConfigurationForm extends React.PureComponent { name='format' label='Choose format' > - { - dumpers.map((dumper: any) => ) + dumpers.map((dumper: any) => ( + + )) } diff --git a/cvat-ui/src/components/create-task-page/create-task-content.tsx b/cvat-ui/src/components/create-task-page/create-task-content.tsx index 77663e1a..dda48ffe 100644 --- a/cvat-ui/src/components/create-task-page/create-task-content.tsx +++ b/cvat-ui/src/components/create-task-page/create-task-content.tsx @@ -233,7 +233,7 @@ class CreateTaskContent extends React.PureComponent - Project: + Project @@ -249,7 +249,7 @@ class CreateTaskContent extends React.PureComponent - Subset: + Subset - Labels: + Labels Project labels will be used @@ -284,7 +284,7 @@ class CreateTaskContent extends React.PureComponent * - Labels: + Labels { @@ -301,7 +301,7 @@ class CreateTaskContent extends React.PureComponent * - Select files: + Select files { diff --git a/cvat-ui/src/components/cvat-app.tsx b/cvat-ui/src/components/cvat-app.tsx index 88c9e003..6d0c5718 100644 --- a/cvat-ui/src/components/cvat-app.tsx +++ b/cvat-ui/src/components/cvat-app.tsx @@ -13,26 +13,35 @@ import Spin from 'antd/lib/spin'; import Text from 'antd/lib/typography/Text'; import 'antd/dist/antd.css'; -import GlobalErrorBoundary from 'components/global-error-boundary/global-error-boundary'; -import Header from 'components/header/header'; +import LoginPageContainer from 'containers/login-page/login-page'; +import LoginWithTokenComponent from 'components/login-with-token/login-with-token'; +import RegisterPageContainer from 'containers/register-page/register-page'; import ResetPasswordPageConfirmComponent from 'components/reset-password-confirm-page/reset-password-confirm-page'; import ResetPasswordPageComponent from 'components/reset-password-page/reset-password-page'; + +import Header from 'components/header/header'; +import GlobalErrorBoundary from 'components/global-error-boundary/global-error-boundary'; + import ShortcutsDialog from 'components/shortcuts-dialog/shortcuts-dialog'; -import ProjectsPageComponent from 'components/projects-page/projects-page'; -import CreateProjectPageComponent from 'components/create-project-page/create-project-page'; -import ProjectPageComponent from 'components/project-page/project-page'; -import TasksPageContainer from 'containers/tasks-page/tasks-page'; -import LoginWithTokenComponent from 'components/login-with-token/login-with-token'; import ExportDatasetModal from 'components/export-dataset/export-dataset-modal'; +import ModelsPageContainer from 'containers/models-page/models-page'; + +import TasksPageContainer from 'containers/tasks-page/tasks-page'; import CreateTaskPageContainer from 'containers/create-task-page/create-task-page'; import TaskPageContainer from 'containers/task-page/task-page'; -import ModelsPageContainer from 'containers/models-page/models-page'; -import AnnotationPageContainer from 'containers/annotation-page/annotation-page'; -import LoginPageContainer from 'containers/login-page/login-page'; -import RegisterPageContainer from 'containers/register-page/register-page'; + +import ProjectsPageComponent from 'components/projects-page/projects-page'; +import CreateProjectPageComponent from 'components/create-project-page/create-project-page'; +import ProjectPageComponent from 'components/project-page/project-page'; + import CloudStoragesPageComponent from 'components/cloud-storages-page/cloud-storages-page'; import CreateCloudStoragePageComponent from 'components/create-cloud-storage-page/create-cloud-storage-page'; import UpdateCloudStoragePageComponent from 'components/update-cloud-storage-page/update-cloud-storage-page'; + +import OrganizationPage from 'components/organization-page/organization-page'; +import CreateOrganizationComponent from 'components/create-organization-page/create-organization-page'; + +import AnnotationPageContainer from 'containers/annotation-page/annotation-page'; import getCore from 'cvat-core-wrapper'; import GlobalHotKeys, { KeyMap } from 'utils/mousetrap-react'; import { NotificationsState } from 'reducers/interfaces'; @@ -57,9 +66,12 @@ interface CVATAppProps { switchShortcutsDialog: () => void; switchSettingsDialog: () => void; loadAuthActions: () => void; + loadOrganizations: () => void; keyMap: KeyMap; userInitialized: boolean; userFetching: boolean; + organizationsFetching: boolean; + organizationsInitialized: boolean; pluginsInitialized: boolean; pluginsFetching: boolean; modelsInitialized: boolean; @@ -150,9 +162,12 @@ class CVATApplication extends React.PureComponent + + {isModelPluginActive && ( )} diff --git a/cvat-ui/src/components/export-dataset/export-dataset-modal.tsx b/cvat-ui/src/components/export-dataset/export-dataset-modal.tsx index 32e5654c..b6602749 100644 --- a/cvat-ui/src/components/export-dataset/export-dataset-modal.tsx +++ b/cvat-ui/src/components/export-dataset/export-dataset-modal.tsx @@ -40,11 +40,12 @@ function ExportDatasetModal(): JSX.Element { const initActivities = (): void => { if (instance instanceof core.classes.Project) { - setInstanceType('project'); + setInstanceType(`project #${instance.id}`); setActivities(projectExportActivities[instance.id] || []); - } else if (instance instanceof core.classes.Task) { - setInstanceType('task'); - setActivities(taskExportActivities[instance.id] || []); + } else if (instance) { + const taskID = instance instanceof core.classes.Task ? instance.id : instance.taskId; + setInstanceType(`task #${taskID}`); + setActivities(taskExportActivities[taskID] || []); if (instance.mode === 'interpolation' && instance.dimension === '2d') { form.setFieldsValue({ selectedFormat: 'CVAT for video 1.1' }); } else if (instance.mode === 'annotation' && instance.dimension === '2d') { @@ -77,21 +78,21 @@ function ExportDatasetModal(): JSX.Element { Notification.info({ message: 'Dataset export started', description: - `Dataset export was started for ${instanceType} #${instance?.id}. ` + + `Dataset export was started for ${instanceType}. ` + 'Download will start automaticly as soon as the dataset is ready.', - className: `cvat-notification-notice-export-${instanceType}-start`, + className: `cvat-notification-notice-export-${instanceType.split(' ')[0]}-start`, }); }, - [instance?.id, instance instanceof core.classes.Project, instanceType], + [instance, instanceType], ); return ( form.submit()} - className={`cvat-modal-export-${instanceType}`} + className={`cvat-modal-export-${instanceType.split(' ')[0]}`} destroyOnClose >
    + const resetOrganization = (): void => { + localStorage.removeItem('currentOrganization'); + if (/\d+$/.test(window.location.pathname)) { + window.location.pathname = '/'; + } else { + window.location.reload(); + } + }; + + const setNewOrganization = (organization: any): void => { + if (!currentOrganization || currentOrganization.slug !== organization.slug) { + localStorage.setItem('currentOrganization', organization.slug); + if (/\d+$/.test(window.location.pathname)) { + // a resource is opened (task/job/etc.) + window.location.pathname = '/'; + } else { + window.location.reload(); + } + } + }; + + const userMenu = ( + {user.isStaff && ( } key='admin_page' onClick={(): void => { // false positive @@ -219,37 +256,114 @@ function HeaderContainer(props: Props): JSX.Element { window.open(`${tool.server.host}/admin`, '_blank'); }} > - Admin page )} + : } + > + {currentOrganization ? ( + } key='open_organization' onClick={() => history.push('/organization')}> + Settings + + ) : null} + } key='create_organization' onClick={() => history.push('/organizations/create')}>Create + { organizationsList.length > 5 ? ( + { + Modal.confirm({ + title: 'Select an organization', + okButtonProps: { + style: { display: 'none' }, + }, + content: ( + + ), + }); + }} + > + Switch organization + + ) : ( + <> + + + + Personal workspace + + {organizationsList.map((organization: any): JSX.Element => ( + setNewOrganization(organization)} + > + {organization.slug} + + ))} + + + )} + } key='settings' title={`Press ${switchSettingsShortcut} to switch`} onClick={() => switchSettingsDialog(true)} > - Settings - - + } key='about' onClick={() => showAboutModal()}> About {renderChangePasswordItem && ( : } className='cvat-header-menu-change-password' onClick={(): void => switchChangePasswordDialog(true)} disabled={changePasswordFetching} > - {changePasswordFetching ? : } Change password )} - - {logoutFetching ? : } + : } + onClick={onLogout} + disabled={logoutFetching} + > Logout @@ -278,7 +392,7 @@ function HeaderContainer(props: Props): JSX.Element { href='/tasks?page=1' onClick={(event: React.MouseEvent): void => { event.preventDefault(); - history.push('/tasks?page=1'); + history.push('/tasks'); }} > Tasks @@ -290,7 +404,7 @@ function HeaderContainer(props: Props): JSX.Element { href='/cloudstorages?page=1' onClick={(event: React.MouseEvent): void => { event.preventDefault(); - history.push('/cloudstorages?page=1'); + history.push('/cloudstorages'); }} > Cloud Storages @@ -326,39 +440,52 @@ function HeaderContainer(props: Props): JSX.Element { )}
    - - - + +
    diff --git a/cvat-ui/src/components/header/settings-modal/settings-modal.tsx b/cvat-ui/src/components/header/settings-modal/settings-modal.tsx index 897c6891..7124f5d9 100644 --- a/cvat-ui/src/components/header/settings-modal/settings-modal.tsx +++ b/cvat-ui/src/components/header/settings-modal/settings-modal.tsx @@ -118,4 +118,4 @@ const SettingsModal = (props: SettingsModalProps): JSX.Element => { ); }; -export default SettingsModal; +export default React.memo(SettingsModal); diff --git a/cvat-ui/src/components/header/settings-modal/styles.scss b/cvat-ui/src/components/header/settings-modal/styles.scss index e8754ed6..508ebb57 100644 --- a/cvat-ui/src/components/header/settings-modal/styles.scss +++ b/cvat-ui/src/components/header/settings-modal/styles.scss @@ -16,7 +16,8 @@ } .cvat-workspace-settings, -.cvat-player-settings { +.cvat-player-settings, +.cvat-organizations-settings { width: 100%; height: max-content; background: $background-color-1; @@ -96,3 +97,14 @@ .cvat-settings-modal .ant-modal-body { padding-top: 0; } + +.cvat-organizations-settings-list { + width: $grid-unit-size * 24; + margin-bottom: $grid-unit-size * 3; +} + +.cvat-organizations-settings-list-item { + div { + width: 100%; + } +} diff --git a/cvat-ui/src/components/header/styles.scss b/cvat-ui/src/components/header/styles.scss index 559dddb6..c4d6952d 100644 --- a/cvat-ui/src/components/header/styles.scss +++ b/cvat-ui/src/components/header/styles.scss @@ -1,4 +1,4 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -25,6 +25,15 @@ display: flex; justify-content: flex-end; align-items: center; + + > a.ant-btn { + height: 24px; + + span[role='img'] { + font-size: 24px; + line-height: 24px; + } + } } .anticon.cvat-logo-icon { @@ -35,32 +44,48 @@ .ant-btn.cvat-header-button { color: $text-color; - padding: 0 10px; - margin-right: 10px; + padding: 0 $grid-unit-size; + margin-right: $grid-unit-size; } -.ant-dropdown-trigger.cvat-header-menu-dropdown { +.cvat-header-menu-user-dropdown { display: flex; align-items: center; border-left: 1px solid $border-color-1; - padding: 0 20px; -} -.anticon.cvat-header-account-icon { - > svg { - transform: scale(0.4); + .anticon.cvat-header-dropdown-icon { + &.anticon-caret-down { + font-size: 12px; + } + + font-size: 20px; + padding: $grid-unit-size; } -} -.anticon.cvat-header-menu-icon { - margin-left: 16px; - margin-right: 0; + > div:nth-child(2) { + > div:nth-child(2) { /* org slug */ + font-size: 10px; + } + + max-width: $grid-unit-size * 15; + height: $grid-unit-size * 5; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + align-items: center; + } } -.cvat-header-menu { - > li { - span[role='img'] { - margin-right: $grid-unit-size; - } +.cvat-header-menu-active-organization-item { + ::after { + content: ' \2713'; + float: right; + margin-left: $grid-unit-size; } + + font-weight: bold; +} + +.cvat-modal-organization-selector { + width: 100%; } diff --git a/cvat-ui/src/components/model-runner-modal/detector-runner.tsx b/cvat-ui/src/components/model-runner-modal/detector-runner.tsx index 2c049fe8..706f4421 100644 --- a/cvat-ui/src/components/model-runner-modal/detector-runner.tsx +++ b/cvat-ui/src/components/model-runner-modal/detector-runner.tsx @@ -27,13 +27,14 @@ import { DimensionType } from '../../reducers/interfaces'; interface Props { withCleanup: boolean; models: Model[]; - task: any; - runInference(task: any, model: Model, body: object): void; + labels: any[]; + dimension: DimensionType; + runInference(model: Model, body: object): void; } function DetectorRunner(props: Props): JSX.Element { const { - task, models, withCleanup, runInference, + models, withCleanup, labels, dimension, runInference, } = props; const [modelID, setModelID] = useState(null); @@ -56,7 +57,7 @@ function DetectorRunner(props: Props): JSX.Element { model && (model.type === 'reid' || (model.type === 'detector' && !!Object.keys(mapping).length)); const modelLabels = (isDetector ? model.labels : []).filter((_label: string): boolean => !(_label in mapping)); - const taskLabels = isDetector && !!task ? task.labels.map((label: any): string => label.name) : []; + const taskLabels = isDetector ? labels.map((label: any): string => label.name) : []; if (model && model.type !== 'reid' && !model.labels.length) { notification.warning({ @@ -90,7 +91,7 @@ function DetectorRunner(props: Props): JSX.Element { function renderSelector( value: string, tooltip: string, - labels: string[], + labelsToRender: string[], onChange: (label: string) => void, ): JSX.Element { return ( @@ -111,7 +112,7 @@ function DetectorRunner(props: Props): JSX.Element { return false; }} > - {labels.map( + {labelsToRender.map( (label: string): JSX.Element => ( {label} @@ -129,12 +130,12 @@ function DetectorRunner(props: Props): JSX.Element { Model: { + onUpdateMembershipRole(_role); + }} + value={role} + disabled={role === 'owner'} + > + {role === 'owner' ? ( + Owner + ) : ( + <> + Worker + Supervisor + Maintainer + + )} + + + + {role !== 'owner' ? ( + { + Modal.confirm({ + title: `You are removing "${username}" from this organization`, + content: 'The person will not have access to the organization data anymore. Continue?', + okText: 'Yes, remove', + okButtonProps: { + danger: true, + }, + onOk: () => { + onRemoveMembership(); + }, + }); + }} + /> + ) : null} + + + ); +} + +export default React.memo(MemberItem); diff --git a/cvat-ui/src/components/organization-page/members-list.tsx b/cvat-ui/src/components/organization-page/members-list.tsx new file mode 100644 index 00000000..042fc554 --- /dev/null +++ b/cvat-ui/src/components/organization-page/members-list.tsx @@ -0,0 +1,83 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +import React from 'react'; +import Pagination from 'antd/lib/pagination'; +import Spin from 'antd/lib/spin'; + +import { useDispatch, useSelector } from 'react-redux'; +import { CombinedState } from 'reducers/interfaces'; +import { removeOrganizationMemberAsync, updateOrganizationMemberAsync } from 'actions/organization-actions'; +import MemberItem from './member-item'; + +export interface Props { + organizationInstance: any; + userInstance: any; + fetching: boolean; + pageSize: number; + pageNumber: number; + members: any[]; + setPageNumber: (pageNumber: number) => void; + setPageSize: (pageSize: number) => void; + fetchMembers: () => void; +} + +function MembersList(props: Props): JSX.Element { + const { + organizationInstance, fetching, members, pageSize, pageNumber, fetchMembers, setPageNumber, setPageSize, + } = props; + const dispatch = useDispatch(); + const inviting = useSelector((state: CombinedState) => state.organizations.inviting); + const updatingMember = useSelector((state: CombinedState) => state.organizations.updatingMember); + const removingMember = useSelector((state: CombinedState) => state.organizations.removingMember); + + return fetching || inviting || updatingMember || removingMember ? ( + + ) : ( + <> +
    + {members.map( + (member: any): JSX.Element => ( + { + dispatch( + removeOrganizationMemberAsync(organizationInstance, member, () => { + fetchMembers(); + }), + ); + }} + onUpdateMembershipRole={(role: string) => { + dispatch( + updateOrganizationMemberAsync(organizationInstance, member, role, () => { + fetchMembers(); + }), + ); + }} + /> + ), + )} +
    +
    + { + setPageNumber(current); + setPageSize(newShowSize); + }} + onChange={(current: number) => { + setPageNumber(current); + }} + current={pageNumber} + pageSize={pageSize} + showSizeChanger + showQuickJumper + /> +
    + + ); +} + +export default React.memo(MembersList); diff --git a/cvat-ui/src/components/organization-page/organization-page.tsx b/cvat-ui/src/components/organization-page/organization-page.tsx new file mode 100644 index 00000000..99a696d1 --- /dev/null +++ b/cvat-ui/src/components/organization-page/organization-page.tsx @@ -0,0 +1,86 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +import './styles.scss'; +import React, { useEffect, useState } from 'react'; +import { useSelector } from 'react-redux'; +import Empty from 'antd/lib/empty'; +import Spin from 'antd/lib/spin'; + +import { CombinedState } from 'reducers/interfaces'; +import TopBarComponent from './top-bar'; +import MembersList from './members-list'; + +function fetchMembers( + organizationInstance: any, + page: number, + pageSize: number, + setMembers: (members: any[]) => void, + setFetching: (fetching: boolean) => void, +): void { + setFetching(true); + organizationInstance + .members(page, pageSize) + .then((_members: any[]) => { + setMembers(_members); + }) + .catch(() => {}) + .finally(() => { + setFetching(false); + }); +} + +function OrganizationPage(): JSX.Element | null { + const organization = useSelector((state: CombinedState) => state.organizations.current); + const fetching = useSelector((state: CombinedState) => state.organizations.fetching); + const updating = useSelector((state: CombinedState) => state.organizations.updating); + const user = useSelector((state: CombinedState) => state.auth.user); + const [membersFetching, setMembersFetching] = useState(true); + const [members, setMembers] = useState([]); + const [pageNumber, setPageNumber] = useState(1); + const [pageSize, setPageSize] = useState(10); + + useEffect(() => { + if (organization) { + fetchMembers(organization, pageNumber, pageSize, setMembers, setMembersFetching); + } + }, [pageSize, pageNumber, organization]); + + if (fetching || updating) { + return ; + } + + return ( +
    + {!organization ? ( + + ) : ( + <> + fetchMembers( + organization, pageNumber, pageSize, setMembers, setMembersFetching, + )} + /> + fetchMembers( + organization, pageNumber, pageSize, setMembers, setMembersFetching, + )} + /> + + )} +
    + ); +} + +export default React.memo(OrganizationPage); diff --git a/cvat-ui/src/components/organization-page/styles.scss b/cvat-ui/src/components/organization-page/styles.scss new file mode 100644 index 00000000..891fba31 --- /dev/null +++ b/cvat-ui/src/components/organization-page/styles.scss @@ -0,0 +1,150 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +@import 'base.scss'; + +.cvat-organization-page { + height: 100%; + padding-top: $grid-unit-size * 2; + width: $grid-unit-size * 120; + margin: 0 auto; + + .ant-empty { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + + > div:nth-child(1) { + align-items: flex-end; + + .cvat-organization-top-bar-buttons-block { + text-align: right; + } + + .cvat-organization-top-bar-descriptions { + > div { + > button { + margin-top: $grid-unit-size; + } + } + + > span { + display: block; + } + + > span:nth-child(3) { + max-height: 7em; + display: grid; + overflow: auto; + margin-bottom: $grid-unit-size; + } + + > span:not(.cvat-title), + div { + font-size: 12px; + + span.anticon { + margin-right: $grid-unit-size; + } + + span.anticon[aria-label=edit] { + margin-left: $grid-unit-size; + } + } + } + + .cvat-organization-top-bar-contacts { + button { + margin-top: $grid-unit-size; + float: right; + } + + > span { + display: block; + } + + > span, + div { + font-size: 12px; + + span.anticon { + margin-right: $grid-unit-size; + } + + span.anticon[aria-label=edit] { + margin-left: $grid-unit-size; + } + } + } + } + + > div:nth-child(2) { + overflow: auto; + height: auto; + max-height: 60%; + margin-top: $grid-unit-size; + } + + @media screen and (min-height: 900px) { + > div:nth-child(2) { + max-height: 65%; + } + } + + @media screen and (min-height: 1080px) { + > div:nth-child(2) { + max-height: 70%; + } + } +} + +.cvat-organization-member-item { + border: 1px solid $border-color-1; + border-radius: 3px; + padding: $grid-unit-size; + background: $background-color-1; + margin-top: $grid-unit-size; + align-items: center; + + > .cvat-organization-member-item-username, + .cvat-organization-member-item-name { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + > .cvat-organization-member-item-dates { + font-size: 12px; + display: grid; + } + + > .cvat-organization-member-item-remove { + text-align: center; + } + + > .cvat-organization-member-item-role { + > .ant-select { + width: 100%; + } + } +} + +.cvat-organization-members-pagination-block { + display: flex; + justify-content: center; + margin-top: 8px; + margin-bottom: 8px; +} + +.cvat-remove-organization-submit { + > input { + margin-top: $grid-unit-size; + } +} + +.cvat-organization-invitation-field { + align-items: baseline; +} diff --git a/cvat-ui/src/components/organization-page/top-bar.tsx b/cvat-ui/src/components/organization-page/top-bar.tsx new file mode 100644 index 00000000..8b050426 --- /dev/null +++ b/cvat-ui/src/components/organization-page/top-bar.tsx @@ -0,0 +1,341 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +import React, { useState, useRef, useEffect } from 'react'; +import { useDispatch } from 'react-redux'; +import moment from 'moment'; +import { Row, Col } from 'antd/lib/grid'; +import Text from 'antd/lib/typography/Text'; +import Modal from 'antd/lib/modal'; +import Button from 'antd/lib/button'; +import Space from 'antd/lib/space'; +import Input from 'antd/lib/input'; +import Form from 'antd/lib/form'; +import Select from 'antd/lib/select'; +import { useForm } from 'antd/lib/form/Form'; +import { Store } from 'antd/lib/form/interface'; +import { + CloseOutlined, EditTwoTone, EnvironmentOutlined, MailOutlined, PhoneOutlined, PlusCircleOutlined, +} from '@ant-design/icons'; + +import { + inviteOrganizationMembersAsync, + leaveOrganizationAsync, + removeOrganizationAsync, + updateOrganizationAsync, +} from 'actions/organization-actions'; + +export interface Props { + organizationInstance: any; + userInstance: any; + fetchMembers: () => void; +} + +function OrganizationTopBar(props: Props): JSX.Element { + const { organizationInstance, userInstance, fetchMembers } = props; + const { + owner, createdDate, description, updatedDate, slug, name, contact, + } = organizationInstance; + const { id: userID } = userInstance; + const [form] = useForm(); + const descriptionEditingRef = useRef(null); + const [visibleInviteModal, setVisibleInviteModal] = useState(false); + const [editingDescription, setEditingDescription] = useState(false); + const dispatch = useDispatch(); + + useEffect(() => { + const listener = (event: MouseEvent): void => { + const divElement = descriptionEditingRef.current; + if (editingDescription && divElement && !event.composedPath().includes(divElement)) { + setEditingDescription(false); + } + }; + + window.addEventListener('mousedown', listener); + return () => { + window.removeEventListener('mousedown', listener); + }; + }); + + let organizationName = name; + let organizationDescription = description; + let organizationContacts = contact; + return ( + <> + + +
    + + {`Organization: ${slug} `} + + { + organizationName = value; + }, + onEnd: () => { + organizationInstance.name = organizationName; + dispatch(updateOrganizationAsync(organizationInstance)); + }, + }} + type='secondary' + > + {name} + + {!editingDescription ? ( + + {(description || 'Add description').split('\n').map((val: string, idx: number) => ( + + {val} + {idx === 0 ? setEditingDescription(true)} /> : null} + + ))} + + ) : ( +
    + ) => { + organizationDescription = event.target.value; + }} + /> + +
    + )} +
    + + +
    +
    + + { !contact.phoneNumber ? Add phone number : null } + { + organizationContacts = { + ...organizationInstance.contact, phoneNumber: value, + }; + }, + onEnd: () => { + organizationInstance.contact = organizationContacts; + dispatch(updateOrganizationAsync(organizationInstance)); + }, + }} + > + {contact.phoneNumber} + +
    +
    + + { !contact.email ? Add email : null } + { + organizationContacts = { + ...organizationInstance.contact, email: value, + }; + }, + onEnd: () => { + organizationInstance.contact = organizationContacts; + dispatch(updateOrganizationAsync(organizationInstance)); + }, + }} + > + {contact.email} + +
    +
    + + { !contact.location ? Add location : null } + { + organizationContacts = { + ...organizationInstance.contact, location: value, + }; + }, + onEnd: () => { + organizationInstance.contact = organizationContacts; + dispatch(updateOrganizationAsync(organizationInstance)); + }, + }} + > + {contact.location} + +
    + {`Created ${moment(createdDate).format('MMMM Do YYYY')}`} + {`Updated ${moment(updatedDate).fromNow()}`} +
    + + + + {!(owner && userID === owner.id) ? ( + + ) : null} + {owner && userID === owner.id ? ( + + ) : null} + + + +
    + { + setVisibleInviteModal(false); + form.resetFields(['users']); + }} + destroyOnClose + onOk={() => { + form.submit(); + }} + > + { + dispatch( + inviteOrganizationMembersAsync(organizationInstance, values.users, () => { + fetchMembers(); + }), + ); + setVisibleInviteModal(false); + form.resetFields(['users']); + }} + layout='vertical' + form={form} + > + Invitation list: + + {(fields, { add, remove }) => ( + <> + {fields.map((field: any, index: number) => ( + + + + + + + + + + + + + {index > 0 ? remove(field.name)} /> : null} + + + ))} + + + + + )} + + + + + ); +} + +export default React.memo(OrganizationTopBar); diff --git a/cvat-ui/src/components/shortcuts-dialog/shortcuts-dialog.tsx b/cvat-ui/src/components/shortcuts-dialog/shortcuts-dialog.tsx index b22005a2..cbf4cc6c 100644 --- a/cvat-ui/src/components/shortcuts-dialog/shortcuts-dialog.tsx +++ b/cvat-ui/src/components/shortcuts-dialog/shortcuts-dialog.tsx @@ -45,16 +45,15 @@ function ShortcutsDialog(props: StateToProps & DispatchToProps): JSX.Element | n const { visible, switchShortcutsDialog, jobInstance } = props; const keyMap = getApplicationKeyMap(); - const splitToRows = (data: string[]): JSX.Element[] => - data.map( - (item: string, id: number): JSX.Element => ( - // eslint-disable-next-line react/no-array-index-key - - {item} -
    -
    - ), - ); + const splitToRows = (data: string[]): JSX.Element[] => data.map( + (item: string, id: number): JSX.Element => ( + // eslint-disable-next-line react/no-array-index-key + + {item} +
    +
    + ), + ); const columns = [ { @@ -81,8 +80,7 @@ function ShortcutsDialog(props: StateToProps & DispatchToProps): JSX.Element | n }, ]; - const dimensionType = jobInstance ? jobInstance.task.dimension : undefined; - + const dimensionType = jobInstance?.dimension; const dataSource = Object.keys(keyMap) .filter((key: string) => !dimensionType || keyMap[key].applicable.includes(dimensionType)) .map((key: string, id: number) => ({ diff --git a/cvat-ui/src/components/task-page/job-list.tsx b/cvat-ui/src/components/task-page/job-list.tsx index eb69e074..d90fe984 100644 --- a/cvat-ui/src/components/task-page/job-list.tsx +++ b/cvat-ui/src/components/task-page/job-list.tsx @@ -10,10 +10,12 @@ import { LoadingOutlined, QuestionCircleOutlined, CopyOutlined } from '@ant-desi import { ColumnFilterItem } from 'antd/lib/table/interface'; import Table from 'antd/lib/table'; import Button from 'antd/lib/button'; +import Select from 'antd/lib/select'; import Text from 'antd/lib/typography/Text'; import moment from 'moment'; import copy from 'copy-to-clipboard'; +import { JobStage } from 'reducers/interfaces'; import CVATTooltip from 'components/common/cvat-tooltip'; import UserSelector, { User } from './user-selector'; @@ -28,9 +30,12 @@ function ReviewSummaryComponent({ jobInstance }: { jobInstance: any }): JSX.Elem useEffect(() => { setError(null); jobInstance - .reviewsSummary() - .then((_summary: Record) => { - setSummary(_summary); + .issues(jobInstance.id) + .then((issues: any[]) => { + setSummary({ + issues_unsolved: issues.filter((issue) => !issue.resolved_date).length, + issues_resolved: issues.filter((issue) => issue.resolved_date).length, + }); }) .catch((_error: any) => { // eslint-disable-next-line @@ -59,18 +64,6 @@ function ReviewSummaryComponent({ jobInstance }: { jobInstance: any }): JSX.Elem return ( - - - - - - - -
    - Reviews - {summary.reviews}
    - Average quality - {Number.parseFloat(summary.average_estimated_quality).toFixed(2)}
    Unsolved issues @@ -163,37 +156,61 @@ function JobListComponent(props: Props & RouteComponentProps): JSX.Element { className: 'cvat-text-color cvat-job-item-frames', }, { - title: 'Status', - dataIndex: 'status', - key: 'status', - className: 'cvat-job-item-status', + title: 'Stage', + dataIndex: 'stage', + key: 'stage', + className: 'cvat-job-item-stage', render: (jobInstance: any): JSX.Element => { - const { status } = jobInstance; - let progressColor = null; - if (status === 'completed') { - progressColor = 'cvat-job-completed-color'; - } else if (status === 'validation') { - progressColor = 'cvat-job-validation-color'; - } else { - progressColor = 'cvat-job-annotation-color'; - } + const { stage } = jobInstance; return ( - - {status} +
    + }> - +
    ); }, - sorter: sorter('status.status'), + sorter: sorter('stage.stage'), filters: [ { text: 'annotation', value: 'annotation' }, { text: 'validation', value: 'validation' }, + { text: 'acceptance', value: 'acceptance' }, + ], + onFilter: (value: string | number | boolean, record: any) => record.stage.stage === value, + }, + { + title: 'State', + dataIndex: 'state', + key: 'state', + className: 'cvat-job-item-state', + render: (jobInstance: any): JSX.Element => { + const { state } = jobInstance; + return ( + + {state} + + ); + }, + sorter: sorter('state.state'), + filters: [ + { text: 'new', value: 'new' }, + { text: 'in progress', value: 'in progress' }, { text: 'completed', value: 'completed' }, + { text: 'rejected', value: 'rejected' }, ], - onFilter: (value: string | number | boolean, record: any) => record.status.status === value, + onFilter: (value: string | number | boolean, record: any) => record.state.state === value, }, { title: 'Started on', @@ -217,7 +234,6 @@ function JobListComponent(props: Props & RouteComponentProps): JSX.Element { className='cvat-job-assignee-selector' value={jobInstance.assignee} onSelect={(value: User | null): void => { - // eslint-disable-next-line jobInstance.assignee = value; onJobUpdate(jobInstance); }} @@ -225,35 +241,15 @@ function JobListComponent(props: Props & RouteComponentProps): JSX.Element { ), sorter: sorter('assignee.assignee.username'), filters: collectUsers('assignee'), - onFilter: (value: string | number | boolean, record: any) => - (record.assignee.assignee?.username || false) === value, - }, - { - title: 'Reviewer', - dataIndex: 'reviewer', - key: 'reviewer', - className: 'cvat-job-item-reviewer', - render: (jobInstance: any): JSX.Element => ( - { - // eslint-disable-next-line - jobInstance.reviewer = value; - onJobUpdate(jobInstance); - }} - /> - ), - sorter: sorter('reviewer.reviewer.username'), - filters: collectUsers('reviewer'), - onFilter: (value: string | number | boolean, record: any) => - (record.reviewer.reviewer?.username || false) === value, + onFilter: (value: string | number | boolean, record: any) => ( + record.assignee.assignee?.username || false + ) === value, }, ]; let completed = 0; const data = jobs.reduce((acc: any[], job: any) => { - if (job.status === 'completed') { + if (job.stage === 'acceptance') { completed++; } @@ -264,11 +260,11 @@ function JobListComponent(props: Props & RouteComponentProps): JSX.Element { key: job.id, job: job.id, frames: `${job.startFrame}-${job.stopFrame}`, - status: job, + state: job, + stage: job, started: `${created.format('MMMM Do YYYY HH:MM')}`, duration: `${moment.duration(now.diff(created)).humanize()}`, assignee: job, - reviewer: job, }); return acc; @@ -301,10 +297,6 @@ function JobListComponent(props: Props & RouteComponentProps): JSX.Element { serialized += `\t assigned to "${job.assignee.username}"`; } - if (job.reviewer) { - serialized += `\t reviewed by "${job.reviewer.username}"`; - } - serialized += '\n'; } copy(serialized); diff --git a/cvat-ui/src/components/task-page/styles.scss b/cvat-ui/src/components/task-page/styles.scss index 3b6d6a84..27034d76 100644 --- a/cvat-ui/src/components/task-page/styles.scss +++ b/cvat-ui/src/components/task-page/styles.scss @@ -117,13 +117,9 @@ } } -.cvat-job-item-status { - .cvat-job-annotation-color, - .cvat-job-validation-color, - .cvat-job-completed-color { - span { - margin-left: $grid-unit-size; - } +.cvat-job-item-stage { + .ant-select { + margin-right: $grid-unit-size; } } @@ -140,15 +136,3 @@ } } } - -.cvat-job-completed-color { - color: $completed-progress-color; -} - -.cvat-job-validation-color { - color: $inprogress-progress-color; -} - -.cvat-job-annotation-color { - color: $pending-progress-color; -} diff --git a/cvat-ui/src/components/task-page/task-page.tsx b/cvat-ui/src/components/task-page/task-page.tsx index 627dbf9d..cfd52603 100644 --- a/cvat-ui/src/components/task-page/task-page.tsx +++ b/cvat-ui/src/components/task-page/task-page.tsx @@ -52,9 +52,9 @@ class TaskPageComponent extends React.PureComponent { } public render(): JSX.Element { - const { task, updating } = this.props; + const { task, updating, fetching } = this.props; - if (task === null) { + if (task === null || fetching) { return ; } @@ -71,6 +71,7 @@ class TaskPageComponent extends React.PureComponent { return ( <> + { updating ? : null } { - {updating && } ); } diff --git a/cvat-ui/src/components/task-page/user-selector.tsx b/cvat-ui/src/components/task-page/user-selector.tsx index 43b25f9e..7bb5ffbd 100644 --- a/cvat-ui/src/components/task-page/user-selector.tsx +++ b/cvat-ui/src/components/task-page/user-selector.tsx @@ -89,7 +89,6 @@ export default function UserSelector(props: Props): JSX.Element { }; const handleSelect = (_value: SelectValue): void => { - setSearchPhrase(users.filter((user) => user.id === +_value)[0].username); const user = _value ? users.filter((_user) => _user.id === +_value)[0] : null; if ((user?.id || null) !== (value?.id || null)) { onSelect(user); @@ -101,7 +100,9 @@ export default function UserSelector(props: Props): JSX.Element { if (!users.filter((user) => user.id === value.id).length) { core.users.get({ id: value.id }).then((result: User[]) => { const [user] = result; - setUsers([...users, user]); + if (user) { + setUsers([...users, user]); + } }); } diff --git a/cvat-ui/src/components/tasks-page/styles.scss b/cvat-ui/src/components/tasks-page/styles.scss index ce360634..669307b1 100644 --- a/cvat-ui/src/components/tasks-page/styles.scss +++ b/cvat-ui/src/components/tasks-page/styles.scss @@ -14,12 +14,10 @@ .cvat-tasks-page-top-bar { > div:nth-child(1) { > div:nth-child(1) { - width: 100%; - > div:nth-child(1) { display: flex; - span { + > .cvat-title { margin-right: $grid-unit-size; } } diff --git a/cvat-ui/src/components/tasks-page/task-item.tsx b/cvat-ui/src/components/tasks-page/task-item.tsx index e8dae76a..0c0859b7 100644 --- a/cvat-ui/src/components/tasks-page/task-item.tsx +++ b/cvat-ui/src/components/tasks-page/task-item.tsx @@ -72,7 +72,7 @@ class TaskItemComponent extends React.PureComponent job.status === 'completed').length; + const numOfCompleted = taskInstance.jobs.filter((job: any): boolean => job.stage === 'acceptance').length; // Progress appearance depends on number of jobs let progressColor = null; diff --git a/cvat-ui/src/consts.ts b/cvat-ui/src/consts.ts index 27da2c90..92b2ed07 100644 --- a/cvat-ui/src/consts.ts +++ b/cvat-ui/src/consts.ts @@ -10,8 +10,8 @@ const GITTER_URL = 'https://gitter.im/opencv-cvat'; const GITTER_PUBLIC_URL = 'https://gitter.im/opencv-cvat/public'; const FORUM_URL = 'https://software.intel.com/en-us/forums/intel-distribution-of-openvino-toolkit'; const GITHUB_URL = 'https://github.com/openvinotoolkit/cvat'; -const GITHUB_IMAGE_URL = - 'https://github.com/openvinotoolkit/cvat/raw/develop/site/content/en/images/cvat.jpg'; +const GITHUB_IMAGE_URL = 'https://github.com/openvinotoolkit/cvat/raw/develop/site/content/en/images/cvat.jpg'; +const GUIDE_URL = 'https://openvinotoolkit.github.io/cvat/docs'; const SHARE_MOUNT_GUIDE_URL = 'https://openvinotoolkit.github.io/cvat/docs/administration/basics/installation/#share-path'; const NUCLIO_GUIDE = @@ -94,6 +94,7 @@ export default { FORUM_URL, GITHUB_URL, GITHUB_IMAGE_URL, + GUIDE_URL, SHARE_MOUNT_GUIDE_URL, CANVAS_BACKGROUND_COLORS, NEW_LABEL_COLOR, diff --git a/cvat-ui/src/containers/annotation-page/top-bar/annotation-menu.tsx b/cvat-ui/src/containers/annotation-page/top-bar/annotation-menu.tsx index bd212159..6e8d6f8c 100644 --- a/cvat-ui/src/containers/annotation-page/top-bar/annotation-menu.tsx +++ b/cvat-ui/src/containers/annotation-page/top-bar/annotation-menu.tsx @@ -8,33 +8,31 @@ import { connect } from 'react-redux'; // eslint-disable-next-line import/no-extraneous-dependencies import { MenuInfo } from 'rc-menu/lib/interface'; -import { CombinedState, TaskStatus } from 'reducers/interfaces'; +import { CombinedState, JobStage } from 'reducers/interfaces'; import AnnotationMenuComponent, { Actions } from 'components/annotation-page/top-bar/annotation-menu'; import { updateJobAsync } from 'actions/tasks-actions'; import { uploadJobAnnotationsAsync, saveAnnotationsAsync, - switchRequestReviewDialog as switchRequestReviewDialogAction, - switchSubmitReviewDialog as switchSubmitReviewDialogAction, setForceExitAnnotationFlag as setForceExitAnnotationFlagAction, removeAnnotationsAsync as removeAnnotationsAsyncAction, } from 'actions/annotation-actions'; import { exportActions } from 'actions/export-actions'; +import getCore from 'cvat-core-wrapper'; + +const core = getCore(); interface StateToProps { annotationFormats: any; jobInstance: any; stopFrame: number; loadActivity: string | null; - user: any; } interface DispatchToProps { loadAnnotations(job: any, loader: any, file: File): void; - showExportModal(task: any): void; - removeAnnotations(startnumber:number, endnumber:number, delTrackKeyframesOnly:boolean): void; - switchRequestReviewDialog(visible: boolean): void; - switchSubmitReviewDialog(visible: boolean): void; + showExportModal(jobInstance: any): void; + removeAnnotations(startnumber: number, endnumber: number, delTrackKeyframesOnly: boolean): void; setForceExitAnnotationFlag(forceExit: boolean): void; saveAnnotations(jobInstance: any, afterSave?: () => void): void; updateJob(jobInstance: any): void; @@ -53,10 +51,9 @@ function mapStateToProps(state: CombinedState): StateToProps { tasks: { activities: { loads }, }, - auth: { user }, } = state; - const taskID = jobInstance.task.id; + const taskID = jobInstance.taskId; const jobID = jobInstance.id; return { @@ -64,7 +61,6 @@ function mapStateToProps(state: CombinedState): StateToProps { jobInstance, stopFrame, annotationFormats, - user, }; } @@ -73,18 +69,12 @@ function mapDispatchToProps(dispatch: any): DispatchToProps { loadAnnotations(job: any, loader: any, file: File): void { dispatch(uploadJobAnnotationsAsync(job, loader, file)); }, - showExportModal(task: any): void { - dispatch(exportActions.openExportModal(task)); + showExportModal(jobInstance: any): void { + dispatch(exportActions.openExportModal(jobInstance)); }, removeAnnotations(startnumber: number, endnumber: number, delTrackKeyframesOnly:boolean) { dispatch(removeAnnotationsAsyncAction(startnumber, endnumber, delTrackKeyframesOnly)); }, - switchRequestReviewDialog(visible: boolean): void { - dispatch(switchRequestReviewDialogAction(visible)); - }, - switchSubmitReviewDialog(visible: boolean): void { - dispatch(switchSubmitReviewDialogAction(visible)); - }, setForceExitAnnotationFlag(forceExit: boolean): void { dispatch(setForceExitAnnotationFlagAction(forceExit)); }, @@ -103,15 +93,12 @@ function AnnotationMenuContainer(props: Props): JSX.Element { const { jobInstance, stopFrame, - user, annotationFormats: { loaders, dumpers }, history, loadActivity, loadAnnotations, showExportModal, removeAnnotations, - switchRequestReviewDialog, - switchSubmitReviewDialog, setForceExitAnnotationFlag, saveAnnotations, updateJob, @@ -127,29 +114,29 @@ function AnnotationMenuContainer(props: Props): JSX.Element { const onClickMenu = (params: MenuInfo): void => { const [action] = params.keyPath; if (action === Actions.EXPORT_TASK_DATASET) { - showExportModal(jobInstance.task); - } else if (action === Actions.REQUEST_REVIEW) { - switchRequestReviewDialog(true); - } else if (action === Actions.SUBMIT_REVIEW) { - switchSubmitReviewDialog(true); + showExportModal(jobInstance); } else if (action === Actions.RENEW_JOB) { - jobInstance.status = TaskStatus.ANNOTATION; + jobInstance.state = core.enums.JobState.NEW; + jobInstance.stage = JobStage.ANNOTATION; updateJob(jobInstance); - history.push(`/tasks/${jobInstance.task.id}`); + window.location.reload(); } else if (action === Actions.FINISH_JOB) { - jobInstance.status = TaskStatus.COMPLETED; + jobInstance.stage = JobStage.ACCEPTANCE; + jobInstance.state = core.enums.JobState.COMPLETED; updateJob(jobInstance); - history.push(`/tasks/${jobInstance.task.id}`); + history.push(`/tasks/${jobInstance.taskId}`); } else if (action === Actions.OPEN_TASK) { - history.push(`/tasks/${jobInstance.task.id}`); + history.push(`/tasks/${jobInstance.taskId}`); + } else if (action.startsWith('state:')) { + [, jobInstance.state] = action.split(':'); + updateJob(jobInstance); + window.location.reload(); } }; - const isReviewer = jobInstance.reviewer?.id === user.id || user.isSuperuser; - return ( ); diff --git a/cvat-ui/src/containers/annotation-page/top-bar/statistics-modal.tsx b/cvat-ui/src/containers/annotation-page/top-bar/statistics-modal.tsx deleted file mode 100644 index 1dff816e..00000000 --- a/cvat-ui/src/containers/annotation-page/top-bar/statistics-modal.tsx +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (C) 2020-2021 Intel Corporation -// -// SPDX-License-Identifier: MIT - -import React from 'react'; -import { connect } from 'react-redux'; -import { CombinedState } from 'reducers/interfaces'; -import { showStatistics } from 'actions/annotation-actions'; -import StatisticsModalComponent from 'components/annotation-page/top-bar/statistics-modal'; - -interface StateToProps { - visible: boolean; - collecting: boolean; - data: any; - jobInstance: any; - jobStatus: string; - savingJobStatus: boolean; -} - -interface DispatchToProps { - closeStatistics(): void; -} - -function mapStateToProps(state: CombinedState): StateToProps { - const { - annotation: { - statistics: { visible, collecting, data }, - job: { - saving: savingJobStatus, - instance: { status: jobStatus }, - instance: jobInstance, - }, - }, - } = state; - - return { - visible, - collecting, - data, - jobInstance, - jobStatus, - savingJobStatus, - }; -} - -function mapDispatchToProps(dispatch: any): DispatchToProps { - return { - closeStatistics(): void { - dispatch(showStatistics(false)); - }, - }; -} - -type Props = StateToProps & DispatchToProps; - -class StatisticsModalContainer extends React.PureComponent { - public render(): JSX.Element { - const { - jobInstance, visible, collecting, data, closeStatistics, jobStatus, savingJobStatus, - } = this.props; - - return ( - - ); - } -} - -export default connect(mapStateToProps, mapDispatchToProps)(StatisticsModalContainer); diff --git a/cvat-ui/src/containers/annotation-page/top-bar/top-bar.tsx b/cvat-ui/src/containers/annotation-page/top-bar/top-bar.tsx index 94c95c50..b09c82fd 100644 --- a/cvat-ui/src/containers/annotation-page/top-bar/top-bar.tsx +++ b/cvat-ui/src/containers/annotation-page/top-bar/top-bar.tsx @@ -214,8 +214,7 @@ class AnnotationTopBarContainer extends React.PureComponent { const self = this; this.unblock = history.block((location: any) => { const { forceExit } = self.props; - const { task, id: jobID } = jobInstance; - const { id: taskID } = task; + const { id: jobID, taskId: taskID } = jobInstance; if ( jobInstance.annotations.hasUnsavedChanges() && @@ -506,7 +505,7 @@ class AnnotationTopBarContainer extends React.PureComponent { if (stillPlaying) { if (isAbleToChangeFrame()) { onChangeFrame(frameNumber + 1 + framesSkipped, stillPlaying, framesSkipped + 1); - } else if (jobInstance.task.dimension === DimensionType.DIM_2D) { + } else if (jobInstance.dimension === DimensionType.DIM_2D) { onSwitchPlay(false); } else { setTimeout(() => this.play(), frameDelay); diff --git a/cvat-ui/src/icons.tsx b/cvat-ui/src/icons.tsx index e43f2d69..6665d032 100644 --- a/cvat-ui/src/icons.tsx +++ b/cvat-ui/src/icons.tsx @@ -5,7 +5,6 @@ import React from 'react'; import SVGCVATLogo from './assets/cvat-logo.svg'; -import SVGAccountIcon from './assets/account-icon.svg'; import SVGEmptyTasksIcon from './assets/empty-tasks-icon.svg'; import SVGMenuIcon from './assets/menu-icon.svg'; import SVGCursorIcon from './assets/cursor-icon.svg'; @@ -55,7 +54,6 @@ import SVGCVATS3Provider from './assets/S3.svg'; import SVGCVATGoogleCloudProvider from './assets/google-cloud.svg'; export const CVATLogo = React.memo((): JSX.Element => ); -export const AccountIcon = React.memo((): JSX.Element => ); export const EmptyTasksIcon = React.memo((): JSX.Element => ); export const MenuIcon = React.memo((): JSX.Element => ); export const CursorIcon = React.memo((): JSX.Element => ); diff --git a/cvat-ui/src/index.tsx b/cvat-ui/src/index.tsx index 8a022366..c25936d5 100644 --- a/cvat-ui/src/index.tsx +++ b/cvat-ui/src/index.tsx @@ -21,6 +21,7 @@ import logger, { LogType } from 'cvat-logger'; import createCVATStore, { getCVATStore } from 'cvat-store'; import { KeyMap } from 'utils/mousetrap-react'; import createRootReducer from 'reducers/root-reducer'; +import { getOrganizationsAsync } from 'actions/organization-actions'; import { resetErrors, resetMessages } from './actions/notification-actions'; import { CombinedState, NotificationsState } from './reducers/interfaces'; @@ -34,6 +35,8 @@ interface StateToProps { modelsFetching: boolean; userInitialized: boolean; userFetching: boolean; + organizationsFetching: boolean; + organizationsInitialized: boolean; aboutInitialized: boolean; aboutFetching: boolean; formatsInitialized: boolean; @@ -62,6 +65,7 @@ interface DispatchToProps { loadUserAgreements: () => void; switchSettingsDialog: () => void; loadAuthActions: () => void; + loadOrganizations: () => void; } function mapStateToProps(state: CombinedState): StateToProps { @@ -72,10 +76,13 @@ function mapStateToProps(state: CombinedState): StateToProps { const { shortcuts } = state; const { userAgreements } = state; const { models } = state; + const { organizations } = state; return { userInitialized: auth.initialized, userFetching: auth.fetching, + organizationsFetching: organizations.fetching, + organizationsInitialized: organizations.initialized, pluginsInitialized: plugins.initialized, pluginsFetching: plugins.fetching, modelsInitialized: models.initialized, @@ -110,6 +117,7 @@ function mapDispatchToProps(dispatch: any): DispatchToProps { switchShortcutsDialog: (): void => dispatch(shortcutsActions.switchShortcutsDialog()), switchSettingsDialog: (): void => dispatch(switchSettingsDialog()), loadAuthActions: (): void => dispatch(loadAuthActionsAsync()), + loadOrganizations: (): void => dispatch(getOrganizationsAsync()), }; } diff --git a/cvat-ui/src/reducers/annotation-reducer.ts b/cvat-ui/src/reducers/annotation-reducer.ts index 028db926..cff2122b 100644 --- a/cvat-ui/src/reducers/annotation-reducer.ts +++ b/cvat-ui/src/reducers/annotation-reducer.ts @@ -8,14 +8,15 @@ import { AuthActionTypes } from 'actions/auth-actions'; import { BoundariesActionTypes } from 'actions/boundaries-actions'; import { Canvas, CanvasMode } from 'cvat-canvas-wrapper'; import { Canvas3d } from 'cvat-canvas3d-wrapper'; + import { ActiveControl, AnnotationState, ContextMenuType, DimensionType, + JobStage, ObjectType, ShapeType, - TaskStatus, Workspace, } from './interfaces'; @@ -111,8 +112,6 @@ const defaultState: AnnotationState = { sidebarCollapsed: false, appearanceCollapsed: false, filtersPanelVisible: false, - requestReviewDialogVisible: false, - submitReviewDialogVisible: false, predictor: { enabled: false, error: null, @@ -157,11 +156,11 @@ export default (state = defaultState, action: AnyAction): AnnotationState => { maxZ, } = action.payload; - const isReview = job.status === TaskStatus.REVIEW; + const isReview = job.stage === JobStage.REVIEW; let workspaceSelected = Workspace.STANDARD; let activeShapeType = ShapeType.RECTANGLE; - if (job.task.dimension === DimensionType.DIM_3D) { + if (job.dimension === DimensionType.DIM_3D) { workspaceSelected = Workspace.STANDARD3D; activeShapeType = ShapeType.CUBOID; } @@ -177,14 +176,12 @@ export default (state = defaultState, action: AnyAction): AnnotationState => { openTime, fetching: false, instance: job, - labels: job.task.labels, - attributes: job.task.labels.reduce((acc: Record, label: any): Record< - number, - any[] - > => { - acc[label.id] = label.attributes; - return acc; - }, {}), + labels: job.labels, + attributes: job.labels + .reduce((acc: Record, label: any): Record => { + acc[label.id] = label.attributes; + return acc; + }, {}), }, annotations: { ...state.annotations, @@ -209,13 +206,13 @@ export default (state = defaultState, action: AnyAction): AnnotationState => { }, drawing: { ...state.drawing, - activeLabelID: job.task.labels.length ? job.task.labels[0].id : null, - activeObjectType: job.task.mode === 'interpolation' ? ObjectType.TRACK : ObjectType.SHAPE, + activeLabelID: job.labels.length ? job.labels[0].id : null, + activeObjectType: job.mode === 'interpolation' ? ObjectType.TRACK : ObjectType.SHAPE, activeShapeType, }, canvas: { ...state.canvas, - instance: job.task.dimension === DimensionType.DIM_2D ? new Canvas() : new Canvas3d(), + instance: job.dimension === DimensionType.DIM_2D ? new Canvas() : new Canvas3d(), }, colors, workspace: isReview ? Workspace.REVIEW_WORKSPACE : workspaceSelected, @@ -1073,20 +1070,6 @@ export default (state = defaultState, action: AnyAction): AnnotationState => { }, }; } - case AnnotationActionTypes.SWITCH_REQUEST_REVIEW_DIALOG: { - const { visible } = action.payload; - return { - ...state, - requestReviewDialogVisible: visible, - }; - } - case AnnotationActionTypes.SWITCH_SUBMIT_REVIEW_DIALOG: { - const { visible } = action.payload; - return { - ...state, - submitReviewDialogVisible: visible, - }; - } case AnnotationActionTypes.SET_FORCE_EXIT_ANNOTATION_PAGE_FLAG: { const { forceExit } = action.payload; return { diff --git a/cvat-ui/src/reducers/export-reducer.ts b/cvat-ui/src/reducers/export-reducer.ts index a7a02352..9d63d55e 100644 --- a/cvat-ui/src/reducers/export-reducer.ts +++ b/cvat-ui/src/reducers/export-reducer.ts @@ -34,31 +34,33 @@ export default (state: ExportState = defaultState, action: ExportActions): Expor case ExportActionTypes.EXPORT_DATASET: { const { instance, format } = action.payload; const activities = deepCopy(instance instanceof core.classes.Project ? state.projects : state.tasks); + const instanceId = instance instanceof core.classes.Project || + instance instanceof core.classes.Task ? instance.id : instance.taskId; - activities[instance.id] = - instance.id in activities && !activities[instance.id].includes(format) ? - [...activities[instance.id], format] : - activities[instance.id] || [format]; + activities[instanceId] = + instanceId in activities && !activities[instanceId].includes(format) ? + [...activities[instanceId], format] : + activities[instanceId] || [format]; return { ...state, - tasks: instance instanceof core.classes.Task ? activities : state.tasks, - projects: instance instanceof core.classes.Project ? activities : state.projects, + ...(instance instanceof core.classes.Project ? { projects: activities } : { tasks: activities }), }; } case ExportActionTypes.EXPORT_DATASET_FAILED: case ExportActionTypes.EXPORT_DATASET_SUCCESS: { const { instance, format } = action.payload; const activities = deepCopy(instance instanceof core.classes.Project ? state.projects : state.tasks); + const instanceId = instance instanceof core.classes.Project || + instance instanceof core.classes.Task ? instance.id : instance.taskId; - activities[instance.id] = activities[instance.id].filter( + activities[instanceId] = activities[instanceId].filter( (exporterName: string): boolean => exporterName !== format, ); return { ...state, - tasks: instance instanceof core.classes.Task ? activities : state.tasks, - projects: instance instanceof core.classes.Project ? activities : state.projects, + ...(instance instanceof core.classes.Project ? { projects: activities } : { tasks: activities }), }; } default: diff --git a/cvat-ui/src/reducers/interfaces.ts b/cvat-ui/src/reducers/interfaces.ts index c5d61bda..b0fe3f10 100644 --- a/cvat-ui/src/reducers/interfaces.ts +++ b/cvat-ui/src/reducers/interfaces.ts @@ -281,6 +281,12 @@ export enum TaskStatus { COMPLETED = 'completed', } +export enum JobStage { + ANNOTATION = 'annotation', + REVIEW = 'validation', + ACCEPTANCE = 'acceptance', +} + export enum RQStatus { unknown = 'unknown', queued = 'queued', @@ -307,8 +313,8 @@ export interface ModelsState { inferences: { [index: number]: ActiveInference; }; - visibleRunWindows: boolean; - activeRunTask: any; + modelRunnerIsVisible: boolean; + modelRunnerTask: any; } export interface ErrorState { @@ -349,6 +355,9 @@ export interface NotificationsState { importing: null | ErrorState; moving: null | ErrorState; }; + jobs: { + updating: null | ErrorState; + }; formats: { fetching: null | ErrorState; }; @@ -399,7 +408,6 @@ export interface NotificationsState { fetching: null | ErrorState; }; review: { - initialization: null | ErrorState; finishingIssue: null | ErrorState; resolvingIssue: null | ErrorState; reopeningIssue: null | ErrorState; @@ -424,6 +432,17 @@ export interface NotificationsState { updating: null | ErrorState; deleting: null | ErrorState; }; + organizations: { + fetching: null | ErrorState; + creating: null | ErrorState; + updating: null | ErrorState; + activation: null | ErrorState; + deleting: null | ErrorState; + leaving: null | ErrorState; + inviting: null | ErrorState; + updatingMembership: null | ErrorState; + removingMembership: null | ErrorState; + }; }; messages: { tasks: { @@ -600,8 +619,6 @@ export interface AnnotationState { }; colors: any[]; filtersPanelVisible: boolean; - requestReviewDialogVisible: boolean; - submitReviewDialogVisible: boolean; sidebarCollapsed: boolean; appearanceCollapsed: boolean; workspace: Workspace; @@ -700,20 +717,31 @@ export enum ReviewStatus { } export interface ReviewState { - reviews: any[]; issues: any[]; frameIssues: any[]; latestComments: string[]; - activeReview: any | null; newIssuePosition: number[] | null; issuesHidden: boolean; issuesResolvedHidden: boolean; fetching: { - reviewId: number | null; + jobId: number | null; issueId: number | null; }; } +export interface OrganizationState { + list: any[]; + current: any | null; + initialized: boolean; + fetching: boolean; + creating: boolean; + updating: boolean; + inviting: boolean; + leaving: boolean; + removingMember: boolean; + updatingMember: boolean; +} + export interface CombinedState { auth: AuthState; projects: ProjectsState; @@ -732,6 +760,7 @@ export interface CombinedState { export: ExportState; import: ImportState; cloudStorages: CloudStoragesState; + organizations: OrganizationState; } export enum DimensionType { diff --git a/cvat-ui/src/reducers/models-reducer.ts b/cvat-ui/src/reducers/models-reducer.ts index c55005f1..5aa94e7c 100644 --- a/cvat-ui/src/reducers/models-reducer.ts +++ b/cvat-ui/src/reducers/models-reducer.ts @@ -1,4 +1,4 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -15,8 +15,8 @@ const defaultState: ModelsState = { detectors: [], trackers: [], reid: [], - visibleRunWindows: false, - activeRunTask: null, + modelRunnerIsVisible: false, + modelRunnerTask: null, inferences: {}, }; @@ -50,15 +50,15 @@ export default function (state = defaultState, action: ModelsActions | AuthActio case ModelsActionTypes.SHOW_RUN_MODEL_DIALOG: { return { ...state, - visibleRunWindows: true, - activeRunTask: action.payload.taskInstance, + modelRunnerIsVisible: true, + modelRunnerTask: action.payload.taskInstance, }; } case ModelsActionTypes.CLOSE_RUN_MODEL_DIALOG: { return { ...state, - visibleRunWindows: false, - activeRunTask: null, + modelRunnerIsVisible: false, + modelRunnerTask: null, }; } case ModelsActionTypes.GET_INFERENCE_STATUS_SUCCESS: { diff --git a/cvat-ui/src/reducers/notifications-reducer.ts b/cvat-ui/src/reducers/notifications-reducer.ts index d35b3046..788eb436 100644 --- a/cvat-ui/src/reducers/notifications-reducer.ts +++ b/cvat-ui/src/reducers/notifications-reducer.ts @@ -19,6 +19,7 @@ import { ReviewActionTypes } from 'actions/review-actions'; import { ExportActionTypes } from 'actions/export-actions'; import { ImportActionTypes } from 'actions/import-actions'; import { CloudStorageActionTypes } from 'actions/cloud-storage-actions'; +import { OrganizationActionsTypes } from 'actions/organization-actions'; import getCore from 'cvat-core-wrapper'; import { NotificationsState } from './interfaces'; @@ -57,6 +58,9 @@ const defaultState: NotificationsState = { importing: null, moving: null, }, + jobs: { + updating: null, + }, formats: { fetching: null, }, @@ -109,7 +113,6 @@ const defaultState: NotificationsState = { review: { commentingIssue: null, finishingIssue: null, - initialization: null, reopeningIssue: null, resolvingIssue: null, submittingReview: null, @@ -132,6 +135,17 @@ const defaultState: NotificationsState = { updating: null, deleting: null, }, + organizations: { + fetching: null, + creating: null, + updating: null, + activation: null, + deleting: null, + leaving: null, + inviting: null, + updatingMembership: null, + removingMembership: null, + }, }, messages: { tasks: { @@ -517,6 +531,23 @@ export default function (state = defaultState, action: AnyAction): Notifications }, }; } + case TasksActionTypes.UPDATE_JOB_FAILED: { + const jobID = action.payload.jobInstance.id; + return { + ...state, + errors: { + ...state.errors, + jobs: { + ...state.errors.jobs, + updating: { + message: `Could not update job with ID #${jobID}`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-update-job-failed', + }, + }, + }, + }; + } case ProjectsActionTypes.GET_PROJECTS_FAILED: { return { ...state, @@ -698,6 +729,10 @@ export default function (state = defaultState, action: AnyAction): Notifications }; } case ModelsActionTypes.FETCH_META_FAILED: { + if (action.payload.error.toString().includes('status code 403')) { + return state; + } + return { ...state, errors: { @@ -970,7 +1005,7 @@ export default function (state = defaultState, action: AnyAction): Notifications const { id: jobID, - task: { id: taskID }, + taskId: taskID, } = job; return { @@ -1125,21 +1160,6 @@ export default function (state = defaultState, action: AnyAction): Notifications }, }; } - case ReviewActionTypes.INITIALIZE_REVIEW_FAILED: { - return { - ...state, - errors: { - ...state.errors, - review: { - ...state.errors.review, - initialization: { - message: 'Could not initialize review session', - reason: action.payload.error.toString(), - }, - }, - }, - }; - } case ReviewActionTypes.FINISH_ISSUE_FAILED: { return { ...state, @@ -1208,7 +1228,7 @@ export default function (state = defaultState, action: AnyAction): Notifications review: { ...state.errors.review, submittingReview: { - message: 'Could not submit review session to the server', + message: `Could not submit review for the job ${action.payload.jobId}`, reason: action.payload.error.toString(), }, }, @@ -1395,6 +1415,168 @@ export default function (state = defaultState, action: AnyAction): Notifications }, }; } + case OrganizationActionsTypes.GET_ORGANIZATIONS_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + fetching: { + message: 'Could not fetch organizations list', + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-fetch-organizations-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.CREATE_ORGANIZATION_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + creating: { + message: `Could not create organization ${action.payload.slug}`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-create-organization-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.UPDATE_ORGANIZATION_FAILED: { + const { slug } = action.payload; + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + updating: { + message: `Could not update organization "${slug}"`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-update-organization-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.ACTIVATE_ORGANIZATION_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + activation: { + message: `Could not activate organization ${action.payload.slug || ''}`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-activate-organization-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.REMOVE_ORGANIZATION_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + deleting: { + message: `Could not remove organization ${action.payload.slug}`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-remove-organization-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBERS_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + inviting: { + message: 'Could not invite organization members', + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-invite-organization-members-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBER_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + inviting: { + message: `Could not invite this member "${action.payload.email}" to the organization`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-invite-organization-member-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.LEAVE_ORGANIZATION_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + leaving: { + message: 'Could not leave the organization', + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-leave-organization-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.REMOVE_ORGANIZATION_MEMBER_FAILED: { + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + removingMembership: { + message: `Could not remove member "${action.payload.username}" from the organization`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-remove-organization-member-failed', + }, + }, + }, + }; + } + case OrganizationActionsTypes.UPDATE_ORGANIZATION_MEMBER_FAILED: { + const { role, username } = action.payload; + return { + ...state, + errors: { + ...state.errors, + organizations: { + ...state.errors.organizations, + updatingMembership: { + message: `Could not assign role "${role}" to the user "${username}"`, + reason: action.payload.error.toString(), + className: 'cvat-notification-notice-update-organization-membership-failed', + }, + }, + }, + }; + } case BoundariesActionTypes.RESET_AFTER_ERROR: case AuthActionTypes.LOGOUT_SUCCESS: { return { ...defaultState }; diff --git a/cvat-ui/src/reducers/organizations-reducer.ts b/cvat-ui/src/reducers/organizations-reducer.ts new file mode 100644 index 00000000..9f7248e5 --- /dev/null +++ b/cvat-ui/src/reducers/organizations-reducer.ts @@ -0,0 +1,176 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +import { AuthActions, AuthActionTypes } from 'actions/auth-actions'; +import { OrganizationActions, OrganizationActionsTypes } from 'actions/organization-actions'; +import { OrganizationState } from './interfaces'; + +const defaultState: OrganizationState = { + list: [], + current: null, + initialized: false, + fetching: false, + creating: false, + updating: false, + inviting: false, + leaving: false, + removingMember: false, + updatingMember: false, +}; + +export default function ( + state: OrganizationState = defaultState, + action: OrganizationActions | AuthActions, +): OrganizationState { + switch (action.type) { + case OrganizationActionsTypes.GET_ORGANIZATIONS: { + return { + ...state, + fetching: true, + }; + } + case OrganizationActionsTypes.GET_ORGANIZATIONS_SUCCESS: + return { + ...state, + fetching: false, + initialized: true, + list: action.payload.list, + }; + case OrganizationActionsTypes.GET_ORGANIZATIONS_FAILED: + return { + ...state, + fetching: false, + }; + case OrganizationActionsTypes.ACTIVATE_ORGANIZATION_SUCCESS: { + return { + ...state, + fetching: false, + current: action.payload.organization, + }; + } + case OrganizationActionsTypes.ACTIVATE_ORGANIZATION_FAILED: { + return { + ...state, + fetching: false, + }; + } + case OrganizationActionsTypes.CREATE_ORGANIZATION: { + return { + ...state, + creating: true, + }; + } + case OrganizationActionsTypes.CREATE_ORGANIZATION_SUCCESS: { + return { + ...state, + list: [...state.list, action.payload.organization], + creating: false, + }; + } + case OrganizationActionsTypes.CREATE_ORGANIZATION_FAILED: { + return { + ...state, + creating: false, + }; + } + case OrganizationActionsTypes.UPDATE_ORGANIZATION: { + return { + ...state, + updating: true, + }; + } + case OrganizationActionsTypes.UPDATE_ORGANIZATION_SUCCESS: { + const { organization } = action.payload; + return { + ...state, + list: [...state.list.filter((org) => org.slug !== organization.slug), organization], + current: state.current && state.current.slug === organization.slug ? organization : state.current, + updating: false, + }; + } + case OrganizationActionsTypes.UPDATE_ORGANIZATION_FAILED: { + return { + ...state, + updating: false, + }; + } + case OrganizationActionsTypes.REMOVE_ORGANIZATION: { + return { + ...state, + fetching: true, + }; + } + case OrganizationActionsTypes.REMOVE_ORGANIZATION_SUCCESS: { + return { + ...state, + current: null, + list: state.list.filter((org: any) => org.slug !== action.payload.slug), + fetching: false, + }; + } + case OrganizationActionsTypes.REMOVE_ORGANIZATION_FAILED: { + return { + ...state, + fetching: false, + }; + } + case OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBERS: { + return { + ...state, + inviting: true, + }; + } + case OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBERS_DONE: + case OrganizationActionsTypes.INVITE_ORGANIZATION_MEMBERS_FAILED: { + return { + ...state, + inviting: false, + }; + } + case OrganizationActionsTypes.LEAVE_ORGANIZATION: { + return { + ...state, + leaving: true, + }; + } + case OrganizationActionsTypes.LEAVE_ORGANIZATION_SUCCESS: + case OrganizationActionsTypes.LEAVE_ORGANIZATION_FAILED: { + return { + ...state, + leaving: false, + }; + } + case OrganizationActionsTypes.REMOVE_ORGANIZATION_MEMBER: { + return { + ...state, + removingMember: true, + }; + } + case OrganizationActionsTypes.REMOVE_ORGANIZATION_MEMBER_SUCCESS: + case OrganizationActionsTypes.REMOVE_ORGANIZATION_MEMBER_FAILED: { + return { + ...state, + removingMember: false, + }; + } + case OrganizationActionsTypes.UPDATE_ORGANIZATION_MEMBER: { + return { + ...state, + updatingMember: true, + }; + } + case OrganizationActionsTypes.UPDATE_ORGANIZATION_MEMBER_SUCCESS: + case OrganizationActionsTypes.UPDATE_ORGANIZATION_MEMBER_FAILED: { + return { + ...state, + updatingMember: false, + }; + } + case AuthActionTypes.LOGOUT_SUCCESS: { + return { ...defaultState }; + } + default: + return state; + } +} diff --git a/cvat-ui/src/reducers/review-reducer.ts b/cvat-ui/src/reducers/review-reducer.ts index a8f3f85f..ea3a2429 100644 --- a/cvat-ui/src/reducers/review-reducer.ts +++ b/cvat-ui/src/reducers/review-reducer.ts @@ -9,38 +9,29 @@ import { AuthActionTypes } from 'actions/auth-actions'; import { ReviewState } from './interfaces'; const defaultState: ReviewState = { - reviews: [], // saved on the server - issues: [], // saved on the server + issues: [], latestComments: [], frameIssues: [], // saved on the server and not saved on the server - activeReview: null, // not saved on the server newIssuePosition: null, issuesHidden: false, issuesResolvedHidden: false, fetching: { - reviewId: null, + jobId: null, issueId: null, }, }; -function computeFrameIssues(issues: any[], activeReview: any, frame: number): any[] { - const combinedIssues = activeReview ? issues.concat(activeReview.issues) : issues; - return combinedIssues.filter((issue: any): boolean => issue.frame === frame); -} - export default function (state: ReviewState = defaultState, action: any): ReviewState { switch (action.type) { case AnnotationActionTypes.GET_JOB_SUCCESS: { const { - reviews, issues, frameData: { number: frame }, } = action.payload; - const frameIssues = computeFrameIssues(issues, state.activeReview, frame); + const frameIssues = issues.filter((issue: any): boolean => issue.frame === frame); return { ...state, - reviews, issues, frameIssues, }; @@ -52,12 +43,12 @@ export default function (state: ReviewState = defaultState, action: any): Review }; } case ReviewActionTypes.SUBMIT_REVIEW: { - const { reviewId } = action.payload; + const { jobId } = action.payload; return { ...state, fetching: { ...state.fetching, - reviewId, + jobId, }, }; } @@ -66,7 +57,7 @@ export default function (state: ReviewState = defaultState, action: any): Review ...state, fetching: { ...state.fetching, - reviewId: null, + jobId: null, }, }; } @@ -75,7 +66,7 @@ export default function (state: ReviewState = defaultState, action: any): Review ...state, fetching: { ...state.fetching, - reviewId: null, + jobId: null, }, }; } @@ -83,17 +74,7 @@ export default function (state: ReviewState = defaultState, action: any): Review const { number: frame } = action.payload; return { ...state, - frameIssues: computeFrameIssues(state.issues, state.activeReview, frame), - }; - } - case ReviewActionTypes.INITIALIZE_REVIEW_SUCCESS: { - const { reviewInstance, frame } = action.payload; - const frameIssues = computeFrameIssues(state.issues, reviewInstance, frame); - - return { - ...state, - activeReview: reviewInstance, - frameIssues, + frameIssues: state.issues.filter((issue: any): boolean => issue.frame === frame), }; } case ReviewActionTypes.START_ISSUE: { @@ -105,7 +86,7 @@ export default function (state: ReviewState = defaultState, action: any): Review } case ReviewActionTypes.FINISH_ISSUE_SUCCESS: { const { frame, issue } = action.payload; - const frameIssues = computeFrameIssues(state.issues, state.activeReview, frame); + const frameIssues = [...state.issues, issue].filter((_issue: any): boolean => _issue.frame === frame); return { ...state, @@ -186,7 +167,7 @@ export default function (state: ReviewState = defaultState, action: any): Review case ReviewActionTypes.REMOVE_ISSUE_SUCCESS: { const { issueId, frame } = action.payload; const issues = state.issues.filter((issue: any) => issue.id !== issueId); - const frameIssues = computeFrameIssues(issues, state.activeReview, frame); + const frameIssues = issues.filter((issue: any): boolean => issue.frame === frame); return { ...state, issues, diff --git a/cvat-ui/src/reducers/root-reducer.ts b/cvat-ui/src/reducers/root-reducer.ts index df534b22..73e3444a 100644 --- a/cvat-ui/src/reducers/root-reducer.ts +++ b/cvat-ui/src/reducers/root-reducer.ts @@ -20,6 +20,7 @@ import reviewReducer from './review-reducer'; import exportReducer from './export-reducer'; import importReducer from './import-reducer'; import cloudStoragesReducer from './cloud-storages-reducer'; +import organizationsReducer from './organizations-reducer'; export default function createRootReducer(): Reducer { return combineReducers({ @@ -40,5 +41,6 @@ export default function createRootReducer(): Reducer { export: exportReducer, import: importReducer, cloudStorages: cloudStoragesReducer, + organizations: organizationsReducer, }); } diff --git a/cvat-ui/src/reducers/settings-reducer.ts b/cvat-ui/src/reducers/settings-reducer.ts index 83eeb833..0b17c001 100644 --- a/cvat-ui/src/reducers/settings-reducer.ts +++ b/cvat-ui/src/reducers/settings-reducer.ts @@ -361,11 +361,11 @@ export default (state = defaultState, action: AnyAction): SettingsState => { ...state, player: { ...state.player, - resetZoom: job && job.task.mode === 'annotation', + resetZoom: job && job.mode === 'annotation', }, shapes: { ...defaultState.shapes, - ...(job.task.dimension === DimensionType.DIM_3D ? + ...(job.dimension === DimensionType.DIM_3D ? { opacity: 40, selectedOpacity: 60, diff --git a/cvat-ui/src/reducers/tasks-reducer.ts b/cvat-ui/src/reducers/tasks-reducer.ts index 33d52c04..7b681cd6 100644 --- a/cvat-ui/src/reducers/tasks-reducer.ts +++ b/cvat-ui/src/reducers/tasks-reducer.ts @@ -75,10 +75,6 @@ export default (state: TasksState = defaultState, action: AnyAction): TasksState fetching: false, count: action.payload.count, current: combinedWithPreviews, - gettingQuery: { - ...state.gettingQuery, - ...action.payload.query, - }, }; } case TasksActionTypes.GET_TASKS_FAILED: @@ -319,6 +315,28 @@ export default (state: TasksState = defaultState, action: AnyAction): TasksState ), }; } + case TasksActionTypes.UPDATE_JOB: { + return { + ...state, + updating: true, + }; + } + case TasksActionTypes.UPDATE_JOB_SUCCESS: { + const { jobInstance } = action.payload; + const idx = state.current.findIndex((task: Task) => task.instance.id === jobInstance.taskId); + const newCurrent = idx === -1 ? + state.current : [...(state.current.splice(idx, 1), state.current)]; + + return { + ...state, + current: newCurrent, + gettingQuery: state.gettingQuery.id === jobInstance.taskId ? { + ...state.gettingQuery, + id: null, + } : state.gettingQuery, + updating: false, + }; + } case TasksActionTypes.HIDE_EMPTY_TASKS: { return { ...state, diff --git a/cvat-ui/src/styles.scss b/cvat-ui/src/styles.scss index b47035ae..a22b02c7 100644 --- a/cvat-ui/src/styles.scss +++ b/cvat-ui/src/styles.scss @@ -11,7 +11,10 @@ hr { } .cvat-spinner { - margin: 25% 50%; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .cvat-not-found { diff --git a/cvat-ui/src/utils/validation-patterns.ts b/cvat-ui/src/utils/validation-patterns.ts index ba45c937..c0dc252f 100644 --- a/cvat-ui/src/utils/validation-patterns.ts +++ b/cvat-ui/src/utils/validation-patterns.ts @@ -1,4 +1,4 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -75,6 +75,16 @@ const validationPatterns = { pattern: /^\[\/?([A-z0-9-_+]+\/)*([A-z0-9]+\.(xml|zip|json))\]$/, message: 'Git path is not valid', }, + + validateOrganizationSlug: { + pattern: /^[a-zA-Z\d]+$/, + message: 'Only Latin characters and numbers are allowed', + }, + + validatePhoneNumber: { + pattern: /^[+]*[-\s0-9]*$/g, + message: 'Input phone number is not correct', + }, }; export default validationPatterns; diff --git a/cvat/apps/authentication/__init__.py b/cvat/apps/authentication/__init__.py deleted file mode 100644 index 4921b1df..00000000 --- a/cvat/apps/authentication/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ - -# Copyright (C) 2018 Intel Corporation -# -# SPDX-License-Identifier: MIT - -default_app_config = 'cvat.apps.authentication.apps.AuthenticationConfig' - -from enum import Enum - -class AUTH_ROLE(Enum): - ADMIN = 'admin' - USER = 'user' - ANNOTATOR = 'annotator' - OBSERVER = 'observer' - - def __str__(self): - return self.value diff --git a/cvat/apps/authentication/apps.py b/cvat/apps/authentication/apps.py deleted file mode 100644 index c6f9e549..00000000 --- a/cvat/apps/authentication/apps.py +++ /dev/null @@ -1,14 +0,0 @@ - -# Copyright (C) 2018 Intel Corporation -# -# SPDX-License-Identifier: MIT - -from django.apps import AppConfig - -class AuthenticationConfig(AppConfig): - name = 'cvat.apps.authentication' - - def ready(self): - from .auth import register_signals - - register_signals() diff --git a/cvat/apps/authentication/auth.py b/cvat/apps/authentication/auth.py deleted file mode 100644 index 707ac7f0..00000000 --- a/cvat/apps/authentication/auth.py +++ /dev/null @@ -1,356 +0,0 @@ -# Copyright (C) 2018 Intel Corporation -# -# SPDX-License-Identifier: MIT - -from django.conf import settings -from django.db.models import Q -import rules -from . import AUTH_ROLE -from . import signature -from rest_framework.permissions import BasePermission -from django.core import signing -from rest_framework import authentication, exceptions -from rest_framework.authentication import TokenAuthentication as _TokenAuthentication -from django.contrib.auth import login - -# Even with token authorization it is very important to have a valid session id -# in cookies because in some cases we cannot use token authorization (e.g. when -# we redirect to the server in UI using just URL). To overkill that we override -# the class to call `login` method which restores the session id in cookies. -class TokenAuthentication(_TokenAuthentication): - def authenticate(self, request): - auth = super().authenticate(request) - session = getattr(request, 'session') - if auth is not None and (session.session_key is None or (not session.modified and not session.load())): - login(request, auth[0], 'django.contrib.auth.backends.ModelBackend') - return auth - -def register_signals(): - from django.db.models.signals import post_migrate, post_save - from django.contrib.auth.models import User, Group - - def create_groups(sender, **kwargs): - for role in AUTH_ROLE: - db_group, _ = Group.objects.get_or_create(name=role) - db_group.save() - - post_migrate.connect(create_groups, weak=False) - - if settings.DJANGO_AUTH_TYPE == 'BASIC': - from .auth_basic import create_user - - post_save.connect(create_user, sender=User) - elif settings.DJANGO_AUTH_TYPE == 'LDAP': - import django_auth_ldap.backend - from .auth_ldap import create_user - - django_auth_ldap.backend.populate_user.connect(create_user) - -class SignatureAuthentication(authentication.BaseAuthentication): - """ - Authentication backend for signed URLs. - """ - def authenticate(self, request): - """ - Returns authenticated user if URL signature is valid. - """ - signer = signature.Signer() - sign = request.query_params.get(signature.QUERY_PARAM) - if not sign: - return - - try: - user = signer.unsign(sign, request.build_absolute_uri()) - except signing.SignatureExpired: - raise exceptions.AuthenticationFailed('This URL has expired.') - except signing.BadSignature: - raise exceptions.AuthenticationFailed('Invalid signature.') - if not user.is_active: - raise exceptions.AuthenticationFailed('User inactive or deleted.') - - return (user, None) - -# AUTH PREDICATES -has_admin_role = rules.is_group_member(str(AUTH_ROLE.ADMIN)) -has_user_role = rules.is_group_member(str(AUTH_ROLE.USER)) -has_annotator_role = rules.is_group_member(str(AUTH_ROLE.ANNOTATOR)) -has_observer_role = rules.is_group_member(str(AUTH_ROLE.OBSERVER)) - -@rules.predicate -def is_project_owner(db_user, db_project): - # If owner is None (null) the task can be accessed/changed/deleted - # only by admin. At the moment each task has an owner. - return db_project is not None and db_project.owner == db_user - -@rules.predicate -def is_project_assignee(db_user, db_project): - return db_project is not None and db_project.assignee == db_user - -@rules.predicate -def is_project_annotator(db_user, db_project): - db_tasks = list(db_project.tasks.prefetch_related('segment_set').all()) - return any([is_task_annotator(db_user, db_task) for db_task in db_tasks]) - -@rules.predicate -def is_project_reviewer(db_user, db_project): - db_tasks = list(db_project.tasks.prefetch_related('segment_set').all()) - return any([is_task_reviewer(db_user, db_task) for db_task in db_tasks]) - -@rules.predicate -def is_task_owner(db_user, db_task): - # If owner is None (null) the task can be accessed/changed/deleted - # only by admin. At the moment each task has an owner. - return db_task.owner == db_user or is_project_owner(db_user, db_task.project) - -@rules.predicate -def is_task_assignee(db_user, db_task): - return db_task.assignee == db_user or is_project_assignee(db_user, db_task.project) - -@rules.predicate -def is_task_reviewer(db_user, db_task): - db_segments = list(db_task.segment_set.prefetch_related('job_set__assignee').all()) - return any([is_job_reviewer(db_user, db_job) - for db_segment in db_segments for db_job in db_segment.job_set.all()]) - -@rules.predicate -def is_task_annotator(db_user, db_task): - db_segments = list(db_task.segment_set.prefetch_related('job_set__assignee').all()) - return any([is_job_annotator(db_user, db_job) - for db_segment in db_segments for db_job in db_segment.job_set.all()]) - -@rules.predicate -def is_job_owner(db_user, db_job): - return is_task_owner(db_user, db_job.segment.task) - -@rules.predicate -def is_job_annotator(db_user, db_job): - db_task = db_job.segment.task - # A job can be annotated by any user if the task's assignee is None. - has_rights = (db_task.assignee is None and not settings.RESTRICTIONS['reduce_task_visibility']) or is_task_assignee(db_user, db_task) - if db_job.assignee is not None: - has_rights |= (db_user == db_job.assignee) - - return has_rights - -@rules.predicate -def has_change_permissions(db_user, db_job): - db_task = db_job.segment.task - # A job can be annotated by any user if the task's assignee is None. - has_rights = (db_task.assignee is None and not settings.RESTRICTIONS['reduce_task_visibility']) or is_task_assignee(db_user, db_task) - if db_job.assignee is not None: - has_rights |= (db_user == db_job.assignee) and (db_job.status == 'annotation') - if db_job.reviewer is not None: - has_rights |= (db_user == db_job.reviewer) and (db_job.status == 'validation') - - return has_rights - -@rules.predicate -def is_job_reviewer(db_user, db_job): - has_rights = db_job.reviewer == db_user - return has_rights - -@rules.predicate -def is_issue_owner(db_user, db_issue): - has_rights = db_issue.owner == db_user - return has_rights - -@rules.predicate -def is_comment_author(db_user, db_comment): - has_rights = (db_comment.author == db_user) - return has_rights - -@rules.predicate -def is_cloud_storage_owner(db_user, db_storage): - return db_storage.owner == db_user - -# AUTH PERMISSIONS RULES -rules.add_perm('engine.role.user', has_user_role) -rules.add_perm('engine.role.admin', has_admin_role) -rules.add_perm('engine.role.annotator', has_annotator_role) -rules.add_perm('engine.role.observer', has_observer_role) - -rules.add_perm('engine.project.create', has_admin_role | has_user_role) -rules.add_perm('engine.project.access', has_admin_role | has_observer_role | - is_project_owner | is_project_annotator) -rules.add_perm('engine.project.change', has_admin_role | is_project_owner | - is_project_assignee) -rules.add_perm('engine.project.delete', has_admin_role | is_project_owner) - -rules.add_perm('engine.task.create', has_admin_role | has_user_role) -rules.add_perm('engine.task.access', has_admin_role | has_observer_role | - is_task_owner | is_task_annotator | is_task_reviewer) -rules.add_perm('engine.task.change', has_admin_role | is_task_owner | - is_task_assignee) -rules.add_perm('engine.task.delete', has_admin_role | is_task_owner) - -rules.add_perm('engine.job.access', has_admin_role | has_observer_role | - is_job_owner | is_job_annotator | is_job_reviewer) -rules.add_perm('engine.job.change', has_admin_role | is_job_owner | has_change_permissions) -rules.add_perm('engine.job.review', has_admin_role | (is_job_reviewer & has_change_permissions)) - -rules.add_perm('engine.issue.change', has_admin_role | is_issue_owner) -rules.add_perm('engine.issue.destroy', has_admin_role | is_issue_owner) - -rules.add_perm('engine.comment.change', has_admin_role | is_comment_author) - - -rules.add_perm('engine.cloudstorage.create', has_admin_role | has_user_role) -rules.add_perm('engine.cloudstorage.change', has_admin_role | is_cloud_storage_owner) - -class AdminRolePermission(BasePermission): - # pylint: disable=no-self-use - def has_permission(self, request, view): - return request.user.has_perm('engine.role.admin') - -class UserRolePermission(BasePermission): - # pylint: disable=no-self-use - def has_permission(self, request, view): - return request.user.has_perm('engine.role.user') - -class AnnotatorRolePermission(BasePermission): - # pylint: disable=no-self-use - def has_permission(self, request, view): - return request.user.has_perm('engine.role.annotator') - -class ObserverRolePermission(BasePermission): - # pylint: disable=no-self-use - def has_permission(self, request, view): - return request.user.has_perm('engine.role.observer') - -class ProjectCreatePermission(BasePermission): - # pylint: disable=no-self-use - def has_permission(self, request, view): - return request.user.has_perm('engine.project.create') - -class ProjectAccessPermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.project.access', obj) - -class ProjectChangePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.project.change', obj) - -class ProjectDeletePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.project.delete', obj) - -class TaskCreatePermission(BasePermission): - # pylint: disable=no-self-use - def has_permission(self, request, view): - return request.user.has_perm('engine.task.create') - -class TaskAccessPermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.task.access', obj) - - -class ProjectGetQuerySetMixin(object): - def get_queryset(self): - queryset = super().get_queryset() - user = self.request.user - # Don't filter queryset for admin, observer and detail methods - if has_admin_role(user) or has_observer_role(user) or self.detail: - return queryset - else: - return queryset.filter(Q(owner=user) | Q(assignee=user) | - Q(task__owner=user) | Q(task__assignee=user) | - Q(task__segment__job__assignee=user) | - Q(task__segment__job__reviewer=user)).distinct() - -def filter_task_queryset(queryset, user): - # Don't filter queryset for admin, observer - if has_admin_role(user) or has_observer_role(user): - return queryset - - query_filter = Q(owner=user) | Q(assignee=user) | \ - Q(segment__job__assignee=user) | Q(segment__job__reviewer=user) - if not settings.RESTRICTIONS['reduce_task_visibility']: - query_filter |= Q(assignee=None) - - return queryset.filter(query_filter).distinct() - -class TaskGetQuerySetMixin(object): - def get_queryset(self): - queryset = super().get_queryset() - user = self.request.user - # Don't filter queryset for detail methods - if self.detail: - return queryset - else: - return filter_task_queryset(queryset, user) - -class TaskChangePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.task.change', obj) - -class TaskDeletePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.task.delete', obj) - -class JobAccessPermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.job.access', obj) - -class JobChangePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.job.change', obj) - -class JobReviewPermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.job.review', obj) - -class IssueAccessPermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - db_job = obj.job - return request.user.has_perm('engine.job.access', db_job) - -class IssueDestroyPermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.issue.destroy', obj) - -class IssueChangePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - db_job = obj.job - return (request.user.has_perm('engine.job.change', db_job) - or request.user.has_perm('engine.issue.change', obj)) - -class CommentCreatePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): # obj is db_job - return request.user.has_perm('engine.job.access', obj) - -class CommentChangePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm('engine.comment.change', obj) - -class CloudStorageAccessPermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm("engine.cloudstorage.change", obj) - -class CloudStorageChangePermission(BasePermission): - # pylint: disable=no-self-use - def has_object_permission(self, request, view, obj): - return request.user.has_perm("engine.cloudstorage.change", obj) - -class CloudStorageGetQuerySetMixin(object): - def get_queryset(self): - queryset = super().get_queryset() - user = self.request.user - if has_admin_role(user) or self.detail: - return queryset - else: - return queryset.filter(owner=user) diff --git a/cvat/apps/authentication/auth_basic.py b/cvat/apps/authentication/auth_basic.py deleted file mode 100644 index 53551ad1..00000000 --- a/cvat/apps/authentication/auth_basic.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2018-2021 Intel Corporation -# -# SPDX-License-Identifier: MIT - -from django.conf import settings -from allauth.account import app_settings as allauth_settings -from allauth.account.models import EmailAddress - -from . import AUTH_ROLE - -def create_user(sender, instance, created, **kwargs): - from django.contrib.auth.models import Group - - if instance.is_superuser and instance.is_staff: - db_group = Group.objects.get(name=AUTH_ROLE.ADMIN) - instance.groups.add(db_group) - - # create and verify EmailAddress for superuser accounts - if allauth_settings.EMAIL_REQUIRED: - EmailAddress.objects.get_or_create(user=instance, email=instance.email, primary=True, verified=True) - - for group_name in settings.DJANGO_AUTH_DEFAULT_GROUPS: - db_group = Group.objects.get(name=getattr(AUTH_ROLE, group_name)) - instance.groups.add(db_group) diff --git a/cvat/apps/authentication/auth_ldap.py b/cvat/apps/authentication/auth_ldap.py deleted file mode 100644 index 1c1cee2b..00000000 --- a/cvat/apps/authentication/auth_ldap.py +++ /dev/null @@ -1,33 +0,0 @@ - -# Copyright (C) 2018 Intel Corporation -# -# SPDX-License-Identifier: MIT - -from django.conf import settings -from . import AUTH_ROLE - -AUTH_LDAP_GROUPS = { - AUTH_ROLE.ADMIN: settings.AUTH_LDAP_ADMIN_GROUPS, - AUTH_ROLE.ANNOTATOR: settings.AUTH_LDAP_ANNOTATOR_GROUPS, - AUTH_ROLE.USER: settings.AUTH_LDAP_USER_GROUPS, - AUTH_ROLE.OBSERVER: settings.AUTH_LDAP_OBSERVER_GROUPS -} - -def create_user(sender, user=None, ldap_user=None, **kwargs): - from django.contrib.auth.models import Group - user_groups = [] - for role in AUTH_ROLE: - db_group = Group.objects.get(name=role) - - for ldap_group in AUTH_LDAP_GROUPS[role]: - if ldap_group.lower() in ldap_user.group_dns: - user_groups.append(db_group) - if role == AUTH_ROLE.ADMIN: - user.is_staff = user.is_superuser = True - - # It is important to save the user before adding groups. Please read - # https://django-auth-ldap.readthedocs.io/en/latest/users.html#populating-users - # The user instance will be saved automatically after the signal handler - # is run. - user.save() - user.groups.set(user_groups) diff --git a/cvat/apps/authentication/signature.py b/cvat/apps/authentication/signature.py deleted file mode 100644 index fdcb0403..00000000 --- a/cvat/apps/authentication/signature.py +++ /dev/null @@ -1,44 +0,0 @@ -from django.contrib.auth import get_user_model -from django.core import signing -from furl import furl -import hashlib - -QUERY_PARAM = 'sign' -MAX_AGE = 30 - -# Got implementation ideas in https://github.com/marcgibbons/drf_signed_auth -class Signer: - @classmethod - def get_salt(cls, url): - normalized_url = furl(url).remove(QUERY_PARAM).url.encode('utf-8') - salt = hashlib.sha256(normalized_url).hexdigest() - return salt - - def sign(self, user, url): - """ - Create a signature for a user object. - """ - data = { - 'user_id': user.pk, - 'username': user.get_username() - } - - return signing.dumps(data, salt=self.get_salt(url)) - - def unsign(self, signature, url): - """ - Return a user object for a valid signature. - """ - User = get_user_model() - data = signing.loads(signature, salt=self.get_salt(url), max_age=MAX_AGE) - - if not isinstance(data, dict): - raise signing.BadSignature() - - try: - return User.objects.get(**{ - 'pk': data.get('user_id'), - User.USERNAME_FIELD: data.get('username') - }) - except User.DoesNotExist: - raise signing.BadSignature() diff --git a/cvat/apps/authentication/views.py b/cvat/apps/authentication/views.py deleted file mode 100644 index 6f503199..00000000 --- a/cvat/apps/authentication/views.py +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright (C) 2018 Intel Corporation -# -# SPDX-License-Identifier: MIT - -from rest_framework import views -from rest_framework.exceptions import ValidationError -from rest_framework.response import Response -from rest_auth.registration.views import RegisterView as _RegisterView -from allauth.account import app_settings as allauth_settings -from furl import furl - -from . import signature - -from django.utils.decorators import method_decorator -from drf_yasg.utils import swagger_auto_schema -from drf_yasg import openapi - -@method_decorator(name='post', decorator=swagger_auto_schema( - request_body=openapi.Schema( - type=openapi.TYPE_OBJECT, - required=[ - 'url' - ], - properties={ - 'url': openapi.Schema(type=openapi.TYPE_STRING) - } - ), - responses={'200': openapi.Response(description='text URL')} -)) -class SigningView(views.APIView): - """ - This method signs URL for access to the server. - - Signed URL contains a token which authenticates a user on the server. - Signed URL is valid during 30 seconds since signing. - """ - def post(self, request): - url = request.data.get('url') - if not url: - raise ValidationError('Please provide `url` parameter') - - signer = signature.Signer() - url = self.request.build_absolute_uri(url) - sign = signer.sign(self.request.user, url) - - url = furl(url).add({signature.QUERY_PARAM: sign}).url - return Response(url) - - -class RegisterView(_RegisterView): - def get_response_data(self, user): - data = self.get_serializer(user).data - data['email_verification_required'] = allauth_settings.EMAIL_VERIFICATION == \ - allauth_settings.EmailVerificationMethod.MANDATORY - - return data diff --git a/cvat/apps/dataset_manager/__init__.py b/cvat/apps/dataset_manager/__init__.py index e69de29b..813d16ca 100644 --- a/cvat/apps/dataset_manager/__init__.py +++ b/cvat/apps/dataset_manager/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + diff --git a/cvat/apps/dataset_manager/tests/assets/projects.json b/cvat/apps/dataset_manager/tests/assets/projects.json index cef9a4ba..c6208467 100644 --- a/cvat/apps/dataset_manager/tests/assets/projects.json +++ b/cvat/apps/dataset_manager/tests/assets/projects.json @@ -1,8 +1,6 @@ { "main": { "name": "Main project", - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "car", diff --git a/cvat/apps/dataset_manager/tests/assets/tasks.json b/cvat/apps/dataset_manager/tests/assets/tasks.json index f2a16859..fcff87a5 100644 --- a/cvat/apps/dataset_manager/tests/assets/tasks.json +++ b/cvat/apps/dataset_manager/tests/assets/tasks.json @@ -3,8 +3,6 @@ "name": "main task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "car", @@ -58,8 +56,6 @@ "name": "icdar localization/recogntion task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "icdar", @@ -78,8 +74,6 @@ "name": "icdar localization/recogntion task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "icdar", @@ -98,8 +92,6 @@ "name": "icdar segmentation task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "icdar", @@ -136,8 +128,6 @@ "name": "market1501 task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "market-1501", @@ -168,8 +158,6 @@ "name": "cityscapes task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "car", @@ -200,8 +188,6 @@ "name": "wrong checkbox value task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "car", @@ -255,7 +241,6 @@ "name": "no attributes", "overlap": 0, "segment_size": 100, - "owner_id": 1, "labels": [ { "name": "car", @@ -268,7 +253,6 @@ "name": "many jobs", "overlap": 0, "segment_size": 5, - "owner_id": 1, "labels": [ { "name": "car", @@ -281,7 +265,6 @@ "name": "change overlap and segment size", "overlap": 3, "segment_size": 6, - "owner_id": 1, "labels": [ { "name": "car", @@ -294,8 +277,6 @@ "name": "widerface task", "overlap": 0, "segment_size": 100, - "owner_id": 1, - "assignee_id": 2, "labels": [ { "name": "face", @@ -338,16 +319,12 @@ "name": "First task in project", "project_id": 1, "overlap": 0, - "segment_size": 100, - "owner_id": 1, - "assignee_id": 2 + "segment_size": 100 }, "task in project #2": { "name": "Second task in project", "project_id": 1, "overlap": 0, - "segment_size": 100, - "owner_id": 1, - "assignee_id": 2 + "segment_size": 100 } } diff --git a/cvat/apps/dataset_manager/tests/test_rest_api_formats.py b/cvat/apps/dataset_manager/tests/test_rest_api_formats.py index 6e5d2ca7..e22e4471 100644 --- a/cvat/apps/dataset_manager/tests/test_rest_api_formats.py +++ b/cvat/apps/dataset_manager/tests/test_rest_api_formats.py @@ -111,7 +111,7 @@ class _DbTestBase(APITestCase): @classmethod def create_db_users(cls): (group_admin, _) = Group.objects.get_or_create(name="admin") - (group_user, _) = Group.objects.get_or_create(name="user") + (group_user, _) = Group.objects.get_or_create(name="business") user_admin = User.objects.create_superuser(username="admin", email="", password="admin") diff --git a/cvat/apps/dataset_repo/apps.py b/cvat/apps/dataset_repo/apps.py index 6b021856..c66d4e01 100644 --- a/cvat/apps/dataset_repo/apps.py +++ b/cvat/apps/dataset_repo/apps.py @@ -6,4 +6,4 @@ from django.apps import AppConfig class GitConfig(AppConfig): - name = 'dataset_repo' + name = 'cvat.apps.dataset_repo' diff --git a/cvat/apps/dataset_repo/views.py b/cvat/apps/dataset_repo/views.py index fae92d6d..5ac495e6 100644 --- a/cvat/apps/dataset_repo/views.py +++ b/cvat/apps/dataset_repo/views.py @@ -5,10 +5,11 @@ from django.http import HttpResponseBadRequest, JsonResponse from rules.contrib.views import permission_required, objectgetter -from cvat.apps.authentication.decorators import login_required +from cvat.apps.iam.decorators import login_required from cvat.apps.engine.log import slogger from cvat.apps.engine import models from cvat.apps.dataset_repo.models import GitData +import contextlib import cvat.apps.dataset_repo.dataset_repo as CVATGit import django_rq @@ -55,8 +56,6 @@ def create(request, tid): @login_required -@permission_required(perm=['engine.task.access'], - fn=objectgetter(models.Task, 'tid'), raise_exception=True) def push_repository(request, tid): try: slogger.task[tid].info("push repository request") @@ -67,25 +66,23 @@ def push_repository(request, tid): return JsonResponse({ "rq_id": rq_id }) except Exception as ex: - try: - slogger.task[tid].error("error occurred during pushing repository request", exc_info=True) - except Exception: - pass + with contextlib.suppress(Exception): + slogger.task[tid].error("error occurred during pushing repository request", + exc_info=True) + return HttpResponseBadRequest(str(ex)) @login_required -@permission_required(perm=['engine.task.access'], - fn=objectgetter(models.Task, 'tid'), raise_exception=True) def get_repository(request, tid): try: slogger.task[tid].info("get repository request") return JsonResponse(CVATGit.get(tid, request.user)) except Exception as ex: - try: - slogger.task[tid].error("error occurred during getting repository info request", exc_info=True) - except Exception: - pass + with contextlib.suppress(Exception): + slogger.task[tid].error("error occurred during getting repository info request", + exc_info=True) + return HttpResponseBadRequest(str(ex)) diff --git a/cvat/apps/engine/__init__.py b/cvat/apps/engine/__init__.py index 8c438336..e3167dc4 100644 --- a/cvat/apps/engine/__init__.py +++ b/cvat/apps/engine/__init__.py @@ -2,4 +2,3 @@ # # SPDX-License-Identifier: MIT -default_app_config = 'cvat.apps.engine.apps.EngineConfig' diff --git a/cvat/apps/engine/backup.py b/cvat/apps/engine/backup.py index 55e6c083..510470ec 100644 --- a/cvat/apps/engine/backup.py +++ b/cvat/apps/engine/backup.py @@ -28,8 +28,7 @@ from cvat.apps.engine import models from cvat.apps.engine.log import slogger from cvat.apps.engine.serializers import (AttributeSerializer, DataSerializer, LabeledDataSerializer, SegmentSerializer, SimpleJobSerializer, TaskSerializer, - ReviewSerializer, IssueSerializer, CommentSerializer, ProjectSerializer, - ProjectFileSerializer, TaskFileSerializer) + ProjectSerializer, ProjectFileSerializer, TaskFileSerializer) from cvat.apps.engine.utils import av_scan_paths from cvat.apps.engine.models import StorageChoice, StorageMethodChoice, DataChoice, Task, Project from cvat.apps.engine.task import _create_thread @@ -186,32 +185,6 @@ class _TaskBackupBase(_BackupBase): return annotations - def _prepare_review_meta(self, review): - allowed_fields = { - 'estimated_quality', - 'status', - 'issues', - } - return self._prepare_meta(allowed_fields, review) - - def _prepare_issue_meta(self, issue): - allowed_fields = { - 'frame', - 'position', - 'created_date', - 'resolved_date', - 'comments', - } - return self._prepare_meta(allowed_fields, issue) - - def _prepare_comment_meta(self, comment): - allowed_fields = { - 'message', - 'created_date', - 'updated_date', - } - return self._prepare_meta(allowed_fields, comment) - def _get_db_jobs(self): if self._db_task: db_segments = list(self._db_task.segment_set.all().prefetch_related('job_set')) @@ -314,36 +287,10 @@ class TaskExporter(_ExporterBase, _TaskBackupBase): return task - def serialize_comment(db_comment): - comment_serializer = CommentSerializer(db_comment) - comment_serializer.fields.pop('author') - - return self._prepare_comment_meta(comment_serializer.data) - - def serialize_issue(db_issue): - issue_serializer = IssueSerializer(db_issue) - issue_serializer.fields.pop('owner') - issue_serializer.fields.pop('resolver') - - issue = issue_serializer.data - issue['comments'] = (serialize_comment(c) for c in db_issue.comment_set.order_by('id')) - - return self._prepare_issue_meta(issue) - - def serialize_review(db_review): - review_serializer = ReviewSerializer(db_review) - review_serializer.fields.pop('reviewer') - review_serializer.fields.pop('assignee') - - review = review_serializer.data - review['issues'] = (serialize_issue(i) for i in db_review.issue_set.order_by('id')) - - return self._prepare_review_meta(review) - def serialize_segment(db_segment): db_job = db_segment.job_set.first() job_serializer = SimpleJobSerializer(db_job) - for field in ('url', 'assignee', 'reviewer'): + for field in ('url', 'assignee'): job_serializer.fields.pop(field) job_data = self._prepare_job_meta(job_serializer.data) @@ -352,9 +299,6 @@ class TaskExporter(_ExporterBase, _TaskBackupBase): segment = segment_serailizer.data segment.update(job_data) - db_reviews = db_job.review_set.order_by('id') - segment['reviews'] = (serialize_review(r) for r in db_reviews) - return segment def serialize_jobs(): @@ -462,11 +406,12 @@ class _ImporterBase(): return label_mapping class TaskImporter(_ImporterBase, _TaskBackupBase): - def __init__(self, file, user_id, project_id=None, subdir=None, label_mapping=None): + def __init__(self, file, user_id, org_id=None, project_id=None, subdir=None, label_mapping=None): super().__init__(logger=slogger.glob) self._file = file self._subdir = subdir self._user_id = user_id + self._org_id = org_id self._manifest, self._annotations = self._read_meta() self._version = self._read_version(self._manifest) self._labels_mapping = label_mapping @@ -504,40 +449,6 @@ class TaskImporter(_ImporterBase, _TaskBackupBase): return segment_size, overlap def _import_task(self): - def _create_comment(comment, db_issue): - comment['issue'] = db_issue.id - comment_serializer = CommentSerializer(data=comment) - comment_serializer.is_valid(raise_exception=True) - db_comment = comment_serializer.save() - return db_comment - - def _create_issue(issue, db_review, db_job): - issue['review'] = db_review.id - issue['job'] = db_job.id - comments = issue.pop('comments') - - issue_serializer = IssueSerializer(data=issue) - issue_serializer.is_valid( raise_exception=True) - db_issue = issue_serializer.save() - - for comment in comments: - _create_comment(comment, db_issue) - - return db_issue - - def _create_review(review, db_job): - review['job'] = db_job.id - issues = review.pop('issues') - - review_serializer = ReviewSerializer(data=review) - review_serializer.is_valid(raise_exception=True) - db_review = review_serializer.save() - - for issue in issues: - _create_issue(issue, db_review, db_job) - - return db_review - def _write_data(zip_object): data_path = self._db_task.data.get_upload_dirname() task_dirname = os.path.join(self._subdir, self.TASK_DIRNAME) if self._subdir else self.TASK_DIRNAME @@ -569,7 +480,7 @@ class TaskImporter(_ImporterBase, _TaskBackupBase): self._manifest['owner_id'] = self._user_id self._manifest['project_id'] = self._project_id - self._db_task = models.Task.objects.create(**self._manifest) + self._db_task = models.Task.objects.create(**self._manifest, organization_id=self._org_id) task_path = self._db_task.get_task_dirname() if os.path.isdir(task_path): shutil.rmtree(task_path) @@ -607,9 +518,6 @@ class TaskImporter(_ImporterBase, _TaskBackupBase): db_job.status = job['status'] db_job.save() - for review in job['reviews']: - _create_review(review, db_job) - def _import_annotations(self): db_jobs = self._get_db_jobs() for db_job, annotations in zip(db_jobs, self._annotations): @@ -621,13 +529,12 @@ class TaskImporter(_ImporterBase, _TaskBackupBase): return self._db_task @transaction.atomic -def _import_task(filename, user): +def _import_task(filename, user, org_id): av_scan_paths(filename) - task_importer = TaskImporter(filename, user) + task_importer = TaskImporter(filename, user, org_id) db_task = task_importer.import_task() return db_task.id - class _ProjectBackupBase(_BackupBase): MANIFEST_FILENAME = 'project.json' TASKNAME_TEMPLATE = 'task_{}' @@ -682,10 +589,11 @@ class ProjectExporter(_ExporterBase, _ProjectBackupBase): class ProjectImporter(_ImporterBase, _ProjectBackupBase): TASKNAME_RE = 'task_(\d+)/' - def __init__(self, filename, user_id): + def __init__(self, filename, user_id, org_id=None): super().__init__(logger=slogger.glob) self._filename = filename self._user_id = user_id + self._org_id = org_id self._manifest = self._read_meta() self._version = self._read_version(self._manifest) self._db_project = None @@ -737,13 +645,12 @@ class ProjectImporter(_ImporterBase, _ProjectBackupBase): return self._db_project @transaction.atomic -def _import_project(filename, user): +def _import_project(filename, user, org_id): av_scan_paths(filename) - project_importer = ProjectImporter(filename, user) + project_importer = ProjectImporter(filename, user, org_id) db_project = project_importer.import_project() return db_project.id - def _create_backup(db_instance, Exporter, output_path, logger, cache_ttl): try: cache_dir = get_export_cache_dir(db_instance) @@ -849,13 +756,14 @@ def _import(importer, request, rq_id, Serializer, file_field_name): serializer = Serializer(data=request.data) serializer.is_valid(raise_exception=True) payload_file = serializer.validated_data[file_field_name] + org_id = getattr(request.iam_context['organization'], 'id', None) fd, filename = mkstemp(prefix='cvat_') with open(filename, 'wb+') as f: for chunk in payload_file.chunks(): f.write(chunk) rq_job = queue.enqueue_call( func=importer, - args=(filename, request.user.id), + args=(filename, request.user.id, org_id), job_id=rq_id, meta={ 'tmp_file': filename, diff --git a/cvat/apps/engine/frame_provider.py b/cvat/apps/engine/frame_provider.py index ea8e19fc..ccff2ece 100644 --- a/cvat/apps/engine/frame_provider.py +++ b/cvat/apps/engine/frame_provider.py @@ -14,7 +14,7 @@ from cvat.apps.engine.cache import CacheInteraction from cvat.apps.engine.media_extractors import VideoReader, ZipReader from cvat.apps.engine.mime_types import mimetypes from cvat.apps.engine.models import DataChoice, StorageMethodChoice, DimensionType - +from rest_framework.exceptions import ValidationError class RandomAccessIterator: def __init__(self, iterable): @@ -119,17 +119,20 @@ class FrameProvider: def _validate_frame_number(self, frame_number): frame_number_ = int(frame_number) if frame_number_ < 0 or frame_number_ >= self._db_data.size: - raise Exception('Incorrect requested frame number: {}'.format(frame_number_)) + raise ValidationError('Incorrect requested frame number: {}'.format(frame_number_)) chunk_number = frame_number_ // self._db_data.chunk_size frame_offset = frame_number_ % self._db_data.chunk_size return frame_number_, chunk_number, frame_offset + def get_chunk_number(self, frame_number): + return int(frame_number) // self._db_data.chunk_size + def _validate_chunk_number(self, chunk_number): chunk_number_ = int(chunk_number) if chunk_number_ < 0 or chunk_number_ >= math.ceil(self._db_data.size / self._db_data.chunk_size): - raise Exception('requested chunk does not exist') + raise ValidationError('requested chunk does not exist') return chunk_number_ @@ -139,7 +142,7 @@ class FrameProvider: image = av_frame.to_ndarray(format='bgr24') success, result = cv2.imencode(ext, image) if not success: - raise Exception("Failed to encode image to '%s' format" % (ext)) + raise RuntimeError("Failed to encode image to '%s' format" % (ext)) return BytesIO(result.tobytes()) def _convert_frame(self, frame, reader_class, out_type): @@ -156,7 +159,7 @@ class FrameProvider: image[:, :, :3] = image[:, :, 2::-1] # RGB to BGR return image else: - raise Exception('unsupported output type') + raise RuntimeError('unsupported output type') def get_preview(self): return self._db_data.get_preview_path() diff --git a/cvat/apps/engine/migrations/0012_auto_20181025_1618.py b/cvat/apps/engine/migrations/0012_auto_20181025_1618.py index ae0664f0..4be15f9e 100644 --- a/cvat/apps/engine/migrations/0012_auto_20181025_1618.py +++ b/cvat/apps/engine/migrations/0012_auto_20181025_1618.py @@ -1,6 +1,4 @@ # Generated by Django 2.0.9 on 2018-10-25 13:18 - -import cvat.apps.engine.models from django.db import migrations, models @@ -14,11 +12,11 @@ class Migration(migrations.Migration): migrations.AddField( model_name='job', name='status', - field=models.CharField(default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32), + field=models.CharField(default='annotation', max_length=32), ), migrations.AlterField( model_name='task', name='status', - field=models.CharField(default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32), + field=models.CharField(default='annotation', max_length=32), ), ] diff --git a/cvat/apps/engine/migrations/0015_db_redesign_20190217.py b/cvat/apps/engine/migrations/0015_db_redesign_20190217.py index d20e4bbb..db9589d8 100644 --- a/cvat/apps/engine/migrations/0015_db_redesign_20190217.py +++ b/cvat/apps/engine/migrations/0015_db_redesign_20190217.py @@ -73,7 +73,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='task', name='status', - field=models.CharField(choices=[('ANNOTATION', 'annotation'), ('VALIDATION', 'validation'), ('COMPLETED', 'completed')], default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32), + field=models.CharField(choices=[('ANNOTATION', 'annotation'), ('VALIDATION', 'validation'), ('COMPLETED', 'completed')], default='annotation', max_length=32), ), migrations.AlterField( model_name='task', @@ -152,7 +152,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='job', name='status', - field=models.CharField(choices=[('ANNOTATION', 'annotation'), ('VALIDATION', 'validation'), ('COMPLETED', 'completed')], default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32), + field=models.CharField(choices=[('ANNOTATION', 'annotation'), ('VALIDATION', 'validation'), ('COMPLETED', 'completed')], default='annotation', max_length=32), ), migrations.AlterField( model_name='attributespec', @@ -172,12 +172,12 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='job', name='status', - field=models.CharField(choices=[('annotation', 'ANNOTATION'), ('validation', 'VALIDATION'), ('completed', 'COMPLETED')], default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32), + field=models.CharField(choices=[('annotation', 'ANNOTATION'), ('validation', 'VALIDATION'), ('completed', 'COMPLETED')], default='annotation', max_length=32), ), migrations.AlterField( model_name='task', name='status', - field=models.CharField(choices=[('annotation', 'ANNOTATION'), ('validation', 'VALIDATION'), ('completed', 'COMPLETED')], default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32), + field=models.CharField(choices=[('annotation', 'ANNOTATION'), ('validation', 'VALIDATION'), ('completed', 'COMPLETED')], default='annotation', max_length=32), ), migrations.CreateModel( name='Image', diff --git a/cvat/apps/engine/migrations/0022_auto_20191004_0817.py b/cvat/apps/engine/migrations/0022_auto_20191004_0817.py index d6701bf1..b48a24f5 100644 --- a/cvat/apps/engine/migrations/0022_auto_20191004_0817.py +++ b/cvat/apps/engine/migrations/0022_auto_20191004_0817.py @@ -22,7 +22,7 @@ class Migration(migrations.Migration): ('bug_tracker', models.CharField(blank=True, default='', max_length=2000)), ('created_date', models.DateTimeField(auto_now_add=True)), ('updated_date', models.DateTimeField(auto_now_add=True)), - ('status', models.CharField(choices=[('annotation', 'ANNOTATION'), ('validation', 'VALIDATION'), ('completed', 'COMPLETED')], default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32)), + ('status', models.CharField(choices=[('annotation', 'ANNOTATION'), ('validation', 'VALIDATION'), ('completed', 'COMPLETED')], default='annotation', max_length=32)), ('assignee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('owner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], diff --git a/cvat/apps/engine/migrations/0044_auto_20211123_0824.py b/cvat/apps/engine/migrations/0045_auto_20211123_0824.py similarity index 91% rename from cvat/apps/engine/migrations/0044_auto_20211123_0824.py rename to cvat/apps/engine/migrations/0045_auto_20211123_0824.py index 41541f69..25cd53ef 100644 --- a/cvat/apps/engine/migrations/0044_auto_20211123_0824.py +++ b/cvat/apps/engine/migrations/0045_auto_20211123_0824.py @@ -4,6 +4,7 @@ from django.db import migrations, models class Migration(migrations.Migration): + replaces = [('engine', '0044_auto_20211123_0824')] dependencies = [ ('engine', '0044_auto_20211115_0858'), diff --git a/cvat/apps/engine/migrations/0045_data_sorting_method.py b/cvat/apps/engine/migrations/0046_data_sorting_method.py similarity index 84% rename from cvat/apps/engine/migrations/0045_data_sorting_method.py rename to cvat/apps/engine/migrations/0046_data_sorting_method.py index 2ec382b3..f3880482 100644 --- a/cvat/apps/engine/migrations/0045_data_sorting_method.py +++ b/cvat/apps/engine/migrations/0046_data_sorting_method.py @@ -5,9 +5,10 @@ from django.db import migrations, models class Migration(migrations.Migration): + replaces = [('engine', '0045_data_sorting_method')] dependencies = [ - ('engine', '0044_auto_20211123_0824'), + ('engine', '0045_auto_20211123_0824'), ] operations = [ diff --git a/cvat/apps/engine/migrations/0047_auto_20211110_1938.py b/cvat/apps/engine/migrations/0047_auto_20211110_1938.py new file mode 100644 index 00000000..69434115 --- /dev/null +++ b/cvat/apps/engine/migrations/0047_auto_20211110_1938.py @@ -0,0 +1,52 @@ +# Generated by Django 3.2.8 on 2021-11-10 19:38 + +import cvat.apps.engine.models +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('organizations', '0001_initial'), + ('engine', '0046_data_sorting_method'), + ] + + operations = [ + migrations.RemoveField( + model_name='issue', + name='review', + ), + migrations.RemoveField( + model_name='job', + name='reviewer', + ), + migrations.AddField( + model_name='cloudstorage', + name='organization', + field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='cloudstorages', to='organizations.organization'), + ), + migrations.AddField( + model_name='job', + name='stage', + field=models.CharField(choices=[('annotation', 'ANNOTATION'), ('validation', 'VALIDATION'), ('acceptance', 'ACCEPTANCE')], default=cvat.apps.engine.models.StageChoice['ANNOTATION'], max_length=32), + ), + migrations.AddField( + model_name='job', + name='state', + field=models.CharField(choices=[('new', 'NEW'), ('in progress', 'IN_PROGRESS'), ('completed', 'COMPLETED'), ('rejected', 'REJECTED')], default=cvat.apps.engine.models.StateChoice['NEW'], max_length=32), + ), + migrations.AddField( + model_name='project', + name='organization', + field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='projects', to='organizations.organization'), + ), + migrations.AddField( + model_name='task', + name='organization', + field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tasks', to='organizations.organization'), + ), + migrations.DeleteModel( + name='Review', + ), + ] diff --git a/cvat/apps/engine/migrations/0048_auto_20211112_1918.py b/cvat/apps/engine/migrations/0048_auto_20211112_1918.py new file mode 100644 index 00000000..e1c54ab1 --- /dev/null +++ b/cvat/apps/engine/migrations/0048_auto_20211112_1918.py @@ -0,0 +1,60 @@ +# Generated by Django 3.2.8 on 2021-11-12 19:18 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('engine', '0047_auto_20211110_1938'), + ] + + operations = [ + migrations.RenameField( + model_name='comment', + old_name='author', + new_name='owner', + ), + migrations.RenameField( + model_name='issue', + old_name='resolved_date', + new_name='updated_date', + ), + migrations.RenameField( + model_name='jobcommit', + old_name='author', + new_name='owner', + ), + migrations.RemoveField( + model_name='issue', + name='resolver', + ), + migrations.AddField( + model_name='issue', + name='assignee', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='issue', + name='resolved', + field=models.BooleanField(default=False), + ), + migrations.AlterField( + model_name='comment', + name='issue', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='engine.issue'), + ), + migrations.AlterField( + model_name='issue', + name='job', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='engine.job'), + ), + migrations.AlterField( + model_name='issue', + name='owner', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/cvat/apps/engine/mixins.py b/cvat/apps/engine/mixins.py index 006f8010..9cb1a480 100644 --- a/cvat/apps/engine/mixins.py +++ b/cvat/apps/engine/mixins.py @@ -153,7 +153,8 @@ class UploadMixin(object): metadata = self._get_metadata(request) filename = metadata.get('filename', '') if not self.validate_filename(filename): - return self._tus_response(status=status.HTTP_400_BAD_REQUEST, data="File name {} is not allowed".format(filename)) + return self._tus_response(status=status.HTTP_400_BAD_REQUEST, + data="File name {} is not allowed".format(filename)) message_id = request.META.get("HTTP_MESSAGE_ID") @@ -162,12 +163,13 @@ class UploadMixin(object): file_exists = os.path.lexists(os.path.join(self.get_upload_dir(), filename)) if file_exists: - return self._tus_response(status=status.HTTP_409_CONFLICT, data="File with same name already exists") + return self._tus_response(status=status.HTTP_409_CONFLICT, + data="File with same name already exists") file_size = int(request.META.get("HTTP_UPLOAD_LENGTH", "0")) if file_size > int(self._tus_max_file_size): return self._tus_response(status=status.HTTP_413_REQUEST_ENTITY_TOO_LARGE, - data="File size exceeds max limit of {} bytes".format(self._tus_max_file_size)) + data="File size exceeds max limit of {} bytes".format(self._tus_max_file_size)) tus_file = TusFile.create_file(metadata, file_size, self.get_upload_dir()) @@ -177,6 +179,7 @@ class UploadMixin(object): @action(detail=True, methods=['HEAD', 'PATCH'], url_path=r'data/'+_file_id_regex) def append_tus_chunk(self, request, pk, file_id): + self.get_object() # call check_object_permissions as well if request.method == 'HEAD': tus_file = TusFile.get_tusfile(str(file_id), self.get_upload_dir()) if tus_file: diff --git a/cvat/apps/engine/models.py b/cvat/apps/engine/models.py index 4fd29b91..c20fc878 100644 --- a/cvat/apps/engine/models.py +++ b/cvat/apps/engine/models.py @@ -14,6 +14,7 @@ from django.db import models from django.db.models.fields import FloatField from django.utils.translation import gettext_lazy as _ from cvat.apps.engine.utils import parse_specific_attributes +from cvat.apps.organizations.models import Organization class SafeCharField(models.CharField): def get_prep_value(self, value): @@ -46,6 +47,31 @@ class StatusChoice(str, Enum): def __str__(self): return self.value +class StageChoice(str, Enum): + ANNOTATION = 'annotation' + VALIDATION = 'validation' + ACCEPTANCE = 'acceptance' + + @classmethod + def choices(cls): + return tuple((x.value, x.name) for x in cls) + + def __str__(self): + return self.value + +class StateChoice(str, Enum): + NEW = 'new' + IN_PROGRESS = 'in progress' + COMPLETED = 'completed' + REJECTED = 'rejected' + + @classmethod + def choices(cls): + return tuple((x.value, x.name) for x in cls) + + def __str__(self): + return self.value + class DataChoice(str, Enum): VIDEO = 'video' IMAGESET = 'imageset' @@ -222,6 +248,8 @@ class Project(models.Model): updated_date = models.DateTimeField(auto_now=True) status = models.CharField(max_length=32, choices=StatusChoice.choices(), default=StatusChoice.ANNOTATION) + organization = models.ForeignKey(Organization, null=True, default=None, + blank=True, on_delete=models.SET_NULL, related_name="projects") training_project = models.ForeignKey(TrainingProject, null=True, blank=True, on_delete=models.SET_NULL) def get_project_dirname(self): @@ -264,6 +292,9 @@ class Task(models.Model): data = models.ForeignKey(Data, on_delete=models.CASCADE, null=True, related_name="tasks") dimension = models.CharField(max_length=2, choices=DimensionType.choices(), default=DimensionType.DIM_2D) subset = models.CharField(max_length=64, blank=True, default="") + organization = models.ForeignKey(Organization, null=True, default=None, + blank=True, on_delete=models.SET_NULL, related_name="tasks") + # Extend default permission model class Meta: @@ -357,9 +388,30 @@ class Segment(models.Model): class Job(models.Model): segment = models.ForeignKey(Segment, on_delete=models.CASCADE) assignee = models.ForeignKey(User, null=True, blank=True, on_delete=models.SET_NULL) - reviewer = models.ForeignKey(User, null=True, blank=True, related_name='review_job_set', on_delete=models.SET_NULL) + # TODO: it has to be deleted in Job, Task, Project and replaced by (stage, state) + # The stage field cannot be changed by an assignee, but state field can be. For + # now status is read only and it will be updated by (stage, state). Thus we don't + # need to update Task and Project (all should work as previously). status = models.CharField(max_length=32, choices=StatusChoice.choices(), default=StatusChoice.ANNOTATION) + stage = models.CharField(max_length=32, choices=StageChoice.choices(), + default=StageChoice.ANNOTATION) + state = models.CharField(max_length=32, choices=StateChoice.choices(), + default=StateChoice.NEW) + + def get_project_id(self): + project = self.segment.task.project + return project.id if project else None + + def get_bug_tracker(self): + task = self.segment.task + project = task.project + return task.bug_tracker or getattr(project, 'bug_tracker', None) + + def get_labels(self): + task = self.segment.task + project = task.project + return project.label_set if project else task.label_set class Meta: default_permissions = () @@ -448,18 +500,6 @@ class SourceType(str, Enum): def __str__(self): return self.value -class ReviewStatus(str, Enum): - ACCEPTED = 'accepted' - REJECTED = 'rejected' - REVIEW_FURTHER = 'review_further' - - @classmethod - def choices(self): - return tuple((x.value, x.name) for x in self) - - def __str__(self): - return self.value - class Annotation(models.Model): id = models.BigAutoField(primary_key=True) job = models.ForeignKey(Job, on_delete=models.CASCADE) @@ -475,7 +515,7 @@ class Annotation(models.Model): class Commit(models.Model): id = models.BigAutoField(primary_key=True) - author = models.ForeignKey(User, null=True, blank=True, on_delete=models.SET_NULL) + owner = models.ForeignKey(User, null=True, blank=True, on_delete=models.SET_NULL) version = models.PositiveIntegerField(default=0) timestamp = models.DateTimeField(auto_now=True) message = models.CharField(max_length=4096, default="") @@ -546,26 +586,21 @@ class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) rating = models.FloatField(default=0.0) -class Review(models.Model): - job = models.ForeignKey(Job, on_delete=models.CASCADE) - reviewer = models.ForeignKey(User, null=True, blank=True, related_name='reviews', on_delete=models.SET_NULL) - assignee = models.ForeignKey(User, null=True, blank=True, related_name='reviewed', on_delete=models.SET_NULL) - estimated_quality = models.FloatField() - status = models.CharField(max_length=16, choices=ReviewStatus.choices()) - class Issue(models.Model): frame = models.PositiveIntegerField() position = FloatArrayField() - job = models.ForeignKey(Job, on_delete=models.CASCADE) - review = models.ForeignKey(Review, null=True, blank=True, on_delete=models.SET_NULL) - owner = models.ForeignKey(User, null=True, blank=True, related_name='issues', on_delete=models.SET_NULL) - resolver = models.ForeignKey(User, null=True, blank=True, related_name='resolved_issues', on_delete=models.SET_NULL) + job = models.ForeignKey(Job, related_name='issues', on_delete=models.CASCADE) + owner = models.ForeignKey(User, null=True, blank=True, related_name='+', + on_delete=models.SET_NULL) + assignee = models.ForeignKey(User, null=True, blank=True, related_name='+', + on_delete=models.SET_NULL) created_date = models.DateTimeField(auto_now_add=True) - resolved_date = models.DateTimeField(null=True, blank=True) + updated_date = models.DateTimeField(null=True, blank=True) + resolved = models.BooleanField(default=False) class Comment(models.Model): - issue = models.ForeignKey(Issue, on_delete=models.CASCADE) - author = models.ForeignKey(User, null=True, blank=True, on_delete=models.SET_NULL) + issue = models.ForeignKey(Issue, related_name='comments', on_delete=models.CASCADE) + owner = models.ForeignKey(User, null=True, blank=True, on_delete=models.SET_NULL) message = models.TextField(default='') created_date = models.DateTimeField(auto_now_add=True) updated_date = models.DateTimeField(auto_now=True) @@ -636,10 +671,13 @@ class CloudStorage(models.Model): credentials_type = models.CharField(max_length=29, choices=CredentialsTypeChoice.choices())#auth_type specific_attributes = models.CharField(max_length=128, blank=True) description = models.TextField(blank=True) + organization = models.ForeignKey(Organization, null=True, default=None, + blank=True, on_delete=models.SET_NULL, related_name="cloudstorages") + class Meta: default_permissions = () - unique_together = (('provider_type', 'resource', 'credentials'),) + unique_together = ('provider_type', 'resource', 'credentials') def __str__(self): return "{} {} {}".format(self.provider_type, self.display_name, self.id) diff --git a/cvat/apps/engine/parsers.py b/cvat/apps/engine/parsers.py new file mode 100644 index 00000000..5b23c7c3 --- /dev/null +++ b/cvat/apps/engine/parsers.py @@ -0,0 +1,17 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from rest_framework.parsers import BaseParser + +class TusUploadParser(BaseParser): + # The media type is sent by TUS protocol (tus.io) for uploading files + media_type = 'application/offset+octet-stream' + + def parse(self, stream, media_type=None, parser_context=None): + # Let's just return empty dictionary which will be used for + # request.data. Otherwise every access to request.data will lead to + # exception because a parser for the request with the non-standard + # content media type isn't defined. + # https://github.com/imtapps/django-rest-framework/blob/master/docs/api-guide/parsers.md + return {} \ No newline at end of file diff --git a/cvat/apps/engine/serializers.py b/cvat/apps/engine/serializers.py index cbe05629..f2a87f07 100644 --- a/cvat/apps/engine/serializers.py +++ b/cvat/apps/engine/serializers.py @@ -33,7 +33,6 @@ class BasicUserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('url', 'id', 'username', 'first_name', 'last_name') - ordering = ['-id'] class UserSerializer(serializers.ModelSerializer): groups = serializers.SlugRelatedField(many=True, @@ -46,7 +45,6 @@ class UserSerializer(serializers.ModelSerializer): 'date_joined') read_only_fields = ('last_login', 'date_joined') write_only_fields = ('password', ) - ordering = ['-id'] class AttributeSerializer(serializers.ModelSerializer): class Meta: @@ -138,33 +136,67 @@ class LabelSerializer(serializers.ModelSerializer): class JobCommitSerializer(serializers.ModelSerializer): class Meta: model = models.JobCommit - fields = ('id', 'version', 'author', 'message', 'timestamp') + fields = ('id', 'version', 'owner', 'message', 'timestamp') -class JobSerializer(serializers.ModelSerializer): +class JobReadSerializer(serializers.ModelSerializer): task_id = serializers.ReadOnlyField(source="segment.task.id") + project_id = serializers.ReadOnlyField(source="get_project_id", allow_null=True) start_frame = serializers.ReadOnlyField(source="segment.start_frame") stop_frame = serializers.ReadOnlyField(source="segment.stop_frame") - assignee = BasicUserSerializer(allow_null=True, required=False) - assignee_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) - reviewer = BasicUserSerializer(allow_null=True, required=False) - reviewer_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) + assignee = BasicUserSerializer(allow_null=True) + dimension = serializers.CharField(max_length=2, source='segment.task.dimension') + labels = LabelSerializer(many=True, source='get_labels') + data_chunk_size = serializers.ReadOnlyField(source='segment.task.data.chunk_size') + data_compressed_chunk_type = serializers.ReadOnlyField(source='segment.task.data.compressed_chunk_type') + mode = serializers.ReadOnlyField(source='segment.task.mode') + bug_tracker = serializers.CharField(max_length=2000, source='get_bug_tracker', + allow_null=True) class Meta: model = models.Job - fields = ('url', 'id', 'assignee', 'assignee_id', 'reviewer', - 'reviewer_id', 'status', 'start_frame', 'stop_frame', 'task_id') - read_only_fields = ('assignee', 'reviewer') + fields = ('url', 'id', 'task_id', 'project_id', 'assignee', + 'dimension', 'labels', 'bug_tracker', 'status', 'stage', 'state', 'mode', + 'start_frame', 'stop_frame', 'data_chunk_size', 'data_compressed_chunk_type') + read_only_fields = fields + +class JobWriteSerializer(serializers.ModelSerializer): + assignee = serializers.IntegerField(allow_null=True, required=False) + def to_representation(self, instance): + serializer = JobReadSerializer(instance, context=self.context) + return serializer.data + + def update(self, instance, validated_data): + state = validated_data.get('state') + stage = validated_data.get('stage') + if stage: + if stage == models.StageChoice.ANNOTATION: + status = models.StatusChoice.ANNOTATION + elif stage == models.StageChoice.ACCEPTANCE and state == models.StateChoice.COMPLETED: + status = models.StatusChoice.COMPLETED + else: + status = models.StatusChoice.VALIDATION + + validated_data['status'] = status + if stage != instance.stage and not state: + validated_data['state'] = models.StateChoice.NEW + + assignee = validated_data.get('assignee') + if assignee is not None: + validated_data['assignee'] = User.objects.get(id=assignee) + + return super().update(instance, validated_data) + + class Meta: + model = models.Job + fields = ('assignee', 'stage', 'state') class SimpleJobSerializer(serializers.ModelSerializer): assignee = BasicUserSerializer(allow_null=True) - assignee_id = serializers.IntegerField(write_only=True, allow_null=True) - reviewer = BasicUserSerializer(allow_null=True, required=False) - reviewer_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) class Meta: model = models.Job - fields = ('url', 'id', 'assignee', 'assignee_id', 'reviewer', 'reviewer_id', 'status') - read_only_fields = ('assignee', 'reviewer') + fields = ('url', 'id', 'assignee', 'status', 'stage', 'state') + read_only_fields = fields class SegmentSerializer(serializers.ModelSerializer): jobs = SimpleJobSerializer(many=True, source='job_set') @@ -172,6 +204,7 @@ class SegmentSerializer(serializers.ModelSerializer): class Meta: model = models.Segment fields = ('start_frame', 'stop_frame', 'jobs') + read_only_fields = fields class ClientFileSerializer(serializers.ModelSerializer): class Meta: @@ -367,28 +400,40 @@ class TaskSerializer(WriteOnceMixin, serializers.ModelSerializer): owner_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) assignee = BasicUserSerializer(allow_null=True, required=False) assignee_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) - project_id = serializers.IntegerField(required=False) + project_id = serializers.IntegerField(required=False, allow_null=True) dimension = serializers.CharField(allow_blank=True, required=False) class Meta: model = models.Task - fields = ('url', 'id', 'name', 'project_id', 'mode', 'owner', 'assignee', 'owner_id', 'assignee_id', - 'bug_tracker', 'created_date', 'updated_date', 'overlap', - 'segment_size', 'status', 'labels', 'segments', - 'data_chunk_size', 'data_compressed_chunk_type', 'data_original_chunk_type', 'size', 'image_quality', - 'data', 'dimension', 'subset') - read_only_fields = ('mode', 'created_date', 'updated_date', 'status', 'data_chunk_size', 'owner', 'assignee', - 'data_compressed_chunk_type', 'data_original_chunk_type', 'size', 'image_quality', 'data') + fields = ('url', 'id', 'name', 'project_id', 'mode', 'owner', 'assignee', + 'owner_id', 'assignee_id', 'bug_tracker', 'created_date', 'updated_date', + 'overlap', 'segment_size', 'status', 'labels', 'segments', + 'data_chunk_size', 'data_compressed_chunk_type', 'data_original_chunk_type', + 'size', 'image_quality', 'data', 'dimension', 'subset', 'organization') + read_only_fields = ('mode', 'created_date', 'updated_date', 'status', + 'data_chunk_size', 'owner', 'assignee', 'data_compressed_chunk_type', + 'data_original_chunk_type', 'size', 'image_quality', 'data', + 'organization') write_once_fields = ('overlap', 'segment_size', 'project_id') - ordering = ['-id'] # pylint: disable=no-self-use def create(self, validated_data): - if not (validated_data.get("label_set") or validated_data.get("project_id")): + project_id = validated_data.get("project_id") + if not (validated_data.get("label_set") or project_id): raise serializers.ValidationError('Label set or project_id must be present') - if validated_data.get("label_set") and validated_data.get("project_id"): + if validated_data.get("label_set") and project_id: raise serializers.ValidationError('Project must have only one of Label set or project_id') + project = None + if project_id: + try: + project = models.Project.objects.get(id=project_id) + except models.Project.DoesNotExist: + raise serializers.ValidationError(f'The specified project #{project_id} does not exist.') + + if project.organization != validated_data.get('organization'): + raise serializers.ValidationError(f'The task and its project should be in the same organization.') + labels = validated_data.pop('label_set', []) db_task = models.Task.objects.create(**validated_data) label_colors = list() @@ -429,9 +474,9 @@ class TaskSerializer(WriteOnceMixin, serializers.ModelSerializer): if instance.project_id is None: for label in labels: LabelSerializer.update_instance(label, instance) - validated_project_id = validated_data.get('project_id', None) + validated_project_id = validated_data.get('project_id') if validated_project_id is not None and validated_project_id != instance.project_id: - project = models.Project.objects.get(id=validated_data.get('project_id', None)) + project = models.Project.objects.get(id=validated_project_id) if project.tasks.count() and project.tasks.first().dimension != instance.dimension: raise serializers.ValidationError(f'Dimension ({instance.dimension}) of the task must be the same as other tasks in project ({project.tasks.first().dimension})') if instance.project_id is None: @@ -509,7 +554,6 @@ class ProjectSearchSerializer(serializers.ModelSerializer): model = models.Project fields = ('id', 'name') read_only_fields = ('name',) - ordering = ['-id'] class TrainingProjectSerializer(serializers.ModelSerializer): @@ -521,7 +565,7 @@ class TrainingProjectSerializer(serializers.ModelSerializer): class ProjectSerializer(serializers.ModelSerializer): labels = LabelSerializer(many=True, source='label_set', partial=True, default=[]) - owner = BasicUserSerializer(required=False) + owner = BasicUserSerializer(required=False, read_only=True) owner_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) assignee = BasicUserSerializer(allow_null=True, required=False) assignee_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) @@ -531,11 +575,12 @@ class ProjectSerializer(serializers.ModelSerializer): class Meta: model = models.Project - fields = ('url', 'id', 'name', 'labels', 'tasks', 'owner', 'assignee', 'owner_id', 'assignee_id', - 'bug_tracker', 'task_subsets', 'created_date', 'updated_date', 'status', 'training_project', 'dimension') - read_only_fields = ('created_date', 'updated_date', 'tasks', 'status', 'owner', 'asignee', 'task_subsets', 'dimension') - ordering = ['-id'] - + fields = ('url', 'id', 'name', 'labels', 'tasks', 'owner', 'assignee', + 'owner_id', 'assignee_id', 'bug_tracker', 'task_subsets', + 'created_date', 'updated_date', 'status', 'training_project', + 'dimension', 'organization') + read_only_fields = ('created_date', 'updated_date', 'status', 'owner', + 'assignee', 'task_subsets', 'dimension', 'organization', 'tasks') def to_representation(self, instance): response = super().to_representation(instance) @@ -742,66 +787,66 @@ class TaskFileSerializer(serializers.Serializer): class ProjectFileSerializer(serializers.Serializer): project_file = serializers.FileField() -class ReviewSerializer(serializers.ModelSerializer): - assignee = BasicUserSerializer(allow_null=True, required=False) - assignee_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) - reviewer = BasicUserSerializer(allow_null=True, required=False) - reviewer_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) +class CommentReadSerializer(serializers.ModelSerializer): + owner = BasicUserSerializer(allow_null=True, required=False) class Meta: - model = models.Review - fields = '__all__' - read_only_fields = ('id', 'assignee', 'reviewer', ) - write_once_fields = ('job', 'reviewer_id', 'assignee_id', 'estimated_quality', 'status', ) - ordering = ['-id'] + model = models.Comment + fields = ('id', 'issue', 'owner', 'message', 'created_date', + 'updated_date') + read_only_fields = fields + +class CommentWriteSerializer(WriteOnceMixin, serializers.ModelSerializer): + def to_representation(self, instance): + serializer = CommentReadSerializer(instance, context=self.context) + return serializer.data + + class Meta: + model = models.Comment + fields = ('id', 'issue', 'owner', 'message', 'created_date', + 'updated_date') + read_only_fields = ('id', 'created_date', 'updated_date', 'owner') + write_once_fields = ('issue', ) -class IssueSerializer(serializers.ModelSerializer): - owner = BasicUserSerializer(allow_null=True, required=False) - owner_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) - resolver = BasicUserSerializer(allow_null=True, required=False) - resolver_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) +class IssueReadSerializer(serializers.ModelSerializer): + owner = BasicUserSerializer(allow_null=True, required=False) + assignee = BasicUserSerializer(allow_null=True, required=False) position = serializers.ListField( - child=serializers.FloatField(), - allow_empty=False, + child=serializers.FloatField(), allow_empty=False ) + comments = CommentReadSerializer(many=True) class Meta: model = models.Issue - fields = '__all__' - read_only_fields = ('created_date', 'id', 'owner', 'resolver', ) - write_once_fields = ('frame', 'position', 'job', 'owner_id', 'review', ) - ordering = ['-id'] - -class CommentSerializer(serializers.ModelSerializer): - author = BasicUserSerializer(allow_null=True, required=False) - author_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) + fields = ('id', 'frame', 'position', 'job', 'owner', 'assignee', + 'created_date', 'updated_date', 'comments', 'resolved') + read_only_fields = fields - class Meta: - model = models.Comment - fields = '__all__' - read_only_fields = ('created_date', 'updated_date', 'id', 'author', ) - write_once_fields = ('issue', 'author_id', ) -class CombinedIssueSerializer(IssueSerializer): - comment_set = CommentSerializer(many=True) +class IssueWriteSerializer(WriteOnceMixin, serializers.ModelSerializer): + position = serializers.ListField( + child=serializers.FloatField(), allow_empty=False, + ) + message = serializers.CharField(style={'base_template': 'textarea.html'}) -class CombinedReviewSerializer(ReviewSerializer): - issue_set = CombinedIssueSerializer(many=True) + def to_representation(self, instance): + serializer = IssueReadSerializer(instance, context=self.context) + return serializer.data def create(self, validated_data): - issues_validated_data = validated_data.pop('issue_set') - db_review = models.Review.objects.create(**validated_data) - for issue in issues_validated_data: - issue['review'] = db_review - - comments_validated_data = issue.pop('comment_set') - db_issue = models.Issue.objects.create(**issue) - for comment in comments_validated_data: - comment['issue'] = db_issue - models.Comment.objects.create(**comment) + message = validated_data.pop('message') + db_issue = super().create(validated_data) + models.Comment.objects.create(issue=db_issue, + message=message, owner=db_issue.owner) + return db_issue - return db_review + class Meta: + model = models.Issue + fields = ('id', 'frame', 'position', 'job', 'owner', 'assignee', + 'created_date', 'updated_date', 'message', 'resolved') + read_only_fields = ('id', 'owner', 'created_date', 'updated_date') + write_once_fields = ('frame', 'position', 'job', 'message', 'owner') class ManifestSerializer(serializers.ModelSerializer): class Meta: @@ -822,7 +867,7 @@ class BaseCloudStorageSerializer(serializers.ModelSerializer): class Meta: model = models.CloudStorage exclude = ['credentials'] - read_only_fields = ('created_date', 'updated_date', 'owner') + read_only_fields = ('created_date', 'updated_date', 'owner', 'organization') class CloudStorageSerializer(serializers.ModelSerializer): owner = BasicUserSerializer(required=False) @@ -838,9 +883,10 @@ class CloudStorageSerializer(serializers.ModelSerializer): fields = ( 'provider_type', 'resource', 'display_name', 'owner', 'credentials_type', 'created_date', 'updated_date', 'session_token', 'account_name', 'key', - 'secret_key', 'key_file', 'specific_attributes', 'description', 'id', 'manifests', + 'secret_key', 'key_file', 'specific_attributes', 'description', 'id', + 'manifests', 'organization' ) - read_only_fields = ('created_date', 'updated_date', 'owner') + read_only_fields = ('created_date', 'updated_date', 'owner', 'organization') # pylint: disable=no-self-use def validate_specific_attributes(self, value): @@ -937,7 +983,7 @@ class CloudStorageSerializer(serializers.ModelSerializer): field = 'credentials' message = 'Cannot create resource {} with specified credentials. Access forbidden.'.format(storage.name) else: - field = 'recource' + field = 'resource' message = 'The resource {} not found. It may have been deleted.'.format(storage.name) if temporary_file: os.remove(temporary_file) @@ -1018,7 +1064,7 @@ class CloudStorageSerializer(serializers.ModelSerializer): field = 'credentials' message = 'Cannot update resource {} with specified credentials. Access forbidden.'.format(storage.name) else: - field = 'recource' + field = 'resource' message = 'The resource {} not found. It may have been deleted.'.format(storage.name) if temporary_file: os.remove(temporary_file) diff --git a/cvat/apps/engine/tests/test_rest_api.py b/cvat/apps/engine/tests/test_rest_api.py index 3f7efae8..5939d115 100644 --- a/cvat/apps/engine/tests/test_rest_api.py +++ b/cvat/apps/engine/tests/test_rest_api.py @@ -30,9 +30,9 @@ from rest_framework import status from rest_framework.test import APIClient, APITestCase from datumaro.util.test_utils import TestDir -from cvat.apps.engine.models import (AttributeSpec, AttributeType, Data, Job, Project, - Segment, StatusChoice, Task, Label, StorageMethodChoice, StorageChoice, DimensionType, - SortingMethod) +from cvat.apps.engine.models import (AttributeSpec, AttributeType, Data, Job, + Project, Segment, StageChoice, StatusChoice, Task, Label, StorageMethodChoice, + StorageChoice, DimensionType, SortingMethod) from cvat.apps.engine.media_extractors import ValidateDimension, sort from utils.dataset_manifest import ImageManifestManager, VideoManifestManager @@ -41,21 +41,22 @@ logging.getLogger('libav').setLevel(logging.ERROR) def create_db_users(cls): (group_admin, _) = Group.objects.get_or_create(name="admin") + (group_business, _) = Group.objects.get_or_create(name="business") (group_user, _) = Group.objects.get_or_create(name="user") - (group_annotator, _) = Group.objects.get_or_create(name="annotator") - (group_observer, _) = Group.objects.get_or_create(name="observer") + (group_annotator, _) = Group.objects.get_or_create(name="worker") + (group_somebody, _) = Group.objects.get_or_create(name="somebody") user_admin = User.objects.create_superuser(username="admin", email="", password="admin") user_admin.groups.add(group_admin) user_owner = User.objects.create_user(username="user1", password="user1") - user_owner.groups.add(group_user) + user_owner.groups.add(group_business) user_assignee = User.objects.create_user(username="user2", password="user2") user_assignee.groups.add(group_annotator) user_annotator = User.objects.create_user(username="user3", password="user3") user_annotator.groups.add(group_annotator) - user_observer = User.objects.create_user(username="user4", password="user4") - user_observer.groups.add(group_observer) + user_somebody = User.objects.create_user(username="user4", password="user4") + user_somebody.groups.add(group_somebody) user_dummy = User.objects.create_user(username="user5", password="user5") user_dummy.groups.add(group_user) @@ -63,7 +64,7 @@ def create_db_users(cls): cls.owner = cls.user1 = user_owner cls.assignee = cls.user2 = user_assignee cls.annotator = cls.user3 = user_annotator - cls.observer = cls.user4 = user_observer + cls.somebody = cls.user4 = user_somebody cls.user = cls.user5 = user_dummy def create_db_task(data): @@ -294,10 +295,10 @@ class JobGetAPITestCase(APITestCase): response = self._run_api_v1_jobs_id(self.job.id + 10, self.annotator) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) - def test_api_v1_jobs_id_observer(self): - response = self._run_api_v1_jobs_id(self.job.id, self.observer) - self._check_request(response) - response = self._run_api_v1_jobs_id(self.job.id + 10, self.observer) + def test_api_v1_jobs_id_somebody(self): + response = self._run_api_v1_jobs_id(self.job.id, self.somebody) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + response = self._run_api_v1_jobs_id(self.job.id + 10, self.somebody) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_api_v1_jobs_id_user(self): @@ -334,49 +335,49 @@ class JobUpdateAPITestCase(APITestCase): def _check_request(self, response, data): self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data["id"], self.job.id) - self.assertEqual(response.data["status"], data.get('status', self.job.status)) + self.assertEqual(response.data["stage"], data.get('stage', self.job.status)) assignee = self.job.assignee.id if self.job.assignee else None - self.assertEqual(response.data["assignee"]["id"], data.get('assignee_id', assignee)) + self.assertEqual(response.data["assignee"]["id"], data.get('assignee', assignee)) self.assertEqual(response.data["start_frame"], self.job.segment.start_frame) self.assertEqual(response.data["stop_frame"], self.job.segment.stop_frame) def test_api_v1_jobs_id_admin(self): - data = {"status": StatusChoice.COMPLETED, "assignee_id": self.owner.id} + data = {"stage": StageChoice.ANNOTATION, "assignee": self.owner.id } response = self._run_api_v1_jobs_id(self.job.id, self.admin, data) self._check_request(response, data) response = self._run_api_v1_jobs_id(self.job.id + 10, self.admin, data) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_api_v1_jobs_id_owner(self): - data = {"status": StatusChoice.VALIDATION, "assignee_id": self.annotator.id} + data = {"stage": StageChoice.ANNOTATION, "assignee": self.owner.id} response = self._run_api_v1_jobs_id(self.job.id, self.owner, data) self._check_request(response, data) response = self._run_api_v1_jobs_id(self.job.id + 10, self.owner, data) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_api_v1_jobs_id_annotator(self): - data = {"status": StatusChoice.ANNOTATION, "assignee_id": self.user.id} + data = {"stage": StageChoice.ANNOTATION, "assignee": self.annotator.id} response = self._run_api_v1_jobs_id(self.job.id, self.annotator, data) self._check_request(response, data) response = self._run_api_v1_jobs_id(self.job.id + 10, self.annotator, data) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) - def test_api_v1_jobs_id_observer(self): - data = {"status": StatusChoice.ANNOTATION, "assignee_id": self.admin.id} - response = self._run_api_v1_jobs_id(self.job.id, self.observer, data) + def test_api_v1_jobs_id_somebody(self): + data = {"stage": StageChoice.ANNOTATION, "assignee": self.admin.id} + response = self._run_api_v1_jobs_id(self.job.id, self.somebody, data) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._run_api_v1_jobs_id(self.job.id + 10, self.observer, data) + response = self._run_api_v1_jobs_id(self.job.id + 10, self.somebody, data) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_api_v1_jobs_id_user(self): - data = {"status": StatusChoice.ANNOTATION, "assignee_id": self.user.id} + data = {"stage": StageChoice.ANNOTATION, "assignee": self.user.id} response = self._run_api_v1_jobs_id(self.job.id, self.user, data) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) response = self._run_api_v1_jobs_id(self.job.id + 10, self.user, data) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_api_v1_jobs_id_no_auth(self): - data = {"status": StatusChoice.ANNOTATION, "assignee_id": self.user.id} + data = {"stage": StageChoice.ANNOTATION, "assignee": self.user.id} response = self._run_api_v1_jobs_id(self.job.id, None, data) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self._run_api_v1_jobs_id(self.job.id + 10, None, data) @@ -390,7 +391,7 @@ class JobPartialUpdateAPITestCase(JobUpdateAPITestCase): return response def test_api_v1_jobs_id_annotator_partial(self): - data = {"status": StatusChoice.VALIDATION} + data = {"stage": StageChoice.ANNOTATION} response = self._run_api_v1_jobs_id(self.job.id, self.owner, data) self._check_request(response, data) @@ -399,227 +400,6 @@ class JobPartialUpdateAPITestCase(JobUpdateAPITestCase): response = self._run_api_v1_jobs_id(self.job.id, self.owner, data) self._check_request(response, data) -class JobReview(APITestCase): - def setUp(self): - self.client = APIClient() - - @classmethod - def setUpTestData(cls): - create_db_users(cls) - cls.task = create_dummy_db_tasks(cls)[0] - cls.job = Job.objects.filter(segment__task_id=cls.task.id).first() - cls.reviewer = cls.annotator - cls.job.reviewer = cls.reviewer - cls.job.assignee = cls.assignee - cls.job.save() - cls.reject_review_data = { - "job": cls.job.id, - "issue_set": [ - { - "position": [ - 50, 50, 100, 100 - ], - "comment_set": [ - { - "message": "This is wrong!" - }, { - "message": "This is wrong 2!" - } - ], - "frame": 0 - } - ], - "estimated_quality": 3, - "status": "rejected" - } - - cls.accept_review_data = { - "job": cls.job.id, - "issue_set": [], - "estimated_quality": 5, - "status": "accepted" - } - - cls.review_further_data = { - "job": cls.job.id, - "issue_set": [], - "estimated_quality": 4, - "status": "review_further", - "reviewer_id": cls.reviewer.id - } - - cls.create_comment_data = [{ - "message": "This is testing message" - }, { - "message": "This is testing message 2" - }, { - "message": "This is testing message 3" - }] - - def _post_request(self, path, user, data): - with ForceLogin(user, self.client): - response = self.client.post(path, data=data, format='json') - - return response - - def _patch_request(self, path, user, data): - with ForceLogin(user, self.client): - response = self.client.patch(path, data=data, format='json') - - return response - - def _get_request(self, path, user): - with ForceLogin(user, self.client): - response = self.client.get(path) - - return response - - def _delete_request(self, path, user): - with ForceLogin(user, self.client): - response = self.client.delete(path) - - return response - - def _fetch_job_from_db(self): - self.job = Job.objects.prefetch_related( - 'review_set', - 'review_set__issue_set', - 'review_set__issue_set__comment_set').filter(segment__task_id=self.task.id).first() - - def _set_annotation_status(self): - self._patch_request('/api/v1/jobs/{}'.format(self.job.id), self.admin, {'status': 'annotation'}) - - def _set_validation_status(self): - self._patch_request('/api/v1/jobs/{}'.format(self.job.id), self.admin, {'status': 'validation'}) - - def test_api_v1_job_annotation_review(self): - self._set_annotation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.accept_review_data) - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._post_request('/api/v1/reviews', self.assignee, self.accept_review_data) - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - - def test_api_v1_job_validation_review_create(self): - self._set_validation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.accept_review_data) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - self._fetch_job_from_db() - self.assertEqual(self.job.status, 'completed') - response = self._post_request('/api/v1/reviews', self.assignee, self.accept_review_data) - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - self.job.review_set.first().delete() - - def test_api_v1_job_reject_review(self): - self._set_validation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.reject_review_data) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - self._fetch_job_from_db() - self.assertEqual(self.job.status, 'annotation') - self.job.review_set.first().delete() - - def test_api_v1_job_review_further(self): - self._set_validation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.review_further_data) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - self._fetch_job_from_db() - self.assertEqual(self.job.status, 'validation') - self.job.review_set.first().delete() - - def test_api_v1_create_review_comment(self): - self._set_validation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.reject_review_data) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - issue_id = response.data['issue_set'][0]['id'] - comments = self.create_comment_data[:] - for comment in comments: - comment.update({ - 'issue': issue_id - }) - response = self._post_request('/api/v1/comments', self.assignee, comment) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - response = self._get_request('/api/v1/issues/{}/comments'.format(issue_id), self.reviewer) - self.assertIsInstance(response.data, cls = list) - self.assertEqual(len(response.data), 5) - self.job.review_set.all().delete() - self.job.issue_set.all().delete() - - def test_api_v1_edit_review_comment(self): - self._set_validation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.reject_review_data) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - issue_id = response.data['issue_set'][0]['id'] - comments = self.create_comment_data[:] - for comment in comments: - comment.update({ - 'issue': issue_id - }) - response = self._post_request('/api/v1/comments', self.assignee, comment) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - response = self._get_request('/api/v1/issues/{}/comments'.format(issue_id), self.reviewer) - last_comment = max(response.data, key=lambda comment: comment['id']) - last_comment.update({ - 'message': 'fixed message 3' - }) - last_comment.update({ - 'author_id': last_comment['author']['id'], - 'author': None - }) - response = self._patch_request('/api/v1/comments/{}'.format(last_comment['id']), self.reviewer, last_comment) - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._patch_request('/api/v1/comments/{}'.format(last_comment['id']), self.assignee, last_comment) - self.assertEqual(response.status_code, status.HTTP_200_OK) - self.assertEqual(response.data['message'], last_comment['message']) - response = self._get_request('/api/v1/issues/{}/comments'.format(issue_id), self.reviewer) - updated_last_comment = max(response.data, key=lambda comment: comment['id']) - self.assertEqual(updated_last_comment['message'], last_comment['message']) - self.job.review_set.all().delete() - self.job.issue_set.all().delete() - - def test_api_v1_remove_comment(self): - self._set_validation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.reject_review_data) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - issue_id = response.data['issue_set'][0]['id'] - comments = self.create_comment_data[:] - for comment in comments: - comment.update({ - 'issue': issue_id - }) - response = self._post_request('/api/v1/comments', self.assignee, comment) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) - response = self._get_request('/api/v1/issues/{}/comments'.format(issue_id), self.reviewer) - last_comment = max(response.data, key=lambda comment: comment['id']) - response = self._delete_request('/api/v1/comments/{}'.format(last_comment['id']), self.reviewer) - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._delete_request('/api/v1/comments/{}'.format(last_comment['id']), self.assignee) - self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) - self._fetch_job_from_db() - ids = list(map(lambda comment: comment.id, self.job.issue_set.first().comment_set.all())) - self.assertNotIn(last_comment['id'], ids) - self.job.review_set.all().delete() - self.job.issue_set.all().delete() - - def test_api_v1_resolve_reopen_issue(self): - self._set_validation_status() - response = self._post_request('/api/v1/reviews', self.reviewer, self.reject_review_data) - response = self._get_request('/api/v1/jobs/{}/issues'.format(self.job.id), self.assignee) - issue_id = response.data[0]['id'] - - response = self._patch_request('/api/v1/issues/{}'.format(issue_id), self.assignee, {'resolver_id': self.assignee.id}) - self.assertEqual(response.status_code, status.HTTP_200_OK) - response = self._get_request('/api/v1/jobs/{}/issues'.format(self.job.id), self.assignee) - self.assertEqual(response.data[0]['resolver']['id'], self.assignee.id) - - response = self._patch_request('/api/v1/issues/{}'.format(issue_id), self.reviewer, {'resolver_id': None}) - self.assertEqual(response.status_code, status.HTTP_200_OK) - response = self._get_request('/api/v1/jobs/{}/issues'.format(self.job.id), self.assignee) - self.assertEqual(response.data[0]['resolver'], None) - - response = self._patch_request('/api/v1/issues/{}'.format(issue_id), self.reviewer, {'resolver_id': self.reviewer.id}) - self.assertEqual(response.status_code, status.HTTP_200_OK) - response = self._get_request('/api/v1/jobs/{}/issues'.format(self.job.id), self.reviewer) - self.assertEqual(response.data[0]['resolver']['id'], self.reviewer.id) - class ServerAboutAPITestCase(APITestCase): def setUp(self): self.client = APIClient() @@ -792,9 +572,9 @@ class UserListAPITestCase(UserAPITestCase): response = self._run_api_v1_users(self.annotator) self._check_response(self.annotator, response, False) - def test_api_v1_users_observer(self): - response = self._run_api_v1_users(self.observer) - self._check_response(self.observer, response, False) + def test_api_v1_users_somebody(self): + response = self._run_api_v1_users(self.somebody) + self._check_response(self.somebody, response, False) def test_api_v1_users_no_auth(self): response = self._run_api_v1_users(None) @@ -819,9 +599,9 @@ class UserSelfAPITestCase(UserAPITestCase): response = self._run_api_v1_users_self(self.annotator) self._check_response(self.annotator, response) - def test_api_v1_users_self_observer(self): - response = self._run_api_v1_users_self(self.observer) - self._check_response(self.observer, response) + def test_api_v1_users_self_somebody(self): + response = self._run_api_v1_users_self(self.somebody) + self._check_response(self.somebody, response) def test_api_v1_users_self_no_auth(self): response = self._run_api_v1_users_self(None) @@ -849,21 +629,21 @@ class UserGetAPITestCase(UserAPITestCase): self._check_response(self.user, response, True) response = self._run_api_v1_users_id(self.user, self.owner.id) - self._check_response(self.owner, response, False) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_api_v1_users_id_annotator(self): response = self._run_api_v1_users_id(self.annotator, self.annotator.id) self._check_response(self.annotator, response, True) response = self._run_api_v1_users_id(self.annotator, self.user.id) - self._check_response(self.user, response, False) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - def test_api_v1_users_id_observer(self): - response = self._run_api_v1_users_id(self.observer, self.observer.id) - self._check_response(self.observer, response, True) + def test_api_v1_users_id_somebody(self): + response = self._run_api_v1_users_id(self.somebody, self.somebody.id) + self._check_response(self.somebody, response, True) - response = self._run_api_v1_users_id(self.observer, self.user.id) - self._check_response(self.user, response, False) + response = self._run_api_v1_users_id(self.somebody, self.user.id) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_api_v1_users_id_no_auth(self): response = self._run_api_v1_users_id(None, self.user.id) @@ -943,11 +723,11 @@ class UserDeleteAPITestCase(UserAPITestCase): response = self._run_api_v1_users_id(self.annotator, self.annotator.id) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) - def test_api_v1_users_id_observer(self): - response = self._run_api_v1_users_id(self.observer, self.user.id) + def test_api_v1_users_id_somebody(self): + response = self._run_api_v1_users_id(self.somebody, self.user.id) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._run_api_v1_users_id(self.observer, self.observer.id) + response = self._run_api_v1_users_id(self.somebody, self.somebody.id) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) def test_api_v1_users_id_no_auth(self): @@ -981,15 +761,14 @@ class ProjectListAPITestCase(APITestCase): self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertListEqual( sorted([project.name for project in self.projects - if 'my empty project' != project.name]), + if self.user in [project.owner, project.assignee]]), sorted([res["name"] for res in response.data["results"]])) - def test_api_v1_projects_observer(self): - response = self._run_api_v1_projects(self.observer) + def test_api_v1_projects_somebody(self): + response = self._run_api_v1_projects(self.somebody) self.assertEqual(response.status_code, status.HTTP_200_OK) - self.assertListEqual( - sorted([project.name for project in self.projects]), - sorted([res["name"] for res in response.data["results"]])) + self.assertListEqual([], + [res["name"] for res in response.data["results"]]) def test_api_v1_projects_no_auth(self): response = self._run_api_v1_projects(None) @@ -1025,12 +804,12 @@ class ProjectGetAPITestCase(APITestCase): def _check_api_v1_projects_id(self, user): for db_project in self.projects: response = self._run_api_v1_projects_id(db_project.id, user) - if user and user.has_perm("engine.project.access", db_project): + if user is None: + self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + elif user == db_project.owner or user == db_project.assignee or user.is_superuser: self._check_response(response, db_project) - elif user: - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) else: - self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_api_v1_projects_id_admin(self): self._check_api_v1_projects_id(self.admin) @@ -1038,8 +817,8 @@ class ProjectGetAPITestCase(APITestCase): def test_api_v1_projects_id_user(self): self._check_api_v1_projects_id(self.user) - def test_api_v1_projects_id_observer(self): - self._check_api_v1_projects_id(self.observer) + def test_api_v1_projects_id_somebody(self): + self._check_api_v1_projects_id(self.somebody) def test_api_v1_projects_id_no_auth(self): self._check_api_v1_projects_id(None) @@ -1062,12 +841,13 @@ class ProjectDeleteAPITestCase(APITestCase): def _check_api_v1_projects_id(self, user): for db_project in self.projects: response = self._run_api_v1_projects_id(db_project.id, user) - if user and user.has_perm("engine.project.delete", db_project): + if user is None: + self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + elif user == db_project.owner or user.is_superuser: self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) - elif user: - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) else: - self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + def test_api_v1_projects_id_admin(self): self._check_api_v1_projects_id(self.admin) @@ -1075,8 +855,8 @@ class ProjectDeleteAPITestCase(APITestCase): def test_api_v1_projects_id_user(self): self._check_api_v1_projects_id(self.user) - def test_api_v1_projects_id_observer(self): - self._check_api_v1_projects_id(self.observer) + def test_api_v1_projects_id_somebody(self): + self._check_api_v1_projects_id(self.somebody) def test_api_v1_projects_id_no_auth(self): self._check_api_v1_projects_id(None) @@ -1110,10 +890,8 @@ class ProjectCreateAPITestCase(APITestCase): def _check_api_v1_projects(self, user, data): response = self._run_api_v1_projects(user, data) - if user and user.has_perm("engine.project.create"): + if user: self._check_response(response, user, data) - elif user: - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) else: self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) @@ -1154,20 +932,20 @@ class ProjectCreateAPITestCase(APITestCase): self._check_api_v1_projects(self.user, data) data = { - "owner_id": self.owner.id, - "assignee_id": self.assignee.id, + "owner_id": self.user.id, + "assignee_id": self.user.id, "name": "My import project with data" } self._check_api_v1_projects(self.user, data) - def test_api_v1_projects_observer(self): + def test_api_v1_projects_somebody(self): data = { "name": "My Project #1", - "owner_id": self.owner.id, - "assignee_id": self.assignee.id + "owner_id": self.somebody.id, + "assignee_id": self.somebody.id } - self._check_api_v1_projects(self.observer, data) + self._check_api_v1_projects(self.somebody, data) def test_api_v1_projects_no_auth(self): data = { @@ -1244,11 +1022,11 @@ class ProjectPartialUpdateAPITestCase(APITestCase): } self._check_api_v1_projects_id(self.user, data) - def test_api_v1_projects_id_observer(self): + def test_api_v1_projects_id_somebody(self): data = { "name": "new name for the project", } - self._check_api_v1_projects_id(self.observer, data) + self._check_api_v1_projects_id(self.somebody, data) def test_api_v1_projects_id_no_auth(self): data = { @@ -1378,22 +1156,17 @@ class ProjectListOfTasksAPITestCase(APITestCase): sorted([res["name"] for res in response.data["results"]])) def test_api_v1_projects_id_tasks_user(self): - project = self.projects[1] + project = self.projects[1] # the user is owner of the project response = self._run_api_v1_projects_id_tasks(self.user, project.id) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertListEqual( - sorted([task.name for task in project.tasks.all() - if task.owner in [None, self.user] or - task.assignee in [None, self.user]]), + sorted([task.name for task in project.tasks.all()]), sorted([res["name"] for res in response.data["results"]])) - def test_api_v1_projects_id_tasks_observer(self): + def test_api_v1_projects_id_tasks_somebody(self): project = self.projects[1] - response = self._run_api_v1_projects_id_tasks(self.observer, project.id) - self.assertEqual(response.status_code, status.HTTP_200_OK) - self.assertListEqual( - sorted([task.name for task in project.tasks.all()]), - sorted([res["name"] for res in response.data["results"]])) + response = self._run_api_v1_projects_id_tasks(self.somebody, project.id) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_api_v1_projects_id_tasks_no_auth(self): project = self.projects[1] @@ -1565,23 +1338,21 @@ class ProjectBackupAPITestCase(APITestCase): task_data = [ { "name": "my task #1", - "owner_id": cls.owner.id, - "assignee_id": cls.assignee.id, + "owner_id": project.owner.id, "overlap": 0, "segment_size": 100, "project_id": project.id, }, { "name": "my task #2", - "owner_id": cls.owner.id, - "assignee_id": cls.assignee.id, + "owner_id": project.owner.id, "overlap": 1, "segment_size": 3, "project_id": project.id, }, ] - with ForceLogin(cls.owner, cls.client): + with ForceLogin(project.owner, cls.client): for data in task_data: for media in cls.media_data: _create_task(data, media) @@ -1593,7 +1364,6 @@ class ProjectBackupAPITestCase(APITestCase): data = { "name": "my empty project", "owner": cls.owner, - "assignee": cls.assignee, "labels": [{ "name": "car", "color": "#ff00ff", @@ -1613,7 +1383,7 @@ class ProjectBackupAPITestCase(APITestCase): data = { "name": "my project without assignee", - "owner": cls.user, + "owner": cls.owner, "labels": [{ "name": "car", "color": "#ff00ff", @@ -1635,7 +1405,6 @@ class ProjectBackupAPITestCase(APITestCase): data = { "name": "my big project", "owner": cls.owner, - "assignee": cls.assignee, "labels": [{ "name": "car", "color": "#ff00ff", @@ -1656,6 +1425,7 @@ class ProjectBackupAPITestCase(APITestCase): data = { "name": "public project", + "owner": cls.owner, "labels": [{ "name": "car", "color": "#ff00ff", @@ -1677,7 +1447,6 @@ class ProjectBackupAPITestCase(APITestCase): data = { "name": "super project", "owner": cls.admin, - "assignee": cls.assignee, "labels": [{ "name": "car", "color": "#ff00ff", @@ -1717,14 +1486,14 @@ class ProjectBackupAPITestCase(APITestCase): def _run_api_v1_projects_id_export_import(self, user): for project in self.projects: if user: - if user is self.user and (project.assignee or not project.owner): - HTTP_200_OK = status.HTTP_403_FORBIDDEN - HTTP_202_ACCEPTED = status.HTTP_403_FORBIDDEN - HTTP_201_CREATED = status.HTTP_403_FORBIDDEN - else: + if user in [project.assignee, project.owner, self.admin]: HTTP_200_OK = status.HTTP_200_OK HTTP_202_ACCEPTED = status.HTTP_202_ACCEPTED HTTP_201_CREATED = status.HTTP_201_CREATED + else: + HTTP_200_OK = status.HTTP_403_FORBIDDEN + HTTP_202_ACCEPTED = status.HTTP_403_FORBIDDEN + HTTP_201_CREATED = status.HTTP_403_FORBIDDEN else: HTTP_200_OK = status.HTTP_401_UNAUTHORIZED HTTP_202_ACCEPTED = status.HTTP_401_UNAUTHORIZED @@ -1740,7 +1509,7 @@ class ProjectBackupAPITestCase(APITestCase): response = self._run_api_v1_projects_id_export(pid, user, "action=download") self.assertEqual(response.status_code, HTTP_200_OK) - if user and user is not self.observer and user is not self.user and user is not self.annotator: + if response.status_code == status.HTTP_200_OK: self.assertTrue(response.streaming) content = io.BytesIO(b"".join(response.streaming_content)) content.seek(0) @@ -1750,7 +1519,7 @@ class ProjectBackupAPITestCase(APITestCase): } response = self._run_api_v1_projects_import(user, uploaded_data) self.assertEqual(response.status_code, HTTP_202_ACCEPTED) - if user is not self.observer and user is not self.user and user is not self.annotator: + if response.status_code == status.HTTP_200_OK: rq_id = response.data["rq_id"] response = self._run_api_v1_projects_import(user, {"rq_id": rq_id}) self.assertEqual(response.status_code, HTTP_201_CREATED) @@ -1780,11 +1549,12 @@ class ProjectBackupAPITestCase(APITestCase): def test_api_v1_projects_id_export_user(self): self._run_api_v1_projects_id_export_import(self.user) - def test_api_v1_projects_id_export_observer(self): - self._run_api_v1_projects_id_export_import(self.observer) + def test_api_v1_projects_id_export_somebody(self): + self._run_api_v1_projects_id_export_import(self.somebody) def test_api_v1_projects_id_export_no_auth(self): self._run_api_v1_projects_id_export_import(None) + class ProjectExportAPITestCase(APITestCase): def setUp(self): self.client = APIClient() @@ -1910,7 +1680,6 @@ class ProjectImportExportAPITestCase(APITestCase): { "name": "my task #1", "owner_id": self.owner.id, - "assignee_id": self.assignee.id, "overlap": 0, "segment_size": 100, "project_id": self.projects[0]["id"], @@ -1918,7 +1687,6 @@ class ProjectImportExportAPITestCase(APITestCase): { "name": "my task #2", "owner_id": self.owner.id, - "assignee_id": self.assignee.id, "overlap": 1, "segment_size": 3, "project_id": self.projects[0]["id"], @@ -1941,7 +1709,6 @@ class ProjectImportExportAPITestCase(APITestCase): { "name": "Project for export", "owner_id": self.owner.id, - "assignee_id": self.assignee.id, "labels": [ { "name": "car", @@ -1959,7 +1726,6 @@ class ProjectImportExportAPITestCase(APITestCase): }, { "name": "Project for import", "owner_id": self.owner.id, - "assignee_id": self.assignee.id, }, ] @@ -2045,15 +1811,14 @@ class TaskListAPITestCase(APITestCase): self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertListEqual( sorted([task.name for task in self.tasks - if (task.owner == self.user or task.assignee == None)]), + if self.user in [task.owner, task.assignee]]), sorted([res["name"] for res in response.data["results"]])) - def test_api_v1_tasks_observer(self): - response = self._run_api_v1_tasks(self.observer) + def test_api_v1_tasks_somebody(self): + response = self._run_api_v1_tasks(self.somebody) self.assertEqual(response.status_code, status.HTTP_200_OK) - self.assertListEqual( - sorted([task.name for task in self.tasks]), - sorted([res["name"] for res in response.data["results"]])) + self.assertListEqual([], + [res["name"] for res in response.data["results"]]) def test_api_v1_tasks_no_auth(self): response = self._run_api_v1_tasks(None) @@ -2097,12 +1862,13 @@ class TaskGetAPITestCase(APITestCase): def _check_api_v1_tasks_id(self, user): for db_task in self.tasks: response = self._run_api_v1_tasks_id(db_task.id, user) - if user and user.has_perm("engine.task.access", db_task): + if user is None: + self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + elif user == db_task.owner or user.is_superuser: self._check_response(response, db_task) - elif user: - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) else: - self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + def test_api_v1_tasks_id_admin(self): self._check_api_v1_tasks_id(self.admin) @@ -2110,8 +1876,8 @@ class TaskGetAPITestCase(APITestCase): def test_api_v1_tasks_id_user(self): self._check_api_v1_tasks_id(self.user) - def test_api_v1_tasks_id_observer(self): - self._check_api_v1_tasks_id(self.observer) + def test_api_v1_tasks_id_somebody(self): + self._check_api_v1_tasks_id(self.somebody) def test_api_v1_tasks_id_no_auth(self): self._check_api_v1_tasks_id(None) @@ -2134,12 +1900,13 @@ class TaskDeleteAPITestCase(APITestCase): def _check_api_v1_tasks_id(self, user): for db_task in self.tasks: response = self._run_api_v1_tasks_id(db_task.id, user) - if user and user.has_perm("engine.task.delete", db_task): + if user is None: + self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + elif user == db_task.owner or user.is_superuser: self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) - elif user: - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) else: - self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + def test_api_v1_tasks_id_admin(self): self._check_api_v1_tasks_id(self.admin) @@ -2147,8 +1914,8 @@ class TaskDeleteAPITestCase(APITestCase): def test_api_v1_tasks_id_user(self): self._check_api_v1_tasks_id(self.user) - def test_api_v1_tasks_id_observer(self): - self._check_api_v1_tasks_id(self.observer) + def test_api_v1_tasks_id_somebody(self): + self._check_api_v1_tasks_id(self.somebody) def test_api_v1_tasks_id_no_auth(self): self._check_api_v1_tasks_id(None) @@ -2213,12 +1980,12 @@ class TaskUpdateAPITestCase(APITestCase): def _check_api_v1_tasks_id(self, user, data): for db_task in self.tasks: response = self._run_api_v1_tasks_id(db_task.id, user, data) - if user and user.has_perm("engine.task.change", db_task): + if user is None: + self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + elif user == db_task.owner or user == db_task.assignee or user.is_superuser: self._check_response(response, db_task, data) - elif user: - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) else: - self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_api_v1_tasks_id_admin(self): data = { @@ -2239,7 +2006,7 @@ class TaskUpdateAPITestCase(APITestCase): def test_api_v1_tasks_id_user(self): data = { "name": "new name for the task", - "owner_id": self.assignee.id, + "owner_id": self.user.id, "labels": [{ "name": "car", "attributes": [{ @@ -2253,14 +2020,14 @@ class TaskUpdateAPITestCase(APITestCase): } self._check_api_v1_tasks_id(self.user, data) - def test_api_v1_tasks_id_observer(self): + def test_api_v1_tasks_id_somebody(self): data = { "name": "new name for the task", "labels": [{ "name": "test", }] } - self._check_api_v1_tasks_id(self.observer, data) + self._check_api_v1_tasks_id(self.somebody, data) def test_api_v1_tasks_id_no_auth(self): data = { @@ -2310,17 +2077,17 @@ class TaskPartialUpdateAPITestCase(TaskUpdateAPITestCase): self._check_api_v1_tasks_id(self.user, data) data = { - "owner_id": self.observer.id, - "assignee_id": self.annotator.id + "owner_id": self.user.id, + "assignee_id": self.user.id } self._check_api_v1_tasks_id(self.user, data) - def test_api_v1_tasks_id_observer(self): + def test_api_v1_tasks_id_somebody(self): data = { "name": "my task #3" } - self._check_api_v1_tasks_id(self.observer, data) + self._check_api_v1_tasks_id(self.somebody, data) def test_api_v1_tasks_id_no_auth(self): data = { @@ -2625,12 +2392,10 @@ class TaskCreateAPITestCase(APITestCase): def _check_api_v1_tasks(self, user, data): response = self._run_api_v1_tasks(user, data) - if user and user.has_perm("engine.task.create"): - self._check_response(response, user, data) - elif user: - self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - else: + if user is None: self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + else: + self._check_response(response, user, data) def test_api_v1_tasks_admin(self): data = { @@ -2650,7 +2415,7 @@ class TaskCreateAPITestCase(APITestCase): def test_api_v1_tasks_user(self): data = { "name": "new name for the task", - "owner_id": self.assignee.id, + "owner_id": self.user.id, "labels": [{ "name": "car", "attributes": [{ @@ -2675,14 +2440,14 @@ class TaskCreateAPITestCase(APITestCase): }] self._check_response(response, self.user, data) - def test_api_v1_tasks_observer(self): + def test_api_v1_tasks_somebody(self): data = { "name": "new name for the task", "labels": [{ "name": "test", }] } - self._check_api_v1_tasks(self.observer, data) + self._check_api_v1_tasks(self.somebody, data) def test_api_v1_tasks_no_auth(self): data = { @@ -2943,7 +2708,7 @@ class TaskImportExportAPITestCase(APITestCase): { "name": "my task #1", "owner_id": self.owner.id, - "assignee_id": self.assignee.id, + "assignee_id": self.owner.id, "overlap": 0, "segment_size": 100, "labels": [{ @@ -2963,7 +2728,7 @@ class TaskImportExportAPITestCase(APITestCase): { "name": "my task #2", "owner_id": self.owner.id, - "assignee_id": self.assignee.id, + "assignee_id": self.owner.id, "overlap": 1, "segment_size": 3, "labels": [{ @@ -3007,14 +2772,14 @@ class TaskImportExportAPITestCase(APITestCase): def _run_api_v1_tasks_id_export_import(self, user): if user: - if user is self.user or user is self.annotator: - HTTP_200_OK = status.HTTP_403_FORBIDDEN - HTTP_202_ACCEPTED = status.HTTP_403_FORBIDDEN - HTTP_201_CREATED = status.HTTP_403_FORBIDDEN - else: + if user == self.owner or user.is_superuser: HTTP_200_OK = status.HTTP_200_OK HTTP_202_ACCEPTED = status.HTTP_202_ACCEPTED HTTP_201_CREATED = status.HTTP_201_CREATED + else: + HTTP_200_OK = status.HTTP_403_FORBIDDEN + HTTP_202_ACCEPTED = status.HTTP_403_FORBIDDEN + HTTP_201_CREATED = status.HTTP_403_FORBIDDEN else: HTTP_200_OK = status.HTTP_401_UNAUTHORIZED HTTP_202_ACCEPTED = status.HTTP_401_UNAUTHORIZED @@ -3032,7 +2797,7 @@ class TaskImportExportAPITestCase(APITestCase): response = self._run_api_v1_tasks_id_export(tid, user, "action=download") self.assertEqual(response.status_code, HTTP_200_OK) - if user and user is not self.observer and user is not self.user and user is not self.annotator: + if user and user is not self.somebody and user is not self.user and user is not self.annotator: self.assertTrue(response.streaming) content = io.BytesIO(b"".join(response.streaming_content)) content.seek(0) @@ -3042,7 +2807,7 @@ class TaskImportExportAPITestCase(APITestCase): } response = self._run_api_v1_tasks_id_import(user, uploaded_data) self.assertEqual(response.status_code, HTTP_202_ACCEPTED) - if user is not self.observer and user is not self.user and user is not self.annotator: + if user is not self.somebody and user is not self.user and user is not self.annotator: rq_id = response.data["rq_id"] response = self._run_api_v1_tasks_id_import(user, {"rq_id": rq_id}) self.assertEqual(response.status_code, HTTP_201_CREATED) @@ -3073,8 +2838,8 @@ class TaskImportExportAPITestCase(APITestCase): def test_api_v1_tasks_id_export_annotator(self): self._run_api_v1_tasks_id_export_import(self.annotator) - def test_api_v1_tasks_id_export_observer(self): - self._run_api_v1_tasks_id_export_import(self.observer) + def test_api_v1_tasks_id_export_somebody(self): + self._run_api_v1_tasks_id_export_import(self.somebody) def test_api_v1_tasks_id_export_no_auth(self): self._run_api_v1_tasks_id_export_import(None) @@ -3537,8 +3302,8 @@ class TaskDataAPITestCase(APITestCase): def _test_api_v1_tasks_id_data(self, user): task_spec = { "name": "my task #1", - "owner_id": self.owner.id, - "assignee_id": self.assignee.id, + "owner_id": user.id, + "assignee_id": user.id, "overlap": 0, "segment_size": 100, "labels": [ @@ -4061,7 +3826,6 @@ class TaskDataAPITestCase(APITestCase): data = { "name": "my task #3", "owner_id": self.owner.id, - "assignee_id": self.assignee.id, "overlap": 0, "segment_size": 100, "labels": [ @@ -4729,11 +4493,11 @@ class JobAnnotationAPITestCase(APITestCase): self.assignee) def test_api_v1_jobs_id_annotations_user(self): - self._run_api_v1_jobs_id_annotations(self.user, self.assignee, - self.assignee) + self._run_api_v1_jobs_id_annotations(self.user, self.user, + self.user) - def test_api_v1_jobs_id_annotations_observer(self): - _, jobs = self._create_task(self.user, self.assignee) + def test_api_v1_jobs_id_annotations_somebody(self): + _, jobs = self._create_task(self.user, self.user) job = jobs[0] data = { "version": 0, @@ -4742,21 +4506,21 @@ class JobAnnotationAPITestCase(APITestCase): "tracks": [] } - response = self._get_api_v1_jobs_id_data(job["id"], self.observer) - self.assertEqual(response.status_code, status.HTTP_200_OK) + response = self._get_api_v1_jobs_id_data(job["id"], self.somebody) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._put_api_v1_jobs_id_data(job["id"], self.observer, data) + response = self._put_api_v1_jobs_id_data(job["id"], self.somebody, data) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._patch_api_v1_jobs_id_data(job["id"], self.observer, "create", data) + response = self._patch_api_v1_jobs_id_data(job["id"], self.somebody, "create", data) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) - response = self._delete_api_v1_jobs_id_data(job["id"], self.observer) + response = self._delete_api_v1_jobs_id_data(job["id"], self.somebody) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_api_v1_jobs_id_annotations_no_auth(self): - self._run_api_v1_jobs_id_annotations(self.user, self.assignee, None) + self._run_api_v1_jobs_id_annotations(self.user, self.user, None) class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): def _put_api_v1_tasks_id_annotations(self, pk, user, data): @@ -4821,16 +4585,11 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): print(e) raise - def _run_api_v1_tasks_id_annotations(self, owner, assignee, annotator): + def _run_api_v1_tasks_id_annotations(self, owner, assignee): task, _ = self._create_task(owner, assignee) - if annotator: - HTTP_200_OK = status.HTTP_200_OK - HTTP_204_NO_CONTENT = status.HTTP_204_NO_CONTENT - HTTP_400_BAD_REQUEST = status.HTTP_400_BAD_REQUEST - else: - HTTP_200_OK = status.HTTP_401_UNAUTHORIZED - HTTP_204_NO_CONTENT = status.HTTP_401_UNAUTHORIZED - HTTP_400_BAD_REQUEST = status.HTTP_401_UNAUTHORIZED + HTTP_200_OK = status.HTTP_200_OK + HTTP_204_NO_CONTENT = status.HTTP_204_NO_CONTENT + HTTP_400_BAD_REQUEST = status.HTTP_400_BAD_REQUEST data = { "version": 0, @@ -4838,7 +4597,7 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): "shapes": [], "tracks": [] } - response = self._put_api_v1_tasks_id_annotations(task["id"], annotator, data) + response = self._put_api_v1_tasks_id_annotations(task["id"], owner, data) data["version"] += 1 self.assertEqual(response.status_code, HTTP_200_OK) @@ -4940,21 +4699,21 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): }, ] } - response = self._put_api_v1_tasks_id_annotations(task["id"], annotator, data) + response = self._put_api_v1_tasks_id_annotations(task["id"], owner, data) data["version"] += 1 self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) default_attr_values = self._get_default_attr_values(task) - response = self._get_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._get_api_v1_tasks_id_annotations(task["id"], owner) # server should add default attribute values if puted data doesn't contain it data["tags"][0]["attributes"] = default_attr_values[data["tags"][0]["label_id"]]["all"] data["tracks"][0]["shapes"][1]["attributes"] = default_attr_values[data["tracks"][0]["label_id"]]["mutable"] self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) - response = self._delete_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._delete_api_v1_tasks_id_annotations(task["id"], owner) data["version"] += 1 self.assertEqual(response.status_code, HTTP_204_NO_CONTENT) @@ -4964,7 +4723,7 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): "shapes": [], "tracks": [] } - response = self._get_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._get_api_v1_tasks_id_annotations(task["id"], owner) self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) @@ -5065,13 +4824,13 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): }, ] } - response = self._patch_api_v1_tasks_id_annotations(task["id"], annotator, + response = self._patch_api_v1_tasks_id_annotations(task["id"], owner, "create", data) data["version"] += 1 self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) - response = self._get_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._get_api_v1_tasks_id_annotations(task["id"], owner) # server should add default attribute values if puted data doesn't contain it data["tags"][0]["attributes"] = default_attr_values[data["tags"][0]["label_id"]]["all"] data["tracks"][0]["shapes"][1]["attributes"] = default_attr_values[data["tracks"][0]["label_id"]]["mutable"] @@ -5088,17 +4847,17 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): data["tracks"][0]["shapes"][0]["outside"] = False data["tracks"][0]["shapes"][0]["occluded"] = False - response = self._patch_api_v1_tasks_id_annotations(task["id"], annotator, + response = self._patch_api_v1_tasks_id_annotations(task["id"], owner, "update", data) data["version"] = data.get("version", 0) + 1 self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) - response = self._get_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._get_api_v1_tasks_id_annotations(task["id"], owner) self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) - response = self._patch_api_v1_tasks_id_annotations(task["id"], annotator, + response = self._patch_api_v1_tasks_id_annotations(task["id"], owner, "delete", data) data["version"] += 1 self.assertEqual(response.status_code, HTTP_200_OK) @@ -5110,7 +4869,7 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): "shapes": [], "tracks": [] } - response = self._get_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._get_api_v1_tasks_id_annotations(task["id"], owner) self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) @@ -5210,12 +4969,12 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): }, ] } - response = self._patch_api_v1_tasks_id_annotations(task["id"], annotator, + response = self._patch_api_v1_tasks_id_annotations(task["id"], owner, "create", data) self.assertEqual(response.status_code, HTTP_400_BAD_REQUEST) - def _run_api_v1_tasks_id_annotations_dump_load(self, owner, assignee, annotator): - if annotator: + def _run_api_v1_tasks_id_annotations_dump_load(self, owner): + if owner: HTTP_200_OK = status.HTTP_200_OK HTTP_204_NO_CONTENT = status.HTTP_204_NO_CONTENT HTTP_202_ACCEPTED = status.HTTP_202_ACCEPTED @@ -5731,9 +5490,9 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): return annotations - response = self._get_formats(annotator) + response = self._get_formats(owner) self.assertEqual(response.status_code, HTTP_200_OK) - if annotator is not None: + if owner is not None: data = response.data else: data = self._get_formats(owner).data @@ -5762,45 +5521,42 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): with self.subTest(export_format=export_format, import_format=import_format): # 1. create task - task, jobs = self._create_task(owner, assignee, import_format) + task, jobs = self._create_task(owner, owner, import_format) # 2. add annotation data = _get_initial_annotation(export_format) - response = self._put_api_v1_tasks_id_annotations(task["id"], annotator, data) + response = self._put_api_v1_tasks_id_annotations(task["id"], owner, data) data["version"] += 1 self.assertEqual(response.status_code, HTTP_200_OK) self._check_response(response, data) # 3. download annotation - response = self._dump_api_v1_tasks_id_annotations(task["id"], annotator, + response = self._dump_api_v1_tasks_id_annotations(task["id"], owner, "?format={}".format(export_format)) - if annotator and not export_formats[export_format]['enabled']: + if not export_formats[export_format]['enabled']: self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) continue else: self.assertEqual(response.status_code, HTTP_202_ACCEPTED) - response = self._dump_api_v1_tasks_id_annotations(task["id"], annotator, + response = self._dump_api_v1_tasks_id_annotations(task["id"], owner, "?format={}".format(export_format)) self.assertEqual(response.status_code, HTTP_201_CREATED) - response = self._dump_api_v1_tasks_id_annotations(task["id"], annotator, + response = self._dump_api_v1_tasks_id_annotations(task["id"], owner, "?format={}&action=download".format(export_format)) self.assertEqual(response.status_code, HTTP_200_OK) # 4. check downloaded data - if annotator is not None: - self.assertTrue(response.streaming) - content = io.BytesIO(b"".join(response.streaming_content)) - self._check_dump_content(content, task, jobs, data, export_format) - content.seek(0) - else: - content = io.BytesIO() + self.assertTrue(response.streaming) + content = io.BytesIO(b"".join(response.streaming_content)) + self._check_dump_content(content, task, jobs, data, export_format) + content.seek(0) # 5. remove annotation form the task - response = self._delete_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._delete_api_v1_tasks_id_annotations(task["id"], owner) data["version"] += 1 self.assertEqual(response.status_code, HTTP_204_NO_CONTENT) @@ -5812,12 +5568,12 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): "annotation_file": content, } response = self._upload_api_v1_tasks_id_annotations( - task["id"], annotator, uploaded_data, + task["id"], owner, uploaded_data, "format={}".format(import_format)) self.assertEqual(response.status_code, HTTP_202_ACCEPTED) response = self._upload_api_v1_tasks_id_annotations( - task["id"], annotator, {}, + task["id"], owner, {}, "format={}".format(import_format)) self.assertEqual(response.status_code, HTTP_201_CREATED) @@ -5825,11 +5581,9 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): if export_format in {"Segmentation mask 1.1", "MOTS PNG 1.0", "CamVid 1.0", "ICDAR Segmentation 1.0"}: continue # can't really predict the result to check - response = self._get_api_v1_tasks_id_annotations(task["id"], annotator) + response = self._get_api_v1_tasks_id_annotations(task["id"], owner) self.assertEqual(response.status_code, HTTP_200_OK) - if annotator is None: - continue data["version"] += 2 # upload is delete + put self._check_response(response, data) @@ -5954,26 +5708,19 @@ class TaskAnnotationAPITestCase(JobAnnotationAPITestCase): self.assertEqual(response.status_code, status.HTTP_200_OK) def test_api_v1_tasks_id_annotations_admin(self): - self._run_api_v1_tasks_id_annotations(self.admin, self.assignee, - self.assignee) + self._run_api_v1_tasks_id_annotations(self.admin, self.assignee) def test_api_v1_tasks_id_annotations_user(self): - self._run_api_v1_tasks_id_annotations(self.user, self.assignee, - self.assignee) - - def test_api_v1_tasks_id_annotations_no_auth(self): - self._run_api_v1_tasks_id_annotations(self.user, self.assignee, None) + self._run_api_v1_tasks_id_annotations(self.user, self.user) def test_api_v1_tasks_id_annotations_dump_load_admin(self): - self._run_api_v1_tasks_id_annotations_dump_load(self.admin, self.assignee, - self.assignee) + self._run_api_v1_tasks_id_annotations_dump_load(self.admin) def test_api_v1_tasks_id_annotations_dump_load_user(self): - self._run_api_v1_tasks_id_annotations_dump_load(self.user, self.assignee, - self.assignee) + self._run_api_v1_tasks_id_annotations_dump_load(self.user) def test_api_v1_tasks_id_annotations_dump_load_no_auth(self): - self._run_api_v1_tasks_id_annotations_dump_load(self.user, self.assignee, None) + self._run_api_v1_tasks_id_annotations_dump_load(self.user) def test_api_v1_tasks_id_annotations_upload_coco_user(self): self._run_coco_annotation_upload_test(self.user) @@ -6088,8 +5835,8 @@ class ServerShareAPITestCase(APITestCase): def test_api_v1_server_share_annotator(self): self._test_api_v1_server_share(self.annotator) - def test_api_v1_server_share_observer(self): - self._test_api_v1_server_share(self.observer) + def test_api_v1_server_share_somebody(self): + self._test_api_v1_server_share(self.somebody) def test_api_v1_server_share_no_auth(self): response = self._run_api_v1_server_share(None, "/") @@ -6111,7 +5858,7 @@ class ServerShareDifferentTypesAPITestCase(APITestCase): img_path = os.path.join(settings.SHARE_ROOT, img) if not osp.exists(osp.dirname(img_path)): os.makedirs(osp.dirname(img_path)) - image.save(img_path, img_path.split(".")[1:][0]) + image.save(img_path) def _get_request(self, path): with ForceLogin(self.user, self.client): diff --git a/cvat/apps/engine/tests/test_rest_api_3D.py b/cvat/apps/engine/tests/test_rest_api_3D.py index 6f6c1cd6..7547d9b1 100644 --- a/cvat/apps/engine/tests/test_rest_api_3D.py +++ b/cvat/apps/engine/tests/test_rest_api_3D.py @@ -270,7 +270,7 @@ class Task3DTest(_DbTestBase): image_sizes.append((int(data["WIDTH"]), int(data["HEIGHT"]))) cls.task = { "name": "main task", - "owner_id": 1, + "owner_id": 2, "assignee_id": 2, "overlap": 0, "segment_size": 100, @@ -281,7 +281,7 @@ class Task3DTest(_DbTestBase): } cls.task_with_attributes = { "name": "task with attributes", - "owner_id": 1, + "owner_id": 2, "assignee_id": 2, "overlap": 0, "segment_size": 100, @@ -327,7 +327,7 @@ class Task3DTest(_DbTestBase): } cls.task_many_jobs = { "name": "task several jobs", - "owner_id": 1, + "owner_id": 2, "assignee_id": 2, "overlap": 3, "segment_size": 1, diff --git a/cvat/apps/engine/urls.py b/cvat/apps/engine/urls.py index e46228ef..1fd820ac 100644 --- a/cvat/apps/engine/urls.py +++ b/cvat/apps/engine/urls.py @@ -12,7 +12,7 @@ from drf_yasg import openapi from django.views.generic import RedirectView from django.conf import settings from cvat.apps.restrictions.views import RestrictionsViewSet -from cvat.apps.authentication.decorators import login_required +from cvat.apps.iam.decorators import login_required from cvat.apps.training.views import PredictView schema_view = get_schema_view( @@ -50,7 +50,6 @@ router.register('tasks', views.TaskViewSet) router.register('jobs', views.JobViewSet) router.register('users', views.UserViewSet) router.register('server', views.ServerViewSet, basename='server') -router.register('reviews', views.ReviewViewSet) router.register('issues', views.IssueViewSet) router.register('comments', views.CommentViewSet) router.register('restrictions', RestrictionsViewSet, basename='restrictions') @@ -71,6 +70,7 @@ urlpatterns = [ schema_view.with_ui('redoc', cache_timeout=0)), name='schema-redoc'), # entry point for API - path('api/v1/auth/', include('cvat.apps.authentication.urls')), - path('api/v1/', include((router.urls, 'cvat'), namespace='v1')) + path('api/v1/', include('cvat.apps.iam.urls')), + path('api/v1/', include('cvat.apps.organizations.urls')), + path('api/v1/', include(router.urls)), ] diff --git a/cvat/apps/engine/views.py b/cvat/apps/engine/views.py index 574ae0ca..15a82d77 100644 --- a/cvat/apps/engine/views.py +++ b/cvat/apps/engine/views.py @@ -21,7 +21,6 @@ from django.conf import settings from django.contrib.auth.models import User from django.db import IntegrityError from django.http import HttpResponse, HttpResponseNotFound, HttpResponseBadRequest -from django.shortcuts import get_object_or_404 from django.utils import timezone from django.utils.decorators import method_decorator from django_filters import rest_framework as filters @@ -32,14 +31,14 @@ from drf_yasg.utils import swagger_auto_schema from rest_framework import mixins, serializers, status, viewsets from rest_framework.decorators import action from rest_framework.exceptions import APIException, NotFound, ValidationError -from rest_framework.permissions import SAFE_METHODS, IsAuthenticated +from rest_framework.permissions import SAFE_METHODS from rest_framework.renderers import JSONRenderer from rest_framework.response import Response +from rest_framework.exceptions import PermissionDenied from sendfile import sendfile import cvat.apps.dataset_manager as dm import cvat.apps.dataset_manager.views # pylint: disable=unused-import -from cvat.apps.authentication import auth from cvat.apps.engine.cloud_provider import get_cloud_storage_instance, Credentials, Status from cvat.apps.dataset_manager.bindings import CvatImportError from cvat.apps.dataset_manager.serializers import DatasetFormatsSerializer @@ -47,37 +46,20 @@ from cvat.apps.engine.frame_provider import FrameProvider from cvat.apps.engine.media_extractors import ImageListReader from cvat.apps.engine.mime_types import mimetypes from cvat.apps.engine.models import ( - Job, StatusChoice, Task, Data, Project, Review, Issue, - Comment, StorageMethodChoice, ReviewStatus, StorageChoice, Image, + Job, StatusChoice, Task, Project, Issue, Data, + Comment, StorageMethodChoice, StorageChoice, Image, CredentialsTypeChoice, CloudProviderChoice ) from cvat.apps.engine.models import CloudStorage as CloudStorageModel from cvat.apps.engine.serializers import ( - AboutSerializer, - AnnotationFileSerializer, - BaseCloudStorageSerializer, - BasicUserSerializer, - CloudStorageSerializer, - CombinedIssueSerializer, - CombinedReviewSerializer, - CommentSerializer, - DataMetaSerializer, - DataSerializer, - DatasetFileSerializer, - ExceptionSerializer, - FileInfoSerializer, - IssueSerializer, - JobSerializer, - LabeledDataSerializer, - LogEventSerializer, - PluginsSerializer, - ProjectSearchSerializer, - ProjectSerializer, - ReviewSerializer, - RqStatusSerializer, - TaskSerializer, - UserSerializer, - ) + AboutSerializer, AnnotationFileSerializer, BasicUserSerializer, + DataMetaSerializer, DataSerializer, ExceptionSerializer, + FileInfoSerializer, JobReadSerializer, JobWriteSerializer, LabeledDataSerializer, + LogEventSerializer, ProjectSerializer, ProjectSearchSerializer, + RqStatusSerializer, TaskSerializer, UserSerializer, PluginsSerializer, IssueReadSerializer, + IssueWriteSerializer, CommentReadSerializer, CommentWriteSerializer, CloudStorageSerializer, + BaseCloudStorageSerializer, DatasetFileSerializer) + from utils.dataset_manifest import ImageManifestManager from cvat.apps.engine.utils import av_scan_paths from cvat.apps.engine import backup @@ -85,6 +67,9 @@ from cvat.apps.engine.mixins import UploadMixin from . import models, task from .log import clogger, slogger +from cvat.apps.iam.permissions import (CloudStoragePermission, + CommentPermission, IssuePermission, JobPermission, ProjectPermission, + TaskPermission, UserPermission) class ServerViewSet(viewsets.ViewSet): serializer_class = None @@ -250,10 +235,11 @@ class ProjectFilter(filters.FilterSet): @method_decorator(name='retrieve', decorator=swagger_auto_schema(operation_summary='Method returns details of a specific project')) @method_decorator(name='destroy', decorator=swagger_auto_schema(operation_summary='Method deletes a specific project')) @method_decorator(name='partial_update', decorator=swagger_auto_schema(operation_summary='Methods does a partial update of chosen fields in a project')) -class ProjectViewSet(auth.ProjectGetQuerySetMixin, viewsets.ModelViewSet): +class ProjectViewSet(viewsets.ModelViewSet): queryset = models.Project.objects.prefetch_related(Prefetch('label_set', queryset=models.Label.objects.order_by('id') )) + search_fields = ("name", "owner__username", "assignee__username", "status") filterset_class = ProjectFilter ordering_fields = ("id", "name", "owner", "status", "assignee") @@ -268,46 +254,25 @@ class ProjectViewSet(auth.ProjectGetQuerySetMixin, viewsets.ModelViewSet): else: return ProjectSerializer - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] - - if http_method in SAFE_METHODS: - permissions.append(auth.ProjectAccessPermission) - elif http_method in ["POST"]: - permissions.append(auth.ProjectCreatePermission) - elif http_method in ["PATCH"]: - permissions.append(auth.ProjectChangePermission) - elif http_method in ["DELETE"]: - permissions.append(auth.ProjectDeletePermission) - else: - permissions.append(auth.AdminRolePermission) - - return [perm() for perm in permissions] - - def _validate_project_limit(self, owner): - admin_perm = auth.AdminRolePermission() - is_admin = admin_perm.has_permission(self.request, self) - if not is_admin and settings.RESTRICTIONS['project_limit'] is not None and \ - Project.objects.filter(owner=owner).count() >= settings.RESTRICTIONS['project_limit']: - raise serializers.ValidationError('The user has the maximum number of projects') + def get_queryset(self): + queryset = super().get_queryset() + if self.action == 'list': + perm = ProjectPermission('list', self.request, self) + queryset = perm.filter(queryset) + return queryset def perform_create(self, serializer): - owner = self.request.data.get('owner', None) - if owner: - self._validate_project_limit(owner) - serializer.save() - else: - self._validate_project_limit(self.request.user) - serializer.save(owner=self.request.user) + serializer.save(owner=self.request.user, + organization=self.request.iam_context['organization']) - @swagger_auto_schema(method='get', operation_summary='Returns information of the tasks of the project with the selected id', + @swagger_auto_schema( + method='get', + operation_summary='Returns information of the tasks of the project with the selected id', responses={'200': TaskSerializer(many=True)}) @action(detail=True, methods=['GET'], serializer_class=TaskSerializer) def tasks(self, request, pk): self.get_object() # force to call check_object_permissions queryset = Task.objects.filter(project_id=pk).order_by('-id') - queryset = auth.filter_task_queryset(queryset, request.user) page = self.paginate_queryset(queryset) if page is not None: @@ -439,14 +404,14 @@ class ProjectViewSet(auth.ProjectGetQuerySetMixin, viewsets.ModelViewSet): return Response("Format is not specified",status=status.HTTP_400_BAD_REQUEST) @action(methods=['GET'], detail=True, url_path='backup') - def export(self, request, pk=None): + def export_backup(self, request, pk=None): db_project = self.get_object() # force to call check_object_permissions return backup.export(db_project, request) - @action(detail=False, methods=['POST']) - def backup(self, request, pk=None): - self._validate_project_limit(owner=self.request.user) + @action(detail=False, methods=['POST'], url_path='backup') + def import_backup(self, request, pk=None): return backup.import_project(request) + @staticmethod def _get_rq_response(queue, job_id): queue = django_rq.get_queue(queue) @@ -465,6 +430,81 @@ class ProjectViewSet(auth.ProjectGetQuerySetMixin, viewsets.ModelViewSet): return response + +class DataChunkGetter: + def __init__(self, data_type, data_num, data_quality, task_dim): + possible_data_type_values = ('chunk', 'frame', 'preview', 'context_image') + possible_quality_values = ('compressed', 'original') + + if not data_type or data_type not in possible_data_type_values: + raise ValidationError('Data type not specified or has wrong value') + elif data_type == 'chunk' or data_type == 'frame': + if not data_num: + raise ValidationError('Number is not specified') + elif data_quality not in possible_quality_values: + raise ValidationError('Wrong quality value') + + self.type = data_type + self.number = int(data_num) if data_num else None + self.quality = FrameProvider.Quality.COMPRESSED \ + if data_quality == 'compressed' else FrameProvider.Quality.ORIGINAL + + self.dimension = task_dim + + + def __call__(self, request, start, stop, db_data): + if not db_data: + raise NotFound(detail='Cannot find requested data') + + frame_provider = FrameProvider(db_data, self.dimension) + + if self.type == 'chunk': + start_chunk = frame_provider.get_chunk_number(start) + stop_chunk = frame_provider.get_chunk_number(stop) + if not (start_chunk <= self.number <= stop_chunk): + raise ValidationError('The chunk number should be in ' + + f'[{start_chunk}, {stop_chunk}] range') + + # TODO: av.FFmpegError processing + if settings.USE_CACHE and db_data.storage_method == StorageMethodChoice.CACHE: + buff, mime_type = frame_provider.get_chunk(self.number, self.quality) + return HttpResponse(buff.getvalue(), content_type=mime_type) + + # Follow symbol links if the chunk is a link on a real image otherwise + # mimetype detection inside sendfile will work incorrectly. + path = os.path.realpath(frame_provider.get_chunk(self.number, self.quality)) + return sendfile(request, path) + + elif self.type == 'frame': + if not (start <= self.number <= stop): + raise ValidationError('The frame number should be in ' + + f'[{start}, {stop}] range') + + buf, mime = frame_provider.get_frame(self.number, self.quality) + return HttpResponse(buf.getvalue(), content_type=mime) + + elif self.type == 'preview': + return sendfile(request, frame_provider.get_preview()) + + elif self.type == 'context_image': + if not (start <= self.number <= stop): + raise ValidationError('The frame number should be in ' + + f'[{start}, {stop}] range') + + image = Image.objects.get(data_id=db_data.id, frame=self.number) + for i in image.related_files.all(): + path = os.path.realpath(str(i.path)) + image = cv2.imread(path) + success, result = cv2.imencode('.JPEG', image) + if not success: + raise Exception('Failed to encode image to ".jpeg" format') + return HttpResponse(io.BytesIO(result.tobytes()), content_type='image/jpeg') + return Response(data='No context image related to the frame', + status=status.HTTP_404_NOT_FOUND) + else: + return Response(data='unknown data type {}.'.format(self.type), + status=status.HTTP_400_BAD_REQUEST) + class TaskFilter(filters.FilterSet): project = filters.CharFilter(field_name="project__name", lookup_expr="icontains") name = filters.CharFilter(field_name="name", lookup_expr="icontains") @@ -507,7 +547,7 @@ class DjangoFilterInspector(CoreAPICompatInspector): @method_decorator(name='update', decorator=swagger_auto_schema(operation_summary='Method updates a task by id')) @method_decorator(name='destroy', decorator=swagger_auto_schema(operation_summary='Method deletes a specific task, all attached jobs, annotations, and data')) @method_decorator(name='partial_update', decorator=swagger_auto_schema(operation_summary='Methods does a partial update of chosen fields in a task')) -class TaskViewSet(UploadMixin, auth.TaskGetQuerySetMixin, viewsets.ModelViewSet): +class TaskViewSet(UploadMixin, viewsets.ModelViewSet): queryset = Task.objects.prefetch_related( Prefetch('label_set', queryset=models.Label.objects.order_by('id')), "label_set__attributespec_set", @@ -518,37 +558,20 @@ class TaskViewSet(UploadMixin, auth.TaskGetQuerySetMixin, viewsets.ModelViewSet) filterset_class = TaskFilter ordering_fields = ("id", "name", "owner", "status", "assignee", "subset") - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] - - if http_method in SAFE_METHODS: - permissions.append(auth.TaskAccessPermission) - elif http_method in ["POST"]: - permissions.append(auth.TaskCreatePermission) - elif self.action == 'annotations' or http_method in ["PATCH", "PUT"]: - permissions.append(auth.TaskChangePermission) - elif http_method in ["DELETE"]: - permissions.append(auth.TaskDeletePermission) - else: - permissions.append(auth.AdminRolePermission) - - return [perm() for perm in permissions] + def get_queryset(self): + queryset = super().get_queryset() + if self.action == 'list': + perm = TaskPermission('list', self.request, self) + queryset = perm.filter(queryset) - def _validate_task_limit(self, owner): - admin_perm = auth.AdminRolePermission() - is_admin = admin_perm.has_permission(self.request, self) - if not is_admin and settings.RESTRICTIONS['task_limit'] is not None and \ - Task.objects.filter(owner=owner).count() >= settings.RESTRICTIONS['task_limit']: - raise serializers.ValidationError('The user has the maximum number of tasks') + return queryset - @action(detail=False, methods=['POST']) - def backup(self, request, pk=None): - self._validate_task_limit(owner=self.request.user) + @action(detail=False, methods=['POST'], url_path='backup') + def import_backup(self, request, pk=None): return backup.import_task(request) @action(methods=['GET'], detail=True, url_path='backup') - def export(self, request, pk=None): + def export_backup(self, request, pk=None): db_task = self.get_object() # force to call check_object_permissions return backup.export(db_task, request) @@ -561,13 +584,8 @@ class TaskViewSet(UploadMixin, auth.TaskGetQuerySetMixin, viewsets.ModelViewSet) updated_instance.project.save() def perform_create(self, serializer): - owner = self.request.data.get('owner', None) - if owner: - self._validate_task_limit(owner) - instance = serializer.save() - else: - self._validate_task_limit(self.request.user) - instance = serializer.save(owner=self.request.user) + instance = serializer.save(owner=self.request.user, + organization=self.request.iam_context['organization']) if instance.project: db_project = instance.project db_project.save() @@ -583,13 +601,15 @@ class TaskViewSet(UploadMixin, auth.TaskGetQuerySetMixin, viewsets.ModelViewSet) db_project = instance.project db_project.save() - @swagger_auto_schema(method='get', operation_summary='Returns a list of jobs for a specific task', - responses={'200': JobSerializer(many=True)}) - @action(detail=True, methods=['GET'], serializer_class=JobSerializer) + @swagger_auto_schema( + method='get', + operation_summary='Returns a list of jobs for a specific task', + responses={'200': JobReadSerializer(many=True)}) + @action(detail=True, methods=['GET'], serializer_class=JobReadSerializer) def jobs(self, request, pk): self.get_object() # force to call check_object_permissions queryset = Job.objects.filter(segment__task_id=pk) - serializer = JobSerializer(queryset, many=True, + serializer = JobReadSerializer(queryset, many=True, context={"request": request}) return Response(serializer.data) @@ -660,78 +680,14 @@ class TaskViewSet(UploadMixin, auth.TaskGetQuerySetMixin, viewsets.ModelViewSet) else: data_type = request.query_params.get('type', None) - data_id = request.query_params.get('number', None) + data_num = request.query_params.get('number', None) data_quality = request.query_params.get('quality', 'compressed') - possible_data_type_values = ('chunk', 'frame', 'preview', 'context_image') - possible_quality_values = ('compressed', 'original') - - try: - if not data_type or data_type not in possible_data_type_values: - raise ValidationError(detail='Data type not specified or has wrong value') - elif data_type == 'chunk' or data_type == 'frame': - if not data_id: - raise ValidationError(detail='Number is not specified') - elif data_quality not in possible_quality_values: - raise ValidationError(detail='Wrong quality value') - - db_data = db_task.data - if not db_data: - raise NotFound(detail='Cannot find requested data for the task') - - frame_provider = FrameProvider(db_task.data, db_task.dimension) - - if data_type == 'chunk': - data_id = int(data_id) - - data_quality = FrameProvider.Quality.COMPRESSED \ - if data_quality == 'compressed' else FrameProvider.Quality.ORIGINAL - - #TODO: av.FFmpegError processing - if settings.USE_CACHE and db_data.storage_method == StorageMethodChoice.CACHE: - buff, mime_type = frame_provider.get_chunk(data_id, data_quality) - return HttpResponse(buff.getvalue(), content_type=mime_type) - - # Follow symbol links if the chunk is a link on a real image otherwise - # mimetype detection inside sendfile will work incorrectly. - path = os.path.realpath(frame_provider.get_chunk(data_id, data_quality)) - return sendfile(request, path) - - elif data_type == 'frame': - data_id = int(data_id) - data_quality = FrameProvider.Quality.COMPRESSED \ - if data_quality == 'compressed' else FrameProvider.Quality.ORIGINAL - buf, mime = frame_provider.get_frame(data_id, data_quality) - - return HttpResponse(buf.getvalue(), content_type=mime) - - elif data_type == 'preview': - return sendfile(request, frame_provider.get_preview()) - - elif data_type == 'context_image': - data_id = int(data_id) - image = Image.objects.get(data_id=db_data.id, frame=data_id) - for i in image.related_files.all(): - path = os.path.realpath(str(i.path)) - image = cv2.imread(path) - success, result = cv2.imencode('.JPEG', image) - if not success: - raise Exception('Failed to encode image to ".jpeg" format') - return HttpResponse(io.BytesIO(result.tobytes()), content_type='image/jpeg') - return Response(data='No context image related to the frame', - status=status.HTTP_404_NOT_FOUND) - else: - return Response(data='unknown data type {}.'.format(data_type), status=status.HTTP_400_BAD_REQUEST) - except APIException as e: - return Response(data=e.get_full_details(), status=e.status_code) - except FileNotFoundError as ex: - msg = f"{ex.strerror} {ex.filename}" - slogger.task[pk].error(msg, exc_info=True) - return Response(data=msg, status=status.HTTP_404_NOT_FOUND) - except Exception as e: - msg = 'cannot get requested data type: {}, number: {}, quality: {}'.format(data_type, data_id, data_quality) - slogger.task[pk].error(msg, exc_info=True) - return Response(data=msg + '\n' + str(e), status=status.HTTP_400_BAD_REQUEST) + data_getter = DataChunkGetter(data_type, data_num, data_quality, + db_task.dimension) + + return data_getter(request, db_task.data.start_frame, + db_task.data.stop_frame, db_task.data) @swagger_auto_schema(method='get', operation_summary='Method allows to download task annotations', manual_parameters=[ @@ -823,8 +779,7 @@ class TaskViewSet(UploadMixin, auth.TaskGetQuerySetMixin, viewsets.ModelViewSet) @action(detail=True, methods=['GET'], serializer_class=RqStatusSerializer) def status(self, request, pk): self.get_object() # force to call check_object_permissions - response = self._get_rq_response(queue="default", - job_id="/api/{}/tasks/{}".format(request.version, pk)) + response = self._get_rq_response(queue="default", job_id=f"/api/v1/tasks/{pk}") serializer = RqStatusSerializer(data=response) if serializer.is_valid(raise_exception=True): @@ -916,23 +871,23 @@ class TaskViewSet(UploadMixin, auth.TaskGetQuerySetMixin, viewsets.ModelViewSet) @method_decorator(name='update', decorator=swagger_auto_schema(operation_summary='Method updates a job by id')) @method_decorator(name='partial_update', decorator=swagger_auto_schema( operation_summary='Methods does a partial update of chosen fields in a job')) -class JobViewSet(viewsets.GenericViewSet, +class JobViewSet(viewsets.GenericViewSet, mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.UpdateModelMixin): queryset = Job.objects.all().order_by('id') - serializer_class = JobSerializer - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] + def get_queryset(self): + queryset = super().get_queryset() + if self.action == 'list': + perm = JobPermission.create_list(self.request) + queryset = perm.filter(queryset) - if http_method in SAFE_METHODS: - permissions.append(auth.JobAccessPermission) - elif http_method in ['PATCH', 'PUT', 'DELETE']: - permissions.append(auth.JobChangePermission) - else: - permissions.append(auth.AdminRolePermission) + return queryset - return [perm() for perm in permissions] + def get_serializer_class(self): + if self.request.method in SAFE_METHODS: + return JobReadSerializer + else: + return JobWriteSerializer @swagger_auto_schema(method='get', operation_summary='Method returns annotations for a specific job') @swagger_auto_schema(method='put', operation_summary='Method performs an update of all annotations in a specific job') @@ -982,169 +937,98 @@ class JobViewSet(viewsets.GenericViewSet, return Response(data=str(e), status=status.HTTP_400_BAD_REQUEST) return Response(data) - @swagger_auto_schema(method='get', operation_summary='Method returns list of reviews for the job', - responses={'200': ReviewSerializer(many=True)} - ) - @action(detail=True, methods=['GET'], serializer_class=ReviewSerializer) - def reviews(self, request, pk): - db_job = self.get_object() - queryset = db_job.review_set - serializer = ReviewSerializer(queryset, context={'request': request}, many=True) - return Response(serializer.data) - - @swagger_auto_schema(method='get', operation_summary='Method returns list of issues for the job', - responses={'200': CombinedIssueSerializer(many=True)} - ) - @action(detail=True, methods=['GET'], serializer_class=CombinedIssueSerializer) + @swagger_auto_schema( + method='get', + operation_summary='Method returns list of issues for the job', + responses={'200': IssueReadSerializer(many=True)}) + @action(detail=True, methods=['GET'], serializer_class=IssueReadSerializer) def issues(self, request, pk): db_job = self.get_object() - queryset = db_job.issue_set - serializer = CombinedIssueSerializer(queryset, context={'request': request}, many=True) - return Response(serializer.data) - - -@method_decorator(name='create', decorator=swagger_auto_schema(operation_summary='Submit a review for a job')) -@method_decorator(name='destroy', decorator=swagger_auto_schema(operation_summary='Method removes a review from a job')) -class ReviewViewSet(viewsets.GenericViewSet, mixins.DestroyModelMixin, mixins.CreateModelMixin): - queryset = Review.objects.all().order_by('id') - - def get_serializer_class(self): - if self.request.method == 'POST': - return CombinedReviewSerializer - else: - return ReviewSerializer + queryset = db_job.issues + serializer = IssueReadSerializer(queryset, + context={'request': request}, many=True) - def get_permissions(self): - permissions = [IsAuthenticated] - if self.request.method == 'POST': - permissions.append(auth.JobReviewPermission) - else: - permissions.append(auth.AdminRolePermission) + return Response(serializer.data) - return [perm() for perm in permissions] + @swagger_auto_schema(method='get', operation_summary='Method returns data for a specific job', + manual_parameters=[ + openapi.Parameter('type', in_=openapi.IN_QUERY, required=True, type=openapi.TYPE_STRING, + enum=['chunk', 'frame', 'preview', 'context_image'], + description="Specifies the type of the requested data"), + openapi.Parameter('quality', in_=openapi.IN_QUERY, required=True, type=openapi.TYPE_STRING, + enum=['compressed', 'original'], + description="Specifies the quality level of the requested data, doesn't matter for 'preview' type"), + openapi.Parameter('number', in_=openapi.IN_QUERY, required=True, type=openapi.TYPE_NUMBER, + description="A unique number value identifying chunk or frame, doesn't matter for 'preview' type"), + ] + ) + @action(detail=True) + def data(self, request, pk): + db_job = self.get_object() # call check_object_permissions as well + data_type = request.query_params.get('type', None) + data_num = request.query_params.get('number', None) + data_quality = request.query_params.get('quality', 'compressed') - def create(self, request, *args, **kwargs): - job_id = request.data['job'] - db_job = get_object_or_404(Job, pk=job_id) - self.check_object_permissions(self.request, db_job) - - if request.data['status'] == ReviewStatus.REVIEW_FURTHER: - if 'reviewer_id' not in request.data: - return Response('Must provide a new reviewer', status=status.HTTP_400_BAD_REQUEST) - reviewer_id = request.data['reviewer_id'] - reviewer = get_object_or_404(User, pk=reviewer_id) - - request.data.update({ - 'reviewer_id': request.user.id, - }) - if db_job.assignee: - request.data.update({ - 'assignee_id': db_job.assignee.id, - }) + data_getter = DataChunkGetter(data_type, data_num, data_quality, + db_job.segment.task.dimension) - issue_set = request.data['issue_set'] - for issue in issue_set: - issue['job'] = db_job.id - issue['owner_id'] = request.user.id - comment_set = issue['comment_set'] - for comment in comment_set: - comment['author_id'] = request.user.id + return data_getter(request, db_job.segment.start_frame, + db_job.segment.stop_frame, db_job.segment.task.data) - serializer = self.get_serializer(data=request.data, partial=True) - serializer.is_valid(raise_exception=True) - self.perform_create(serializer) - headers = self.get_success_headers(serializer.data) - - if serializer.data['status'] == ReviewStatus.ACCEPTED: - db_job.status = StatusChoice.COMPLETED - db_job.save() - elif serializer.data['status'] == ReviewStatus.REJECTED: - db_job.status = StatusChoice.ANNOTATION - db_job.save() - else: - db_job.reviewer = reviewer - db_job.save() +class IssueViewSet(viewsets.ModelViewSet): + queryset = Issue.objects.all().order_by('-id') + http_method_names = ['get', 'post', 'patch', 'delete', 'options'] - return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers) + def get_queryset(self): + queryset = super().get_queryset() + if self.action == 'list': + perm = IssuePermission.create_list(self.request) + queryset = perm.filter(queryset) -@method_decorator(name='destroy', decorator=swagger_auto_schema(operation_summary='Method removes an issue from a job')) -@method_decorator(name='partial_update', decorator=swagger_auto_schema(operation_summary='Method updates an issue. It is used to resolve/reopen an issue')) -class IssueViewSet(viewsets.GenericViewSet, mixins.DestroyModelMixin, mixins.UpdateModelMixin): - queryset = Issue.objects.all().order_by('id') - http_method_names = ['get', 'patch', 'delete', 'options'] + return queryset def get_serializer_class(self): - return IssueSerializer - - def partial_update(self, request, *args, **kwargs): - db_issue = self.get_object() - if 'resolver_id' in request.data and request.data['resolver_id'] and db_issue.resolver is None: - # resolve - db_issue.resolver = request.user - db_issue.resolved_date = datetime.now() - db_issue.save(update_fields=['resolver', 'resolved_date']) - elif 'resolver_id' in request.data and not request.data['resolver_id'] and db_issue.resolver is not None: - # reopen - db_issue.resolver = None - db_issue.resolved_date = None - db_issue.save(update_fields=['resolver', 'resolved_date']) - serializer = self.get_serializer(db_issue) - return Response(serializer.data) - - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] - - if http_method in SAFE_METHODS: - permissions.append(auth.IssueAccessPermission) - elif http_method in ['DELETE']: - permissions.append(auth.IssueDestroyPermission) - elif http_method in ['PATCH']: - permissions.append(auth.IssueChangePermission) + if self.request.method in SAFE_METHODS: + return IssueReadSerializer else: - permissions.append(auth.AdminRolePermission) + return IssueWriteSerializer - return [perm() for perm in permissions] + def perform_create(self, serializer): + serializer.save(owner=self.request.user) - @swagger_auto_schema(method='get', operation_summary='The action returns all comments of a specific issue', - responses={'200': CommentSerializer(many=True)} - ) - @action(detail=True, methods=['GET'], serializer_class=CommentSerializer) + @swagger_auto_schema( + method='get', + operation_summary='The action returns all comments of a specific issue', + responses={'200': CommentReadSerializer(many=True)}) + @action(detail=True, methods=['GET'], serializer_class=CommentReadSerializer) def comments(self, request, pk): db_issue = self.get_object() - queryset = db_issue.comment_set - serializer = CommentSerializer(queryset, context={'request': request}, many=True) + queryset = db_issue.comments + serializer = CommentReadSerializer(queryset, + context={'request': request}, many=True) + return Response(serializer.data) -@method_decorator(name='partial_update', decorator=swagger_auto_schema(operation_summary='Method updates comment in an issue')) -@method_decorator(name='destroy', decorator=swagger_auto_schema(operation_summary='Method removes a comment from an issue')) -class CommentViewSet(viewsets.GenericViewSet, - mixins.DestroyModelMixin, mixins.UpdateModelMixin, mixins.CreateModelMixin): - queryset = Comment.objects.all().order_by('id') - serializer_class = CommentSerializer +class CommentViewSet(viewsets.ModelViewSet): + queryset = Comment.objects.all().order_by('-id') http_method_names = ['get', 'post', 'patch', 'delete', 'options'] - def create(self, request, *args, **kwargs): - request.data.update({ - 'author_id': request.user.id, - }) - issue_id = request.data['issue'] - db_issue = get_object_or_404(Issue, pk=issue_id) - self.check_object_permissions(self.request, db_issue.job) - return super().create(request, args, kwargs) - - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] - - if http_method in ['PATCH', 'DELETE']: - permissions.append(auth.CommentChangePermission) - elif http_method in ['POST']: - permissions.append(auth.CommentCreatePermission) + def get_queryset(self): + queryset = super().get_queryset() + if self.action == 'list': + perm = CommentPermission.create_list(self.request) + queryset = perm.filter(queryset) + + return queryset + + def get_serializer_class(self): + if self.request.method in SAFE_METHODS: + return CommentReadSerializer else: - permissions.append(auth.AdminRolePermission) + return CommentWriteSerializer - return [perm() for perm in permissions] + def perform_create(self, serializer): + serializer.save(owner=self.request.user) class UserFilter(filters.FilterSet): class Meta: @@ -1170,6 +1054,14 @@ class UserViewSet(viewsets.GenericViewSet, mixins.ListModelMixin, search_fields = ('username', 'first_name', 'last_name') filterset_class = UserFilter + def get_queryset(self): + queryset = super().get_queryset() + if self.action == 'list': + perm = UserPermission(self.request, self) + queryset = perm.filter(queryset) + + return queryset + def get_serializer_class(self): user = self.request.user if user.is_staff: @@ -1182,17 +1074,6 @@ class UserViewSet(viewsets.GenericViewSet, mixins.ListModelMixin, else: return BasicUserSerializer - def get_permissions(self): - permissions = [IsAuthenticated] - user = self.request.user - - if not self.request.method in SAFE_METHODS: - is_self = int(self.kwargs.get("pk", 0)) == user.id - if not is_self: - permissions.append(auth.AdminRolePermission) - - return [perm() for perm in permissions] - @swagger_auto_schema(method='get', operation_summary='Method returns an instance of a user who is currently authorized') @action(detail=False, methods=['GET']) def self(self, request): @@ -1260,24 +1141,12 @@ class CloudStorageFilter(filters.FilterSet): field_inspectors=[RedefineDescriptionField] ) ) -class CloudStorageViewSet(auth.CloudStorageGetQuerySetMixin, viewsets.ModelViewSet): +class CloudStorageViewSet(viewsets.ModelViewSet): http_method_names = ['get', 'post', 'patch', 'delete'] queryset = CloudStorageModel.objects.all().prefetch_related('data').order_by('-id') search_fields = ('provider_type', 'display_name', 'resource', 'credentials_type', 'owner__username', 'description') filterset_class = CloudStorageFilter - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] - - if http_method in SAFE_METHODS: - permissions.append(auth.CloudStorageAccessPermission) - elif http_method in ("POST", "PATCH", "DELETE"): - permissions.append(auth.CloudStorageChangePermission) - else: - permissions.append(auth.AdminRolePermission) - return [perm() for perm in permissions] - def get_serializer_class(self): if self.request.method in ("POST", "PATCH"): return CloudStorageSerializer @@ -1286,6 +1155,10 @@ class CloudStorageViewSet(auth.CloudStorageGetQuerySetMixin, viewsets.ModelViewS def get_queryset(self): queryset = super().get_queryset() + if self.action == 'list': + perm = CloudStoragePermission(self.request, self) + queryset = perm.filter(queryset) + provider_type = self.request.query_params.get('provider_type', None) if provider_type: if provider_type in CloudProviderChoice.list(): @@ -1294,7 +1167,9 @@ class CloudStorageViewSet(auth.CloudStorageGetQuerySetMixin, viewsets.ModelViewS return queryset def perform_create(self, serializer): - serializer.save(owner=self.request.user) + serializer.save( + owner=self.request.user, + organization=self.request.iam_context['organization']) def perform_destroy(self, instance): cloud_storage_dirname = instance.get_storage_dirname() @@ -1345,7 +1220,7 @@ class CloudStorageViewSet(auth.CloudStorageGetQuerySetMixin, viewsets.ModelViewS def content(self, request, pk): storage = None try: - db_storage = CloudStorageModel.objects.get(pk=pk) + db_storage = self.get_object() credentials = Credentials() credentials.convert_from_db({ 'type': db_storage.credentials_type, @@ -1409,7 +1284,7 @@ class CloudStorageViewSet(auth.CloudStorageGetQuerySetMixin, viewsets.ModelViewS def preview(self, request, pk): storage = None try: - db_storage = CloudStorageModel.objects.get(pk=pk) + db_storage = self.get_object() if not os.path.exists(db_storage.get_preview_path()): credentials = Credentials() credentials.convert_from_db({ @@ -1464,6 +1339,8 @@ class CloudStorageViewSet(auth.CloudStorageGetQuerySetMixin, viewsets.ModelViewS message = f"Storage {pk} does not exist" slogger.glob.error(message) return HttpResponseNotFound(message) + except PermissionDenied: + raise except Exception as ex: # check that cloud storage was not deleted storage_status = storage.get_status() if storage else None @@ -1486,7 +1363,7 @@ class CloudStorageViewSet(auth.CloudStorageGetQuerySetMixin, viewsets.ModelViewS @action(detail=True, methods=['GET'], url_path='status') def status(self, request, pk): try: - db_storage = CloudStorageModel.objects.get(pk=pk) + db_storage = self.get_object() credentials = Credentials() credentials.convert_from_db({ 'type': db_storage.credentials_type, diff --git a/cvat/apps/iam/__init__.py b/cvat/apps/iam/__init__.py new file mode 100644 index 00000000..813d16ca --- /dev/null +++ b/cvat/apps/iam/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + diff --git a/cvat/apps/authentication/admin.py b/cvat/apps/iam/admin.py similarity index 90% rename from cvat/apps/authentication/admin.py rename to cvat/apps/iam/admin.py index 3267ca68..cbbe15a1 100644 --- a/cvat/apps/authentication/admin.py +++ b/cvat/apps/iam/admin.py @@ -1,5 +1,4 @@ - -# Copyright (C) 2018 Intel Corporation +# Copyright (C) 2021 Intel Corporation # # SPDX-License-Identifier: MIT diff --git a/cvat/apps/iam/apps.py b/cvat/apps/iam/apps.py new file mode 100644 index 00000000..d247b4d4 --- /dev/null +++ b/cvat/apps/iam/apps.py @@ -0,0 +1,8 @@ +from django.apps import AppConfig + +class IAMConfig(AppConfig): + name = 'cvat.apps.iam' + + def ready(self): + from .signals import register_signals + register_signals(self) diff --git a/cvat/apps/iam/authentication.py b/cvat/apps/iam/authentication.py new file mode 100644 index 00000000..ce93dcfc --- /dev/null +++ b/cvat/apps/iam/authentication.py @@ -0,0 +1,89 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from django.core import signing +from rest_framework import exceptions +from rest_framework.authentication import BaseAuthentication +from rest_framework.authentication import TokenAuthentication +from django.contrib.auth import login +from django.contrib.auth import get_user_model +from furl import furl +import hashlib + +# Got implementation ideas in https://github.com/marcgibbons/drf_signed_auth +class Signer: + QUERY_PARAM = 'sign' + MAX_AGE = 30 + + @classmethod + def get_salt(cls, url): + normalized_url = furl(url).remove(cls.QUERY_PARAM).url.encode('utf-8') + salt = hashlib.sha256(normalized_url).hexdigest() + return salt + + def sign(self, user, url): + """ + Create a signature for a user object. + """ + data = { + 'user_id': user.pk, + 'username': user.get_username() + } + + return signing.dumps(data, salt=self.get_salt(url)) + + def unsign(self, signature, url): + """ + Return a user object for a valid signature. + """ + User = get_user_model() + data = signing.loads(signature, salt=self.get_salt(url), + max_age=self.MAX_AGE) + + if not isinstance(data, dict): + raise signing.BadSignature() + + try: + return User.objects.get(**{ + 'pk': data.get('user_id'), + User.USERNAME_FIELD: data.get('username') + }) + except User.DoesNotExist: + raise signing.BadSignature() + +# Even with token authorization it is very important to have a valid session id +# in cookies because in some cases we cannot use token authorization (e.g. when +# we redirect to the server in UI using just URL). To overkill that we override +# the class to call `login` method which restores the session id in cookies. +class TokenAuthenticationEx(TokenAuthentication): + def authenticate(self, request): + auth = super().authenticate(request) + session = getattr(request, 'session') + if auth is not None and (session.session_key is None or (not session.modified and not session.load())): + login(request, auth[0], 'django.contrib.auth.backends.ModelBackend') + return auth + +class SignatureAuthentication(BaseAuthentication): + """ + Authentication backend for signed URLs. + """ + def authenticate(self, request): + """ + Returns authenticated user if URL signature is valid. + """ + signer = Signer() + sign = request.query_params.get(Signer.QUERY_PARAM) + if not sign: + return + + try: + user = signer.unsign(sign, request.build_absolute_uri()) + except signing.SignatureExpired: + raise exceptions.AuthenticationFailed('This URL has expired.') + except signing.BadSignature: + raise exceptions.AuthenticationFailed('Invalid signature.') + if not user.is_active: + raise exceptions.AuthenticationFailed('User inactive or deleted.') + + return (user, None) diff --git a/cvat/apps/authentication/decorators.py b/cvat/apps/iam/decorators.py similarity index 88% rename from cvat/apps/authentication/decorators.py rename to cvat/apps/iam/decorators.py index 569b1352..aa4017fd 100644 --- a/cvat/apps/authentication/decorators.py +++ b/cvat/apps/iam/decorators.py @@ -8,17 +8,17 @@ from django.views.generic import RedirectView from django.contrib.auth import REDIRECT_FIELD_NAME from django.http import JsonResponse from django.conf import settings -from cvat.apps.authentication.auth import TokenAuthentication +from .authentication import TokenAuthenticationEx def login_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, - login_url=None, redirect_methods=['GET']): + login_url=None, redirect_methods=('GET')): def decorator(view_func): @wraps(view_func) def _wrapped_view(request, *args, **kwargs): if request.user.is_authenticated: return view_func(request, *args, **kwargs) else: - tokenAuth = TokenAuthentication() + tokenAuth = TokenAuthenticationEx() auth = tokenAuth.authenticate(request) if auth is not None: return view_func(request, *args, **kwargs) diff --git a/cvat/apps/iam/filters.py b/cvat/apps/iam/filters.py new file mode 100644 index 00000000..7af7c56d --- /dev/null +++ b/cvat/apps/iam/filters.py @@ -0,0 +1,30 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +import coreapi +from django.core.exceptions import FieldError +from rest_framework.filters import BaseFilterBackend + +class OrganizationFilterBackend(BaseFilterBackend): + def get_schema_fields(self, view): + return [ + coreapi.Field(name='org', location='query', required=False, + type='string', description='Organization unique slug'), + coreapi.Field(name='org_id', location='query', required=False, + type='string', description='Organization identifier'), + ] + + def filter_queryset(self, request, queryset, view): + # Rego rules should filter objects correctly (see filter rule). The + # filter isn't necessary but it is an extra check that we show only + # objects inside an organization if the request in context of the + # organization. + try: + organization = request.iam_context['organization'] + if organization: + return queryset.filter(organization=organization) + else: + return queryset + except FieldError: + return queryset diff --git a/cvat/apps/iam/models.py b/cvat/apps/iam/models.py new file mode 100644 index 00000000..813d16ca --- /dev/null +++ b/cvat/apps/iam/models.py @@ -0,0 +1,4 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + diff --git a/cvat/apps/iam/permissions.py b/cvat/apps/iam/permissions.py new file mode 100644 index 00000000..b9881ccc --- /dev/null +++ b/cvat/apps/iam/permissions.py @@ -0,0 +1,982 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from collections import namedtuple +import operator +from rest_framework.exceptions import ValidationError + +import requests +from django.conf import settings +from django.db.models import Q +from rest_framework.permissions import BasePermission + +from cvat.apps.organizations.models import Membership, Organization +from cvat.apps.engine.models import Project, Task, Job, Issue + +class OpenPolicyAgentPermission: + def __init__(self, request, view, obj): + self.request = request + self.view = view + self.obj = obj + + privilege = self.request.iam_context['privilege'] + organization = self.request.iam_context['organization'] + membership = self.request.iam_context['membership'] + user = self.request.user + + self.payload = { + 'input': { + 'auth': { + 'user': { + 'id': user.id, + 'privilege': getattr(privilege, 'name', None), + }, + 'organization': { + 'id': organization.id, + 'owner': { + 'id': getattr(organization.owner, 'id', None), + }, + 'user': { + 'role': getattr(membership, 'role', None) + }, + } if organization else None + } + } + } + + def __bool__(self): + r = requests.post(self.url, json=self.payload) + return r.json()['result'] + + def filter(self, queryset): + url = self.url.replace('/allow', '/filter') + r = requests.post(url, json=self.payload) + qobjects = [] + ops_dict = { + '|': operator.or_, + '&': operator.and_, + '~': operator.not_, + } + for item in r.json()['result']: + if isinstance(item, str): + val1 = qobjects.pop() + if item == '~': + qobjects.append(ops_dict[item](val1)) + else: + val2 = qobjects.pop() + qobjects.append(ops_dict[item](val1, val2)) + else: + qobjects.append(Q(**item)) + + if qobjects: + assert len(qobjects) == 1 + else: + qobjects.append(Q()) + + # By default, a QuerySet will not eliminate duplicate rows. If your + # query spans multiple tables (e.g. members__user_id, owner_id), it’s + # possible to get duplicate results when a QuerySet is evaluated. + # That’s when you’d use distinct(). + return queryset.filter(qobjects[0]).distinct() + +class OrganizationPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'organization': + self = cls(request, view, obj) + permissions.append(self) + + return permissions + + def __init__(self, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/organizations/allow' + self.payload['input']['scope'] = self.scope + self.payload['input']['resource'] = self.resource + + @property + def scope(self): + return { + 'list': 'list', + 'create': 'create', + 'destroy': 'delete', + 'partial_update': 'update', + 'retrieve': 'view' + }.get(self.view.action, None) + + @property + def resource(self): + user = self.request.user + if self.obj: + membership = Membership.objects.filter(organization=self.obj, user=user).first() + return { + 'id': self.obj.id, + 'owner': { + 'id': getattr(self.obj.owner, 'id', None) + }, + 'user': { + 'role': membership.role if membership else None + } + } + elif self.view.action == 'create': + return { + 'id': None, + 'owner': { + 'id': user.id + }, + 'user': { + 'num_resources': Organization.objects.filter( + owner_id=user.id).count(), + 'role': 'owner' + } + } + else: + return None + +class InvitationPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'invitation': + self = cls(request, view, obj) + permissions.append(self) + + return permissions + + def __init__(self, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/invitations/allow' + self.payload['input']['scope'] = self.scope + self.payload['input']['resource'] = self.resource + + @property + def scope(self): + return { + 'list': 'list', + 'create': 'create', + 'destroy': 'delete', + 'partial_update': 'accept' if 'accepted' in + self.request.query_params else 'resend', + 'retrieve': 'view' + }.get(self.view.action) + + @property + def resource(self): + data = None + if self.obj: + data = { + 'owner': { 'id': getattr(self.obj.owner, 'id', None) }, + 'invitee': { 'id': getattr(self.obj.membership.user, 'id', None) }, + 'role': self.obj.membership.role, + 'organization': { + 'id': self.obj.membership.organization.id + } + } + elif self.view.action == 'create': + organization = self.request.iam_context['organization'] + data = { + 'owner': { 'id': self.request.user.id }, + 'invitee': { + 'id': None # unknown yet + }, + 'role': self.request.data.get('role'), + 'organization': { + 'id': organization.id + } if organization else None + } + + return data + +class MembershipPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'membership': + self = cls(request, view, obj) + permissions.append(self) + + return permissions + + def __init__(self, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/memberships/allow' + self.payload['input']['scope'] = self.scope + self.payload['input']['resource'] = self.resource + + @property + def scope(self): + return { + 'list': 'list', + 'partial_update': 'change:role', + 'retrieve': 'view', + 'destroy': 'delete' + }.get(self.view.action) + + @property + def resource(self): + if self.obj: + return { + 'role': self.obj.role, + 'is_active': self.obj.is_active, + 'user': { 'id': self.obj.user.id }, + 'organization': { 'id': self.obj.organization.id } + } + else: + return None + +class ServerPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'server': + self = cls(request, view, obj) + permissions.append(self) + + return permissions + + def __init__(self, request, view, obj): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/server/allow' + self.payload['input']['scope'] = self.scope + + @property + def scope(self): + return { + 'annotation_formats': 'view', + 'about': 'view', + 'plugins': 'view', + 'exception': 'send:exception', + 'logs': 'send:logs', + 'share': 'list:content' + }.get(self.view.action, None) + +class UserPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'user': + self = cls(request, view, obj) + permissions.append(self) + + return permissions + + @classmethod + def create_view(cls, user_id, request): + obj = namedtuple('User', ['id'])(id=int(user_id)) + view = namedtuple('View', ['action'])(action='retrieve') + return cls(request, view, obj) + + def __init__(self, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/users/allow' + self.payload['input']['scope'] = self.scope + self.payload['input']['resource'] = self.resource + + @property + def scope(self): + return { + 'list': 'list', + 'self': 'view', + 'retrieve': 'view', + 'partial_update': 'update', + 'destroy': 'delete' + }.get(self.view.action) + + @property + def resource(self): + data = None + organization = self.payload['input']['auth']['organization'] + if self.obj: + data = { + 'id': self.obj.id + } + elif self.view.action == 'self': + data = { + 'id': self.request.user.id + } + + if data: + data.update({ + 'membership': { + 'role': organization['user']['role'] + if organization else None + } + }) + + return data + +class LambdaPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'function' or view.basename == 'request': + self = cls(request, view, obj) + permissions.append(self) + + task_id = request.data.get('task') + if task_id: + perm = TaskPermission.create_view_data(request, task_id) + permissions.append(perm) + + return permissions + + def __init__(self, request, view, obj): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/lambda/allow' + self.payload['input']['scope'] = self.scope + + @property + def scope(self): + return { + ('function', 'list'): 'list', + ('function', 'retrieve'): 'view', + ('function', 'call'): 'call:online', + ('request', 'create'): 'call:offline', + ('request', 'list'): 'call:offline', + ('request', 'retrieve'): 'call:offline', + ('request', 'destroy'): 'call:offline', + }.get((self.view.basename, self.view.action), None) + +class CloudStoragePermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'cloudstorage': + self = cls(request, view, obj) + permissions.append(self) + + return permissions + + def __init__(self, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/cloudstorages/allow' + self.payload['input']['scope'] = self.scope + self.payload['input']['resource'] = self.resource + + @property + def scope(self): + return { + 'list': 'list', + 'create': 'create', + 'retrieve': 'view', + 'partial_update': 'update', + 'destroy': 'delete', + 'content': 'list:content', + 'preview': 'view', + 'status': 'view' + }.get(self.view.action) + + @property + def resource(self): + data = None + if self.view.action == 'create': + user_id = self.request.user.id + organization = self.request.iam_context['organization'] + data = { + 'owner': { 'id': user_id }, + 'organization': { + 'id': organization.id + } if organization else None, + 'user': { + 'num_resources': Organization.objects.filter( + owner=user_id).count() + } + } + elif self.obj: + data = { + 'id': self.obj.id, + 'owner': { 'id': getattr(self.obj.owner, 'id', None) }, + 'organization': { + 'id': self.obj.organization.id + } if self.obj.organization else None + } + + return data + +class ProjectPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'project': + for scope in cls.get_scopes(request, view, obj): + self = cls(scope, request, view, obj) + permissions.append(self) + + if view.action == 'tasks': + perm = TaskPermission.create_list(request) + permissions.append(perm) + + owner = request.data.get('owner_id') or request.data.get('owner') + if owner: + perm = UserPermission.create_view(owner, request) + permissions.append(perm) + + assignee = request.data.get('assignee_id') or request.data.get('assignee') + if assignee: + perm = UserPermission.create_view(assignee, request) + permissions.append(perm) + + return permissions + + @classmethod + def create_view(cls, request, project_id): + try: + obj = Project.objects.get(id=project_id) + except Project.DoesNotExist as ex: + raise ValidationError(str(ex)) + view = namedtuple('View', ['action'])(action='retrieve') + return cls('view', request, view, obj) + + + def __init__(self, scope, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/projects/allow' + self.payload['input']['scope'] = scope + self.payload['input']['resource'] = self.resource + + @staticmethod + def get_scopes(request, view, obj): + scope = { + ('list', 'GET'): 'list', + ('create', 'POST'): 'create', + ('destroy', 'DELETE'): 'delete', + ('partial_update', 'PATCH'): 'update', + ('retrieve', 'GET'): 'view', + ('tasks', 'GET'): 'view', + ('dataset', 'POST'): 'import:dataset', + ('annotations', 'GET'): 'export:annotations', + ('dataset', 'GET'): 'export:dataset', + ('export_backup', 'GET'): 'export:backup', + ('import_backup', 'POST'): 'import:backup', + }.get((view.action, request.method)) + + scopes = [] + if scope == 'update': + if any(k in request.data for k in ('owner_id', 'owner')): + owner_id = request.data.get('owner_id') or request.data.get('owner') + if owner_id != getattr(obj.owner, 'id', None): + scopes.append(scope + ':owner') + if any(k in request.data for k in ('assignee_id', 'assignee')): + assignee_id = request.data.get('assignee_id') or request.data.get('assignee') + if assignee_id != getattr(obj.assignee, 'id', None): + scopes.append(scope + ':assignee') + for field in ('name', 'labels', 'bug_tracker'): + if field in request.data: + scopes.append(scope + ':desc') + break + else: + scopes.append(scope) + + return scopes + + @property + def resource(self): + data = None + if self.obj: + data = { + "id": self.obj.id, + "owner": { "id": getattr(self.obj.owner, 'id', None) }, + "assignee": { "id": getattr(self.obj.assignee, 'id', None) }, + 'organization': { + "id": getattr(self.obj.organization, 'id', None) + } + } + elif self.view.action in ['create', 'import_backup']: + organization = self.request.iam_context['organization'] + data = { + "id": None, + "owner": { "id": self.request.user.id }, + "assignee": { + "id": self.request.data.get('assignee_id') + }, + 'organization': { + "id": organization.id if organization else None + }, + "user": { + "num_resources": Project.objects.filter( + owner_id=self.request.user.id).count() + } + } + + return data + +class TaskPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'task': + for scope in cls.get_scopes(request, view, obj): + self = cls(scope, request, view, obj) + permissions.append(self) + + if view.action == 'jobs': + perm = JobPermission.create_list(request) + permissions.append(perm) + + owner = request.data.get('owner_id') or request.data.get('owner') + if owner: + perm = UserPermission.create_view(owner, request) + permissions.append(perm) + + assignee = request.data.get('assignee_id') or request.data.get('assignee') + if assignee: + perm = UserPermission.create_view(assignee, request) + permissions.append(perm) + + project_id = request.data.get('project_id') or request.data.get('project') + if project_id: + perm = ProjectPermission.create_view(request, project_id) + permissions.append(perm) + + return permissions + + + @classmethod + def create_list(cls, request): + view = namedtuple('View', ['action'])(action='list') + return cls('list', request, view) + + @classmethod + def create_view_data(cls, request, task_id): + try: + obj = Task.objects.get(id=task_id) + except Task.DoesNotExist as ex: + raise ValidationError(str(ex)) + view = namedtuple('View', ['action'])(action='data') + return cls('view:data', request, view, obj) + + def __init__(self, scope, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/tasks/allow' + self.payload['input']['scope'] = scope + self.payload['input']['resource'] = self.resource + + @property + def resource(self): + data = None + if self.obj: + data = { + "id": self.obj.id, + "owner": { "id": getattr(self.obj.owner, 'id', None) }, + "assignee": { "id": getattr(self.obj.assignee, 'id', None) }, + 'organization': { + "id": getattr(self.obj.organization, 'id', None) + }, + "project": { + "owner": { "id": getattr(self.obj.project.owner, 'id', None) }, + "assignee": { "id": getattr(self.obj.project.assignee, 'id', None) }, + 'organization': { + "id": getattr(self.obj.project.organization, 'id', None) + }, + } if self.obj.project else None + } + elif self.view.action in ['create', 'import_backup']: + organization = self.request.iam_context['organization'] + project_id = self.request.data.get('project_id') or self.request.data.get('project') + project = None + if project_id: + try: + project = Project.objects.get(id=project_id) + except Project.DoesNotExist as ex: + raise ValidationError(str(ex)) + + data = { + "id": None, + "owner": { "id": self.request.user.id }, + "assignee": { + "id": self.request.data.get('assignee_id') or + self.request.data.get('assignee') + }, + 'organization': { + "id": organization.id if organization else None + }, + "project": { + "owner": { "id": getattr(project.owner, 'id', None) }, + "assignee": { "id": getattr(project.assignee, 'id', None) }, + 'organization': { + "id": getattr(project.organization, 'id', None) + }, + } if project else None, + "user": { + "num_resources": Project.objects.filter( + owner_id=self.request.user.id).count() + } + } + + return data + + @classmethod + def get_scopes(cls, request, view, obj): + scope = { + ('list', 'GET'): 'list', + ('create', 'POST'): 'create', + ('retrieve', 'GET'): 'view', + ('status', 'GET'): 'view', + ('partial_update', 'PATCH'): 'update', + ('update', 'PUT'): 'update', + ('destroy', 'DELETE'): 'delete', + ('annotations', 'GET'): 'view:annotations', + ('annotations', 'PATCH'): 'update:annotations', + ('annotations', 'DELETE'): 'delete:annotations', + ('annotations', 'PUT'): 'update:annotations', + ('dataset_export', 'GET'): 'export:dataset', + ('data', 'GET'): 'view:data', + ('data_info', 'GET'): 'view:data', + ('data', 'POST'): 'upload:data', + ('append_tus_chunk', 'PATCH'): 'upload:data', + ('append_tus_chunk', 'HEAD'): 'upload:data', + ('jobs', 'GET'): 'view', + ('import_backup', 'POST'): 'import:backup', + ('export_backup', 'GET'): 'export:backup', + }.get((view.action, request.method)) + + scopes = [] + if scope == 'create': + project_id = request.data.get('project_id') or request.data.get('project') + if project_id: + scope = scope + '@project' + + scopes.append(scope) + elif scope == 'update': + if any(k in request.data for k in ('owner_id', 'owner')): + owner_id = request.data.get('owner_id') or request.data.get('owner') + if owner_id != getattr(obj.owner, 'id', None): + scopes.append(scope + ':owner') + if any(k in request.data for k in ('assignee_id', 'assignee')): + assignee_id = request.data.get('assignee_id') or request.data.get('assignee') + if assignee_id != getattr(obj.assignee, 'id', None): + scopes.append(scope + ':assignee') + if any(k in request.data for k in ('project_id', 'project')): + project_id = request.data.get('project_id') or request.data.get('project') + if project_id != getattr(obj.project, 'id', None): + scopes.append(scope + ':project') + + if any(k in request.data for k in ('name', 'labels', 'bug_tracker', 'subset')): + scopes.append(scope + ':desc') + elif scope == 'view:annotations': + if 'format' in request.query_params: + scope = 'export:annotations' + + scopes.append(scope) + elif scope == 'update:annotations': + if 'format' in request.query_params and request.method == 'PUT': + scope = 'import:annotations' + + scopes.append(scope) + else: + scopes.append(scope) + + return scopes + +class JobPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'job': + for scope in cls.get_scopes(request, view, obj): + self = cls(scope, request, view, obj) + permissions.append(self) + + if view.action == 'issues': + perm = IssuePermission.create_list(request) + permissions.append(perm) + + assignee = request.data.get('assignee') + if assignee: + perm = UserPermission.create_view(assignee, request) + permissions.append(perm) + + return permissions + + @classmethod + def create_list(cls, request): + view = namedtuple('View', ['action'])(action='list') + return cls('list', request, view) + + + def __init__(self, scope, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/jobs/allow' + self.payload['input']['scope'] = scope + self.payload['input']['resource'] = self.resource + + + @property + def resource(self): + data = None + if self.obj: + if self.obj.segment.task.project: + organization = self.obj.segment.task.project.organization + else: + organization = self.obj.segment.task.organization + + data = { + "id": self.obj.id, + "assignee": { "id": getattr(self.obj.assignee, 'id', None) }, + 'organization': { + "id": getattr(organization, 'id', None) + }, + "task": { + "owner": { "id": getattr(self.obj.segment.task.owner, 'id', None) }, + "assignee": { "id": getattr(self.obj.segment.task.assignee, 'id', None) } + }, + "project": { + "owner": { "id": getattr(self.obj.segment.task.project.owner, 'id', None) }, + "assignee": { "id": getattr(self.obj.segment.task.project.assignee, 'id', None) } + } if self.obj.segment.task.project else None + } + + return data + + @classmethod + def get_scopes(cls, request, view, obj): + scope = { + ('list', 'GET'): 'list', # TODO: need to add the method + ('retrieve', 'GET'): 'view', + ('partial_update', 'PATCH'): 'update', + ('update', 'PUT'): 'update', # TODO: do we need the method? + ('destroy', 'DELETE'): 'delete', + ('annotations', 'GET'): 'view:annotations', + ('annotations', 'PATCH'): 'update:annotations', + ('annotations', 'DELETE'): 'delete:annotations', + ('annotations', 'PUT'): 'update:annotations', + ('data', 'GET'): 'view:data', + ('issues', 'GET'): 'view', + }.get((view.action, request.method)) + + scopes = [] + if scope == 'update': + if any(k in request.data for k in ('owner_id', 'owner')): + owner_id = request.data.get('owner_id') or request.data.get('owner') + if owner_id != getattr(obj.owner, 'id', None): + scopes.append(scope + ':owner') + if any(k in request.data for k in ('assignee_id', 'assignee')): + assignee_id = request.data.get('assignee_id') or request.data.get('assignee') + if assignee_id != getattr(obj.assignee, 'id', None): + scopes.append(scope + ':assignee') + if any(k in request.data for k in ('project_id', 'project')): + project_id = request.data.get('project_id') or request.data.get('project') + if project_id != getattr(obj.project, 'id', None): + scopes.append(scope + ':project') + + if any(k in request.data for k in ('name', 'labels', 'bug_tracker', 'subset')): + scopes.append(scope + ':desc') + elif scope == 'view:annotations': + if 'format' in request.query_params: + scope = 'export:annotations' + + scopes.append(scope) + elif scope == 'update:annotations': + if 'format' in request.query_params and request.method == 'PUT': + scope = 'import:annotations' + + scopes.append(scope) + else: + scopes.append(scope) + + return scopes + + +class CommentPermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'comment': + self = cls(request, view, obj) + permissions.append(self) + + return permissions + + @classmethod + def create_list(cls, request): + view = namedtuple('View', ['action'])(action='list') + return cls(request, view) + + def __init__(self, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/comments/allow' + self.payload['input']['scope'] = self.scope + self.payload['input']['resource'] = self.resource + + @property + def scope(self): + return { + 'list': 'list', + 'create': 'create@issue', + 'destroy': 'delete', + 'partial_update': 'update', + 'retrieve': 'view' + }.get(self.view.action, None) + + @property + def resource(self): + data = None + def get_common_data(db_issue): + if db_issue.job.segment.task.project: + organization = db_issue.job.segment.task.project.organization + else: + organization = db_issue.job.segment.task.organization + + data = { + "project": { + "owner": { "id": getattr(db_issue.job.segment.task.project.owner, 'id', None) }, + "assignee": { "id": getattr(db_issue.job.segment.task.project.assignee, 'id', None) } + } if db_issue.job.segment.task.project else None, + "task": { + "owner": { "id": getattr(db_issue.job.segment.task.owner, 'id', None) }, + "assignee": { "id": getattr(db_issue.job.segment.task.assignee, 'id', None) } + }, + "job": { + "assignee": { "id": getattr(db_issue.job.assignee, 'id', None) } + }, + "issue": { + "owner": { "id": getattr(db_issue.owner, 'id', None) }, + "assignee": { "id": getattr(db_issue.assignee, 'id', None) } + }, + 'organization': { + "id": getattr(organization, 'id', None) + } + } + + return data + + if self.obj: + db_issue = self.obj.issue + data = get_common_data(db_issue) + data.update({ + "id": self.obj.id, + "owner": { "id": getattr(self.obj.owner, 'id', None) } + }) + elif self.view.action == 'create': + issue_id = self.request.data.get('issue') + try: + db_issue = Issue.objects.get(id=issue_id) + except Issue.DoesNotExist as ex: + raise ValidationError(str(ex)) + data = get_common_data(db_issue) + data.update({ + "owner": { "id": self.request.user.id } + }) + + return data + +class IssuePermission(OpenPolicyAgentPermission): + @classmethod + def create(cls, request, view, obj): + permissions = [] + if view.basename == 'issue': + self = cls(request, view, obj) + permissions.append(self) + + assignee = request.data.get('assignee') + if assignee: + perm = UserPermission.create_view(assignee, request) + permissions.append(perm) + + return permissions + + @classmethod + def create_list(cls, request): + view = namedtuple('View', ['action'])(action='list') + return cls(request, view) + + def __init__(self, request, view, obj=None): + super().__init__(request, view, obj) + self.url = settings.IAM_OPA_DATA_URL + '/issues/allow' + self.payload['input']['scope'] = self.scope + self.payload['input']['resource'] = self.resource + + @property + def scope(self): + return { + 'list': 'list', + 'create': 'create@job', + 'destroy': 'delete', + 'partial_update': 'update', + 'retrieve': 'view' + }.get(self.view.action, None) + + @property + def resource(self): + data = None + def get_common_data(db_job): + if db_job.segment.task.project: + organization = db_job.segment.task.project.organization + else: + organization = db_job.segment.task.organization + + data = { + "project": { + "owner": { "id": getattr(db_job.segment.task.project.owner, 'id', None) }, + "assignee": { "id": getattr(db_job.segment.task.project.assignee, 'id', None) } + } if db_job.segment.task.project else None, + "task": { + "owner": { "id": getattr(db_job.segment.task.owner, 'id', None) }, + "assignee": { "id": getattr(db_job.segment.task.assignee, 'id', None) } + }, + "job": { + "assignee": { "id": getattr(db_job.assignee, 'id', None) } + }, + 'organization': { + "id": getattr(organization, 'id', None) + } + } + + return data + + + if self.obj: + db_job = self.obj.job + data = get_common_data(db_job) + data.update({ + "id": self.obj.id, + "owner": { "id": getattr(self.obj.owner, 'id', None) }, + "assignee": { "id": getattr(self.obj.assignee, 'id', None) } + }) + elif self.view.action == 'create': + job_id = self.request.data.get('job') + try: + db_job = Job.objects.get(id=job_id) + except Job.DoesNotExist as ex: + raise ValidationError(str(ex)) + data = get_common_data(db_job) + data.update({ + "owner": { "id": self.request.user.id }, + "assignee": { "id": self.request.data.get('assignee') }, + }) + + return data + +class PolicyEnforcer(BasePermission): + # pylint: disable=no-self-use + def check_permission(self, request, view, obj): + permissions = [] + for perm in OpenPolicyAgentPermission.__subclasses__(): + permissions.extend(perm.create(request, view, obj)) + + return all(permissions) + + def has_permission(self, request, view): + if not view.detail: + return self.check_permission(request, view, None) + else: + return True # has_object_permision will be called later + + def has_object_permission(self, request, view, obj): + return self.check_permission(request, view, obj) + +class IsMemberInOrganization(BasePermission): + message = 'You should be an active member in the organization.' + + # pylint: disable=no-self-use + def has_permission(self, request, view): + user = request.user + organization = request.iam_context['organization'] + membership = request.iam_context['membership'] + + if organization and not user.is_superuser: + return membership is not None + + return True diff --git a/cvat/apps/iam/rules/auth.csv b/cvat/apps/iam/rules/auth.csv new file mode 100644 index 00000000..daf4a391 --- /dev/null +++ b/cvat/apps/iam/rules/auth.csv @@ -0,0 +1,9 @@ +Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership +login,N/A,N/A,N/A,,POST,/auth/login,N/A,N/A +logout,N/A,N/A,N/A,,"GET, POST",/auth/logout,N/A,N/A +change:password,N/A,N/A,N/A,,"POST, OPTIONS",/auth/password/change,N/A,N/A +reset:password,N/A,N/A,N/A,,"POST, OPTIONS","/auth/password/reset, /auth/password/reset/confirm",N/A,N/A +register,N/A,N/A,N/A,,POST,/auth/register,N/A,N/A +sign:url,N/A,N/A,N/A,,POST,/auth/signing,N/A,N/A +confirm:email,N/A,N/A,N/A,,GET,/account-confirm-email/,N/A,N/A +confirm:email,N/A,N/A,N/A,,"GET, POST",register/account-email-verification-sent,N/A,N/A \ No newline at end of file diff --git a/cvat/apps/iam/rules/cloudstorages.csv b/cvat/apps/iam/rules/cloudstorages.csv new file mode 100644 index 00000000..379da7e5 --- /dev/null +++ b/cvat/apps/iam/rules/cloudstorages.csv @@ -0,0 +1,21 @@ +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/cloudstorages.rego b/cvat/apps/iam/rules/cloudstorages.rego new file mode 100644 index 00000000..7fd1b696 --- /dev/null +++ b/cvat/apps/iam/rules/cloudstorages.rego @@ -0,0 +1,121 @@ +package cloudstorages +import data.utils +import data.organizations + +# input: { +# "scope": <"create"|"list"|"list:content"|"update"|"view"|"delete"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "id": , +# "owner": { "id": }, +# "organization": { "id": } or null, +# "user": { +# "num_resources": +# } +# } +# } + +default allow = false + +# Admin has no restrictions +allow { + utils.is_admin +} + +allow { + input.scope == utils.CREATE + utils.has_perm(utils.USER) + utils.is_sandbox +} + +allow { + input.scope == utils.CREATE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_admin + qobject := [ {"organization": input.auth.organization.id} ] +} else = qobject { + utils.has_perm(utils.USER) + organizations.has_perm(organizations.SUPERVISOR) + qobject := [ {"organization": input.auth.organization.id} ] +} else = qobject { + utils.is_sandbox + qobject := [ {"owner": input.auth.user.id} ] +} else = qobject { + utils.is_organization + qobject := [ {"owner": input.auth.user.id}, {"organization": input.auth.organization.id}, "&" ] +} + +allow { + { utils.VIEW, utils.LIST_CONTENT }[input.scope] + utils.is_sandbox + utils.is_resource_owner +} + +allow { + { utils.VIEW, utils.LIST_CONTENT }[input.scope] + input.auth.organization.id == input.resource.organization.id + organizations.is_member + utils.is_resource_owner +} + +allow { + { utils.VIEW, utils.LIST_CONTENT }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.SUPERVISOR) +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + utils.is_sandbox + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + organizations.is_member + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} + + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} diff --git a/cvat/apps/iam/rules/cloudstorages_test.gen.rego b/cvat/apps/iam/rules/cloudstorages_test.gen.rego new file mode 100644 index 00000000..633a24e9 --- /dev/null +++ b/cvat/apps/iam/rules/cloudstorages_test.gen.rego @@ -0,0 +1,2405 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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.csv b/cvat/apps/iam/rules/comments.csv new file mode 100644 index 00000000..43078d7d --- /dev/null +++ b/cvat/apps/iam/rules/comments.csv @@ -0,0 +1,19 @@ +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/comments.rego b/cvat/apps/iam/rules/comments.rego new file mode 100644 index 00000000..275a7731 --- /dev/null +++ b/cvat/apps/iam/rules/comments.rego @@ -0,0 +1,255 @@ +package comments +import data.utils +import data.organizations + +# input: { +# "scope": <"create@issue"|"view"|"list"|"update"|"delete"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "id": , +# "owner": { "id": }, +# "project": { +# "owner": { "id": }, +# "assignee": { "id": } +# } or null, +# "task": { +# "owner": { "id": }, +# "assignee": { "id": } +# }, +# "job": { +# "assignee": { "id": } +# }, +# "issue": { +# "owner": { "id": }, +# "assignee": { "id": } +# }, +# "organization": { "id": } or null +# } +# } + +is_comment_owner { + input.resource.owner.id == input.auth.user.id +} + +is_issue_owner { + input.resource.issue.owner.id == input.auth.user.id +} + +is_issue_assignee { + input.resource.issue.assignee.id == input.auth.user.id +} + +is_job_assignee { + input.resource.job.assignee.id == input.auth.user.id +} + +is_task_owner { + input.resource.task.owner.id == input.auth.user.id +} + +is_task_assignee { + input.resource.task.assignee.id == input.auth.user.id +} + +is_project_owner { + input.resource.project.owner.id == input.auth.user.id +} + +is_project_assignee { + input.resource.project.assignee.id == input.auth.user.id +} + +is_project_staff { + is_project_owner +} + +is_project_staff { + is_project_assignee +} + +is_task_staff { + is_project_staff +} + +is_task_staff { + is_task_owner +} + +is_task_staff { + is_task_assignee +} + +is_job_staff { + is_task_staff +} + +is_job_staff { + is_job_assignee +} + +is_issue_staff { + is_job_staff +} + +is_issue_staff { + is_issue_owner +} + +is_issue_staff { + is_issue_assignee +} + +is_comment_staff { + is_issue_staff +} + +is_comment_staff { + is_comment_owner +} + +default allow = false + +allow { + utils.is_admin +} + +allow { + input.scope == utils.CREATE_IN_ISSUE + utils.is_sandbox + utils.has_perm(utils.WORKER) + is_issue_staff +} + +allow { + input.scope == utils.CREATE_IN_ISSUE + input.auth.organization.id == input.resource.organization.id + utils.is_organization + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + input.scope == utils.CREATE_IN_ISSUE + input.auth.organization.id == input.resource.organization.id + utils.is_organization + utils.has_perm(utils.WORKER) + organizations.is_member + is_issue_staff +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_admin + utils.is_organization + org := input.auth.organization + qobject := [ + {"issue__job__segment__task__organization": org.id}, + {"issue__job__segment__task__project__organization": org.id}, "|" + ] +} else = qobject { + utils.is_sandbox + user := input.auth.user + qobject := [ + {"owner": user.id}, + {"issue__owner": user.id}, "|", + {"issue__assignee": user.id}, "|", + {"issue__job__assignee": user.id}, "|", + {"issue__job__segment__task__owner": user.id}, "|", + {"issue__job__segment__task__assignee": user.id}, "|", + {"issue__job__segment__task__project__owner": user.id}, "|", + {"issue__job__segment__task__project__assignee": user.id}, "|" + ] +} else = qobject { + utils.is_organization + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) + org := input.auth.organization + qobject := [ + {"issue__job__segment__task__organization": org.id}, + {"issue__job__segment__task__project__organization": org.id}, "|" + ] +} else = qobject { + organizations.has_perm(organizations.WORKER) + user := input.auth.user + org := input.auth.organization + qobject := [ + {"owner": user.id}, + {"issue__owner": user.id}, "|", + {"issue__assignee": user.id}, "|", + {"issue__job__assignee": user.id}, "|", + {"issue__job__segment__task__owner": user.id}, "|", + {"issue__job__segment__task__assignee": user.id}, "|", + {"issue__job__segment__task__project__owner": user.id}, "|", + {"issue__job__segment__task__project__assignee": user.id}, "|", + {"issue__job__segment__task__organization": org.id}, + {"issue__job__segment__task__project__organization": org.id}, "|", "&" + ] +} + +allow { + input.scope == utils.VIEW + utils.is_sandbox + is_comment_staff +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + organizations.is_member + is_comment_staff +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + utils.is_sandbox + utils.has_perm(utils.WORKER) + is_comment_staff +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + is_comment_staff + utils.has_perm(utils.WORKER) + organizations.is_member +} diff --git a/cvat/apps/iam/rules/comments_test.gen.rego b/cvat/apps/iam/rules/comments_test.gen.rego new file mode 100644 index 00000000..60baf1cb --- /dev/null +++ b/cvat/apps/iam/rules/comments_test.gen.rego @@ -0,0 +1,13895 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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.csv b/cvat/apps/iam/rules/invitations.csv new file mode 100644 index 00000000..d5fab13c --- /dev/null +++ b/cvat/apps/iam/rules/invitations.csv @@ -0,0 +1,16 @@ +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/invitations.rego b/cvat/apps/iam/rules/invitations.rego new file mode 100644 index 00000000..4c0bff9a --- /dev/null +++ b/cvat/apps/iam/rules/invitations.rego @@ -0,0 +1,173 @@ +package invitations +import data.utils +import data.organizations + +# input: { +# "scope": <"list"|"create"|"view"|"resend"|"accept"|"delete"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "owner": { "id": }, +# "invitee": { "id": }, +# "role": <"owner"|"maintainer"|"supervisor"|"worker">, +# "organization": { "id": } +# } or null, +# } + +default allow = false +allow { + utils.is_admin +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + +filter = [] { # Django Q object to filter list of entries + utils.is_sandbox + utils.is_admin +} else = qobject { + utils.is_sandbox + user := input.auth.user + qobject := [ {"owner": user.id}, {"membership__user": user.id}, "|" ] +} else = qobject { + utils.is_organization + utils.is_admin + qobject := [ {"membership__organization": input.auth.organization.id} ] +} else = qobject { + utils.is_organization + organizations.is_staff + utils.has_perm(utils.USER) + qobject := [ {"membership__organization": input.auth.organization.id} ] +} else = qobject { + utils.is_organization + user := input.auth.user + org_id := input.auth.organization.id + qobject := [ {"owner": user.id}, {"membership__user": user.id}, "|", + {"membership__organization": org_id}, "&" ] +} + +allow { + input.scope == utils.CREATE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + input.auth.organization.user.role == organizations.MAINTAINER + # a maintainer cannot invite an user with owner or maintainer roles + input.resource.role != organizations.OWNER + input.resource.role != organizations.MAINTAINER + +} + +allow { + input.scope == utils.CREATE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_owner + # it isn't possible to create one more owner at the moment + input.resource.role != organizations.OWNER +} + +allow { + input.scope == utils.VIEW + utils.is_sandbox + utils.is_resource_owner +} + +allow { + input.scope == utils.VIEW + utils.is_sandbox + input.resource.invitee.id == input.auth.user.id +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_staff +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + utils.is_resource_owner +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + input.resource.invitee.id == input.auth.user.id +} + +allow { + input.scope == utils.RESEND + utils.has_perm(utils.WORKER) + utils.is_sandbox + utils.is_resource_owner +} + +allow { + input.scope == utils.RESEND + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_staff +} + +allow { + input.scope == utils.RESEND + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} + +allow { + input.scope == utils.DELETE + utils.is_sandbox + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} + +allow { + input.scope == utils.DELETE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_staff +} + +allow { + input.scope == utils.DELETE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} + + +allow { + input.scope == utils.ACCEPT + input.resource.invitee.id == input.auth.user.id + utils.is_sandbox +} + +allow { + input.scope == utils.ACCEPT + input.auth.organization.id == input.resource.organization.id + input.resource.invitee.id == input.auth.user.id +} diff --git a/cvat/apps/iam/rules/invitations_test.gen.rego b/cvat/apps/iam/rules/invitations_test.gen.rego new file mode 100644 index 00000000..bd7838d3 --- /dev/null +++ b/cvat/apps/iam/rules/invitations_test.gen.rego @@ -0,0 +1,13404 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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.csv b/cvat/apps/iam/rules/issues.csv new file mode 100644 index 00000000..961691e0 --- /dev/null +++ b/cvat/apps/iam/rules/issues.csv @@ -0,0 +1,19 @@ +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",,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",,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, Job: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, Job:assignee, Owner",,DELETE,/issues/{id},Worker,Worker \ No newline at end of file diff --git a/cvat/apps/iam/rules/issues.rego b/cvat/apps/iam/rules/issues.rego new file mode 100644 index 00000000..aefd13e7 --- /dev/null +++ b/cvat/apps/iam/rules/issues.rego @@ -0,0 +1,240 @@ +package issues +import data.utils +import data.organizations + +# input: { +# "scope": <"create@job"|"view"|"list"|"update"|"delete"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "id": , +# "owner": { "id": }, +# "assignee": { "id": }, +# "project": { +# "owner": { "id": }, +# "assignee": { "id": } +# } or null, +# "task": { +# "owner": { "id": }, +# "assignee": { "id": } +# }, +# "job": { +# "assignee": { "id": } +# }, +# "organization": { "id": } or null +# } +# } + +is_issue_owner { + input.resource.owner.id == input.auth.user.id +} + +is_issue_assignee { + input.resource.assignee.id == input.auth.user.id +} + +is_job_assignee { + input.resource.job.assignee.id == input.auth.user.id +} + +is_task_owner { + input.resource.task.owner.id == input.auth.user.id +} + +is_task_assignee { + input.resource.task.assignee.id == input.auth.user.id +} + +is_project_owner { + input.resource.project.owner.id == input.auth.user.id +} + +is_project_assignee { + input.resource.project.assignee.id == input.auth.user.id +} + +is_project_staff { + is_project_owner +} + +is_project_staff { + is_project_assignee +} + +is_task_staff { + is_project_staff +} + +is_task_staff { + is_task_owner +} + +is_task_staff { + is_task_assignee +} + +is_job_staff { + is_task_staff +} + +is_job_staff { + is_job_assignee +} + +is_issue_admin { + is_job_staff +} + +is_issue_admin { + is_issue_owner +} + +is_issue_staff { + is_issue_admin +} + +is_issue_staff { + is_issue_assignee +} + +default allow = false + +allow { + utils.is_admin +} + +allow { + input.scope == utils.CREATE_IN_JOB + utils.is_sandbox + utils.has_perm(utils.WORKER) + is_job_staff +} + +allow { + input.scope == utils.CREATE_IN_JOB + input.auth.organization.id == input.resource.organization.id + utils.is_organization + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + input.scope == utils.CREATE_IN_JOB + input.auth.organization.id == input.resource.organization.id + utils.is_organization + utils.has_perm(utils.WORKER) + organizations.is_member + is_job_staff +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_admin + utils.is_organization + org := input.auth.organization + qobject := [ + {"job__segment__task__organization": org.id}, + {"job__segment__task__project__organization": org.id}, "|" + ] +} else = qobject { + utils.is_sandbox + user := input.auth.user + qobject := [ + {"owner": user.id}, {"assignee": user.id}, "|", + {"job__assignee": user.id}, "|", + {"job__segment__task__owner": user.id}, "|", + {"job__segment__task__assignee": user.id}, "|", + {"job__segment__task__project__owner": user.id}, "|", + {"job__segment__task__project__assignee": user.id}, "|" + ] +} else = qobject { + utils.is_organization + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) + org := input.auth.organization + qobject := [ + {"job__segment__task__organization": org.id}, + {"job__segment__task__project__organization": org.id}, "|" + ] +} else = qobject { + organizations.has_perm(organizations.WORKER) + user := input.auth.user + org := input.auth.organization + qobject := [ + {"owner": user.id}, {"assignee": user.id}, "|", + {"job__assignee": user.id}, "|", + {"job__segment__task__owner": user.id}, "|", + {"job__segment__task__assignee": user.id}, "|", + {"job__segment__task__project__owner": user.id}, "|", + {"job__segment__task__project__assignee": user.id}, "|", + {"job__segment__task__organization": org.id}, + {"job__segment__task__project__organization": org.id}, "|", "&" + ] +} + +allow { + input.scope == utils.VIEW + utils.is_sandbox + is_issue_staff +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + organizations.is_member + is_issue_staff +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + utils.is_sandbox + utils.has_perm(utils.WORKER) + is_issue_admin +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + is_issue_admin + utils.has_perm(utils.WORKER) + organizations.is_member +} diff --git a/cvat/apps/iam/rules/issues_test.gen.rego b/cvat/apps/iam/rules/issues_test.gen.rego new file mode 100644 index 00000000..d49f96ae --- /dev/null +++ b/cvat/apps/iam/rules/issues_test.gen.rego @@ -0,0 +1,11686 @@ +package issues + +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": 73, "privilege": "admin"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 693}, "assignee": {"id": 515}, "project": {"id": 352, "owner": {"id": 73}, "assignee": {"id": 821}}, "task": {"id": 302, "owner": {"id": 914}, "assignee": {"id": 1088}}, "job": {"id": 361, "assignee": {"id": 1180}}, "organization": {"id": 1258}}} +} + +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": 81, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 656}, "assignee": {"id": 509}, "project": {"id": 342, "owner": {"id": 81}, "assignee": {"id": 882}}, "task": {"id": 344, "owner": {"id": 970}, "assignee": {"id": 1013}}, "job": {"id": 370, "assignee": {"id": 1164}}, "organization": {"id": 1220}}} +} + +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": 14, "privilege": "user"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 683}, "assignee": {"id": 523}, "project": {"id": 392, "owner": {"id": 14}, "assignee": {"id": 832}}, "task": {"id": 368, "owner": {"id": 921}, "assignee": {"id": 1039}}, "job": {"id": 384, "assignee": {"id": 1128}}, "organization": {"id": 1206}}} +} + +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": 84, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 675}, "assignee": {"id": 524}, "project": {"id": 392, "owner": {"id": 84}, "assignee": {"id": 876}}, "task": {"id": 316, "owner": {"id": 910}, "assignee": {"id": 1033}}, "job": {"id": 308, "assignee": {"id": 1103}}, "organization": {"id": 1265}}} +} + +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": 79, "privilege": "none"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 697}, "assignee": {"id": 524}, "project": {"id": 326, "owner": {"id": 79}, "assignee": {"id": 880}}, "task": {"id": 383, "owner": {"id": 954}, "assignee": {"id": 1066}}, "job": {"id": 305, "assignee": {"id": 1191}}, "organization": {"id": 1256}}} +} + +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": 36, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 622}, "assignee": {"id": 541}, "project": {"id": 361, "owner": {"id": 744}, "assignee": {"id": 36}}, "task": {"id": 354, "owner": {"id": 901}, "assignee": {"id": 1056}}, "job": {"id": 397, "assignee": {"id": 1137}}, "organization": {"id": 1287}}} +} + +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": 97, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 659}, "assignee": {"id": 528}, "project": {"id": 340, "owner": {"id": 710}, "assignee": {"id": 97}}, "task": {"id": 395, "owner": {"id": 931}, "assignee": {"id": 1066}}, "job": {"id": 396, "assignee": {"id": 1158}}, "organization": {"id": 1245}}} +} + +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": 59, "privilege": "user"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 636}, "assignee": {"id": 519}, "project": {"id": 307, "owner": {"id": 749}, "assignee": {"id": 59}}, "task": {"id": 363, "owner": {"id": 983}, "assignee": {"id": 1091}}, "job": {"id": 386, "assignee": {"id": 1155}}, "organization": {"id": 1276}}} +} + +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": 58, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 614}, "assignee": {"id": 525}, "project": {"id": 334, "owner": {"id": 708}, "assignee": {"id": 58}}, "task": {"id": 321, "owner": {"id": 912}, "assignee": {"id": 1058}}, "job": {"id": 339, "assignee": {"id": 1154}}, "organization": {"id": 1275}}} +} + +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": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 608}, "assignee": {"id": 596}, "project": {"id": 366, "owner": {"id": 786}, "assignee": {"id": 88}}, "task": {"id": 344, "owner": {"id": 901}, "assignee": {"id": 1081}}, "job": {"id": 394, "assignee": {"id": 1112}}, "organization": {"id": 1226}}} +} + +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": 53, "privilege": "admin"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 631}, "assignee": {"id": 517}, "project": {"id": 328, "owner": {"id": 791}, "assignee": {"id": 877}}, "task": {"id": 310, "owner": {"id": 53}, "assignee": {"id": 1035}}, "job": {"id": 301, "assignee": {"id": 1102}}, "organization": {"id": 1280}}} +} + +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": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 631}, "assignee": {"id": 511}, "project": {"id": 302, "owner": {"id": 758}, "assignee": {"id": 833}}, "task": {"id": 397, "owner": {"id": 52}, "assignee": {"id": 1088}}, "job": {"id": 372, "assignee": {"id": 1194}}, "organization": {"id": 1235}}} +} + +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": 93, "privilege": "business"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 667}, "assignee": {"id": 539}, "project": {"id": 319, "owner": {"id": 787}, "assignee": {"id": 836}}, "task": {"id": 380, "owner": {"id": 93}, "assignee": {"id": 1085}}, "job": {"id": 351, "assignee": {"id": 1136}}, "organization": {"id": 1279}}} +} + +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": 51, "privilege": "business"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 631}, "assignee": {"id": 573}, "project": {"id": 396, "owner": {"id": 758}, "assignee": {"id": 876}}, "task": {"id": 349, "owner": {"id": 51}, "assignee": {"id": 1013}}, "job": {"id": 387, "assignee": {"id": 1185}}, "organization": {"id": 1264}}} +} + +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": 54, "privilege": "user"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 697}, "assignee": {"id": 527}, "project": {"id": 314, "owner": {"id": 791}, "assignee": {"id": 847}}, "task": {"id": 313, "owner": {"id": 54}, "assignee": {"id": 1031}}, "job": {"id": 315, "assignee": {"id": 1104}}, "organization": {"id": 1272}}} +} + +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": 44, "privilege": "user"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 678}, "assignee": {"id": 581}, "project": {"id": 320, "owner": {"id": 701}, "assignee": {"id": 884}}, "task": {"id": 312, "owner": {"id": 44}, "assignee": {"id": 1098}}, "job": {"id": 347, "assignee": {"id": 1196}}, "organization": {"id": 1264}}} +} + +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": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 635}, "assignee": {"id": 547}, "project": {"id": 385, "owner": {"id": 721}, "assignee": {"id": 876}}, "task": {"id": 349, "owner": {"id": 39}, "assignee": {"id": 1062}}, "job": {"id": 395, "assignee": {"id": 1117}}, "organization": {"id": 1268}}} +} + +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": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 693}, "assignee": {"id": 505}, "project": {"id": 385, "owner": {"id": 733}, "assignee": {"id": 835}}, "task": {"id": 317, "owner": {"id": 52}, "assignee": {"id": 1066}}, "job": {"id": 375, "assignee": {"id": 1134}}, "organization": {"id": 1265}}} +} + +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": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 659}, "assignee": {"id": 501}, "project": {"id": 334, "owner": {"id": 781}, "assignee": {"id": 811}}, "task": {"id": 395, "owner": {"id": 58}, "assignee": {"id": 1018}}, "job": {"id": 325, "assignee": {"id": 1142}}, "organization": {"id": 1281}}} +} + +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": 78, "privilege": "none"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 678}, "assignee": {"id": 532}, "project": {"id": 326, "owner": {"id": 768}, "assignee": {"id": 819}}, "task": {"id": 343, "owner": {"id": 78}, "assignee": {"id": 1046}}, "job": {"id": 361, "assignee": {"id": 1149}}, "organization": {"id": 1222}}} +} + +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": 83, "privilege": "admin"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 687}, "assignee": {"id": 532}, "project": {"id": 324, "owner": {"id": 778}, "assignee": {"id": 818}}, "task": {"id": 349, "owner": {"id": 934}, "assignee": {"id": 83}}, "job": {"id": 304, "assignee": {"id": 1178}}, "organization": {"id": 1220}}} +} + +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": 83, "privilege": "admin"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 622}, "assignee": {"id": 510}, "project": {"id": 331, "owner": {"id": 767}, "assignee": {"id": 863}}, "task": {"id": 356, "owner": {"id": 948}, "assignee": {"id": 83}}, "job": {"id": 396, "assignee": {"id": 1121}}, "organization": {"id": 1290}}} +} + +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": 26, "privilege": "business"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 624}, "assignee": {"id": 577}, "project": {"id": 387, "owner": {"id": 712}, "assignee": {"id": 893}}, "task": {"id": 303, "owner": {"id": 909}, "assignee": {"id": 26}}, "job": {"id": 380, "assignee": {"id": 1149}}, "organization": {"id": 1245}}} +} + +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": 13, "privilege": "business"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 646}, "assignee": {"id": 599}, "project": {"id": 373, "owner": {"id": 748}, "assignee": {"id": 856}}, "task": {"id": 366, "owner": {"id": 988}, "assignee": {"id": 13}}, "job": {"id": 352, "assignee": {"id": 1190}}, "organization": {"id": 1205}}} +} + +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": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 686}, "assignee": {"id": 573}, "project": {"id": 327, "owner": {"id": 722}, "assignee": {"id": 801}}, "task": {"id": 363, "owner": {"id": 933}, "assignee": {"id": 22}}, "job": {"id": 319, "assignee": {"id": 1193}}, "organization": {"id": 1212}}} +} + +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": 11, "privilege": "user"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 600}, "assignee": {"id": 591}, "project": {"id": 381, "owner": {"id": 718}, "assignee": {"id": 838}}, "task": {"id": 357, "owner": {"id": 984}, "assignee": {"id": 11}}, "job": {"id": 383, "assignee": {"id": 1121}}, "organization": {"id": 1251}}} +} + +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": 0, "privilege": "worker"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 653}, "assignee": {"id": 519}, "project": {"id": 357, "owner": {"id": 712}, "assignee": {"id": 874}}, "task": {"id": 304, "owner": {"id": 988}, "assignee": {"id": 0}}, "job": {"id": 349, "assignee": {"id": 1184}}, "organization": {"id": 1276}}} +} + +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": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 614}, "assignee": {"id": 594}, "project": {"id": 375, "owner": {"id": 779}, "assignee": {"id": 875}}, "task": {"id": 313, "owner": {"id": 976}, "assignee": {"id": 47}}, "job": {"id": 333, "assignee": {"id": 1182}}, "organization": {"id": 1253}}} +} + +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": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 622}, "assignee": {"id": 500}, "project": {"id": 339, "owner": {"id": 730}, "assignee": {"id": 827}}, "task": {"id": 359, "owner": {"id": 955}, "assignee": {"id": 36}}, "job": {"id": 360, "assignee": {"id": 1114}}, "organization": {"id": 1262}}} +} + +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": 335, "owner": {"id": 615}, "assignee": {"id": 596}, "project": {"id": 339, "owner": {"id": 741}, "assignee": {"id": 845}}, "task": {"id": 345, "owner": {"id": 982}, "assignee": {"id": 2}}, "job": {"id": 364, "assignee": {"id": 1124}}, "organization": {"id": 1268}}} +} + +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": 80, "privilege": "admin"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 633}, "assignee": {"id": 590}, "project": {"id": 339, "owner": {"id": 740}, "assignee": {"id": 891}}, "task": {"id": 369, "owner": {"id": 950}, "assignee": {"id": 1016}}, "job": {"id": 341, "assignee": {"id": 80}}, "organization": {"id": 1200}}} +} + +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": 19, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 676}, "assignee": {"id": 548}, "project": {"id": 370, "owner": {"id": 790}, "assignee": {"id": 824}}, "task": {"id": 310, "owner": {"id": 962}, "assignee": {"id": 1029}}, "job": {"id": 355, "assignee": {"id": 19}}, "organization": {"id": 1276}}} +} + +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": 312, "owner": {"id": 692}, "assignee": {"id": 569}, "project": {"id": 351, "owner": {"id": 746}, "assignee": {"id": 865}}, "task": {"id": 345, "owner": {"id": 985}, "assignee": {"id": 1019}}, "job": {"id": 342, "assignee": {"id": 23}}, "organization": {"id": 1227}}} +} + +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": 53, "privilege": "business"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 655}, "assignee": {"id": 513}, "project": {"id": 363, "owner": {"id": 770}, "assignee": {"id": 849}}, "task": {"id": 363, "owner": {"id": 984}, "assignee": {"id": 1036}}, "job": {"id": 358, "assignee": {"id": 53}}, "organization": {"id": 1235}}} +} + +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": 33, "privilege": "user"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 602}, "assignee": {"id": 576}, "project": {"id": 370, "owner": {"id": 736}, "assignee": {"id": 846}}, "task": {"id": 341, "owner": {"id": 924}, "assignee": {"id": 1071}}, "job": {"id": 340, "assignee": {"id": 33}}, "organization": {"id": 1296}}} +} + +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": 51, "privilege": "user"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 672}, "assignee": {"id": 534}, "project": {"id": 384, "owner": {"id": 720}, "assignee": {"id": 884}}, "task": {"id": 371, "owner": {"id": 992}, "assignee": {"id": 1002}}, "job": {"id": 344, "assignee": {"id": 51}}, "organization": {"id": 1243}}} +} + +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": 79, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 684}, "assignee": {"id": 540}, "project": {"id": 367, "owner": {"id": 737}, "assignee": {"id": 823}}, "task": {"id": 389, "owner": {"id": 987}, "assignee": {"id": 1044}}, "job": {"id": 300, "assignee": {"id": 79}}, "organization": {"id": 1234}}} +} + +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": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 609}, "assignee": {"id": 572}, "project": {"id": 398, "owner": {"id": 763}, "assignee": {"id": 825}}, "task": {"id": 377, "owner": {"id": 988}, "assignee": {"id": 1006}}, "job": {"id": 389, "assignee": {"id": 54}}, "organization": {"id": 1267}}} +} + +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": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 624}, "assignee": {"id": 540}, "project": {"id": 308, "owner": {"id": 765}, "assignee": {"id": 895}}, "task": {"id": 392, "owner": {"id": 990}, "assignee": {"id": 1017}}, "job": {"id": 312, "assignee": {"id": 54}}, "organization": {"id": 1242}}} +} + +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": 20, "privilege": "none"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 658}, "assignee": {"id": 501}, "project": {"id": 325, "owner": {"id": 738}, "assignee": {"id": 831}}, "task": {"id": 308, "owner": {"id": 996}, "assignee": {"id": 1046}}, "job": {"id": 352, "assignee": {"id": 20}}, "organization": {"id": 1266}}} +} + +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": 12, "privilege": "admin"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 12}, "assignee": {"id": 565}, "project": {"id": 333, "owner": {"id": 775}, "assignee": {"id": 844}}, "task": {"id": 386, "owner": {"id": 970}, "assignee": {"id": 1005}}, "job": {"id": 365, "assignee": {"id": 1142}}, "organization": {"id": 1247}}} +} + +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": 46, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 46}, "assignee": {"id": 584}, "project": {"id": 335, "owner": {"id": 745}, "assignee": {"id": 818}}, "task": {"id": 383, "owner": {"id": 963}, "assignee": {"id": 1056}}, "job": {"id": 315, "assignee": {"id": 1140}}, "organization": {"id": 1271}}} +} + +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": 7, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 7}, "assignee": {"id": 585}, "project": {"id": 345, "owner": {"id": 725}, "assignee": {"id": 852}}, "task": {"id": 388, "owner": {"id": 999}, "assignee": {"id": 1071}}, "job": {"id": 331, "assignee": {"id": 1120}}, "organization": {"id": 1234}}} +} + +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": 61, "privilege": "business"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 61}, "assignee": {"id": 532}, "project": {"id": 315, "owner": {"id": 702}, "assignee": {"id": 876}}, "task": {"id": 355, "owner": {"id": 913}, "assignee": {"id": 1088}}, "job": {"id": 358, "assignee": {"id": 1152}}, "organization": {"id": 1261}}} +} + +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": 68, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 68}, "assignee": {"id": 535}, "project": {"id": 339, "owner": {"id": 791}, "assignee": {"id": 867}}, "task": {"id": 376, "owner": {"id": 975}, "assignee": {"id": 1057}}, "job": {"id": 303, "assignee": {"id": 1182}}, "organization": {"id": 1285}}} +} + +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": 10, "privilege": "user"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 10}, "assignee": {"id": 502}, "project": {"id": 347, "owner": {"id": 734}, "assignee": {"id": 819}}, "task": {"id": 372, "owner": {"id": 958}, "assignee": {"id": 1020}}, "job": {"id": 362, "assignee": {"id": 1120}}, "organization": {"id": 1292}}} +} + +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": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 47}, "assignee": {"id": 524}, "project": {"id": 309, "owner": {"id": 749}, "assignee": {"id": 831}}, "task": {"id": 337, "owner": {"id": 991}, "assignee": {"id": 1010}}, "job": {"id": 368, "assignee": {"id": 1100}}, "organization": {"id": 1247}}} +} + +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": 77, "privilege": "worker"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 77}, "assignee": {"id": 551}, "project": {"id": 323, "owner": {"id": 782}, "assignee": {"id": 861}}, "task": {"id": 357, "owner": {"id": 932}, "assignee": {"id": 1009}}, "job": {"id": 300, "assignee": {"id": 1112}}, "organization": {"id": 1230}}} +} + +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": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 16}, "assignee": {"id": 517}, "project": {"id": 338, "owner": {"id": 709}, "assignee": {"id": 802}}, "task": {"id": 314, "owner": {"id": 963}, "assignee": {"id": 1052}}, "job": {"id": 330, "assignee": {"id": 1120}}, "organization": {"id": 1215}}} +} + +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": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 94}, "assignee": {"id": 574}, "project": {"id": 333, "owner": {"id": 732}, "assignee": {"id": 828}}, "task": {"id": 361, "owner": {"id": 991}, "assignee": {"id": 1041}}, "job": {"id": 353, "assignee": {"id": 1110}}, "organization": {"id": 1282}}} +} + +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": 24, "privilege": "admin"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 670}, "assignee": {"id": 24}, "project": {"id": 336, "owner": {"id": 724}, "assignee": {"id": 897}}, "task": {"id": 310, "owner": {"id": 984}, "assignee": {"id": 1052}}, "job": {"id": 314, "assignee": {"id": 1166}}, "organization": {"id": 1247}}} +} + +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": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 636}, "assignee": {"id": 23}, "project": {"id": 391, "owner": {"id": 754}, "assignee": {"id": 841}}, "task": {"id": 341, "owner": {"id": 934}, "assignee": {"id": 1015}}, "job": {"id": 321, "assignee": {"id": 1153}}, "organization": {"id": 1223}}} +} + +test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 697}, "assignee": {"id": 1}, "project": {"id": 354, "owner": {"id": 782}, "assignee": {"id": 893}}, "task": {"id": 324, "owner": {"id": 966}, "assignee": {"id": 1084}}, "job": {"id": 335, "assignee": {"id": 1188}}, "organization": {"id": 1269}}} +} + +test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 604}, "assignee": {"id": 55}, "project": {"id": 391, "owner": {"id": 716}, "assignee": {"id": 821}}, "task": {"id": 351, "owner": {"id": 949}, "assignee": {"id": 1027}}, "job": {"id": 302, "assignee": {"id": 1120}}, "organization": {"id": 1260}}} +} + +test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 633}, "assignee": {"id": 38}, "project": {"id": 337, "owner": {"id": 738}, "assignee": {"id": 878}}, "task": {"id": 358, "owner": {"id": 995}, "assignee": {"id": 1066}}, "job": {"id": 381, "assignee": {"id": 1159}}, "organization": {"id": 1228}}} +} + +test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 677}, "assignee": {"id": 40}, "project": {"id": 316, "owner": {"id": 756}, "assignee": {"id": 896}}, "task": {"id": 345, "owner": {"id": 949}, "assignee": {"id": 1099}}, "job": {"id": 302, "assignee": {"id": 1136}}, "organization": {"id": 1287}}} +} + +test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 612}, "assignee": {"id": 60}, "project": {"id": 362, "owner": {"id": 716}, "assignee": {"id": 868}}, "task": {"id": 369, "owner": {"id": 997}, "assignee": {"id": 1001}}, "job": {"id": 334, "assignee": {"id": 1123}}, "organization": {"id": 1214}}} +} + +test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 633}, "assignee": {"id": 60}, "project": {"id": 341, "owner": {"id": 765}, "assignee": {"id": 876}}, "task": {"id": 318, "owner": {"id": 957}, "assignee": {"id": 1050}}, "job": {"id": 337, "assignee": {"id": 1189}}, "organization": {"id": 1231}}} +} + +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": 70, "privilege": "none"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 676}, "assignee": {"id": 70}, "project": {"id": 332, "owner": {"id": 758}, "assignee": {"id": 833}}, "task": {"id": 323, "owner": {"id": 959}, "assignee": {"id": 1008}}, "job": {"id": 309, "assignee": {"id": 1147}}, "organization": {"id": 1282}}} +} + +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": 92, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 634}, "assignee": {"id": 92}, "project": {"id": 354, "owner": {"id": 753}, "assignee": {"id": 807}}, "task": {"id": 374, "owner": {"id": 917}, "assignee": {"id": 1081}}, "job": {"id": 347, "assignee": {"id": 1171}}, "organization": {"id": 1282}}} +} + +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": 53, "privilege": "admin"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 674}, "assignee": {"id": 539}, "project": {"id": 351, "owner": {"id": 702}, "assignee": {"id": 831}}, "task": {"id": 385, "owner": {"id": 930}, "assignee": {"id": 1012}}, "job": {"id": 337, "assignee": {"id": 1184}}, "organization": {"id": 1214}}} +} + +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": 38, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 684}, "assignee": {"id": 522}, "project": {"id": 304, "owner": {"id": 724}, "assignee": {"id": 871}}, "task": {"id": 309, "owner": {"id": 988}, "assignee": {"id": 1034}}, "job": {"id": 368, "assignee": {"id": 1199}}, "organization": {"id": 1282}}} +} + +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": 39, "privilege": "business"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 677}, "assignee": {"id": 535}, "project": {"id": 326, "owner": {"id": 739}, "assignee": {"id": 879}}, "task": {"id": 305, "owner": {"id": 945}, "assignee": {"id": 1004}}, "job": {"id": 329, "assignee": {"id": 1109}}, "organization": {"id": 1254}}} +} + +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": 10, "privilege": "business"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 642}, "assignee": {"id": 563}, "project": {"id": 316, "owner": {"id": 717}, "assignee": {"id": 832}}, "task": {"id": 392, "owner": {"id": 940}, "assignee": {"id": 1099}}, "job": {"id": 328, "assignee": {"id": 1111}}, "organization": {"id": 1243}}} +} + +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": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 605}, "assignee": {"id": 556}, "project": {"id": 344, "owner": {"id": 734}, "assignee": {"id": 879}}, "task": {"id": 319, "owner": {"id": 961}, "assignee": {"id": 1074}}, "job": {"id": 342, "assignee": {"id": 1120}}, "organization": {"id": 1237}}} +} + +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": 49, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 666}, "assignee": {"id": 500}, "project": {"id": 319, "owner": {"id": 727}, "assignee": {"id": 824}}, "task": {"id": 369, "owner": {"id": 905}, "assignee": {"id": 1098}}, "job": {"id": 312, "assignee": {"id": 1162}}, "organization": {"id": 1273}}} +} + +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": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 609}, "assignee": {"id": 565}, "project": {"id": 386, "owner": {"id": 752}, "assignee": {"id": 887}}, "task": {"id": 332, "owner": {"id": 950}, "assignee": {"id": 1067}}, "job": {"id": 312, "assignee": {"id": 1166}}, "organization": {"id": 1297}}} +} + +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": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 606}, "assignee": {"id": 550}, "project": {"id": 300, "owner": {"id": 792}, "assignee": {"id": 819}}, "task": {"id": 335, "owner": {"id": 962}, "assignee": {"id": 1026}}, "job": {"id": 356, "assignee": {"id": 1143}}, "organization": {"id": 1292}}} +} + +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": 73, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 670}, "assignee": {"id": 502}, "project": {"id": 332, "owner": {"id": 708}, "assignee": {"id": 866}}, "task": {"id": 385, "owner": {"id": 946}, "assignee": {"id": 1098}}, "job": {"id": 378, "assignee": {"id": 1195}}, "organization": {"id": 1274}}} +} + +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": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 627}, "assignee": {"id": 535}, "project": {"id": 346, "owner": {"id": 754}, "assignee": {"id": 857}}, "task": {"id": 301, "owner": {"id": 920}, "assignee": {"id": 1060}}, "job": {"id": 382, "assignee": {"id": 1150}}, "organization": {"id": 1210}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 605}, "assignee": {"id": 510}, "project": {"id": 379, "owner": {"id": 77}, "assignee": {"id": 868}}, "task": {"id": 361, "owner": {"id": 944}, "assignee": {"id": 1098}}, "job": {"id": 345, "assignee": {"id": 1156}}, "organization": {"id": 162}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 676}, "assignee": {"id": 527}, "project": {"id": 348, "owner": {"id": 76}, "assignee": {"id": 888}}, "task": {"id": 374, "owner": {"id": 990}, "assignee": {"id": 1046}}, "job": {"id": 370, "assignee": {"id": 1169}}, "organization": {"id": 1275}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 650}, "assignee": {"id": 504}, "project": {"id": 355, "owner": {"id": 14}, "assignee": {"id": 892}}, "task": {"id": 396, "owner": {"id": 944}, "assignee": {"id": 1019}}, "job": {"id": 324, "assignee": {"id": 1124}}, "organization": {"id": 108}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 615}, "assignee": {"id": 520}, "project": {"id": 389, "owner": {"id": 71}, "assignee": {"id": 831}}, "task": {"id": 338, "owner": {"id": 953}, "assignee": {"id": 1074}}, "job": {"id": 319, "assignee": {"id": 1112}}, "organization": {"id": 1264}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 616}, "assignee": {"id": 521}, "project": {"id": 334, "owner": {"id": 2}, "assignee": {"id": 806}}, "task": {"id": 318, "owner": {"id": 903}, "assignee": {"id": 1048}}, "job": {"id": 325, "assignee": {"id": 1102}}, "organization": {"id": 173}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 650}, "assignee": {"id": 552}, "project": {"id": 350, "owner": {"id": 24}, "assignee": {"id": 839}}, "task": {"id": 326, "owner": {"id": 925}, "assignee": {"id": 1009}}, "job": {"id": 377, "assignee": {"id": 1109}}, "organization": {"id": 1208}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 609}, "assignee": {"id": 535}, "project": {"id": 335, "owner": {"id": 79}, "assignee": {"id": 866}}, "task": {"id": 327, "owner": {"id": 975}, "assignee": {"id": 1006}}, "job": {"id": 315, "assignee": {"id": 1154}}, "organization": {"id": 123}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 664}, "assignee": {"id": 531}, "project": {"id": 319, "owner": {"id": 82}, "assignee": {"id": 867}}, "task": {"id": 317, "owner": {"id": 988}, "assignee": {"id": 1041}}, "job": {"id": 367, "assignee": {"id": 1182}}, "organization": {"id": 1218}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 675}, "assignee": {"id": 599}, "project": {"id": 362, "owner": {"id": 99}, "assignee": {"id": 822}}, "task": {"id": 353, "owner": {"id": 918}, "assignee": {"id": 1014}}, "job": {"id": 383, "assignee": {"id": 1172}}, "organization": {"id": 150}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 673}, "assignee": {"id": 584}, "project": {"id": 328, "owner": {"id": 2}, "assignee": {"id": 815}}, "task": {"id": 361, "owner": {"id": 916}, "assignee": {"id": 1049}}, "job": {"id": 379, "assignee": {"id": 1197}}, "organization": {"id": 1243}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 676}, "assignee": {"id": 548}, "project": {"id": 331, "owner": {"id": 45}, "assignee": {"id": 871}}, "task": {"id": 310, "owner": {"id": 938}, "assignee": {"id": 1053}}, "job": {"id": 354, "assignee": {"id": 1188}}, "organization": {"id": 176}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 656}, "assignee": {"id": 563}, "project": {"id": 314, "owner": {"id": 7}, "assignee": {"id": 846}}, "task": {"id": 370, "owner": {"id": 919}, "assignee": {"id": 1009}}, "job": {"id": 387, "assignee": {"id": 1100}}, "organization": {"id": 1257}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 628}, "assignee": {"id": 501}, "project": {"id": 384, "owner": {"id": 81}, "assignee": {"id": 861}}, "task": {"id": 378, "owner": {"id": 919}, "assignee": {"id": 1066}}, "job": {"id": 341, "assignee": {"id": 1149}}, "organization": {"id": 179}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 642}, "assignee": {"id": 595}, "project": {"id": 381, "owner": {"id": 8}, "assignee": {"id": 886}}, "task": {"id": 329, "owner": {"id": 937}, "assignee": {"id": 1003}}, "job": {"id": 379, "assignee": {"id": 1162}}, "organization": {"id": 1248}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 625}, "assignee": {"id": 534}, "project": {"id": 343, "owner": {"id": 47}, "assignee": {"id": 810}}, "task": {"id": 349, "owner": {"id": 945}, "assignee": {"id": 1014}}, "job": {"id": 339, "assignee": {"id": 1144}}, "organization": {"id": 167}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 661}, "assignee": {"id": 509}, "project": {"id": 385, "owner": {"id": 38}, "assignee": {"id": 827}}, "task": {"id": 313, "owner": {"id": 929}, "assignee": {"id": 1023}}, "job": {"id": 364, "assignee": {"id": 1101}}, "organization": {"id": 1224}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 697}, "assignee": {"id": 585}, "project": {"id": 343, "owner": {"id": 62}, "assignee": {"id": 821}}, "task": {"id": 301, "owner": {"id": 918}, "assignee": {"id": 1094}}, "job": {"id": 398, "assignee": {"id": 1138}}, "organization": {"id": 161}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 691}, "assignee": {"id": 504}, "project": {"id": 319, "owner": {"id": 16}, "assignee": {"id": 847}}, "task": {"id": 324, "owner": {"id": 916}, "assignee": {"id": 1036}}, "job": {"id": 337, "assignee": {"id": 1153}}, "organization": {"id": 1287}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 603}, "assignee": {"id": 562}, "project": {"id": 329, "owner": {"id": 54}, "assignee": {"id": 807}}, "task": {"id": 308, "owner": {"id": 996}, "assignee": {"id": 1061}}, "job": {"id": 343, "assignee": {"id": 1100}}, "organization": {"id": 188}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 605}, "assignee": {"id": 549}, "project": {"id": 394, "owner": {"id": 69}, "assignee": {"id": 859}}, "task": {"id": 302, "owner": {"id": 958}, "assignee": {"id": 1034}}, "job": {"id": 391, "assignee": {"id": 1175}}, "organization": {"id": 1225}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 623}, "assignee": {"id": 562}, "project": {"id": 366, "owner": {"id": 54}, "assignee": {"id": 899}}, "task": {"id": 360, "owner": {"id": 935}, "assignee": {"id": 1063}}, "job": {"id": 300, "assignee": {"id": 1118}}, "organization": {"id": 176}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 670}, "assignee": {"id": 534}, "project": {"id": 386, "owner": {"id": 6}, "assignee": {"id": 864}}, "task": {"id": 383, "owner": {"id": 905}, "assignee": {"id": 1099}}, "job": {"id": 381, "assignee": {"id": 1136}}, "organization": {"id": 1250}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 653}, "assignee": {"id": 523}, "project": {"id": 375, "owner": {"id": 62}, "assignee": {"id": 840}}, "task": {"id": 327, "owner": {"id": 975}, "assignee": {"id": 1054}}, "job": {"id": 359, "assignee": {"id": 1186}}, "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": 65, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 649}, "assignee": {"id": 568}, "project": {"id": 376, "owner": {"id": 65}, "assignee": {"id": 897}}, "task": {"id": 348, "owner": {"id": 916}, "assignee": {"id": 1006}}, "job": {"id": 330, "assignee": {"id": 1182}}, "organization": {"id": 1284}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 651}, "assignee": {"id": 557}, "project": {"id": 338, "owner": {"id": 97}, "assignee": {"id": 899}}, "task": {"id": 390, "owner": {"id": 954}, "assignee": {"id": 1065}}, "job": {"id": 337, "assignee": {"id": 1180}}, "organization": {"id": 124}}} +} + +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": 106, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 633}, "assignee": {"id": 573}, "project": {"id": 303, "owner": {"id": 51}, "assignee": {"id": 898}}, "task": {"id": 340, "owner": {"id": 987}, "assignee": {"id": 1052}}, "job": {"id": 339, "assignee": {"id": 1122}}, "organization": {"id": 1264}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 655}, "assignee": {"id": 569}, "project": {"id": 309, "owner": {"id": 33}, "assignee": {"id": 804}}, "task": {"id": 391, "owner": {"id": 926}, "assignee": {"id": 1094}}, "job": {"id": 396, "assignee": {"id": 1114}}, "organization": {"id": 131}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 610}, "assignee": {"id": 580}, "project": {"id": 385, "owner": {"id": 22}, "assignee": {"id": 804}}, "task": {"id": 348, "owner": {"id": 980}, "assignee": {"id": 1016}}, "job": {"id": 393, "assignee": {"id": 1150}}, "organization": {"id": 1230}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 698}, "assignee": {"id": 555}, "project": {"id": 384, "owner": {"id": 87}, "assignee": {"id": 839}}, "task": {"id": 346, "owner": {"id": 943}, "assignee": {"id": 1025}}, "job": {"id": 384, "assignee": {"id": 1100}}, "organization": {"id": 172}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 676}, "assignee": {"id": 584}, "project": {"id": 338, "owner": {"id": 82}, "assignee": {"id": 822}}, "task": {"id": 343, "owner": {"id": 958}, "assignee": {"id": 1038}}, "job": {"id": 371, "assignee": {"id": 1191}}, "organization": {"id": 1284}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 625}, "assignee": {"id": 555}, "project": {"id": 368, "owner": {"id": 51}, "assignee": {"id": 873}}, "task": {"id": 313, "owner": {"id": 988}, "assignee": {"id": 1026}}, "job": {"id": 372, "assignee": {"id": 1152}}, "organization": {"id": 189}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 660}, "assignee": {"id": 541}, "project": {"id": 381, "owner": {"id": 49}, "assignee": {"id": 827}}, "task": {"id": 364, "owner": {"id": 929}, "assignee": {"id": 1060}}, "job": {"id": 353, "assignee": {"id": 1113}}, "organization": {"id": 1279}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 627}, "assignee": {"id": 500}, "project": {"id": 389, "owner": {"id": 60}, "assignee": {"id": 893}}, "task": {"id": 336, "owner": {"id": 904}, "assignee": {"id": 1073}}, "job": {"id": 398, "assignee": {"id": 1132}}, "organization": {"id": 196}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 698}, "assignee": {"id": 508}, "project": {"id": 398, "owner": {"id": 5}, "assignee": {"id": 880}}, "task": {"id": 321, "owner": {"id": 912}, "assignee": {"id": 1033}}, "job": {"id": 317, "assignee": {"id": 1173}}, "organization": {"id": 1224}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 609}, "assignee": {"id": 532}, "project": {"id": 359, "owner": {"id": 71}, "assignee": {"id": 887}}, "task": {"id": 319, "owner": {"id": 924}, "assignee": {"id": 1019}}, "job": {"id": 336, "assignee": {"id": 1107}}, "organization": {"id": 140}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 645}, "assignee": {"id": 502}, "project": {"id": 371, "owner": {"id": 76}, "assignee": {"id": 852}}, "task": {"id": 308, "owner": {"id": 945}, "assignee": {"id": 1068}}, "job": {"id": 363, "assignee": {"id": 1193}}, "organization": {"id": 1222}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 696}, "assignee": {"id": 516}, "project": {"id": 313, "owner": {"id": 95}, "assignee": {"id": 889}}, "task": {"id": 303, "owner": {"id": 909}, "assignee": {"id": 1021}}, "job": {"id": 348, "assignee": {"id": 1106}}, "organization": {"id": 110}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 660}, "assignee": {"id": 587}, "project": {"id": 372, "owner": {"id": 46}, "assignee": {"id": 850}}, "task": {"id": 356, "owner": {"id": 980}, "assignee": {"id": 1010}}, "job": {"id": 304, "assignee": {"id": 1185}}, "organization": {"id": 1296}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 617}, "assignee": {"id": 583}, "project": {"id": 301, "owner": {"id": 43}, "assignee": {"id": 876}}, "task": {"id": 347, "owner": {"id": 913}, "assignee": {"id": 1063}}, "job": {"id": 331, "assignee": {"id": 1149}}, "organization": {"id": 170}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 694}, "assignee": {"id": 579}, "project": {"id": 309, "owner": {"id": 50}, "assignee": {"id": 837}}, "task": {"id": 375, "owner": {"id": 933}, "assignee": {"id": 1099}}, "job": {"id": 351, "assignee": {"id": 1130}}, "organization": {"id": 1242}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 694}, "assignee": {"id": 526}, "project": {"id": 378, "owner": {"id": 43}, "assignee": {"id": 850}}, "task": {"id": 367, "owner": {"id": 913}, "assignee": {"id": 1070}}, "job": {"id": 354, "assignee": {"id": 1103}}, "organization": {"id": 196}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 605}, "assignee": {"id": 597}, "project": {"id": 326, "owner": {"id": 76}, "assignee": {"id": 828}}, "task": {"id": 314, "owner": {"id": 998}, "assignee": {"id": 1037}}, "job": {"id": 388, "assignee": {"id": 1118}}, "organization": {"id": 1252}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 600}, "assignee": {"id": 576}, "project": {"id": 351, "owner": {"id": 33}, "assignee": {"id": 801}}, "task": {"id": 353, "owner": {"id": 995}, "assignee": {"id": 1009}}, "job": {"id": 355, "assignee": {"id": 1162}}, "organization": {"id": 165}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 642}, "assignee": {"id": 582}, "project": {"id": 307, "owner": {"id": 73}, "assignee": {"id": 820}}, "task": {"id": 374, "owner": {"id": 953}, "assignee": {"id": 1002}}, "job": {"id": 326, "assignee": {"id": 1124}}, "organization": {"id": 1219}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 610}, "assignee": {"id": 518}, "project": {"id": 369, "owner": {"id": 26}, "assignee": {"id": 895}}, "task": {"id": 366, "owner": {"id": 976}, "assignee": {"id": 1030}}, "job": {"id": 339, "assignee": {"id": 1180}}, "organization": {"id": 172}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 650}, "assignee": {"id": 585}, "project": {"id": 352, "owner": {"id": 8}, "assignee": {"id": 826}}, "task": {"id": 305, "owner": {"id": 910}, "assignee": {"id": 1009}}, "job": {"id": 377, "assignee": {"id": 1105}}, "organization": {"id": 1274}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 642}, "assignee": {"id": 532}, "project": {"id": 376, "owner": {"id": 73}, "assignee": {"id": 819}}, "task": {"id": 367, "owner": {"id": 987}, "assignee": {"id": 1064}}, "job": {"id": 372, "assignee": {"id": 1160}}, "organization": {"id": 146}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 620}, "assignee": {"id": 579}, "project": {"id": 377, "owner": {"id": 89}, "assignee": {"id": 897}}, "task": {"id": 387, "owner": {"id": 962}, "assignee": {"id": 1054}}, "job": {"id": 348, "assignee": {"id": 1125}}, "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": 82, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 616}, "assignee": {"id": 582}, "project": {"id": 301, "owner": {"id": 82}, "assignee": {"id": 869}}, "task": {"id": 355, "owner": {"id": 985}, "assignee": {"id": 1050}}, "job": {"id": 386, "assignee": {"id": 1124}}, "organization": {"id": 174}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 669}, "assignee": {"id": 519}, "project": {"id": 346, "owner": {"id": 58}, "assignee": {"id": 820}}, "task": {"id": 318, "owner": {"id": 926}, "assignee": {"id": 1095}}, "job": {"id": 353, "assignee": {"id": 1122}}, "organization": {"id": 1292}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 605}, "assignee": {"id": 599}, "project": {"id": 355, "owner": {"id": 734}, "assignee": {"id": 96}}, "task": {"id": 312, "owner": {"id": 973}, "assignee": {"id": 1028}}, "job": {"id": 398, "assignee": {"id": 1138}}, "organization": {"id": 156}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 603}, "assignee": {"id": 540}, "project": {"id": 340, "owner": {"id": 790}, "assignee": {"id": 34}}, "task": {"id": 362, "owner": {"id": 926}, "assignee": {"id": 1030}}, "job": {"id": 327, "assignee": {"id": 1156}}, "organization": {"id": 1297}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 671}, "assignee": {"id": 517}, "project": {"id": 365, "owner": {"id": 758}, "assignee": {"id": 79}}, "task": {"id": 354, "owner": {"id": 927}, "assignee": {"id": 1008}}, "job": {"id": 364, "assignee": {"id": 1138}}, "organization": {"id": 198}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 622}, "assignee": {"id": 552}, "project": {"id": 389, "owner": {"id": 759}, "assignee": {"id": 97}}, "task": {"id": 331, "owner": {"id": 991}, "assignee": {"id": 1005}}, "job": {"id": 395, "assignee": {"id": 1192}}, "organization": {"id": 1282}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 604}, "assignee": {"id": 537}, "project": {"id": 384, "owner": {"id": 750}, "assignee": {"id": 98}}, "task": {"id": 396, "owner": {"id": 999}, "assignee": {"id": 1066}}, "job": {"id": 362, "assignee": {"id": 1101}}, "organization": {"id": 154}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 636}, "assignee": {"id": 542}, "project": {"id": 399, "owner": {"id": 782}, "assignee": {"id": 72}}, "task": {"id": 312, "owner": {"id": 941}, "assignee": {"id": 1024}}, "job": {"id": 327, "assignee": {"id": 1178}}, "organization": {"id": 1242}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 610}, "assignee": {"id": 569}, "project": {"id": 304, "owner": {"id": 766}, "assignee": {"id": 84}}, "task": {"id": 386, "owner": {"id": 959}, "assignee": {"id": 1029}}, "job": {"id": 320, "assignee": {"id": 1109}}, "organization": {"id": 125}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 612}, "assignee": {"id": 567}, "project": {"id": 356, "owner": {"id": 773}, "assignee": {"id": 60}}, "task": {"id": 315, "owner": {"id": 937}, "assignee": {"id": 1091}}, "job": {"id": 316, "assignee": {"id": 1112}}, "organization": {"id": 1227}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 681}, "assignee": {"id": 585}, "project": {"id": 338, "owner": {"id": 756}, "assignee": {"id": 90}}, "task": {"id": 398, "owner": {"id": 979}, "assignee": {"id": 1098}}, "job": {"id": 352, "assignee": {"id": 1183}}, "organization": {"id": 182}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 690}, "assignee": {"id": 596}, "project": {"id": 322, "owner": {"id": 738}, "assignee": {"id": 69}}, "task": {"id": 303, "owner": {"id": 931}, "assignee": {"id": 1091}}, "job": {"id": 360, "assignee": {"id": 1168}}, "organization": {"id": 1295}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 601}, "assignee": {"id": 588}, "project": {"id": 386, "owner": {"id": 787}, "assignee": {"id": 63}}, "task": {"id": 365, "owner": {"id": 928}, "assignee": {"id": 1000}}, "job": {"id": 333, "assignee": {"id": 1196}}, "organization": {"id": 112}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 617}, "assignee": {"id": 502}, "project": {"id": 387, "owner": {"id": 760}, "assignee": {"id": 0}}, "task": {"id": 362, "owner": {"id": 918}, "assignee": {"id": 1063}}, "job": {"id": 326, "assignee": {"id": 1193}}, "organization": {"id": 1200}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 606}, "assignee": {"id": 580}, "project": {"id": 322, "owner": {"id": 717}, "assignee": {"id": 29}}, "task": {"id": 354, "owner": {"id": 972}, "assignee": {"id": 1072}}, "job": {"id": 315, "assignee": {"id": 1138}}, "organization": {"id": 134}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 690}, "assignee": {"id": 536}, "project": {"id": 373, "owner": {"id": 717}, "assignee": {"id": 71}}, "task": {"id": 379, "owner": {"id": 910}, "assignee": {"id": 1038}}, "job": {"id": 330, "assignee": {"id": 1129}}, "organization": {"id": 1254}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 624}, "assignee": {"id": 569}, "project": {"id": 368, "owner": {"id": 736}, "assignee": {"id": 53}}, "task": {"id": 344, "owner": {"id": 941}, "assignee": {"id": 1073}}, "job": {"id": 321, "assignee": {"id": 1145}}, "organization": {"id": 147}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 604}, "assignee": {"id": 581}, "project": {"id": 391, "owner": {"id": 718}, "assignee": {"id": 6}}, "task": {"id": 364, "owner": {"id": 986}, "assignee": {"id": 1033}}, "job": {"id": 388, "assignee": {"id": 1126}}, "organization": {"id": 1261}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 666}, "assignee": {"id": 553}, "project": {"id": 362, "owner": {"id": 774}, "assignee": {"id": 74}}, "task": {"id": 310, "owner": {"id": 911}, "assignee": {"id": 1082}}, "job": {"id": 348, "assignee": {"id": 1110}}, "organization": {"id": 147}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 641}, "assignee": {"id": 522}, "project": {"id": 338, "owner": {"id": 733}, "assignee": {"id": 64}}, "task": {"id": 372, "owner": {"id": 984}, "assignee": {"id": 1054}}, "job": {"id": 363, "assignee": {"id": 1189}}, "organization": {"id": 1269}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 659}, "assignee": {"id": 579}, "project": {"id": 339, "owner": {"id": 745}, "assignee": {"id": 30}}, "task": {"id": 373, "owner": {"id": 901}, "assignee": {"id": 1054}}, "job": {"id": 365, "assignee": {"id": 1163}}, "organization": {"id": 195}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 640}, "assignee": {"id": 534}, "project": {"id": 338, "owner": {"id": 701}, "assignee": {"id": 97}}, "task": {"id": 336, "owner": {"id": 969}, "assignee": {"id": 1008}}, "job": {"id": 311, "assignee": {"id": 1164}}, "organization": {"id": 1233}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 677}, "assignee": {"id": 534}, "project": {"id": 324, "owner": {"id": 747}, "assignee": {"id": 85}}, "task": {"id": 321, "owner": {"id": 994}, "assignee": {"id": 1046}}, "job": {"id": 351, "assignee": {"id": 1176}}, "organization": {"id": 173}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 615}, "assignee": {"id": 526}, "project": {"id": 364, "owner": {"id": 726}, "assignee": {"id": 88}}, "task": {"id": 301, "owner": {"id": 962}, "assignee": {"id": 1065}}, "job": {"id": 377, "assignee": {"id": 1129}}, "organization": {"id": 1261}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 680}, "assignee": {"id": 518}, "project": {"id": 327, "owner": {"id": 765}, "assignee": {"id": 89}}, "task": {"id": 342, "owner": {"id": 937}, "assignee": {"id": 1081}}, "job": {"id": 356, "assignee": {"id": 1104}}, "organization": {"id": 127}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 608}, "assignee": {"id": 511}, "project": {"id": 398, "owner": {"id": 739}, "assignee": {"id": 45}}, "task": {"id": 372, "owner": {"id": 992}, "assignee": {"id": 1051}}, "job": {"id": 307, "assignee": {"id": 1159}}, "organization": {"id": 1283}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 668}, "assignee": {"id": 552}, "project": {"id": 347, "owner": {"id": 794}, "assignee": {"id": 34}}, "task": {"id": 385, "owner": {"id": 914}, "assignee": {"id": 1017}}, "job": {"id": 388, "assignee": {"id": 1115}}, "organization": {"id": 190}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 652}, "assignee": {"id": 529}, "project": {"id": 353, "owner": {"id": 703}, "assignee": {"id": 86}}, "task": {"id": 356, "owner": {"id": 956}, "assignee": {"id": 1046}}, "job": {"id": 356, "assignee": {"id": 1152}}, "organization": {"id": 1230}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 613}, "assignee": {"id": 589}, "project": {"id": 314, "owner": {"id": 732}, "assignee": {"id": 35}}, "task": {"id": 330, "owner": {"id": 910}, "assignee": {"id": 1094}}, "job": {"id": 335, "assignee": {"id": 1133}}, "organization": {"id": 160}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 692}, "assignee": {"id": 525}, "project": {"id": 331, "owner": {"id": 731}, "assignee": {"id": 49}}, "task": {"id": 353, "owner": {"id": 929}, "assignee": {"id": 1044}}, "job": {"id": 323, "assignee": {"id": 1152}}, "organization": {"id": 1249}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 633}, "assignee": {"id": 589}, "project": {"id": 316, "owner": {"id": 789}, "assignee": {"id": 34}}, "task": {"id": 360, "owner": {"id": 947}, "assignee": {"id": 1076}}, "job": {"id": 336, "assignee": {"id": 1136}}, "organization": {"id": 124}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 660}, "assignee": {"id": 574}, "project": {"id": 368, "owner": {"id": 729}, "assignee": {"id": 51}}, "task": {"id": 307, "owner": {"id": 984}, "assignee": {"id": 1060}}, "job": {"id": 325, "assignee": {"id": 1183}}, "organization": {"id": 1289}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 634}, "assignee": {"id": 518}, "project": {"id": 323, "owner": {"id": 776}, "assignee": {"id": 44}}, "task": {"id": 339, "owner": {"id": 917}, "assignee": {"id": 1030}}, "job": {"id": 362, "assignee": {"id": 1106}}, "organization": {"id": 170}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 607}, "assignee": {"id": 582}, "project": {"id": 334, "owner": {"id": 733}, "assignee": {"id": 61}}, "task": {"id": 301, "owner": {"id": 948}, "assignee": {"id": 1043}}, "job": {"id": 319, "assignee": {"id": 1166}}, "organization": {"id": 1268}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 600}, "assignee": {"id": 561}, "project": {"id": 301, "owner": {"id": 742}, "assignee": {"id": 31}}, "task": {"id": 332, "owner": {"id": 986}, "assignee": {"id": 1070}}, "job": {"id": 396, "assignee": {"id": 1110}}, "organization": {"id": 117}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 648}, "assignee": {"id": 570}, "project": {"id": 381, "owner": {"id": 794}, "assignee": {"id": 37}}, "task": {"id": 340, "owner": {"id": 932}, "assignee": {"id": 1007}}, "job": {"id": 323, "assignee": {"id": 1103}}, "organization": {"id": 1247}}} +} + +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": 141, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 620}, "assignee": {"id": 597}, "project": {"id": 306, "owner": {"id": 786}, "assignee": {"id": 64}}, "task": {"id": 323, "owner": {"id": 994}, "assignee": {"id": 1026}}, "job": {"id": 362, "assignee": {"id": 1165}}, "organization": {"id": 141}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 607}, "assignee": {"id": 592}, "project": {"id": 363, "owner": {"id": 737}, "assignee": {"id": 84}}, "task": {"id": 322, "owner": {"id": 981}, "assignee": {"id": 1025}}, "job": {"id": 339, "assignee": {"id": 1190}}, "organization": {"id": 1229}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 636}, "assignee": {"id": 590}, "project": {"id": 335, "owner": {"id": 763}, "assignee": {"id": 39}}, "task": {"id": 360, "owner": {"id": 997}, "assignee": {"id": 1025}}, "job": {"id": 368, "assignee": {"id": 1178}}, "organization": {"id": 190}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 626}, "assignee": {"id": 588}, "project": {"id": 317, "owner": {"id": 710}, "assignee": {"id": 35}}, "task": {"id": 301, "owner": {"id": 930}, "assignee": {"id": 1023}}, "job": {"id": 394, "assignee": {"id": 1112}}, "organization": {"id": 1217}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 673}, "assignee": {"id": 524}, "project": {"id": 389, "owner": {"id": 758}, "assignee": {"id": 96}}, "task": {"id": 324, "owner": {"id": 910}, "assignee": {"id": 1096}}, "job": {"id": 358, "assignee": {"id": 1101}}, "organization": {"id": 161}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 654}, "assignee": {"id": 574}, "project": {"id": 390, "owner": {"id": 791}, "assignee": {"id": 2}}, "task": {"id": 321, "owner": {"id": 956}, "assignee": {"id": 1068}}, "job": {"id": 333, "assignee": {"id": 1192}}, "organization": {"id": 1250}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 630}, "assignee": {"id": 559}, "project": {"id": 306, "owner": {"id": 747}, "assignee": {"id": 38}}, "task": {"id": 346, "owner": {"id": 961}, "assignee": {"id": 1071}}, "job": {"id": 334, "assignee": {"id": 1101}}, "organization": {"id": 104}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 671}, "assignee": {"id": 572}, "project": {"id": 320, "owner": {"id": 775}, "assignee": {"id": 86}}, "task": {"id": 373, "owner": {"id": 931}, "assignee": {"id": 1019}}, "job": {"id": 342, "assignee": {"id": 1147}}, "organization": {"id": 1213}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 692}, "assignee": {"id": 537}, "project": {"id": 317, "owner": {"id": 707}, "assignee": {"id": 43}}, "task": {"id": 334, "owner": {"id": 949}, "assignee": {"id": 1055}}, "job": {"id": 332, "assignee": {"id": 1181}}, "organization": {"id": 161}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 676}, "assignee": {"id": 546}, "project": {"id": 345, "owner": {"id": 750}, "assignee": {"id": 53}}, "task": {"id": 359, "owner": {"id": 958}, "assignee": {"id": 1095}}, "job": {"id": 373, "assignee": {"id": 1116}}, "organization": {"id": 1243}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 690}, "assignee": {"id": 594}, "project": {"id": 376, "owner": {"id": 715}, "assignee": {"id": 68}}, "task": {"id": 313, "owner": {"id": 943}, "assignee": {"id": 1028}}, "job": {"id": 334, "assignee": {"id": 1127}}, "organization": {"id": 149}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 691}, "assignee": {"id": 516}, "project": {"id": 356, "owner": {"id": 700}, "assignee": {"id": 15}}, "task": {"id": 322, "owner": {"id": 977}, "assignee": {"id": 1090}}, "job": {"id": 371, "assignee": {"id": 1154}}, "organization": {"id": 1298}}} +} + +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": 175, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 605}, "assignee": {"id": 550}, "project": {"id": 395, "owner": {"id": 717}, "assignee": {"id": 49}}, "task": {"id": 335, "owner": {"id": 923}, "assignee": {"id": 1095}}, "job": {"id": 354, "assignee": {"id": 1111}}, "organization": {"id": 175}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 656}, "assignee": {"id": 568}, "project": {"id": 308, "owner": {"id": 790}, "assignee": {"id": 51}}, "task": {"id": 371, "owner": {"id": 930}, "assignee": {"id": 1026}}, "job": {"id": 323, "assignee": {"id": 1121}}, "organization": {"id": 1221}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 682}, "assignee": {"id": 511}, "project": {"id": 347, "owner": {"id": 756}, "assignee": {"id": 36}}, "task": {"id": 385, "owner": {"id": 995}, "assignee": {"id": 1062}}, "job": {"id": 310, "assignee": {"id": 1105}}, "organization": {"id": 146}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 625}, "assignee": {"id": 532}, "project": {"id": 330, "owner": {"id": 743}, "assignee": {"id": 43}}, "task": {"id": 336, "owner": {"id": 933}, "assignee": {"id": 1034}}, "job": {"id": 380, "assignee": {"id": 1119}}, "organization": {"id": 1203}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 613}, "assignee": {"id": 575}, "project": {"id": 315, "owner": {"id": 797}, "assignee": {"id": 885}}, "task": {"id": 396, "owner": {"id": 13}, "assignee": {"id": 1001}}, "job": {"id": 307, "assignee": {"id": 1196}}, "organization": {"id": 177}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 674}, "assignee": {"id": 515}, "project": {"id": 319, "owner": {"id": 704}, "assignee": {"id": 837}}, "task": {"id": 324, "owner": {"id": 40}, "assignee": {"id": 1004}}, "job": {"id": 320, "assignee": {"id": 1175}}, "organization": {"id": 125}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 627}, "assignee": {"id": 531}, "project": {"id": 380, "owner": {"id": 729}, "assignee": {"id": 860}}, "task": {"id": 373, "owner": {"id": 4}, "assignee": {"id": 1094}}, "job": {"id": 391, "assignee": {"id": 1114}}, "organization": {"id": 1225}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 609}, "assignee": {"id": 514}, "project": {"id": 301, "owner": {"id": 735}, "assignee": {"id": 872}}, "task": {"id": 336, "owner": {"id": 18}, "assignee": {"id": 1040}}, "job": {"id": 347, "assignee": {"id": 1178}}, "organization": {"id": 1267}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 640}, "assignee": {"id": 500}, "project": {"id": 315, "owner": {"id": 792}, "assignee": {"id": 880}}, "task": {"id": 344, "owner": {"id": 3}, "assignee": {"id": 1068}}, "job": {"id": 318, "assignee": {"id": 1110}}, "organization": {"id": 163}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 603}, "assignee": {"id": 589}, "project": {"id": 307, "owner": {"id": 762}, "assignee": {"id": 841}}, "task": {"id": 398, "owner": {"id": 47}, "assignee": {"id": 1079}}, "job": {"id": 370, "assignee": {"id": 1132}}, "organization": {"id": 193}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 604}, "assignee": {"id": 595}, "project": {"id": 367, "owner": {"id": 744}, "assignee": {"id": 870}}, "task": {"id": 320, "owner": {"id": 31}, "assignee": {"id": 1033}}, "job": {"id": 378, "assignee": {"id": 1114}}, "organization": {"id": 1230}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 631}, "assignee": {"id": 549}, "project": {"id": 357, "owner": {"id": 704}, "assignee": {"id": 841}}, "task": {"id": 327, "owner": {"id": 83}, "assignee": {"id": 1050}}, "job": {"id": 394, "assignee": {"id": 1115}}, "organization": {"id": 1206}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 696}, "assignee": {"id": 543}, "project": {"id": 321, "owner": {"id": 716}, "assignee": {"id": 892}}, "task": {"id": 377, "owner": {"id": 20}, "assignee": {"id": 1060}}, "job": {"id": 385, "assignee": {"id": 1101}}, "organization": {"id": 181}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 628}, "assignee": {"id": 552}, "project": {"id": 388, "owner": {"id": 771}, "assignee": {"id": 832}}, "task": {"id": 319, "owner": {"id": 64}, "assignee": {"id": 1017}}, "job": {"id": 357, "assignee": {"id": 1113}}, "organization": {"id": 148}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 681}, "assignee": {"id": 532}, "project": {"id": 343, "owner": {"id": 785}, "assignee": {"id": 859}}, "task": {"id": 332, "owner": {"id": 48}, "assignee": {"id": 1047}}, "job": {"id": 341, "assignee": {"id": 1115}}, "organization": {"id": 1261}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 647}, "assignee": {"id": 545}, "project": {"id": 339, "owner": {"id": 704}, "assignee": {"id": 893}}, "task": {"id": 339, "owner": {"id": 89}, "assignee": {"id": 1038}}, "job": {"id": 329, "assignee": {"id": 1126}}, "organization": {"id": 1282}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 654}, "assignee": {"id": 574}, "project": {"id": 327, "owner": {"id": 772}, "assignee": {"id": 814}}, "task": {"id": 347, "owner": {"id": 6}, "assignee": {"id": 1002}}, "job": {"id": 337, "assignee": {"id": 1156}}, "organization": {"id": 176}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 608}, "assignee": {"id": 548}, "project": {"id": 389, "owner": {"id": 790}, "assignee": {"id": 830}}, "task": {"id": 313, "owner": {"id": 82}, "assignee": {"id": 1033}}, "job": {"id": 354, "assignee": {"id": 1146}}, "organization": {"id": 160}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 697}, "assignee": {"id": 555}, "project": {"id": 393, "owner": {"id": 700}, "assignee": {"id": 894}}, "task": {"id": 331, "owner": {"id": 6}, "assignee": {"id": 1004}}, "job": {"id": 373, "assignee": {"id": 1105}}, "organization": {"id": 1259}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 650}, "assignee": {"id": 561}, "project": {"id": 305, "owner": {"id": 784}, "assignee": {"id": 893}}, "task": {"id": 366, "owner": {"id": 25}, "assignee": {"id": 1053}}, "job": {"id": 362, "assignee": {"id": 1110}}, "organization": {"id": 1240}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 628}, "assignee": {"id": 553}, "project": {"id": 358, "owner": {"id": 700}, "assignee": {"id": 846}}, "task": {"id": 332, "owner": {"id": 0}, "assignee": {"id": 1075}}, "job": {"id": 324, "assignee": {"id": 1112}}, "organization": {"id": 125}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 605}, "assignee": {"id": 594}, "project": {"id": 363, "owner": {"id": 722}, "assignee": {"id": 873}}, "task": {"id": 333, "owner": {"id": 59}, "assignee": {"id": 1002}}, "job": {"id": 354, "assignee": {"id": 1165}}, "organization": {"id": 198}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 661}, "assignee": {"id": 506}, "project": {"id": 344, "owner": {"id": 705}, "assignee": {"id": 813}}, "task": {"id": 364, "owner": {"id": 50}, "assignee": {"id": 1024}}, "job": {"id": 332, "assignee": {"id": 1124}}, "organization": {"id": 1230}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 660}, "assignee": {"id": 565}, "project": {"id": 303, "owner": {"id": 775}, "assignee": {"id": 804}}, "task": {"id": 392, "owner": {"id": 61}, "assignee": {"id": 1045}}, "job": {"id": 382, "assignee": {"id": 1163}}, "organization": {"id": 1220}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 610}, "assignee": {"id": 515}, "project": {"id": 359, "owner": {"id": 763}, "assignee": {"id": 817}}, "task": {"id": 341, "owner": {"id": 30}, "assignee": {"id": 1057}}, "job": {"id": 337, "assignee": {"id": 1103}}, "organization": {"id": 166}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 655}, "assignee": {"id": 553}, "project": {"id": 398, "owner": {"id": 745}, "assignee": {"id": 861}}, "task": {"id": 347, "owner": {"id": 90}, "assignee": {"id": 1068}}, "job": {"id": 397, "assignee": {"id": 1177}}, "organization": {"id": 174}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 623}, "assignee": {"id": 547}, "project": {"id": 354, "owner": {"id": 726}, "assignee": {"id": 866}}, "task": {"id": 371, "owner": {"id": 65}, "assignee": {"id": 1094}}, "job": {"id": 381, "assignee": {"id": 1110}}, "organization": {"id": 1236}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 696}, "assignee": {"id": 554}, "project": {"id": 398, "owner": {"id": 775}, "assignee": {"id": 821}}, "task": {"id": 379, "owner": {"id": 79}, "assignee": {"id": 1081}}, "job": {"id": 395, "assignee": {"id": 1156}}, "organization": {"id": 1202}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 617}, "assignee": {"id": 549}, "project": {"id": 317, "owner": {"id": 736}, "assignee": {"id": 843}}, "task": {"id": 346, "owner": {"id": 26}, "assignee": {"id": 1074}}, "job": {"id": 329, "assignee": {"id": 1183}}, "organization": {"id": 105}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 633}, "assignee": {"id": 598}, "project": {"id": 376, "owner": {"id": 790}, "assignee": {"id": 842}}, "task": {"id": 354, "owner": {"id": 3}, "assignee": {"id": 1085}}, "job": {"id": 381, "assignee": {"id": 1114}}, "organization": {"id": 129}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 697}, "assignee": {"id": 537}, "project": {"id": 326, "owner": {"id": 757}, "assignee": {"id": 879}}, "task": {"id": 378, "owner": {"id": 67}, "assignee": {"id": 1090}}, "job": {"id": 394, "assignee": {"id": 1143}}, "organization": {"id": 1287}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 697}, "assignee": {"id": 560}, "project": {"id": 343, "owner": {"id": 776}, "assignee": {"id": 804}}, "task": {"id": 339, "owner": {"id": 71}, "assignee": {"id": 1029}}, "job": {"id": 307, "assignee": {"id": 1157}}, "organization": {"id": 1240}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 619}, "assignee": {"id": 524}, "project": {"id": 354, "owner": {"id": 781}, "assignee": {"id": 859}}, "task": {"id": 386, "owner": {"id": 19}, "assignee": {"id": 1070}}, "job": {"id": 366, "assignee": {"id": 1176}}, "organization": {"id": 126}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 682}, "assignee": {"id": 538}, "project": {"id": 365, "owner": {"id": 761}, "assignee": {"id": 844}}, "task": {"id": 336, "owner": {"id": 80}, "assignee": {"id": 1002}}, "job": {"id": 370, "assignee": {"id": 1140}}, "organization": {"id": 140}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 683}, "assignee": {"id": 563}, "project": {"id": 337, "owner": {"id": 751}, "assignee": {"id": 861}}, "task": {"id": 317, "owner": {"id": 91}, "assignee": {"id": 1095}}, "job": {"id": 387, "assignee": {"id": 1130}}, "organization": {"id": 1299}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 655}, "assignee": {"id": 557}, "project": {"id": 332, "owner": {"id": 775}, "assignee": {"id": 882}}, "task": {"id": 329, "owner": {"id": 4}, "assignee": {"id": 1043}}, "job": {"id": 315, "assignee": {"id": 1104}}, "organization": {"id": 1263}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 685}, "assignee": {"id": 580}, "project": {"id": 392, "owner": {"id": 754}, "assignee": {"id": 881}}, "task": {"id": 317, "owner": {"id": 42}, "assignee": {"id": 1050}}, "job": {"id": 305, "assignee": {"id": 1198}}, "organization": {"id": 124}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 636}, "assignee": {"id": 522}, "project": {"id": 375, "owner": {"id": 774}, "assignee": {"id": 811}}, "task": {"id": 333, "owner": {"id": 12}, "assignee": {"id": 1058}}, "job": {"id": 327, "assignee": {"id": 1160}}, "organization": {"id": 186}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 618}, "assignee": {"id": 543}, "project": {"id": 368, "owner": {"id": 726}, "assignee": {"id": 824}}, "task": {"id": 307, "owner": {"id": 39}, "assignee": {"id": 1050}}, "job": {"id": 308, "assignee": {"id": 1129}}, "organization": {"id": 1215}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 679}, "assignee": {"id": 509}, "project": {"id": 322, "owner": {"id": 704}, "assignee": {"id": 845}}, "task": {"id": 331, "owner": {"id": 88}, "assignee": {"id": 1070}}, "job": {"id": 376, "assignee": {"id": 1178}}, "organization": {"id": 1276}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 613}, "assignee": {"id": 556}, "project": {"id": 370, "owner": {"id": 761}, "assignee": {"id": 895}}, "task": {"id": 382, "owner": {"id": 12}, "assignee": {"id": 1076}}, "job": {"id": 353, "assignee": {"id": 1184}}, "organization": {"id": 139}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 663}, "assignee": {"id": 597}, "project": {"id": 392, "owner": {"id": 716}, "assignee": {"id": 867}}, "task": {"id": 331, "owner": {"id": 37}, "assignee": {"id": 1015}}, "job": {"id": 304, "assignee": {"id": 1192}}, "organization": {"id": 149}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 683}, "assignee": {"id": 539}, "project": {"id": 349, "owner": {"id": 719}, "assignee": {"id": 876}}, "task": {"id": 392, "owner": {"id": 19}, "assignee": {"id": 1047}}, "job": {"id": 368, "assignee": {"id": 1150}}, "organization": {"id": 1260}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 668}, "assignee": {"id": 584}, "project": {"id": 319, "owner": {"id": 706}, "assignee": {"id": 862}}, "task": {"id": 365, "owner": {"id": 75}, "assignee": {"id": 1001}}, "job": {"id": 310, "assignee": {"id": 1150}}, "organization": {"id": 1205}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 677}, "assignee": {"id": 578}, "project": {"id": 392, "owner": {"id": 709}, "assignee": {"id": 876}}, "task": {"id": 382, "owner": {"id": 21}, "assignee": {"id": 1009}}, "job": {"id": 365, "assignee": {"id": 1190}}, "organization": {"id": 110}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 693}, "assignee": {"id": 581}, "project": {"id": 397, "owner": {"id": 759}, "assignee": {"id": 886}}, "task": {"id": 376, "owner": {"id": 43}, "assignee": {"id": 1053}}, "job": {"id": 300, "assignee": {"id": 1139}}, "organization": {"id": 107}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 602}, "assignee": {"id": 524}, "project": {"id": 360, "owner": {"id": 732}, "assignee": {"id": 840}}, "task": {"id": 313, "owner": {"id": 78}, "assignee": {"id": 1097}}, "job": {"id": 321, "assignee": {"id": 1176}}, "organization": {"id": 1203}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 649}, "assignee": {"id": 557}, "project": {"id": 345, "owner": {"id": 758}, "assignee": {"id": 886}}, "task": {"id": 331, "owner": {"id": 16}, "assignee": {"id": 1020}}, "job": {"id": 348, "assignee": {"id": 1198}}, "organization": {"id": 1208}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 694}, "assignee": {"id": 556}, "project": {"id": 388, "owner": {"id": 764}, "assignee": {"id": 861}}, "task": {"id": 304, "owner": {"id": 18}, "assignee": {"id": 1095}}, "job": {"id": 376, "assignee": {"id": 1148}}, "organization": {"id": 185}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 680}, "assignee": {"id": 565}, "project": {"id": 375, "owner": {"id": 745}, "assignee": {"id": 833}}, "task": {"id": 360, "owner": {"id": 5}, "assignee": {"id": 1035}}, "job": {"id": 391, "assignee": {"id": 1180}}, "organization": {"id": 173}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 662}, "assignee": {"id": 549}, "project": {"id": 351, "owner": {"id": 776}, "assignee": {"id": 818}}, "task": {"id": 303, "owner": {"id": 78}, "assignee": {"id": 1027}}, "job": {"id": 306, "assignee": {"id": 1167}}, "organization": {"id": 1205}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 642}, "assignee": {"id": 543}, "project": {"id": 310, "owner": {"id": 779}, "assignee": {"id": 843}}, "task": {"id": 300, "owner": {"id": 59}, "assignee": {"id": 1028}}, "job": {"id": 353, "assignee": {"id": 1138}}, "organization": {"id": 1257}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 632}, "assignee": {"id": 578}, "project": {"id": 303, "owner": {"id": 746}, "assignee": {"id": 810}}, "task": {"id": 372, "owner": {"id": 39}, "assignee": {"id": 1052}}, "job": {"id": 309, "assignee": {"id": 1140}}, "organization": {"id": 191}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 624}, "assignee": {"id": 592}, "project": {"id": 356, "owner": {"id": 781}, "assignee": {"id": 818}}, "task": {"id": 393, "owner": {"id": 84}, "assignee": {"id": 1063}}, "job": {"id": 368, "assignee": {"id": 1178}}, "organization": {"id": 173}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 662}, "assignee": {"id": 535}, "project": {"id": 392, "owner": {"id": 796}, "assignee": {"id": 891}}, "task": {"id": 321, "owner": {"id": 66}, "assignee": {"id": 1054}}, "job": {"id": 305, "assignee": {"id": 1149}}, "organization": {"id": 1222}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 604}, "assignee": {"id": 593}, "project": {"id": 312, "owner": {"id": 726}, "assignee": {"id": 834}}, "task": {"id": 393, "owner": {"id": 88}, "assignee": {"id": 1047}}, "job": {"id": 370, "assignee": {"id": 1105}}, "organization": {"id": 1271}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 648}, "assignee": {"id": 583}, "project": {"id": 324, "owner": {"id": 719}, "assignee": {"id": 808}}, "task": {"id": 360, "owner": {"id": 96}, "assignee": {"id": 1048}}, "job": {"id": 329, "assignee": {"id": 1190}}, "organization": {"id": 167}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 672}, "assignee": {"id": 511}, "project": {"id": 310, "owner": {"id": 777}, "assignee": {"id": 885}}, "task": {"id": 395, "owner": {"id": 15}, "assignee": {"id": 1047}}, "job": {"id": 361, "assignee": {"id": 1122}}, "organization": {"id": 170}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 685}, "assignee": {"id": 597}, "project": {"id": 336, "owner": {"id": 749}, "assignee": {"id": 835}}, "task": {"id": 330, "owner": {"id": 92}, "assignee": {"id": 1029}}, "job": {"id": 377, "assignee": {"id": 1198}}, "organization": {"id": 1278}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 645}, "assignee": {"id": 554}, "project": {"id": 376, "owner": {"id": 737}, "assignee": {"id": 829}}, "task": {"id": 343, "owner": {"id": 69}, "assignee": {"id": 1042}}, "job": {"id": 329, "assignee": {"id": 1177}}, "organization": {"id": 1237}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 691}, "assignee": {"id": 504}, "project": {"id": 392, "owner": {"id": 701}, "assignee": {"id": 810}}, "task": {"id": 387, "owner": {"id": 52}, "assignee": {"id": 1037}}, "job": {"id": 388, "assignee": {"id": 1179}}, "organization": {"id": 160}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 699}, "assignee": {"id": 543}, "project": {"id": 325, "owner": {"id": 753}, "assignee": {"id": 812}}, "task": {"id": 335, "owner": {"id": 52}, "assignee": {"id": 1046}}, "job": {"id": 353, "assignee": {"id": 1104}}, "organization": {"id": 189}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 666}, "assignee": {"id": 586}, "project": {"id": 343, "owner": {"id": 724}, "assignee": {"id": 805}}, "task": {"id": 343, "owner": {"id": 74}, "assignee": {"id": 1012}}, "job": {"id": 314, "assignee": {"id": 1152}}, "organization": {"id": 1212}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 634}, "assignee": {"id": 581}, "project": {"id": 370, "owner": {"id": 719}, "assignee": {"id": 897}}, "task": {"id": 358, "owner": {"id": 11}, "assignee": {"id": 1069}}, "job": {"id": 392, "assignee": {"id": 1121}}, "organization": {"id": 1246}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 653}, "assignee": {"id": 534}, "project": {"id": 362, "owner": {"id": 731}, "assignee": {"id": 863}}, "task": {"id": 376, "owner": {"id": 29}, "assignee": {"id": 1041}}, "job": {"id": 322, "assignee": {"id": 1114}}, "organization": {"id": 155}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 604}, "assignee": {"id": 559}, "project": {"id": 387, "owner": {"id": 728}, "assignee": {"id": 855}}, "task": {"id": 389, "owner": {"id": 93}, "assignee": {"id": 1001}}, "job": {"id": 360, "assignee": {"id": 1126}}, "organization": {"id": 189}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 681}, "assignee": {"id": 585}, "project": {"id": 340, "owner": {"id": 758}, "assignee": {"id": 891}}, "task": {"id": 351, "owner": {"id": 49}, "assignee": {"id": 1017}}, "job": {"id": 317, "assignee": {"id": 1128}}, "organization": {"id": 1211}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 669}, "assignee": {"id": 582}, "project": {"id": 397, "owner": {"id": 767}, "assignee": {"id": 809}}, "task": {"id": 358, "owner": {"id": 32}, "assignee": {"id": 1053}}, "job": {"id": 323, "assignee": {"id": 1132}}, "organization": {"id": 1286}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 605}, "assignee": {"id": 598}, "project": {"id": 378, "owner": {"id": 759}, "assignee": {"id": 820}}, "task": {"id": 319, "owner": {"id": 45}, "assignee": {"id": 1044}}, "job": {"id": 335, "assignee": {"id": 1102}}, "organization": {"id": 139}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 637}, "assignee": {"id": 554}, "project": {"id": 384, "owner": {"id": 721}, "assignee": {"id": 881}}, "task": {"id": 313, "owner": {"id": 95}, "assignee": {"id": 1030}}, "job": {"id": 399, "assignee": {"id": 1162}}, "organization": {"id": 198}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 612}, "assignee": {"id": 511}, "project": {"id": 316, "owner": {"id": 746}, "assignee": {"id": 855}}, "task": {"id": 383, "owner": {"id": 70}, "assignee": {"id": 1046}}, "job": {"id": 346, "assignee": {"id": 1109}}, "organization": {"id": 1206}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 686}, "assignee": {"id": 507}, "project": {"id": 321, "owner": {"id": 712}, "assignee": {"id": 825}}, "task": {"id": 355, "owner": {"id": 71}, "assignee": {"id": 1098}}, "job": {"id": 397, "assignee": {"id": 1119}}, "organization": {"id": 1229}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 632}, "assignee": {"id": 513}, "project": {"id": 310, "owner": {"id": 763}, "assignee": {"id": 863}}, "task": {"id": 351, "owner": {"id": 91}, "assignee": {"id": 1093}}, "job": {"id": 368, "assignee": {"id": 1156}}, "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": 51, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 690}, "assignee": {"id": 593}, "project": {"id": 351, "owner": {"id": 720}, "assignee": {"id": 872}}, "task": {"id": 300, "owner": {"id": 51}, "assignee": {"id": 1038}}, "job": {"id": 309, "assignee": {"id": 1130}}, "organization": {"id": 187}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 688}, "assignee": {"id": 534}, "project": {"id": 334, "owner": {"id": 758}, "assignee": {"id": 841}}, "task": {"id": 308, "owner": {"id": 41}, "assignee": {"id": 1027}}, "job": {"id": 345, "assignee": {"id": 1128}}, "organization": {"id": 1246}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 647}, "assignee": {"id": 518}, "project": {"id": 364, "owner": {"id": 731}, "assignee": {"id": 817}}, "task": {"id": 308, "owner": {"id": 91}, "assignee": {"id": 1005}}, "job": {"id": 333, "assignee": {"id": 1112}}, "organization": {"id": 1251}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 644}, "assignee": {"id": 585}, "project": {"id": 336, "owner": {"id": 721}, "assignee": {"id": 898}}, "task": {"id": 392, "owner": {"id": 48}, "assignee": {"id": 1066}}, "job": {"id": 375, "assignee": {"id": 1100}}, "organization": {"id": 110}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 612}, "assignee": {"id": 524}, "project": {"id": 365, "owner": {"id": 716}, "assignee": {"id": 839}}, "task": {"id": 338, "owner": {"id": 8}, "assignee": {"id": 1024}}, "job": {"id": 330, "assignee": {"id": 1153}}, "organization": {"id": 197}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 671}, "assignee": {"id": 562}, "project": {"id": 399, "owner": {"id": 726}, "assignee": {"id": 877}}, "task": {"id": 341, "owner": {"id": 38}, "assignee": {"id": 1082}}, "job": {"id": 397, "assignee": {"id": 1185}}, "organization": {"id": 1288}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 663}, "assignee": {"id": 578}, "project": {"id": 386, "owner": {"id": 793}, "assignee": {"id": 813}}, "task": {"id": 344, "owner": {"id": 10}, "assignee": {"id": 1032}}, "job": {"id": 322, "assignee": {"id": 1190}}, "organization": {"id": 1240}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 629}, "assignee": {"id": 509}, "project": {"id": 330, "owner": {"id": 732}, "assignee": {"id": 838}}, "task": {"id": 351, "owner": {"id": 8}, "assignee": {"id": 1040}}, "job": {"id": 324, "assignee": {"id": 1172}}, "organization": {"id": 133}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 674}, "assignee": {"id": 598}, "project": {"id": 338, "owner": {"id": 777}, "assignee": {"id": 832}}, "task": {"id": 302, "owner": {"id": 77}, "assignee": {"id": 1035}}, "job": {"id": 308, "assignee": {"id": 1198}}, "organization": {"id": 166}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 610}, "assignee": {"id": 566}, "project": {"id": 302, "owner": {"id": 711}, "assignee": {"id": 870}}, "task": {"id": 325, "owner": {"id": 29}, "assignee": {"id": 1056}}, "job": {"id": 378, "assignee": {"id": 1137}}, "organization": {"id": 1240}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 699}, "assignee": {"id": 594}, "project": {"id": 392, "owner": {"id": 753}, "assignee": {"id": 878}}, "task": {"id": 320, "owner": {"id": 5}, "assignee": {"id": 1065}}, "job": {"id": 323, "assignee": {"id": 1109}}, "organization": {"id": 1275}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 635}, "assignee": {"id": 592}, "project": {"id": 393, "owner": {"id": 744}, "assignee": {"id": 857}}, "task": {"id": 363, "owner": {"id": 43}, "assignee": {"id": 1027}}, "job": {"id": 319, "assignee": {"id": 1116}}, "organization": {"id": 155}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 678}, "assignee": {"id": 501}, "project": {"id": 393, "owner": {"id": 704}, "assignee": {"id": 813}}, "task": {"id": 395, "owner": {"id": 62}, "assignee": {"id": 1068}}, "job": {"id": 363, "assignee": {"id": 1113}}, "organization": {"id": 182}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 697}, "assignee": {"id": 548}, "project": {"id": 345, "owner": {"id": 735}, "assignee": {"id": 866}}, "task": {"id": 341, "owner": {"id": 81}, "assignee": {"id": 1016}}, "job": {"id": 350, "assignee": {"id": 1173}}, "organization": {"id": 1296}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 625}, "assignee": {"id": 566}, "project": {"id": 316, "owner": {"id": 723}, "assignee": {"id": 805}}, "task": {"id": 374, "owner": {"id": 68}, "assignee": {"id": 1042}}, "job": {"id": 346, "assignee": {"id": 1129}}, "organization": {"id": 1222}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 671}, "assignee": {"id": 511}, "project": {"id": 313, "owner": {"id": 792}, "assignee": {"id": 821}}, "task": {"id": 362, "owner": {"id": 64}, "assignee": {"id": 1029}}, "job": {"id": 332, "assignee": {"id": 1150}}, "organization": {"id": 127}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 680}, "assignee": {"id": 516}, "project": {"id": 371, "owner": {"id": 761}, "assignee": {"id": 886}}, "task": {"id": 398, "owner": {"id": 5}, "assignee": {"id": 1060}}, "job": {"id": 346, "assignee": {"id": 1114}}, "organization": {"id": 104}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 623}, "assignee": {"id": 555}, "project": {"id": 347, "owner": {"id": 724}, "assignee": {"id": 878}}, "task": {"id": 341, "owner": {"id": 72}, "assignee": {"id": 1080}}, "job": {"id": 349, "assignee": {"id": 1127}}, "organization": {"id": 1279}}} +} + +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": 193, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 610}, "assignee": {"id": 569}, "project": {"id": 356, "owner": {"id": 799}, "assignee": {"id": 844}}, "task": {"id": 364, "owner": {"id": 13}, "assignee": {"id": 1084}}, "job": {"id": 300, "assignee": {"id": 1182}}, "organization": {"id": 1267}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 644}, "assignee": {"id": 507}, "project": {"id": 354, "owner": {"id": 776}, "assignee": {"id": 812}}, "task": {"id": 334, "owner": {"id": 11}, "assignee": {"id": 1079}}, "job": {"id": 346, "assignee": {"id": 1173}}, "organization": {"id": 105}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 681}, "assignee": {"id": 575}, "project": {"id": 365, "owner": {"id": 725}, "assignee": {"id": 875}}, "task": {"id": 303, "owner": {"id": 17}, "assignee": {"id": 1078}}, "job": {"id": 357, "assignee": {"id": 1150}}, "organization": {"id": 150}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 647}, "assignee": {"id": 511}, "project": {"id": 388, "owner": {"id": 702}, "assignee": {"id": 815}}, "task": {"id": 386, "owner": {"id": 94}, "assignee": {"id": 1064}}, "job": {"id": 352, "assignee": {"id": 1153}}, "organization": {"id": 1238}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 666}, "assignee": {"id": 509}, "project": {"id": 387, "owner": {"id": 704}, "assignee": {"id": 879}}, "task": {"id": 374, "owner": {"id": 17}, "assignee": {"id": 1092}}, "job": {"id": 303, "assignee": {"id": 1185}}, "organization": {"id": 1250}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 699}, "assignee": {"id": 580}, "project": {"id": 364, "owner": {"id": 781}, "assignee": {"id": 866}}, "task": {"id": 330, "owner": {"id": 50}, "assignee": {"id": 1084}}, "job": {"id": 318, "assignee": {"id": 1197}}, "organization": {"id": 150}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 694}, "assignee": {"id": 530}, "project": {"id": 371, "owner": {"id": 738}, "assignee": {"id": 807}}, "task": {"id": 304, "owner": {"id": 49}, "assignee": {"id": 1096}}, "job": {"id": 361, "assignee": {"id": 1106}}, "organization": {"id": 178}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 648}, "assignee": {"id": 500}, "project": {"id": 373, "owner": {"id": 768}, "assignee": {"id": 847}}, "task": {"id": 394, "owner": {"id": 63}, "assignee": {"id": 1012}}, "job": {"id": 325, "assignee": {"id": 1150}}, "organization": {"id": 1234}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 688}, "assignee": {"id": 569}, "project": {"id": 331, "owner": {"id": 718}, "assignee": {"id": 857}}, "task": {"id": 344, "owner": {"id": 38}, "assignee": {"id": 1008}}, "job": {"id": 342, "assignee": {"id": 1153}}, "organization": {"id": 1219}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 626}, "assignee": {"id": 536}, "project": {"id": 399, "owner": {"id": 724}, "assignee": {"id": 872}}, "task": {"id": 354, "owner": {"id": 78}, "assignee": {"id": 1010}}, "job": {"id": 398, "assignee": {"id": 1162}}, "organization": {"id": 123}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 620}, "assignee": {"id": 541}, "project": {"id": 320, "owner": {"id": 763}, "assignee": {"id": 858}}, "task": {"id": 393, "owner": {"id": 27}, "assignee": {"id": 1053}}, "job": {"id": 330, "assignee": {"id": 1166}}, "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": 83, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 600}, "assignee": {"id": 578}, "project": {"id": 382, "owner": {"id": 795}, "assignee": {"id": 802}}, "task": {"id": 378, "owner": {"id": 83}, "assignee": {"id": 1038}}, "job": {"id": 382, "assignee": {"id": 1191}}, "organization": {"id": 1284}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 627}, "assignee": {"id": 586}, "project": {"id": 321, "owner": {"id": 789}, "assignee": {"id": 889}}, "task": {"id": 315, "owner": {"id": 31}, "assignee": {"id": 1011}}, "job": {"id": 388, "assignee": {"id": 1197}}, "organization": {"id": 1273}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 636}, "assignee": {"id": 560}, "project": {"id": 352, "owner": {"id": 781}, "assignee": {"id": 886}}, "task": {"id": 325, "owner": {"id": 902}, "assignee": {"id": 41}}, "job": {"id": 311, "assignee": {"id": 1128}}, "organization": {"id": 170}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 617}, "assignee": {"id": 580}, "project": {"id": 300, "owner": {"id": 703}, "assignee": {"id": 897}}, "task": {"id": 342, "owner": {"id": 999}, "assignee": {"id": 70}}, "job": {"id": 304, "assignee": {"id": 1169}}, "organization": {"id": 118}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 682}, "assignee": {"id": 504}, "project": {"id": 366, "owner": {"id": 704}, "assignee": {"id": 821}}, "task": {"id": 346, "owner": {"id": 930}, "assignee": {"id": 82}}, "job": {"id": 349, "assignee": {"id": 1181}}, "organization": {"id": 1299}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 692}, "assignee": {"id": 574}, "project": {"id": 332, "owner": {"id": 745}, "assignee": {"id": 843}}, "task": {"id": 347, "owner": {"id": 972}, "assignee": {"id": 84}}, "job": {"id": 337, "assignee": {"id": 1188}}, "organization": {"id": 1274}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 676}, "assignee": {"id": 542}, "project": {"id": 307, "owner": {"id": 760}, "assignee": {"id": 852}}, "task": {"id": 317, "owner": {"id": 933}, "assignee": {"id": 93}}, "job": {"id": 364, "assignee": {"id": 1150}}, "organization": {"id": 118}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 657}, "assignee": {"id": 560}, "project": {"id": 338, "owner": {"id": 734}, "assignee": {"id": 874}}, "task": {"id": 361, "owner": {"id": 995}, "assignee": {"id": 27}}, "job": {"id": 303, "assignee": {"id": 1185}}, "organization": {"id": 134}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 663}, "assignee": {"id": 589}, "project": {"id": 327, "owner": {"id": 775}, "assignee": {"id": 801}}, "task": {"id": 326, "owner": {"id": 921}, "assignee": {"id": 84}}, "job": {"id": 347, "assignee": {"id": 1140}}, "organization": {"id": 1256}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 698}, "assignee": {"id": 553}, "project": {"id": 365, "owner": {"id": 784}, "assignee": {"id": 829}}, "task": {"id": 394, "owner": {"id": 983}, "assignee": {"id": 23}}, "job": {"id": 380, "assignee": {"id": 1171}}, "organization": {"id": 1242}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 679}, "assignee": {"id": 563}, "project": {"id": 341, "owner": {"id": 747}, "assignee": {"id": 850}}, "task": {"id": 371, "owner": {"id": 967}, "assignee": {"id": 73}}, "job": {"id": 393, "assignee": {"id": 1118}}, "organization": {"id": 127}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 667}, "assignee": {"id": 515}, "project": {"id": 336, "owner": {"id": 757}, "assignee": {"id": 871}}, "task": {"id": 326, "owner": {"id": 912}, "assignee": {"id": 10}}, "job": {"id": 330, "assignee": {"id": 1118}}, "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": 46, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 660}, "assignee": {"id": 547}, "project": {"id": 348, "owner": {"id": 742}, "assignee": {"id": 818}}, "task": {"id": 371, "owner": {"id": 950}, "assignee": {"id": 46}}, "job": {"id": 359, "assignee": {"id": 1176}}, "organization": {"id": 1257}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 627}, "assignee": {"id": 557}, "project": {"id": 336, "owner": {"id": 725}, "assignee": {"id": 830}}, "task": {"id": 329, "owner": {"id": 949}, "assignee": {"id": 33}}, "job": {"id": 393, "assignee": {"id": 1161}}, "organization": {"id": 1294}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 630}, "assignee": {"id": 508}, "project": {"id": 355, "owner": {"id": 768}, "assignee": {"id": 849}}, "task": {"id": 371, "owner": {"id": 965}, "assignee": {"id": 36}}, "job": {"id": 327, "assignee": {"id": 1130}}, "organization": {"id": 123}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 642}, "assignee": {"id": 519}, "project": {"id": 346, "owner": {"id": 793}, "assignee": {"id": 861}}, "task": {"id": 383, "owner": {"id": 956}, "assignee": {"id": 67}}, "job": {"id": 344, "assignee": {"id": 1128}}, "organization": {"id": 177}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 665}, "assignee": {"id": 500}, "project": {"id": 320, "owner": {"id": 739}, "assignee": {"id": 833}}, "task": {"id": 382, "owner": {"id": 970}, "assignee": {"id": 37}}, "job": {"id": 322, "assignee": {"id": 1164}}, "organization": {"id": 1296}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 674}, "assignee": {"id": 501}, "project": {"id": 362, "owner": {"id": 722}, "assignee": {"id": 890}}, "task": {"id": 332, "owner": {"id": 929}, "assignee": {"id": 99}}, "job": {"id": 357, "assignee": {"id": 1158}}, "organization": {"id": 1271}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 600}, "assignee": {"id": 502}, "project": {"id": 381, "owner": {"id": 752}, "assignee": {"id": 843}}, "task": {"id": 375, "owner": {"id": 960}, "assignee": {"id": 94}}, "job": {"id": 352, "assignee": {"id": 1169}}, "organization": {"id": 180}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 695}, "assignee": {"id": 535}, "project": {"id": 333, "owner": {"id": 775}, "assignee": {"id": 845}}, "task": {"id": 349, "owner": {"id": 940}, "assignee": {"id": 86}}, "job": {"id": 366, "assignee": {"id": 1194}}, "organization": {"id": 173}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 627}, "assignee": {"id": 525}, "project": {"id": 379, "owner": {"id": 739}, "assignee": {"id": 854}}, "task": {"id": 329, "owner": {"id": 968}, "assignee": {"id": 6}}, "job": {"id": 339, "assignee": {"id": 1132}}, "organization": {"id": 1273}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 672}, "assignee": {"id": 556}, "project": {"id": 338, "owner": {"id": 764}, "assignee": {"id": 817}}, "task": {"id": 319, "owner": {"id": 993}, "assignee": {"id": 20}}, "job": {"id": 307, "assignee": {"id": 1193}}, "organization": {"id": 1283}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 683}, "assignee": {"id": 506}, "project": {"id": 381, "owner": {"id": 727}, "assignee": {"id": 813}}, "task": {"id": 340, "owner": {"id": 984}, "assignee": {"id": 62}}, "job": {"id": 360, "assignee": {"id": 1117}}, "organization": {"id": 160}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 693}, "assignee": {"id": 564}, "project": {"id": 368, "owner": {"id": 791}, "assignee": {"id": 800}}, "task": {"id": 396, "owner": {"id": 981}, "assignee": {"id": 18}}, "job": {"id": 320, "assignee": {"id": 1143}}, "organization": {"id": 192}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 635}, "assignee": {"id": 518}, "project": {"id": 378, "owner": {"id": 722}, "assignee": {"id": 857}}, "task": {"id": 342, "owner": {"id": 906}, "assignee": {"id": 6}}, "job": {"id": 325, "assignee": {"id": 1152}}, "organization": {"id": 1292}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 641}, "assignee": {"id": 517}, "project": {"id": 301, "owner": {"id": 723}, "assignee": {"id": 809}}, "task": {"id": 386, "owner": {"id": 992}, "assignee": {"id": 42}}, "job": {"id": 302, "assignee": {"id": 1137}}, "organization": {"id": 1203}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 676}, "assignee": {"id": 526}, "project": {"id": 390, "owner": {"id": 701}, "assignee": {"id": 817}}, "task": {"id": 319, "owner": {"id": 935}, "assignee": {"id": 6}}, "job": {"id": 346, "assignee": {"id": 1184}}, "organization": {"id": 163}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 614}, "assignee": {"id": 520}, "project": {"id": 330, "owner": {"id": 768}, "assignee": {"id": 847}}, "task": {"id": 393, "owner": {"id": 967}, "assignee": {"id": 79}}, "job": {"id": 389, "assignee": {"id": 1195}}, "organization": {"id": 193}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 650}, "assignee": {"id": 595}, "project": {"id": 366, "owner": {"id": 752}, "assignee": {"id": 845}}, "task": {"id": 302, "owner": {"id": 909}, "assignee": {"id": 55}}, "job": {"id": 314, "assignee": {"id": 1106}}, "organization": {"id": 1286}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 670}, "assignee": {"id": 535}, "project": {"id": 398, "owner": {"id": 792}, "assignee": {"id": 822}}, "task": {"id": 310, "owner": {"id": 978}, "assignee": {"id": 14}}, "job": {"id": 332, "assignee": {"id": 1127}}, "organization": {"id": 1220}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 656}, "assignee": {"id": 577}, "project": {"id": 315, "owner": {"id": 705}, "assignee": {"id": 848}}, "task": {"id": 352, "owner": {"id": 992}, "assignee": {"id": 82}}, "job": {"id": 358, "assignee": {"id": 1164}}, "organization": {"id": 147}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 698}, "assignee": {"id": 506}, "project": {"id": 343, "owner": {"id": 762}, "assignee": {"id": 804}}, "task": {"id": 389, "owner": {"id": 908}, "assignee": {"id": 68}}, "job": {"id": 318, "assignee": {"id": 1140}}, "organization": {"id": 127}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 666}, "assignee": {"id": 588}, "project": {"id": 306, "owner": {"id": 798}, "assignee": {"id": 828}}, "task": {"id": 314, "owner": {"id": 944}, "assignee": {"id": 34}}, "job": {"id": 311, "assignee": {"id": 1167}}, "organization": {"id": 1261}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 620}, "assignee": {"id": 565}, "project": {"id": 398, "owner": {"id": 799}, "assignee": {"id": 851}}, "task": {"id": 313, "owner": {"id": 907}, "assignee": {"id": 24}}, "job": {"id": 322, "assignee": {"id": 1152}}, "organization": {"id": 1237}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 675}, "assignee": {"id": 567}, "project": {"id": 318, "owner": {"id": 720}, "assignee": {"id": 837}}, "task": {"id": 368, "owner": {"id": 962}, "assignee": {"id": 42}}, "job": {"id": 388, "assignee": {"id": 1106}}, "organization": {"id": 118}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 655}, "assignee": {"id": 559}, "project": {"id": 341, "owner": {"id": 770}, "assignee": {"id": 846}}, "task": {"id": 352, "owner": {"id": 915}, "assignee": {"id": 80}}, "job": {"id": 359, "assignee": {"id": 1172}}, "organization": {"id": 125}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 639}, "assignee": {"id": 578}, "project": {"id": 347, "owner": {"id": 706}, "assignee": {"id": 895}}, "task": {"id": 355, "owner": {"id": 944}, "assignee": {"id": 12}}, "job": {"id": 322, "assignee": {"id": 1149}}, "organization": {"id": 1270}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 604}, "assignee": {"id": 571}, "project": {"id": 374, "owner": {"id": 704}, "assignee": {"id": 805}}, "task": {"id": 360, "owner": {"id": 997}, "assignee": {"id": 64}}, "job": {"id": 364, "assignee": {"id": 1189}}, "organization": {"id": 1283}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 662}, "assignee": {"id": 576}, "project": {"id": 310, "owner": {"id": 714}, "assignee": {"id": 816}}, "task": {"id": 309, "owner": {"id": 994}, "assignee": {"id": 70}}, "job": {"id": 398, "assignee": {"id": 1108}}, "organization": {"id": 192}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 656}, "assignee": {"id": 542}, "project": {"id": 361, "owner": {"id": 754}, "assignee": {"id": 899}}, "task": {"id": 375, "owner": {"id": 908}, "assignee": {"id": 46}}, "job": {"id": 369, "assignee": {"id": 1148}}, "organization": {"id": 191}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 614}, "assignee": {"id": 576}, "project": {"id": 364, "owner": {"id": 711}, "assignee": {"id": 831}}, "task": {"id": 389, "owner": {"id": 974}, "assignee": {"id": 28}}, "job": {"id": 366, "assignee": {"id": 1189}}, "organization": {"id": 1225}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 651}, "assignee": {"id": 536}, "project": {"id": 391, "owner": {"id": 763}, "assignee": {"id": 846}}, "task": {"id": 331, "owner": {"id": 955}, "assignee": {"id": 93}}, "job": {"id": 329, "assignee": {"id": 1153}}, "organization": {"id": 1223}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 638}, "assignee": {"id": 500}, "project": {"id": 315, "owner": {"id": 755}, "assignee": {"id": 804}}, "task": {"id": 355, "owner": {"id": 998}, "assignee": {"id": 23}}, "job": {"id": 326, "assignee": {"id": 1118}}, "organization": {"id": 134}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 675}, "assignee": {"id": 588}, "project": {"id": 352, "owner": {"id": 726}, "assignee": {"id": 841}}, "task": {"id": 349, "owner": {"id": 975}, "assignee": {"id": 65}}, "job": {"id": 321, "assignee": {"id": 1161}}, "organization": {"id": 132}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 660}, "assignee": {"id": 577}, "project": {"id": 351, "owner": {"id": 773}, "assignee": {"id": 895}}, "task": {"id": 372, "owner": {"id": 951}, "assignee": {"id": 80}}, "job": {"id": 321, "assignee": {"id": 1123}}, "organization": {"id": 1249}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 615}, "assignee": {"id": 530}, "project": {"id": 365, "owner": {"id": 746}, "assignee": {"id": 890}}, "task": {"id": 339, "owner": {"id": 952}, "assignee": {"id": 36}}, "job": {"id": 352, "assignee": {"id": 1159}}, "organization": {"id": 1286}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 637}, "assignee": {"id": 552}, "project": {"id": 302, "owner": {"id": 734}, "assignee": {"id": 835}}, "task": {"id": 365, "owner": {"id": 933}, "assignee": {"id": 37}}, "job": {"id": 369, "assignee": {"id": 1162}}, "organization": {"id": 192}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 612}, "assignee": {"id": 572}, "project": {"id": 363, "owner": {"id": 774}, "assignee": {"id": 854}}, "task": {"id": 333, "owner": {"id": 970}, "assignee": {"id": 59}}, "job": {"id": 341, "assignee": {"id": 1132}}, "organization": {"id": 168}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 695}, "assignee": {"id": 518}, "project": {"id": 335, "owner": {"id": 705}, "assignee": {"id": 854}}, "task": {"id": 340, "owner": {"id": 936}, "assignee": {"id": 41}}, "job": {"id": 361, "assignee": {"id": 1100}}, "organization": {"id": 1275}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 627}, "assignee": {"id": 562}, "project": {"id": 399, "owner": {"id": 711}, "assignee": {"id": 886}}, "task": {"id": 336, "owner": {"id": 972}, "assignee": {"id": 20}}, "job": {"id": 371, "assignee": {"id": 1164}}, "organization": {"id": 1294}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 617}, "assignee": {"id": 588}, "project": {"id": 318, "owner": {"id": 792}, "assignee": {"id": 845}}, "task": {"id": 324, "owner": {"id": 959}, "assignee": {"id": 79}}, "job": {"id": 342, "assignee": {"id": 1192}}, "organization": {"id": 128}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 639}, "assignee": {"id": 593}, "project": {"id": 380, "owner": {"id": 769}, "assignee": {"id": 839}}, "task": {"id": 302, "owner": {"id": 935}, "assignee": {"id": 25}}, "job": {"id": 371, "assignee": {"id": 1188}}, "organization": {"id": 168}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 627}, "assignee": {"id": 533}, "project": {"id": 333, "owner": {"id": 776}, "assignee": {"id": 851}}, "task": {"id": 337, "owner": {"id": 917}, "assignee": {"id": 15}}, "job": {"id": 301, "assignee": {"id": 1194}}, "organization": {"id": 1272}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 644}, "assignee": {"id": 572}, "project": {"id": 301, "owner": {"id": 746}, "assignee": {"id": 806}}, "task": {"id": 396, "owner": {"id": 922}, "assignee": {"id": 80}}, "job": {"id": 388, "assignee": {"id": 1130}}, "organization": {"id": 1264}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 659}, "assignee": {"id": 532}, "project": {"id": 386, "owner": {"id": 779}, "assignee": {"id": 815}}, "task": {"id": 369, "owner": {"id": 909}, "assignee": {"id": 23}}, "job": {"id": 329, "assignee": {"id": 1137}}, "organization": {"id": 170}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 607}, "assignee": {"id": 539}, "project": {"id": 372, "owner": {"id": 787}, "assignee": {"id": 895}}, "task": {"id": 361, "owner": {"id": 942}, "assignee": {"id": 85}}, "job": {"id": 351, "assignee": {"id": 1153}}, "organization": {"id": 124}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 695}, "assignee": {"id": 514}, "project": {"id": 329, "owner": {"id": 754}, "assignee": {"id": 886}}, "task": {"id": 344, "owner": {"id": 990}, "assignee": {"id": 22}}, "job": {"id": 329, "assignee": {"id": 1152}}, "organization": {"id": 1231}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 698}, "assignee": {"id": 554}, "project": {"id": 382, "owner": {"id": 799}, "assignee": {"id": 809}}, "task": {"id": 360, "owner": {"id": 902}, "assignee": {"id": 57}}, "job": {"id": 385, "assignee": {"id": 1170}}, "organization": {"id": 1250}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 636}, "assignee": {"id": 552}, "project": {"id": 307, "owner": {"id": 768}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 974}, "assignee": {"id": 31}}, "job": {"id": 399, "assignee": {"id": 1136}}, "organization": {"id": 127}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 675}, "assignee": {"id": 577}, "project": {"id": 337, "owner": {"id": 714}, "assignee": {"id": 812}}, "task": {"id": 370, "owner": {"id": 949}, "assignee": {"id": 48}}, "job": {"id": 346, "assignee": {"id": 1118}}, "organization": {"id": 149}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 688}, "assignee": {"id": 555}, "project": {"id": 342, "owner": {"id": 796}, "assignee": {"id": 836}}, "task": {"id": 391, "owner": {"id": 927}, "assignee": {"id": 69}}, "job": {"id": 397, "assignee": {"id": 1121}}, "organization": {"id": 1203}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 642}, "assignee": {"id": 562}, "project": {"id": 363, "owner": {"id": 705}, "assignee": {"id": 853}}, "task": {"id": 315, "owner": {"id": 980}, "assignee": {"id": 61}}, "job": {"id": 311, "assignee": {"id": 1180}}, "organization": {"id": 1232}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 641}, "assignee": {"id": 578}, "project": {"id": 312, "owner": {"id": 796}, "assignee": {"id": 830}}, "task": {"id": 301, "owner": {"id": 933}, "assignee": {"id": 39}}, "job": {"id": 366, "assignee": {"id": 1191}}, "organization": {"id": 175}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 682}, "assignee": {"id": 593}, "project": {"id": 381, "owner": {"id": 798}, "assignee": {"id": 894}}, "task": {"id": 367, "owner": {"id": 909}, "assignee": {"id": 99}}, "job": {"id": 376, "assignee": {"id": 1175}}, "organization": {"id": 150}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 647}, "assignee": {"id": 549}, "project": {"id": 314, "owner": {"id": 777}, "assignee": {"id": 864}}, "task": {"id": 373, "owner": {"id": 931}, "assignee": {"id": 52}}, "job": {"id": 334, "assignee": {"id": 1109}}, "organization": {"id": 1287}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 600}, "assignee": {"id": 548}, "project": {"id": 382, "owner": {"id": 784}, "assignee": {"id": 832}}, "task": {"id": 303, "owner": {"id": 939}, "assignee": {"id": 54}}, "job": {"id": 385, "assignee": {"id": 1146}}, "organization": {"id": 1279}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 694}, "assignee": {"id": 587}, "project": {"id": 364, "owner": {"id": 718}, "assignee": {"id": 815}}, "task": {"id": 307, "owner": {"id": 990}, "assignee": {"id": 12}}, "job": {"id": 339, "assignee": {"id": 1130}}, "organization": {"id": 109}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 695}, "assignee": {"id": 562}, "project": {"id": 343, "owner": {"id": 778}, "assignee": {"id": 891}}, "task": {"id": 352, "owner": {"id": 910}, "assignee": {"id": 66}}, "job": {"id": 346, "assignee": {"id": 1102}}, "organization": {"id": 104}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 694}, "assignee": {"id": 556}, "project": {"id": 308, "owner": {"id": 768}, "assignee": {"id": 872}}, "task": {"id": 331, "owner": {"id": 981}, "assignee": {"id": 34}}, "job": {"id": 378, "assignee": {"id": 1197}}, "organization": {"id": 1201}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 689}, "assignee": {"id": 596}, "project": {"id": 347, "owner": {"id": 721}, "assignee": {"id": 870}}, "task": {"id": 321, "owner": {"id": 903}, "assignee": {"id": 79}}, "job": {"id": 384, "assignee": {"id": 1158}}, "organization": {"id": 1291}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 684}, "assignee": {"id": 519}, "project": {"id": 315, "owner": {"id": 796}, "assignee": {"id": 865}}, "task": {"id": 370, "owner": {"id": 924}, "assignee": {"id": 74}}, "job": {"id": 335, "assignee": {"id": 1126}}, "organization": {"id": 115}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 622}, "assignee": {"id": 599}, "project": {"id": 380, "owner": {"id": 732}, "assignee": {"id": 896}}, "task": {"id": 399, "owner": {"id": 951}, "assignee": {"id": 92}}, "job": {"id": 310, "assignee": {"id": 1123}}, "organization": {"id": 165}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 650}, "assignee": {"id": 540}, "project": {"id": 327, "owner": {"id": 756}, "assignee": {"id": 824}}, "task": {"id": 360, "owner": {"id": 918}, "assignee": {"id": 79}}, "job": {"id": 376, "assignee": {"id": 1118}}, "organization": {"id": 1242}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 642}, "assignee": {"id": 558}, "project": {"id": 304, "owner": {"id": 765}, "assignee": {"id": 885}}, "task": {"id": 382, "owner": {"id": 997}, "assignee": {"id": 59}}, "job": {"id": 330, "assignee": {"id": 1185}}, "organization": {"id": 1243}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 606}, "assignee": {"id": 589}, "project": {"id": 353, "owner": {"id": 757}, "assignee": {"id": 843}}, "task": {"id": 303, "owner": {"id": 979}, "assignee": {"id": 42}}, "job": {"id": 352, "assignee": {"id": 1192}}, "organization": {"id": 125}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 608}, "assignee": {"id": 592}, "project": {"id": 343, "owner": {"id": 714}, "assignee": {"id": 828}}, "task": {"id": 398, "owner": {"id": 997}, "assignee": {"id": 7}}, "job": {"id": 329, "assignee": {"id": 1183}}, "organization": {"id": 194}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 619}, "assignee": {"id": 519}, "project": {"id": 378, "owner": {"id": 727}, "assignee": {"id": 872}}, "task": {"id": 308, "owner": {"id": 951}, "assignee": {"id": 92}}, "job": {"id": 396, "assignee": {"id": 1167}}, "organization": {"id": 1289}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 674}, "assignee": {"id": 546}, "project": {"id": 312, "owner": {"id": 704}, "assignee": {"id": 846}}, "task": {"id": 311, "owner": {"id": 958}, "assignee": {"id": 68}}, "job": {"id": 328, "assignee": {"id": 1159}}, "organization": {"id": 1200}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 632}, "assignee": {"id": 590}, "project": {"id": 356, "owner": {"id": 749}, "assignee": {"id": 815}}, "task": {"id": 396, "owner": {"id": 967}, "assignee": {"id": 54}}, "job": {"id": 377, "assignee": {"id": 1149}}, "organization": {"id": 149}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 606}, "assignee": {"id": 512}, "project": {"id": 316, "owner": {"id": 762}, "assignee": {"id": 818}}, "task": {"id": 346, "owner": {"id": 991}, "assignee": {"id": 6}}, "job": {"id": 316, "assignee": {"id": 1144}}, "organization": {"id": 172}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 638}, "assignee": {"id": 513}, "project": {"id": 397, "owner": {"id": 719}, "assignee": {"id": 886}}, "task": {"id": 389, "owner": {"id": 986}, "assignee": {"id": 88}}, "job": {"id": 386, "assignee": {"id": 1175}}, "organization": {"id": 1262}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 662}, "assignee": {"id": 511}, "project": {"id": 346, "owner": {"id": 743}, "assignee": {"id": 846}}, "task": {"id": 361, "owner": {"id": 909}, "assignee": {"id": 34}}, "job": {"id": 310, "assignee": {"id": 1152}}, "organization": {"id": 1265}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 654}, "assignee": {"id": 512}, "project": {"id": 336, "owner": {"id": 717}, "assignee": {"id": 865}}, "task": {"id": 391, "owner": {"id": 992}, "assignee": {"id": 37}}, "job": {"id": 305, "assignee": {"id": 1151}}, "organization": {"id": 150}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 669}, "assignee": {"id": 599}, "project": {"id": 396, "owner": {"id": 778}, "assignee": {"id": 889}}, "task": {"id": 353, "owner": {"id": 906}, "assignee": {"id": 85}}, "job": {"id": 303, "assignee": {"id": 1148}}, "organization": {"id": 193}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 620}, "assignee": {"id": 553}, "project": {"id": 354, "owner": {"id": 717}, "assignee": {"id": 879}}, "task": {"id": 367, "owner": {"id": 900}, "assignee": {"id": 85}}, "job": {"id": 315, "assignee": {"id": 1172}}, "organization": {"id": 1262}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 663}, "assignee": {"id": 532}, "project": {"id": 352, "owner": {"id": 757}, "assignee": {"id": 820}}, "task": {"id": 345, "owner": {"id": 999}, "assignee": {"id": 86}}, "job": {"id": 325, "assignee": {"id": 1117}}, "organization": {"id": 1224}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 644}, "assignee": {"id": 579}, "project": {"id": 336, "owner": {"id": 743}, "assignee": {"id": 831}}, "task": {"id": 358, "owner": {"id": 989}, "assignee": {"id": 93}}, "job": {"id": 306, "assignee": {"id": 1140}}, "organization": {"id": 179}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 614}, "assignee": {"id": 580}, "project": {"id": 333, "owner": {"id": 773}, "assignee": {"id": 809}}, "task": {"id": 367, "owner": {"id": 971}, "assignee": {"id": 16}}, "job": {"id": 372, "assignee": {"id": 1188}}, "organization": {"id": 173}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 644}, "assignee": {"id": 598}, "project": {"id": 300, "owner": {"id": 766}, "assignee": {"id": 804}}, "task": {"id": 343, "owner": {"id": 946}, "assignee": {"id": 57}}, "job": {"id": 360, "assignee": {"id": 1187}}, "organization": {"id": 1291}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 679}, "assignee": {"id": 566}, "project": {"id": 370, "owner": {"id": 793}, "assignee": {"id": 846}}, "task": {"id": 397, "owner": {"id": 953}, "assignee": {"id": 46}}, "job": {"id": 343, "assignee": {"id": 1161}}, "organization": {"id": 1262}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 603}, "assignee": {"id": 526}, "project": {"id": 300, "owner": {"id": 703}, "assignee": {"id": 839}}, "task": {"id": 349, "owner": {"id": 963}, "assignee": {"id": 64}}, "job": {"id": 311, "assignee": {"id": 1152}}, "organization": {"id": 112}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 637}, "assignee": {"id": 539}, "project": {"id": 340, "owner": {"id": 764}, "assignee": {"id": 809}}, "task": {"id": 368, "owner": {"id": 905}, "assignee": {"id": 92}}, "job": {"id": 305, "assignee": {"id": 1196}}, "organization": {"id": 120}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 644}, "assignee": {"id": 561}, "project": {"id": 316, "owner": {"id": 702}, "assignee": {"id": 887}}, "task": {"id": 377, "owner": {"id": 941}, "assignee": {"id": 49}}, "job": {"id": 303, "assignee": {"id": 1112}}, "organization": {"id": 1213}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 638}, "assignee": {"id": 515}, "project": {"id": 389, "owner": {"id": 735}, "assignee": {"id": 809}}, "task": {"id": 315, "owner": {"id": 983}, "assignee": {"id": 24}}, "job": {"id": 354, "assignee": {"id": 1140}}, "organization": {"id": 1281}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 650}, "assignee": {"id": 552}, "project": {"id": 330, "owner": {"id": 771}, "assignee": {"id": 881}}, "task": {"id": 324, "owner": {"id": 998}, "assignee": {"id": 37}}, "job": {"id": 358, "assignee": {"id": 1147}}, "organization": {"id": 155}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 674}, "assignee": {"id": 537}, "project": {"id": 313, "owner": {"id": 791}, "assignee": {"id": 873}}, "task": {"id": 363, "owner": {"id": 948}, "assignee": {"id": 87}}, "job": {"id": 396, "assignee": {"id": 1193}}, "organization": {"id": 109}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 645}, "assignee": {"id": 574}, "project": {"id": 321, "owner": {"id": 758}, "assignee": {"id": 802}}, "task": {"id": 329, "owner": {"id": 952}, "assignee": {"id": 78}}, "job": {"id": 338, "assignee": {"id": 1154}}, "organization": {"id": 1253}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 676}, "assignee": {"id": 581}, "project": {"id": 328, "owner": {"id": 799}, "assignee": {"id": 812}}, "task": {"id": 321, "owner": {"id": 961}, "assignee": {"id": 95}}, "job": {"id": 366, "assignee": {"id": 1111}}, "organization": {"id": 1233}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 663}, "assignee": {"id": 524}, "project": {"id": 316, "owner": {"id": 715}, "assignee": {"id": 864}}, "task": {"id": 334, "owner": {"id": 975}, "assignee": {"id": 39}}, "job": {"id": 321, "assignee": {"id": 1113}}, "organization": {"id": 182}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 652}, "assignee": {"id": 541}, "project": {"id": 302, "owner": {"id": 753}, "assignee": {"id": 887}}, "task": {"id": 307, "owner": {"id": 905}, "assignee": {"id": 5}}, "job": {"id": 309, "assignee": {"id": 1169}}, "organization": {"id": 150}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 685}, "assignee": {"id": 597}, "project": {"id": 319, "owner": {"id": 745}, "assignee": {"id": 815}}, "task": {"id": 319, "owner": {"id": 979}, "assignee": {"id": 93}}, "job": {"id": 365, "assignee": {"id": 1143}}, "organization": {"id": 1210}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 696}, "assignee": {"id": 513}, "project": {"id": 389, "owner": {"id": 747}, "assignee": {"id": 864}}, "task": {"id": 317, "owner": {"id": 975}, "assignee": {"id": 20}}, "job": {"id": 323, "assignee": {"id": 1150}}, "organization": {"id": 1248}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 680}, "assignee": {"id": 597}, "project": {"id": 356, "owner": {"id": 796}, "assignee": {"id": 839}}, "task": {"id": 327, "owner": {"id": 963}, "assignee": {"id": 1096}}, "job": {"id": 324, "assignee": {"id": 71}}, "organization": {"id": 179}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 605}, "assignee": {"id": 546}, "project": {"id": 332, "owner": {"id": 709}, "assignee": {"id": 839}}, "task": {"id": 382, "owner": {"id": 911}, "assignee": {"id": 1007}}, "job": {"id": 325, "assignee": {"id": 86}}, "organization": {"id": 157}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 672}, "assignee": {"id": 519}, "project": {"id": 361, "owner": {"id": 745}, "assignee": {"id": 813}}, "task": {"id": 375, "owner": {"id": 955}, "assignee": {"id": 1071}}, "job": {"id": 364, "assignee": {"id": 12}}, "organization": {"id": 1278}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 667}, "assignee": {"id": 516}, "project": {"id": 358, "owner": {"id": 736}, "assignee": {"id": 860}}, "task": {"id": 320, "owner": {"id": 935}, "assignee": {"id": 1014}}, "job": {"id": 349, "assignee": {"id": 11}}, "organization": {"id": 1222}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 695}, "assignee": {"id": 513}, "project": {"id": 348, "owner": {"id": 745}, "assignee": {"id": 847}}, "task": {"id": 336, "owner": {"id": 902}, "assignee": {"id": 1032}}, "job": {"id": 371, "assignee": {"id": 78}}, "organization": {"id": 174}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 658}, "assignee": {"id": 518}, "project": {"id": 349, "owner": {"id": 731}, "assignee": {"id": 868}}, "task": {"id": 326, "owner": {"id": 983}, "assignee": {"id": 1002}}, "job": {"id": 313, "assignee": {"id": 22}}, "organization": {"id": 182}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 699}, "assignee": {"id": 530}, "project": {"id": 310, "owner": {"id": 755}, "assignee": {"id": 878}}, "task": {"id": 301, "owner": {"id": 964}, "assignee": {"id": 1017}}, "job": {"id": 388, "assignee": {"id": 86}}, "organization": {"id": 1295}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 666}, "assignee": {"id": 530}, "project": {"id": 392, "owner": {"id": 734}, "assignee": {"id": 825}}, "task": {"id": 350, "owner": {"id": 964}, "assignee": {"id": 1042}}, "job": {"id": 336, "assignee": {"id": 83}}, "organization": {"id": 1276}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 623}, "assignee": {"id": 548}, "project": {"id": 363, "owner": {"id": 777}, "assignee": {"id": 832}}, "task": {"id": 378, "owner": {"id": 971}, "assignee": {"id": 1021}}, "job": {"id": 314, "assignee": {"id": 64}}, "organization": {"id": 194}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 637}, "assignee": {"id": 513}, "project": {"id": 397, "owner": {"id": 727}, "assignee": {"id": 834}}, "task": {"id": 379, "owner": {"id": 961}, "assignee": {"id": 1054}}, "job": {"id": 386, "assignee": {"id": 91}}, "organization": {"id": 119}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 665}, "assignee": {"id": 550}, "project": {"id": 341, "owner": {"id": 781}, "assignee": {"id": 840}}, "task": {"id": 387, "owner": {"id": 965}, "assignee": {"id": 1010}}, "job": {"id": 300, "assignee": {"id": 9}}, "organization": {"id": 1272}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 612}, "assignee": {"id": 587}, "project": {"id": 305, "owner": {"id": 783}, "assignee": {"id": 897}}, "task": {"id": 312, "owner": {"id": 912}, "assignee": {"id": 1021}}, "job": {"id": 338, "assignee": {"id": 66}}, "organization": {"id": 1217}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 626}, "assignee": {"id": 559}, "project": {"id": 359, "owner": {"id": 766}, "assignee": {"id": 834}}, "task": {"id": 305, "owner": {"id": 901}, "assignee": {"id": 1085}}, "job": {"id": 370, "assignee": {"id": 8}}, "organization": {"id": 114}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 600}, "assignee": {"id": 504}, "project": {"id": 396, "owner": {"id": 702}, "assignee": {"id": 870}}, "task": {"id": 366, "owner": {"id": 951}, "assignee": {"id": 1033}}, "job": {"id": 323, "assignee": {"id": 30}}, "organization": {"id": 141}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 632}, "assignee": {"id": 529}, "project": {"id": 343, "owner": {"id": 725}, "assignee": {"id": 871}}, "task": {"id": 331, "owner": {"id": 936}, "assignee": {"id": 1016}}, "job": {"id": 361, "assignee": {"id": 43}}, "organization": {"id": 1292}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 618}, "assignee": {"id": 596}, "project": {"id": 347, "owner": {"id": 748}, "assignee": {"id": 812}}, "task": {"id": 371, "owner": {"id": 972}, "assignee": {"id": 1033}}, "job": {"id": 324, "assignee": {"id": 11}}, "organization": {"id": 1263}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 645}, "assignee": {"id": 563}, "project": {"id": 364, "owner": {"id": 755}, "assignee": {"id": 801}}, "task": {"id": 368, "owner": {"id": 945}, "assignee": {"id": 1030}}, "job": {"id": 347, "assignee": {"id": 13}}, "organization": {"id": 137}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 628}, "assignee": {"id": 555}, "project": {"id": 369, "owner": {"id": 792}, "assignee": {"id": 813}}, "task": {"id": 337, "owner": {"id": 977}, "assignee": {"id": 1011}}, "job": {"id": 339, "assignee": {"id": 28}}, "organization": {"id": 142}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 621}, "assignee": {"id": 550}, "project": {"id": 384, "owner": {"id": 785}, "assignee": {"id": 843}}, "task": {"id": 333, "owner": {"id": 928}, "assignee": {"id": 1065}}, "job": {"id": 301, "assignee": {"id": 19}}, "organization": {"id": 1234}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 603}, "assignee": {"id": 546}, "project": {"id": 324, "owner": {"id": 773}, "assignee": {"id": 831}}, "task": {"id": 306, "owner": {"id": 921}, "assignee": {"id": 1015}}, "job": {"id": 387, "assignee": {"id": 0}}, "organization": {"id": 1246}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 690}, "assignee": {"id": 511}, "project": {"id": 337, "owner": {"id": 757}, "assignee": {"id": 870}}, "task": {"id": 337, "owner": {"id": 971}, "assignee": {"id": 1001}}, "job": {"id": 304, "assignee": {"id": 87}}, "organization": {"id": 157}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 628}, "assignee": {"id": 528}, "project": {"id": 343, "owner": {"id": 701}, "assignee": {"id": 867}}, "task": {"id": 316, "owner": {"id": 938}, "assignee": {"id": 1008}}, "job": {"id": 379, "assignee": {"id": 24}}, "organization": {"id": 120}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 629}, "assignee": {"id": 542}, "project": {"id": 389, "owner": {"id": 773}, "assignee": {"id": 867}}, "task": {"id": 398, "owner": {"id": 955}, "assignee": {"id": 1068}}, "job": {"id": 358, "assignee": {"id": 5}}, "organization": {"id": 1261}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 674}, "assignee": {"id": 539}, "project": {"id": 308, "owner": {"id": 789}, "assignee": {"id": 820}}, "task": {"id": 348, "owner": {"id": 973}, "assignee": {"id": 1027}}, "job": {"id": 396, "assignee": {"id": 76}}, "organization": {"id": 1276}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 637}, "assignee": {"id": 528}, "project": {"id": 385, "owner": {"id": 740}, "assignee": {"id": 894}}, "task": {"id": 301, "owner": {"id": 918}, "assignee": {"id": 1090}}, "job": {"id": 323, "assignee": {"id": 80}}, "organization": {"id": 126}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 671}, "assignee": {"id": 575}, "project": {"id": 375, "owner": {"id": 795}, "assignee": {"id": 866}}, "task": {"id": 322, "owner": {"id": 975}, "assignee": {"id": 1025}}, "job": {"id": 360, "assignee": {"id": 96}}, "organization": {"id": 144}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 648}, "assignee": {"id": 567}, "project": {"id": 366, "owner": {"id": 761}, "assignee": {"id": 890}}, "task": {"id": 315, "owner": {"id": 906}, "assignee": {"id": 1026}}, "job": {"id": 343, "assignee": {"id": 40}}, "organization": {"id": 1204}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 668}, "assignee": {"id": 502}, "project": {"id": 312, "owner": {"id": 778}, "assignee": {"id": 815}}, "task": {"id": 302, "owner": {"id": 964}, "assignee": {"id": 1064}}, "job": {"id": 312, "assignee": {"id": 7}}, "organization": {"id": 1220}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 682}, "assignee": {"id": 593}, "project": {"id": 390, "owner": {"id": 712}, "assignee": {"id": 849}}, "task": {"id": 320, "owner": {"id": 902}, "assignee": {"id": 1077}}, "job": {"id": 389, "assignee": {"id": 70}}, "organization": {"id": 198}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 664}, "assignee": {"id": 583}, "project": {"id": 399, "owner": {"id": 738}, "assignee": {"id": 820}}, "task": {"id": 397, "owner": {"id": 934}, "assignee": {"id": 1000}}, "job": {"id": 326, "assignee": {"id": 69}}, "organization": {"id": 138}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 611}, "assignee": {"id": 509}, "project": {"id": 371, "owner": {"id": 708}, "assignee": {"id": 892}}, "task": {"id": 349, "owner": {"id": 935}, "assignee": {"id": 1076}}, "job": {"id": 382, "assignee": {"id": 10}}, "organization": {"id": 1284}}} +} + +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": 161, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 642}, "assignee": {"id": 502}, "project": {"id": 366, "owner": {"id": 718}, "assignee": {"id": 886}}, "task": {"id": 324, "owner": {"id": 909}, "assignee": {"id": 1078}}, "job": {"id": 390, "assignee": {"id": 38}}, "organization": {"id": 1275}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 626}, "assignee": {"id": 572}, "project": {"id": 345, "owner": {"id": 747}, "assignee": {"id": 814}}, "task": {"id": 321, "owner": {"id": 914}, "assignee": {"id": 1025}}, "job": {"id": 301, "assignee": {"id": 65}}, "organization": {"id": 109}}} +} + +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": 100, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 675}, "assignee": {"id": 505}, "project": {"id": 385, "owner": {"id": 794}, "assignee": {"id": 833}}, "task": {"id": 325, "owner": {"id": 948}, "assignee": {"id": 1014}}, "job": {"id": 302, "assignee": {"id": 35}}, "organization": {"id": 100}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 633}, "assignee": {"id": 589}, "project": {"id": 315, "owner": {"id": 798}, "assignee": {"id": 837}}, "task": {"id": 325, "owner": {"id": 906}, "assignee": {"id": 1024}}, "job": {"id": 308, "assignee": {"id": 23}}, "organization": {"id": 1216}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 688}, "assignee": {"id": 526}, "project": {"id": 318, "owner": {"id": 776}, "assignee": {"id": 806}}, "task": {"id": 338, "owner": {"id": 980}, "assignee": {"id": 1027}}, "job": {"id": 309, "assignee": {"id": 6}}, "organization": {"id": 1299}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 626}, "assignee": {"id": 577}, "project": {"id": 376, "owner": {"id": 795}, "assignee": {"id": 883}}, "task": {"id": 303, "owner": {"id": 935}, "assignee": {"id": 1032}}, "job": {"id": 312, "assignee": {"id": 12}}, "organization": {"id": 174}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 640}, "assignee": {"id": 546}, "project": {"id": 381, "owner": {"id": 736}, "assignee": {"id": 805}}, "task": {"id": 384, "owner": {"id": 975}, "assignee": {"id": 1044}}, "job": {"id": 352, "assignee": {"id": 54}}, "organization": {"id": 137}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 686}, "assignee": {"id": 562}, "project": {"id": 313, "owner": {"id": 791}, "assignee": {"id": 897}}, "task": {"id": 384, "owner": {"id": 905}, "assignee": {"id": 1047}}, "job": {"id": 369, "assignee": {"id": 68}}, "organization": {"id": 1213}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 629}, "assignee": {"id": 528}, "project": {"id": 367, "owner": {"id": 749}, "assignee": {"id": 805}}, "task": {"id": 350, "owner": {"id": 938}, "assignee": {"id": 1010}}, "job": {"id": 359, "assignee": {"id": 11}}, "organization": {"id": 1286}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 630}, "assignee": {"id": 526}, "project": {"id": 324, "owner": {"id": 794}, "assignee": {"id": 806}}, "task": {"id": 336, "owner": {"id": 982}, "assignee": {"id": 1031}}, "job": {"id": 349, "assignee": {"id": 90}}, "organization": {"id": 197}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 673}, "assignee": {"id": 517}, "project": {"id": 323, "owner": {"id": 789}, "assignee": {"id": 854}}, "task": {"id": 388, "owner": {"id": 911}, "assignee": {"id": 1064}}, "job": {"id": 327, "assignee": {"id": 75}}, "organization": {"id": 174}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 600}, "assignee": {"id": 596}, "project": {"id": 324, "owner": {"id": 726}, "assignee": {"id": 824}}, "task": {"id": 367, "owner": {"id": 960}, "assignee": {"id": 1014}}, "job": {"id": 305, "assignee": {"id": 21}}, "organization": {"id": 1287}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 601}, "assignee": {"id": 582}, "project": {"id": 323, "owner": {"id": 732}, "assignee": {"id": 850}}, "task": {"id": 320, "owner": {"id": 910}, "assignee": {"id": 1050}}, "job": {"id": 372, "assignee": {"id": 50}}, "organization": {"id": 1205}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 665}, "assignee": {"id": 546}, "project": {"id": 361, "owner": {"id": 730}, "assignee": {"id": 828}}, "task": {"id": 385, "owner": {"id": 942}, "assignee": {"id": 1021}}, "job": {"id": 389, "assignee": {"id": 60}}, "organization": {"id": 192}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 618}, "assignee": {"id": 522}, "project": {"id": 373, "owner": {"id": 756}, "assignee": {"id": 833}}, "task": {"id": 317, "owner": {"id": 946}, "assignee": {"id": 1003}}, "job": {"id": 319, "assignee": {"id": 84}}, "organization": {"id": 126}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 668}, "assignee": {"id": 528}, "project": {"id": 366, "owner": {"id": 720}, "assignee": {"id": 827}}, "task": {"id": 370, "owner": {"id": 966}, "assignee": {"id": 1028}}, "job": {"id": 328, "assignee": {"id": 55}}, "organization": {"id": 1275}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 685}, "assignee": {"id": 574}, "project": {"id": 305, "owner": {"id": 705}, "assignee": {"id": 865}}, "task": {"id": 306, "owner": {"id": 963}, "assignee": {"id": 1077}}, "job": {"id": 310, "assignee": {"id": 46}}, "organization": {"id": 1212}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 693}, "assignee": {"id": 536}, "project": {"id": 378, "owner": {"id": 758}, "assignee": {"id": 861}}, "task": {"id": 360, "owner": {"id": 945}, "assignee": {"id": 1080}}, "job": {"id": 377, "assignee": {"id": 75}}, "organization": {"id": 101}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 625}, "assignee": {"id": 544}, "project": {"id": 348, "owner": {"id": 732}, "assignee": {"id": 808}}, "task": {"id": 389, "owner": {"id": 909}, "assignee": {"id": 1041}}, "job": {"id": 382, "assignee": {"id": 92}}, "organization": {"id": 165}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 648}, "assignee": {"id": 550}, "project": {"id": 331, "owner": {"id": 705}, "assignee": {"id": 880}}, "task": {"id": 326, "owner": {"id": 961}, "assignee": {"id": 1053}}, "job": {"id": 390, "assignee": {"id": 2}}, "organization": {"id": 1230}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 612}, "assignee": {"id": 515}, "project": {"id": 304, "owner": {"id": 749}, "assignee": {"id": 852}}, "task": {"id": 331, "owner": {"id": 907}, "assignee": {"id": 1005}}, "job": {"id": 348, "assignee": {"id": 63}}, "organization": {"id": 1250}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 640}, "assignee": {"id": 561}, "project": {"id": 396, "owner": {"id": 722}, "assignee": {"id": 874}}, "task": {"id": 324, "owner": {"id": 982}, "assignee": {"id": 1054}}, "job": {"id": 362, "assignee": {"id": 16}}, "organization": {"id": 179}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 616}, "assignee": {"id": 522}, "project": {"id": 339, "owner": {"id": 770}, "assignee": {"id": 863}}, "task": {"id": 350, "owner": {"id": 990}, "assignee": {"id": 1054}}, "job": {"id": 373, "assignee": {"id": 38}}, "organization": {"id": 197}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 673}, "assignee": {"id": 577}, "project": {"id": 387, "owner": {"id": 743}, "assignee": {"id": 850}}, "task": {"id": 391, "owner": {"id": 921}, "assignee": {"id": 1030}}, "job": {"id": 361, "assignee": {"id": 64}}, "organization": {"id": 1249}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 646}, "assignee": {"id": 589}, "project": {"id": 334, "owner": {"id": 758}, "assignee": {"id": 824}}, "task": {"id": 354, "owner": {"id": 908}, "assignee": {"id": 1089}}, "job": {"id": 326, "assignee": {"id": 7}}, "organization": {"id": 1201}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 617}, "assignee": {"id": 583}, "project": {"id": 396, "owner": {"id": 765}, "assignee": {"id": 894}}, "task": {"id": 351, "owner": {"id": 972}, "assignee": {"id": 1067}}, "job": {"id": 397, "assignee": {"id": 55}}, "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": 7, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 661}, "assignee": {"id": 574}, "project": {"id": 339, "owner": {"id": 766}, "assignee": {"id": 872}}, "task": {"id": 392, "owner": {"id": 974}, "assignee": {"id": 1023}}, "job": {"id": 399, "assignee": {"id": 7}}, "organization": {"id": 152}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 668}, "assignee": {"id": 581}, "project": {"id": 363, "owner": {"id": 773}, "assignee": {"id": 830}}, "task": {"id": 342, "owner": {"id": 951}, "assignee": {"id": 1073}}, "job": {"id": 347, "assignee": {"id": 76}}, "organization": {"id": 1277}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 646}, "assignee": {"id": 578}, "project": {"id": 327, "owner": {"id": 738}, "assignee": {"id": 882}}, "task": {"id": 347, "owner": {"id": 928}, "assignee": {"id": 1003}}, "job": {"id": 351, "assignee": {"id": 82}}, "organization": {"id": 1254}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 629}, "assignee": {"id": 500}, "project": {"id": 314, "owner": {"id": 716}, "assignee": {"id": 886}}, "task": {"id": 397, "owner": {"id": 951}, "assignee": {"id": 1039}}, "job": {"id": 305, "assignee": {"id": 70}}, "organization": {"id": 186}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 664}, "assignee": {"id": 528}, "project": {"id": 392, "owner": {"id": 702}, "assignee": {"id": 870}}, "task": {"id": 366, "owner": {"id": 904}, "assignee": {"id": 1070}}, "job": {"id": 352, "assignee": {"id": 7}}, "organization": {"id": 192}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 625}, "assignee": {"id": 548}, "project": {"id": 373, "owner": {"id": 740}, "assignee": {"id": 828}}, "task": {"id": 322, "owner": {"id": 946}, "assignee": {"id": 1083}}, "job": {"id": 348, "assignee": {"id": 73}}, "organization": {"id": 1246}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 671}, "assignee": {"id": 562}, "project": {"id": 344, "owner": {"id": 771}, "assignee": {"id": 856}}, "task": {"id": 335, "owner": {"id": 940}, "assignee": {"id": 1049}}, "job": {"id": 388, "assignee": {"id": 28}}, "organization": {"id": 1218}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 624}, "assignee": {"id": 588}, "project": {"id": 311, "owner": {"id": 747}, "assignee": {"id": 878}}, "task": {"id": 397, "owner": {"id": 932}, "assignee": {"id": 1034}}, "job": {"id": 338, "assignee": {"id": 40}}, "organization": {"id": 142}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 605}, "assignee": {"id": 522}, "project": {"id": 322, "owner": {"id": 701}, "assignee": {"id": 868}}, "task": {"id": 327, "owner": {"id": 952}, "assignee": {"id": 1057}}, "job": {"id": 319, "assignee": {"id": 78}}, "organization": {"id": 188}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 681}, "assignee": {"id": 570}, "project": {"id": 355, "owner": {"id": 717}, "assignee": {"id": 883}}, "task": {"id": 318, "owner": {"id": 953}, "assignee": {"id": 1092}}, "job": {"id": 375, "assignee": {"id": 62}}, "organization": {"id": 1284}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 652}, "assignee": {"id": 503}, "project": {"id": 329, "owner": {"id": 784}, "assignee": {"id": 865}}, "task": {"id": 378, "owner": {"id": 976}, "assignee": {"id": 1098}}, "job": {"id": 320, "assignee": {"id": 21}}, "organization": {"id": 1250}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 682}, "assignee": {"id": 522}, "project": {"id": 367, "owner": {"id": 750}, "assignee": {"id": 864}}, "task": {"id": 306, "owner": {"id": 984}, "assignee": {"id": 1075}}, "job": {"id": 341, "assignee": {"id": 76}}, "organization": {"id": 197}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 659}, "assignee": {"id": 540}, "project": {"id": 350, "owner": {"id": 774}, "assignee": {"id": 873}}, "task": {"id": 373, "owner": {"id": 974}, "assignee": {"id": 1099}}, "job": {"id": 357, "assignee": {"id": 90}}, "organization": {"id": 194}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 634}, "assignee": {"id": 587}, "project": {"id": 399, "owner": {"id": 747}, "assignee": {"id": 887}}, "task": {"id": 332, "owner": {"id": 915}, "assignee": {"id": 1085}}, "job": {"id": 314, "assignee": {"id": 43}}, "organization": {"id": 1203}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 600}, "assignee": {"id": 545}, "project": {"id": 366, "owner": {"id": 742}, "assignee": {"id": 860}}, "task": {"id": 327, "owner": {"id": 952}, "assignee": {"id": 1099}}, "job": {"id": 361, "assignee": {"id": 66}}, "organization": {"id": 1266}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 632}, "assignee": {"id": 518}, "project": {"id": 368, "owner": {"id": 746}, "assignee": {"id": 815}}, "task": {"id": 352, "owner": {"id": 929}, "assignee": {"id": 1051}}, "job": {"id": 301, "assignee": {"id": 58}}, "organization": {"id": 161}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 615}, "assignee": {"id": 513}, "project": {"id": 355, "owner": {"id": 757}, "assignee": {"id": 870}}, "task": {"id": 358, "owner": {"id": 903}, "assignee": {"id": 1055}}, "job": {"id": 348, "assignee": {"id": 13}}, "organization": {"id": 137}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 649}, "assignee": {"id": 540}, "project": {"id": 321, "owner": {"id": 733}, "assignee": {"id": 893}}, "task": {"id": 300, "owner": {"id": 905}, "assignee": {"id": 1049}}, "job": {"id": 310, "assignee": {"id": 33}}, "organization": {"id": 1224}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 690}, "assignee": {"id": 577}, "project": {"id": 363, "owner": {"id": 794}, "assignee": {"id": 856}}, "task": {"id": 313, "owner": {"id": 948}, "assignee": {"id": 1078}}, "job": {"id": 354, "assignee": {"id": 46}}, "organization": {"id": 1234}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 629}, "assignee": {"id": 585}, "project": {"id": 384, "owner": {"id": 743}, "assignee": {"id": 838}}, "task": {"id": 389, "owner": {"id": 990}, "assignee": {"id": 1031}}, "job": {"id": 377, "assignee": {"id": 23}}, "organization": {"id": 106}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 626}, "assignee": {"id": 590}, "project": {"id": 385, "owner": {"id": 781}, "assignee": {"id": 819}}, "task": {"id": 344, "owner": {"id": 915}, "assignee": {"id": 1006}}, "job": {"id": 306, "assignee": {"id": 68}}, "organization": {"id": 104}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 677}, "assignee": {"id": 560}, "project": {"id": 330, "owner": {"id": 729}, "assignee": {"id": 878}}, "task": {"id": 361, "owner": {"id": 991}, "assignee": {"id": 1013}}, "job": {"id": 394, "assignee": {"id": 16}}, "organization": {"id": 1265}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 661}, "assignee": {"id": 543}, "project": {"id": 397, "owner": {"id": 700}, "assignee": {"id": 810}}, "task": {"id": 310, "owner": {"id": 939}, "assignee": {"id": 1029}}, "job": {"id": 306, "assignee": {"id": 47}}, "organization": {"id": 1244}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 678}, "assignee": {"id": 549}, "project": {"id": 366, "owner": {"id": 712}, "assignee": {"id": 827}}, "task": {"id": 352, "owner": {"id": 947}, "assignee": {"id": 1094}}, "job": {"id": 305, "assignee": {"id": 43}}, "organization": {"id": 101}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 635}, "assignee": {"id": 520}, "project": {"id": 342, "owner": {"id": 758}, "assignee": {"id": 854}}, "task": {"id": 391, "owner": {"id": 953}, "assignee": {"id": 1067}}, "job": {"id": 345, "assignee": {"id": 55}}, "organization": {"id": 188}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 659}, "assignee": {"id": 592}, "project": {"id": 366, "owner": {"id": 712}, "assignee": {"id": 871}}, "task": {"id": 397, "owner": {"id": 952}, "assignee": {"id": 1093}}, "job": {"id": 347, "assignee": {"id": 3}}, "organization": {"id": 1230}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 646}, "assignee": {"id": 541}, "project": {"id": 376, "owner": {"id": 795}, "assignee": {"id": 865}}, "task": {"id": 381, "owner": {"id": 965}, "assignee": {"id": 1085}}, "job": {"id": 301, "assignee": {"id": 25}}, "organization": {"id": 1288}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 665}, "assignee": {"id": 516}, "project": {"id": 309, "owner": {"id": 765}, "assignee": {"id": 879}}, "task": {"id": 361, "owner": {"id": 910}, "assignee": {"id": 1065}}, "job": {"id": 373, "assignee": {"id": 68}}, "organization": {"id": 179}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 637}, "assignee": {"id": 599}, "project": {"id": 370, "owner": {"id": 739}, "assignee": {"id": 882}}, "task": {"id": 374, "owner": {"id": 936}, "assignee": {"id": 1000}}, "job": {"id": 362, "assignee": {"id": 64}}, "organization": {"id": 157}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 644}, "assignee": {"id": 502}, "project": {"id": 375, "owner": {"id": 757}, "assignee": {"id": 863}}, "task": {"id": 351, "owner": {"id": 928}, "assignee": {"id": 1096}}, "job": {"id": 323, "assignee": {"id": 8}}, "organization": {"id": 1299}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 651}, "assignee": {"id": 581}, "project": {"id": 306, "owner": {"id": 704}, "assignee": {"id": 843}}, "task": {"id": 376, "owner": {"id": 920}, "assignee": {"id": 1067}}, "job": {"id": 373, "assignee": {"id": 35}}, "organization": {"id": 1214}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 606}, "assignee": {"id": 580}, "project": {"id": 390, "owner": {"id": 744}, "assignee": {"id": 828}}, "task": {"id": 340, "owner": {"id": 996}, "assignee": {"id": 1090}}, "job": {"id": 358, "assignee": {"id": 92}}, "organization": {"id": 144}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 620}, "assignee": {"id": 509}, "project": {"id": 372, "owner": {"id": 793}, "assignee": {"id": 851}}, "task": {"id": 307, "owner": {"id": 980}, "assignee": {"id": 1038}}, "job": {"id": 360, "assignee": {"id": 12}}, "organization": {"id": 146}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 658}, "assignee": {"id": 520}, "project": {"id": 308, "owner": {"id": 724}, "assignee": {"id": 862}}, "task": {"id": 334, "owner": {"id": 987}, "assignee": {"id": 1061}}, "job": {"id": 361, "assignee": {"id": 66}}, "organization": {"id": 1207}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 671}, "assignee": {"id": 588}, "project": {"id": 361, "owner": {"id": 751}, "assignee": {"id": 868}}, "task": {"id": 313, "owner": {"id": 965}, "assignee": {"id": 1097}}, "job": {"id": 314, "assignee": {"id": 20}}, "organization": {"id": 1281}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 678}, "assignee": {"id": 508}, "project": {"id": 335, "owner": {"id": 787}, "assignee": {"id": 897}}, "task": {"id": 370, "owner": {"id": 925}, "assignee": {"id": 1051}}, "job": {"id": 370, "assignee": {"id": 84}}, "organization": {"id": 134}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 690}, "assignee": {"id": 511}, "project": {"id": 394, "owner": {"id": 790}, "assignee": {"id": 877}}, "task": {"id": 381, "owner": {"id": 943}, "assignee": {"id": 1072}}, "job": {"id": 397, "assignee": {"id": 25}}, "organization": {"id": 161}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 675}, "assignee": {"id": 567}, "project": {"id": 341, "owner": {"id": 715}, "assignee": {"id": 816}}, "task": {"id": 381, "owner": {"id": 938}, "assignee": {"id": 1020}}, "job": {"id": 397, "assignee": {"id": 99}}, "organization": {"id": 1220}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 642}, "assignee": {"id": 556}, "project": {"id": 316, "owner": {"id": 783}, "assignee": {"id": 834}}, "task": {"id": 394, "owner": {"id": 996}, "assignee": {"id": 1077}}, "job": {"id": 381, "assignee": {"id": 38}}, "organization": {"id": 1236}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 695}, "assignee": {"id": 592}, "project": {"id": 300, "owner": {"id": 793}, "assignee": {"id": 803}}, "task": {"id": 307, "owner": {"id": 912}, "assignee": {"id": 1033}}, "job": {"id": 349, "assignee": {"id": 4}}, "organization": {"id": 141}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 656}, "assignee": {"id": 542}, "project": {"id": 398, "owner": {"id": 777}, "assignee": {"id": 815}}, "task": {"id": 302, "owner": {"id": 971}, "assignee": {"id": 1019}}, "job": {"id": 350, "assignee": {"id": 44}}, "organization": {"id": 145}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 663}, "assignee": {"id": 537}, "project": {"id": 373, "owner": {"id": 792}, "assignee": {"id": 859}}, "task": {"id": 303, "owner": {"id": 938}, "assignee": {"id": 1001}}, "job": {"id": 399, "assignee": {"id": 41}}, "organization": {"id": 1281}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 608}, "assignee": {"id": 572}, "project": {"id": 388, "owner": {"id": 786}, "assignee": {"id": 861}}, "task": {"id": 342, "owner": {"id": 937}, "assignee": {"id": 1030}}, "job": {"id": 335, "assignee": {"id": 26}}, "organization": {"id": 1282}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 68}, "assignee": {"id": 535}, "project": {"id": 308, "owner": {"id": 762}, "assignee": {"id": 858}}, "task": {"id": 368, "owner": {"id": 910}, "assignee": {"id": 1042}}, "job": {"id": 394, "assignee": {"id": 1194}}, "organization": {"id": 196}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 83}, "assignee": {"id": 581}, "project": {"id": 378, "owner": {"id": 766}, "assignee": {"id": 850}}, "task": {"id": 326, "owner": {"id": 923}, "assignee": {"id": 1042}}, "job": {"id": 332, "assignee": {"id": 1114}}, "organization": {"id": 158}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 40}, "assignee": {"id": 509}, "project": {"id": 323, "owner": {"id": 788}, "assignee": {"id": 844}}, "task": {"id": 314, "owner": {"id": 964}, "assignee": {"id": 1049}}, "job": {"id": 309, "assignee": {"id": 1122}}, "organization": {"id": 1288}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 77}, "assignee": {"id": 590}, "project": {"id": 339, "owner": {"id": 794}, "assignee": {"id": 869}}, "task": {"id": 309, "owner": {"id": 930}, "assignee": {"id": 1088}}, "job": {"id": 310, "assignee": {"id": 1125}}, "organization": {"id": 1222}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 94}, "assignee": {"id": 521}, "project": {"id": 374, "owner": {"id": 796}, "assignee": {"id": 868}}, "task": {"id": 384, "owner": {"id": 921}, "assignee": {"id": 1001}}, "job": {"id": 304, "assignee": {"id": 1191}}, "organization": {"id": 122}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 11}, "assignee": {"id": 560}, "project": {"id": 355, "owner": {"id": 744}, "assignee": {"id": 861}}, "task": {"id": 302, "owner": {"id": 923}, "assignee": {"id": 1051}}, "job": {"id": 334, "assignee": {"id": 1126}}, "organization": {"id": 140}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 9}, "assignee": {"id": 576}, "project": {"id": 370, "owner": {"id": 798}, "assignee": {"id": 803}}, "task": {"id": 342, "owner": {"id": 951}, "assignee": {"id": 1065}}, "job": {"id": 388, "assignee": {"id": 1104}}, "organization": {"id": 1218}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 83}, "assignee": {"id": 540}, "project": {"id": 343, "owner": {"id": 728}, "assignee": {"id": 887}}, "task": {"id": 395, "owner": {"id": 975}, "assignee": {"id": 1025}}, "job": {"id": 354, "assignee": {"id": 1141}}, "organization": {"id": 1209}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 70}, "assignee": {"id": 573}, "project": {"id": 346, "owner": {"id": 716}, "assignee": {"id": 874}}, "task": {"id": 373, "owner": {"id": 937}, "assignee": {"id": 1094}}, "job": {"id": 323, "assignee": {"id": 1113}}, "organization": {"id": 130}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 46}, "assignee": {"id": 554}, "project": {"id": 382, "owner": {"id": 735}, "assignee": {"id": 806}}, "task": {"id": 327, "owner": {"id": 904}, "assignee": {"id": 1062}}, "job": {"id": 312, "assignee": {"id": 1122}}, "organization": {"id": 176}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 93}, "assignee": {"id": 506}, "project": {"id": 365, "owner": {"id": 736}, "assignee": {"id": 816}}, "task": {"id": 366, "owner": {"id": 922}, "assignee": {"id": 1074}}, "job": {"id": 325, "assignee": {"id": 1165}}, "organization": {"id": 1233}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 95}, "assignee": {"id": 549}, "project": {"id": 340, "owner": {"id": 768}, "assignee": {"id": 882}}, "task": {"id": 351, "owner": {"id": 915}, "assignee": {"id": 1002}}, "job": {"id": 390, "assignee": {"id": 1171}}, "organization": {"id": 1259}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 41}, "assignee": {"id": 598}, "project": {"id": 395, "owner": {"id": 738}, "assignee": {"id": 843}}, "task": {"id": 328, "owner": {"id": 992}, "assignee": {"id": 1011}}, "job": {"id": 378, "assignee": {"id": 1197}}, "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": 1, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 1}, "assignee": {"id": 557}, "project": {"id": 308, "owner": {"id": 763}, "assignee": {"id": 827}}, "task": {"id": 388, "owner": {"id": 997}, "assignee": {"id": 1020}}, "job": {"id": 395, "assignee": {"id": 1139}}, "organization": {"id": 114}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 34}, "assignee": {"id": 542}, "project": {"id": 309, "owner": {"id": 714}, "assignee": {"id": 804}}, "task": {"id": 334, "owner": {"id": 911}, "assignee": {"id": 1039}}, "job": {"id": 306, "assignee": {"id": 1123}}, "organization": {"id": 1232}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 16}, "assignee": {"id": 583}, "project": {"id": 344, "owner": {"id": 761}, "assignee": {"id": 801}}, "task": {"id": 347, "owner": {"id": 955}, "assignee": {"id": 1084}}, "job": {"id": 342, "assignee": {"id": 1183}}, "organization": {"id": 1268}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 18}, "assignee": {"id": 542}, "project": {"id": 392, "owner": {"id": 761}, "assignee": {"id": 894}}, "task": {"id": 331, "owner": {"id": 942}, "assignee": {"id": 1004}}, "job": {"id": 356, "assignee": {"id": 1128}}, "organization": {"id": 162}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 20}, "assignee": {"id": 524}, "project": {"id": 330, "owner": {"id": 776}, "assignee": {"id": 835}}, "task": {"id": 387, "owner": {"id": 990}, "assignee": {"id": 1026}}, "job": {"id": 326, "assignee": {"id": 1156}}, "organization": {"id": 124}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 91}, "assignee": {"id": 520}, "project": {"id": 319, "owner": {"id": 755}, "assignee": {"id": 841}}, "task": {"id": 319, "owner": {"id": 925}, "assignee": {"id": 1077}}, "job": {"id": 347, "assignee": {"id": 1162}}, "organization": {"id": 1275}}} +} + +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": 131, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 68}, "assignee": {"id": 519}, "project": {"id": 376, "owner": {"id": 708}, "assignee": {"id": 805}}, "task": {"id": 368, "owner": {"id": 903}, "assignee": {"id": 1022}}, "job": {"id": 373, "assignee": {"id": 1199}}, "organization": {"id": 1264}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 87}, "assignee": {"id": 533}, "project": {"id": 382, "owner": {"id": 723}, "assignee": {"id": 878}}, "task": {"id": 377, "owner": {"id": 905}, "assignee": {"id": 1098}}, "job": {"id": 395, "assignee": {"id": 1105}}, "organization": {"id": 140}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 69}, "assignee": {"id": 546}, "project": {"id": 340, "owner": {"id": 756}, "assignee": {"id": 873}}, "task": {"id": 301, "owner": {"id": 997}, "assignee": {"id": 1018}}, "job": {"id": 398, "assignee": {"id": 1146}}, "organization": {"id": 143}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 98}, "assignee": {"id": 541}, "project": {"id": 378, "owner": {"id": 710}, "assignee": {"id": 880}}, "task": {"id": 341, "owner": {"id": 976}, "assignee": {"id": 1087}}, "job": {"id": 358, "assignee": {"id": 1124}}, "organization": {"id": 1297}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 18}, "assignee": {"id": 525}, "project": {"id": 330, "owner": {"id": 730}, "assignee": {"id": 815}}, "task": {"id": 386, "owner": {"id": 973}, "assignee": {"id": 1007}}, "job": {"id": 326, "assignee": {"id": 1131}}, "organization": {"id": 1278}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 95}, "assignee": {"id": 544}, "project": {"id": 381, "owner": {"id": 719}, "assignee": {"id": 886}}, "task": {"id": 301, "owner": {"id": 982}, "assignee": {"id": 1051}}, "job": {"id": 382, "assignee": {"id": 1187}}, "organization": {"id": 154}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 50}, "assignee": {"id": 568}, "project": {"id": 376, "owner": {"id": 703}, "assignee": {"id": 846}}, "task": {"id": 341, "owner": {"id": 912}, "assignee": {"id": 1074}}, "job": {"id": 334, "assignee": {"id": 1180}}, "organization": {"id": 132}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 36}, "assignee": {"id": 566}, "project": {"id": 343, "owner": {"id": 715}, "assignee": {"id": 812}}, "task": {"id": 312, "owner": {"id": 946}, "assignee": {"id": 1002}}, "job": {"id": 332, "assignee": {"id": 1119}}, "organization": {"id": 1239}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 21}, "assignee": {"id": 551}, "project": {"id": 367, "owner": {"id": 765}, "assignee": {"id": 809}}, "task": {"id": 385, "owner": {"id": 945}, "assignee": {"id": 1072}}, "job": {"id": 317, "assignee": {"id": 1144}}, "organization": {"id": 1296}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 68}, "assignee": {"id": 592}, "project": {"id": 377, "owner": {"id": 707}, "assignee": {"id": 857}}, "task": {"id": 330, "owner": {"id": 910}, "assignee": {"id": 1084}}, "job": {"id": 347, "assignee": {"id": 1127}}, "organization": {"id": 187}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 70}, "assignee": {"id": 592}, "project": {"id": 339, "owner": {"id": 776}, "assignee": {"id": 812}}, "task": {"id": 308, "owner": {"id": 911}, "assignee": {"id": 1009}}, "job": {"id": 305, "assignee": {"id": 1185}}, "organization": {"id": 118}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 5}, "assignee": {"id": 507}, "project": {"id": 325, "owner": {"id": 718}, "assignee": {"id": 805}}, "task": {"id": 354, "owner": {"id": 951}, "assignee": {"id": 1069}}, "job": {"id": 344, "assignee": {"id": 1106}}, "organization": {"id": 1201}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 79}, "assignee": {"id": 553}, "project": {"id": 396, "owner": {"id": 704}, "assignee": {"id": 880}}, "task": {"id": 343, "owner": {"id": 904}, "assignee": {"id": 1073}}, "job": {"id": 345, "assignee": {"id": 1174}}, "organization": {"id": 1221}}} +} + +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": 157, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 20}, "assignee": {"id": 597}, "project": {"id": 316, "owner": {"id": 703}, "assignee": {"id": 822}}, "task": {"id": 331, "owner": {"id": 994}, "assignee": {"id": 1070}}, "job": {"id": 325, "assignee": {"id": 1174}}, "organization": {"id": 157}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 55}, "assignee": {"id": 565}, "project": {"id": 345, "owner": {"id": 707}, "assignee": {"id": 871}}, "task": {"id": 395, "owner": {"id": 993}, "assignee": {"id": 1063}}, "job": {"id": 384, "assignee": {"id": 1158}}, "organization": {"id": 157}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 90}, "assignee": {"id": 530}, "project": {"id": 385, "owner": {"id": 784}, "assignee": {"id": 842}}, "task": {"id": 332, "owner": {"id": 918}, "assignee": {"id": 1080}}, "job": {"id": 392, "assignee": {"id": 1150}}, "organization": {"id": 1260}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 64}, "assignee": {"id": 571}, "project": {"id": 305, "owner": {"id": 739}, "assignee": {"id": 813}}, "task": {"id": 352, "owner": {"id": 900}, "assignee": {"id": 1007}}, "job": {"id": 308, "assignee": {"id": 1197}}, "organization": {"id": 1287}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 53}, "assignee": {"id": 521}, "project": {"id": 372, "owner": {"id": 747}, "assignee": {"id": 832}}, "task": {"id": 388, "owner": {"id": 951}, "assignee": {"id": 1092}}, "job": {"id": 358, "assignee": {"id": 1104}}, "organization": {"id": 172}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 81}, "assignee": {"id": 519}, "project": {"id": 368, "owner": {"id": 772}, "assignee": {"id": 849}}, "task": {"id": 351, "owner": {"id": 915}, "assignee": {"id": 1070}}, "job": {"id": 373, "assignee": {"id": 1185}}, "organization": {"id": 184}}} +} + +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": 177, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 64}, "assignee": {"id": 504}, "project": {"id": 381, "owner": {"id": 708}, "assignee": {"id": 871}}, "task": {"id": 357, "owner": {"id": 933}, "assignee": {"id": 1082}}, "job": {"id": 308, "assignee": {"id": 1189}}, "organization": {"id": 1217}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 40}, "assignee": {"id": 593}, "project": {"id": 300, "owner": {"id": 783}, "assignee": {"id": 879}}, "task": {"id": 338, "owner": {"id": 900}, "assignee": {"id": 1054}}, "job": {"id": 335, "assignee": {"id": 1148}}, "organization": {"id": 1243}}} +} + +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": 129, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 78}, "assignee": {"id": 539}, "project": {"id": 314, "owner": {"id": 729}, "assignee": {"id": 896}}, "task": {"id": 355, "owner": {"id": 918}, "assignee": {"id": 1001}}, "job": {"id": 399, "assignee": {"id": 1173}}, "organization": {"id": 129}}} +} + +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": 197, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 72}, "assignee": {"id": 503}, "project": {"id": 303, "owner": {"id": 748}, "assignee": {"id": 898}}, "task": {"id": 372, "owner": {"id": 961}, "assignee": {"id": 1099}}, "job": {"id": 334, "assignee": {"id": 1107}}, "organization": {"id": 197}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 93}, "assignee": {"id": 525}, "project": {"id": 395, "owner": {"id": 736}, "assignee": {"id": 852}}, "task": {"id": 344, "owner": {"id": 903}, "assignee": {"id": 1044}}, "job": {"id": 309, "assignee": {"id": 1124}}, "organization": {"id": 1232}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 26}, "assignee": {"id": 569}, "project": {"id": 316, "owner": {"id": 746}, "assignee": {"id": 855}}, "task": {"id": 348, "owner": {"id": 979}, "assignee": {"id": 1073}}, "job": {"id": 324, "assignee": {"id": 1122}}, "organization": {"id": 1297}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 53}, "assignee": {"id": 533}, "project": {"id": 394, "owner": {"id": 748}, "assignee": {"id": 839}}, "task": {"id": 383, "owner": {"id": 967}, "assignee": {"id": 1050}}, "job": {"id": 338, "assignee": {"id": 1103}}, "organization": {"id": 128}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 90}, "assignee": {"id": 528}, "project": {"id": 315, "owner": {"id": 720}, "assignee": {"id": 804}}, "task": {"id": 324, "owner": {"id": 930}, "assignee": {"id": 1044}}, "job": {"id": 328, "assignee": {"id": 1170}}, "organization": {"id": 114}}} +} + +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": 169, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 97}, "assignee": {"id": 515}, "project": {"id": 327, "owner": {"id": 748}, "assignee": {"id": 848}}, "task": {"id": 312, "owner": {"id": 966}, "assignee": {"id": 1043}}, "job": {"id": 366, "assignee": {"id": 1178}}, "organization": {"id": 1231}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 76}, "assignee": {"id": 560}, "project": {"id": 314, "owner": {"id": 784}, "assignee": {"id": 801}}, "task": {"id": 382, "owner": {"id": 936}, "assignee": {"id": 1065}}, "job": {"id": 338, "assignee": {"id": 1194}}, "organization": {"id": 1273}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 60}, "assignee": {"id": 518}, "project": {"id": 330, "owner": {"id": 710}, "assignee": {"id": 839}}, "task": {"id": 367, "owner": {"id": 987}, "assignee": {"id": 1078}}, "job": {"id": 374, "assignee": {"id": 1122}}, "organization": {"id": 118}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 85}, "assignee": {"id": 560}, "project": {"id": 307, "owner": {"id": 797}, "assignee": {"id": 821}}, "task": {"id": 376, "owner": {"id": 998}, "assignee": {"id": 1003}}, "job": {"id": 395, "assignee": {"id": 1172}}, "organization": {"id": 159}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 29}, "assignee": {"id": 546}, "project": {"id": 361, "owner": {"id": 769}, "assignee": {"id": 876}}, "task": {"id": 306, "owner": {"id": 960}, "assignee": {"id": 1096}}, "job": {"id": 311, "assignee": {"id": 1120}}, "organization": {"id": 1233}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 31}, "assignee": {"id": 512}, "project": {"id": 376, "owner": {"id": 797}, "assignee": {"id": 863}}, "task": {"id": 362, "owner": {"id": 934}, "assignee": {"id": 1096}}, "job": {"id": 397, "assignee": {"id": 1145}}, "organization": {"id": 1223}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 88}, "assignee": {"id": 527}, "project": {"id": 312, "owner": {"id": 754}, "assignee": {"id": 845}}, "task": {"id": 333, "owner": {"id": 996}, "assignee": {"id": 1087}}, "job": {"id": 309, "assignee": {"id": 1105}}, "organization": {"id": 194}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 15}, "assignee": {"id": 565}, "project": {"id": 380, "owner": {"id": 770}, "assignee": {"id": 849}}, "task": {"id": 353, "owner": {"id": 967}, "assignee": {"id": 1092}}, "job": {"id": 353, "assignee": {"id": 1190}}, "organization": {"id": 137}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 7}, "assignee": {"id": 555}, "project": {"id": 339, "owner": {"id": 769}, "assignee": {"id": 870}}, "task": {"id": 335, "owner": {"id": 916}, "assignee": {"id": 1060}}, "job": {"id": 388, "assignee": {"id": 1194}}, "organization": {"id": 1268}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 40}, "assignee": {"id": 519}, "project": {"id": 363, "owner": {"id": 796}, "assignee": {"id": 801}}, "task": {"id": 345, "owner": {"id": 908}, "assignee": {"id": 1069}}, "job": {"id": 373, "assignee": {"id": 1131}}, "organization": {"id": 1217}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 57}, "assignee": {"id": 550}, "project": {"id": 364, "owner": {"id": 709}, "assignee": {"id": 857}}, "task": {"id": 305, "owner": {"id": 901}, "assignee": {"id": 1088}}, "job": {"id": 380, "assignee": {"id": 1117}}, "organization": {"id": 144}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 80}, "assignee": {"id": 534}, "project": {"id": 367, "owner": {"id": 720}, "assignee": {"id": 849}}, "task": {"id": 324, "owner": {"id": 999}, "assignee": {"id": 1069}}, "job": {"id": 308, "assignee": {"id": 1136}}, "organization": {"id": 198}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 84}, "assignee": {"id": 578}, "project": {"id": 356, "owner": {"id": 723}, "assignee": {"id": 857}}, "task": {"id": 316, "owner": {"id": 907}, "assignee": {"id": 1047}}, "job": {"id": 320, "assignee": {"id": 1126}}, "organization": {"id": 1211}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 59}, "assignee": {"id": 551}, "project": {"id": 328, "owner": {"id": 751}, "assignee": {"id": 864}}, "task": {"id": 369, "owner": {"id": 944}, "assignee": {"id": 1071}}, "job": {"id": 333, "assignee": {"id": 1133}}, "organization": {"id": 1221}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 96}, "assignee": {"id": 509}, "project": {"id": 314, "owner": {"id": 779}, "assignee": {"id": 801}}, "task": {"id": 366, "owner": {"id": 949}, "assignee": {"id": 1015}}, "job": {"id": 313, "assignee": {"id": 1150}}, "organization": {"id": 147}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 95}, "assignee": {"id": 550}, "project": {"id": 312, "owner": {"id": 792}, "assignee": {"id": 864}}, "task": {"id": 308, "owner": {"id": 996}, "assignee": {"id": 1044}}, "job": {"id": 358, "assignee": {"id": 1146}}, "organization": {"id": 167}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 11}, "assignee": {"id": 500}, "project": {"id": 311, "owner": {"id": 713}, "assignee": {"id": 801}}, "task": {"id": 300, "owner": {"id": 970}, "assignee": {"id": 1039}}, "job": {"id": 320, "assignee": {"id": 1148}}, "organization": {"id": 1232}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 46}, "assignee": {"id": 515}, "project": {"id": 392, "owner": {"id": 728}, "assignee": {"id": 827}}, "task": {"id": 348, "owner": {"id": 953}, "assignee": {"id": 1004}}, "job": {"id": 371, "assignee": {"id": 1136}}, "organization": {"id": 1257}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 12}, "assignee": {"id": 521}, "project": {"id": 327, "owner": {"id": 707}, "assignee": {"id": 844}}, "task": {"id": 358, "owner": {"id": 996}, "assignee": {"id": 1038}}, "job": {"id": 382, "assignee": {"id": 1114}}, "organization": {"id": 157}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 44}, "assignee": {"id": 579}, "project": {"id": 321, "owner": {"id": 787}, "assignee": {"id": 823}}, "task": {"id": 372, "owner": {"id": 972}, "assignee": {"id": 1096}}, "job": {"id": 348, "assignee": {"id": 1131}}, "organization": {"id": 149}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 44}, "assignee": {"id": 536}, "project": {"id": 393, "owner": {"id": 759}, "assignee": {"id": 893}}, "task": {"id": 357, "owner": {"id": 916}, "assignee": {"id": 1090}}, "job": {"id": 324, "assignee": {"id": 1178}}, "organization": {"id": 1282}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 2}, "assignee": {"id": 522}, "project": {"id": 377, "owner": {"id": 769}, "assignee": {"id": 862}}, "task": {"id": 316, "owner": {"id": 903}, "assignee": {"id": 1076}}, "job": {"id": 354, "assignee": {"id": 1114}}, "organization": {"id": 1258}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 49}, "assignee": {"id": 500}, "project": {"id": 382, "owner": {"id": 780}, "assignee": {"id": 867}}, "task": {"id": 316, "owner": {"id": 903}, "assignee": {"id": 1051}}, "job": {"id": 386, "assignee": {"id": 1107}}, "organization": {"id": 180}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 39}, "assignee": {"id": 520}, "project": {"id": 342, "owner": {"id": 712}, "assignee": {"id": 895}}, "task": {"id": 371, "owner": {"id": 926}, "assignee": {"id": 1056}}, "job": {"id": 311, "assignee": {"id": 1196}}, "organization": {"id": 195}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 51}, "assignee": {"id": 517}, "project": {"id": 334, "owner": {"id": 794}, "assignee": {"id": 835}}, "task": {"id": 391, "owner": {"id": 925}, "assignee": {"id": 1088}}, "job": {"id": 363, "assignee": {"id": 1153}}, "organization": {"id": 1235}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 25}, "assignee": {"id": 522}, "project": {"id": 312, "owner": {"id": 760}, "assignee": {"id": 867}}, "task": {"id": 314, "owner": {"id": 948}, "assignee": {"id": 1021}}, "job": {"id": 355, "assignee": {"id": 1111}}, "organization": {"id": 1201}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 57}, "assignee": {"id": 535}, "project": {"id": 332, "owner": {"id": 790}, "assignee": {"id": 872}}, "task": {"id": 324, "owner": {"id": 992}, "assignee": {"id": 1001}}, "job": {"id": 365, "assignee": {"id": 1142}}, "organization": {"id": 156}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 76}, "assignee": {"id": 572}, "project": {"id": 336, "owner": {"id": 790}, "assignee": {"id": 834}}, "task": {"id": 303, "owner": {"id": 953}, "assignee": {"id": 1022}}, "job": {"id": 307, "assignee": {"id": 1115}}, "organization": {"id": 118}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 91}, "assignee": {"id": 559}, "project": {"id": 356, "owner": {"id": 781}, "assignee": {"id": 867}}, "task": {"id": 346, "owner": {"id": 943}, "assignee": {"id": 1010}}, "job": {"id": 328, "assignee": {"id": 1130}}, "organization": {"id": 1255}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 20}, "assignee": {"id": 506}, "project": {"id": 342, "owner": {"id": 702}, "assignee": {"id": 888}}, "task": {"id": 351, "owner": {"id": 910}, "assignee": {"id": 1036}}, "job": {"id": 330, "assignee": {"id": 1156}}, "organization": {"id": 1247}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 64}, "assignee": {"id": 522}, "project": {"id": 329, "owner": {"id": 781}, "assignee": {"id": 820}}, "task": {"id": 336, "owner": {"id": 926}, "assignee": {"id": 1068}}, "job": {"id": 324, "assignee": {"id": 1143}}, "organization": {"id": 132}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 54}, "assignee": {"id": 579}, "project": {"id": 351, "owner": {"id": 747}, "assignee": {"id": 877}}, "task": {"id": 347, "owner": {"id": 983}, "assignee": {"id": 1061}}, "job": {"id": 364, "assignee": {"id": 1165}}, "organization": {"id": 182}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 51}, "assignee": {"id": 505}, "project": {"id": 318, "owner": {"id": 704}, "assignee": {"id": 810}}, "task": {"id": 350, "owner": {"id": 985}, "assignee": {"id": 1085}}, "job": {"id": 327, "assignee": {"id": 1132}}, "organization": {"id": 1254}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 14}, "assignee": {"id": 578}, "project": {"id": 323, "owner": {"id": 717}, "assignee": {"id": 815}}, "task": {"id": 337, "owner": {"id": 909}, "assignee": {"id": 1094}}, "job": {"id": 321, "assignee": {"id": 1123}}, "organization": {"id": 1276}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 34}, "assignee": {"id": 527}, "project": {"id": 360, "owner": {"id": 755}, "assignee": {"id": 812}}, "task": {"id": 399, "owner": {"id": 977}, "assignee": {"id": 1086}}, "job": {"id": 302, "assignee": {"id": 1110}}, "organization": {"id": 171}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 3}, "assignee": {"id": 571}, "project": {"id": 324, "owner": {"id": 799}, "assignee": {"id": 807}}, "task": {"id": 327, "owner": {"id": 920}, "assignee": {"id": 1097}}, "job": {"id": 323, "assignee": {"id": 1120}}, "organization": {"id": 108}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 9}, "assignee": {"id": 561}, "project": {"id": 322, "owner": {"id": 751}, "assignee": {"id": 891}}, "task": {"id": 319, "owner": {"id": 947}, "assignee": {"id": 1081}}, "job": {"id": 327, "assignee": {"id": 1107}}, "organization": {"id": 1276}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 84}, "assignee": {"id": 587}, "project": {"id": 356, "owner": {"id": 774}, "assignee": {"id": 828}}, "task": {"id": 322, "owner": {"id": 981}, "assignee": {"id": 1000}}, "job": {"id": 388, "assignee": {"id": 1137}}, "organization": {"id": 1213}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 4}, "assignee": {"id": 554}, "project": {"id": 307, "owner": {"id": 727}, "assignee": {"id": 889}}, "task": {"id": 345, "owner": {"id": 956}, "assignee": {"id": 1014}}, "job": {"id": 349, "assignee": {"id": 1183}}, "organization": {"id": 153}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 83}, "assignee": {"id": 503}, "project": {"id": 382, "owner": {"id": 786}, "assignee": {"id": 882}}, "task": {"id": 397, "owner": {"id": 940}, "assignee": {"id": 1003}}, "job": {"id": 383, "assignee": {"id": 1191}}, "organization": {"id": 180}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 73}, "assignee": {"id": 506}, "project": {"id": 323, "owner": {"id": 727}, "assignee": {"id": 800}}, "task": {"id": 398, "owner": {"id": 927}, "assignee": {"id": 1095}}, "job": {"id": 340, "assignee": {"id": 1170}}, "organization": {"id": 1242}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 66}, "assignee": {"id": 594}, "project": {"id": 319, "owner": {"id": 792}, "assignee": {"id": 879}}, "task": {"id": 334, "owner": {"id": 972}, "assignee": {"id": 1063}}, "job": {"id": 329, "assignee": {"id": 1160}}, "organization": {"id": 1256}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 43}, "assignee": {"id": 588}, "project": {"id": 307, "owner": {"id": 730}, "assignee": {"id": 860}}, "task": {"id": 379, "owner": {"id": 947}, "assignee": {"id": 1061}}, "job": {"id": 352, "assignee": {"id": 1118}}, "organization": {"id": 138}}} +} + +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": 191, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 20}, "assignee": {"id": 572}, "project": {"id": 328, "owner": {"id": 768}, "assignee": {"id": 880}}, "task": {"id": 339, "owner": {"id": 908}, "assignee": {"id": 1039}}, "job": {"id": 328, "assignee": {"id": 1110}}, "organization": {"id": 191}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 35}, "assignee": {"id": 546}, "project": {"id": 392, "owner": {"id": 707}, "assignee": {"id": 811}}, "task": {"id": 377, "owner": {"id": 945}, "assignee": {"id": 1019}}, "job": {"id": 319, "assignee": {"id": 1112}}, "organization": {"id": 1267}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 65}, "assignee": {"id": 571}, "project": {"id": 342, "owner": {"id": 788}, "assignee": {"id": 854}}, "task": {"id": 322, "owner": {"id": 955}, "assignee": {"id": 1085}}, "job": {"id": 356, "assignee": {"id": 1140}}, "organization": {"id": 1241}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 68}, "assignee": {"id": 580}, "project": {"id": 329, "owner": {"id": 717}, "assignee": {"id": 835}}, "task": {"id": 303, "owner": {"id": 934}, "assignee": {"id": 1033}}, "job": {"id": 376, "assignee": {"id": 1101}}, "organization": {"id": 167}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 83}, "assignee": {"id": 530}, "project": {"id": 346, "owner": {"id": 797}, "assignee": {"id": 889}}, "task": {"id": 393, "owner": {"id": 944}, "assignee": {"id": 1095}}, "job": {"id": 308, "assignee": {"id": 1128}}, "organization": {"id": 188}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 31}, "assignee": {"id": 568}, "project": {"id": 353, "owner": {"id": 787}, "assignee": {"id": 830}}, "task": {"id": 316, "owner": {"id": 955}, "assignee": {"id": 1079}}, "job": {"id": 331, "assignee": {"id": 1169}}, "organization": {"id": 1254}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 74}, "assignee": {"id": 521}, "project": {"id": 310, "owner": {"id": 711}, "assignee": {"id": 812}}, "task": {"id": 343, "owner": {"id": 903}, "assignee": {"id": 1078}}, "job": {"id": 346, "assignee": {"id": 1197}}, "organization": {"id": 1257}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 30}, "assignee": {"id": 513}, "project": {"id": 390, "owner": {"id": 703}, "assignee": {"id": 850}}, "task": {"id": 357, "owner": {"id": 943}, "assignee": {"id": 1048}}, "job": {"id": 302, "assignee": {"id": 1104}}, "organization": {"id": 174}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 28}, "assignee": {"id": 513}, "project": {"id": 330, "owner": {"id": 792}, "assignee": {"id": 806}}, "task": {"id": 325, "owner": {"id": 905}, "assignee": {"id": 1035}}, "job": {"id": 325, "assignee": {"id": 1177}}, "organization": {"id": 142}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 44}, "assignee": {"id": 531}, "project": {"id": 383, "owner": {"id": 744}, "assignee": {"id": 800}}, "task": {"id": 300, "owner": {"id": 942}, "assignee": {"id": 1098}}, "job": {"id": 342, "assignee": {"id": 1128}}, "organization": {"id": 1256}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 96}, "assignee": {"id": 510}, "project": {"id": 318, "owner": {"id": 757}, "assignee": {"id": 876}}, "task": {"id": 381, "owner": {"id": 945}, "assignee": {"id": 1033}}, "job": {"id": 352, "assignee": {"id": 1109}}, "organization": {"id": 1219}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 699}, "assignee": {"id": 86}, "project": {"id": 337, "owner": {"id": 773}, "assignee": {"id": 803}}, "task": {"id": 364, "owner": {"id": 996}, "assignee": {"id": 1070}}, "job": {"id": 376, "assignee": {"id": 1122}}, "organization": {"id": 158}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 670}, "assignee": {"id": 98}, "project": {"id": 353, "owner": {"id": 724}, "assignee": {"id": 803}}, "task": {"id": 333, "owner": {"id": 997}, "assignee": {"id": 1084}}, "job": {"id": 302, "assignee": {"id": 1133}}, "organization": {"id": 143}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 688}, "assignee": {"id": 73}, "project": {"id": 326, "owner": {"id": 763}, "assignee": {"id": 802}}, "task": {"id": 343, "owner": {"id": 924}, "assignee": {"id": 1090}}, "job": {"id": 372, "assignee": {"id": 1150}}, "organization": {"id": 1223}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 698}, "assignee": {"id": 11}, "project": {"id": 303, "owner": {"id": 723}, "assignee": {"id": 851}}, "task": {"id": 368, "owner": {"id": 941}, "assignee": {"id": 1037}}, "job": {"id": 399, "assignee": {"id": 1132}}, "organization": {"id": 1247}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 684}, "assignee": {"id": 72}, "project": {"id": 370, "owner": {"id": 769}, "assignee": {"id": 884}}, "task": {"id": 399, "owner": {"id": 987}, "assignee": {"id": 1095}}, "job": {"id": 344, "assignee": {"id": 1107}}, "organization": {"id": 125}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 645}, "assignee": {"id": 86}, "project": {"id": 338, "owner": {"id": 742}, "assignee": {"id": 874}}, "task": {"id": 308, "owner": {"id": 988}, "assignee": {"id": 1057}}, "job": {"id": 341, "assignee": {"id": 1144}}, "organization": {"id": 145}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 645}, "assignee": {"id": 26}, "project": {"id": 312, "owner": {"id": 780}, "assignee": {"id": 846}}, "task": {"id": 364, "owner": {"id": 986}, "assignee": {"id": 1095}}, "job": {"id": 303, "assignee": {"id": 1152}}, "organization": {"id": 1238}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 690}, "assignee": {"id": 2}, "project": {"id": 310, "owner": {"id": 766}, "assignee": {"id": 803}}, "task": {"id": 373, "owner": {"id": 957}, "assignee": {"id": 1061}}, "job": {"id": 362, "assignee": {"id": 1170}}, "organization": {"id": 1281}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 635}, "assignee": {"id": 57}, "project": {"id": 328, "owner": {"id": 747}, "assignee": {"id": 868}}, "task": {"id": 349, "owner": {"id": 961}, "assignee": {"id": 1030}}, "job": {"id": 382, "assignee": {"id": 1129}}, "organization": {"id": 132}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 632}, "assignee": {"id": 57}, "project": {"id": 352, "owner": {"id": 780}, "assignee": {"id": 869}}, "task": {"id": 340, "owner": {"id": 948}, "assignee": {"id": 1060}}, "job": {"id": 307, "assignee": {"id": 1138}}, "organization": {"id": 187}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 678}, "assignee": {"id": 52}, "project": {"id": 340, "owner": {"id": 768}, "assignee": {"id": 825}}, "task": {"id": 328, "owner": {"id": 961}, "assignee": {"id": 1035}}, "job": {"id": 335, "assignee": {"id": 1102}}, "organization": {"id": 1260}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 690}, "assignee": {"id": 85}, "project": {"id": 315, "owner": {"id": 738}, "assignee": {"id": 840}}, "task": {"id": 348, "owner": {"id": 916}, "assignee": {"id": 1083}}, "job": {"id": 320, "assignee": {"id": 1166}}, "organization": {"id": 1245}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 602}, "assignee": {"id": 37}, "project": {"id": 357, "owner": {"id": 779}, "assignee": {"id": 850}}, "task": {"id": 326, "owner": {"id": 938}, "assignee": {"id": 1000}}, "job": {"id": 386, "assignee": {"id": 1122}}, "organization": {"id": 158}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 689}, "assignee": {"id": 87}, "project": {"id": 322, "owner": {"id": 751}, "assignee": {"id": 855}}, "task": {"id": 362, "owner": {"id": 983}, "assignee": {"id": 1089}}, "job": {"id": 392, "assignee": {"id": 1179}}, "organization": {"id": 112}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 632}, "assignee": {"id": 37}, "project": {"id": 393, "owner": {"id": 767}, "assignee": {"id": 830}}, "task": {"id": 316, "owner": {"id": 902}, "assignee": {"id": 1090}}, "job": {"id": 348, "assignee": {"id": 1148}}, "organization": {"id": 1224}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 616}, "assignee": {"id": 31}, "project": {"id": 354, "owner": {"id": 782}, "assignee": {"id": 835}}, "task": {"id": 394, "owner": {"id": 972}, "assignee": {"id": 1039}}, "job": {"id": 392, "assignee": {"id": 1164}}, "organization": {"id": 1281}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 667}, "assignee": {"id": 87}, "project": {"id": 315, "owner": {"id": 723}, "assignee": {"id": 803}}, "task": {"id": 335, "owner": {"id": 978}, "assignee": {"id": 1052}}, "job": {"id": 364, "assignee": {"id": 1176}}, "organization": {"id": 164}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 694}, "assignee": {"id": 70}, "project": {"id": 323, "owner": {"id": 737}, "assignee": {"id": 854}}, "task": {"id": 359, "owner": {"id": 947}, "assignee": {"id": 1047}}, "job": {"id": 360, "assignee": {"id": 1178}}, "organization": {"id": 165}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 697}, "assignee": {"id": 72}, "project": {"id": 353, "owner": {"id": 782}, "assignee": {"id": 878}}, "task": {"id": 339, "owner": {"id": 958}, "assignee": {"id": 1048}}, "job": {"id": 338, "assignee": {"id": 1189}}, "organization": {"id": 1207}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 627}, "assignee": {"id": 25}, "project": {"id": 303, "owner": {"id": 709}, "assignee": {"id": 827}}, "task": {"id": 321, "owner": {"id": 933}, "assignee": {"id": 1057}}, "job": {"id": 397, "assignee": {"id": 1182}}, "organization": {"id": 1242}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 687}, "assignee": {"id": 14}, "project": {"id": 346, "owner": {"id": 700}, "assignee": {"id": 822}}, "task": {"id": 373, "owner": {"id": 938}, "assignee": {"id": 1033}}, "job": {"id": 327, "assignee": {"id": 1139}}, "organization": {"id": 193}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 664}, "assignee": {"id": 17}, "project": {"id": 320, "owner": {"id": 716}, "assignee": {"id": 857}}, "task": {"id": 330, "owner": {"id": 913}, "assignee": {"id": 1047}}, "job": {"id": 335, "assignee": {"id": 1103}}, "organization": {"id": 158}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 645}, "assignee": {"id": 47}, "project": {"id": 399, "owner": {"id": 739}, "assignee": {"id": 814}}, "task": {"id": 361, "owner": {"id": 958}, "assignee": {"id": 1062}}, "job": {"id": 334, "assignee": {"id": 1198}}, "organization": {"id": 1212}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 603}, "assignee": {"id": 22}, "project": {"id": 390, "owner": {"id": 796}, "assignee": {"id": 856}}, "task": {"id": 323, "owner": {"id": 923}, "assignee": {"id": 1087}}, "job": {"id": 339, "assignee": {"id": 1174}}, "organization": {"id": 1201}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 668}, "assignee": {"id": 31}, "project": {"id": 394, "owner": {"id": 734}, "assignee": {"id": 880}}, "task": {"id": 391, "owner": {"id": 975}, "assignee": {"id": 1044}}, "job": {"id": 322, "assignee": {"id": 1105}}, "organization": {"id": 186}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 685}, "assignee": {"id": 27}, "project": {"id": 343, "owner": {"id": 704}, "assignee": {"id": 889}}, "task": {"id": 361, "owner": {"id": 906}, "assignee": {"id": 1034}}, "job": {"id": 343, "assignee": {"id": 1139}}, "organization": {"id": 164}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 676}, "assignee": {"id": 91}, "project": {"id": 320, "owner": {"id": 781}, "assignee": {"id": 819}}, "task": {"id": 359, "owner": {"id": 905}, "assignee": {"id": 1057}}, "job": {"id": 382, "assignee": {"id": 1149}}, "organization": {"id": 1202}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 656}, "assignee": {"id": 65}, "project": {"id": 326, "owner": {"id": 746}, "assignee": {"id": 839}}, "task": {"id": 362, "owner": {"id": 949}, "assignee": {"id": 1031}}, "job": {"id": 394, "assignee": {"id": 1106}}, "organization": {"id": 1239}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 664}, "assignee": {"id": 4}, "project": {"id": 367, "owner": {"id": 789}, "assignee": {"id": 868}}, "task": {"id": 318, "owner": {"id": 909}, "assignee": {"id": 1009}}, "job": {"id": 300, "assignee": {"id": 1183}}, "organization": {"id": 158}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 680}, "assignee": {"id": 70}, "project": {"id": 349, "owner": {"id": 779}, "assignee": {"id": 825}}, "task": {"id": 327, "owner": {"id": 953}, "assignee": {"id": 1056}}, "job": {"id": 384, "assignee": {"id": 1128}}, "organization": {"id": 136}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 675}, "assignee": {"id": 74}, "project": {"id": 329, "owner": {"id": 764}, "assignee": {"id": 861}}, "task": {"id": 311, "owner": {"id": 900}, "assignee": {"id": 1039}}, "job": {"id": 355, "assignee": {"id": 1107}}, "organization": {"id": 1230}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 628}, "assignee": {"id": 20}, "project": {"id": 392, "owner": {"id": 768}, "assignee": {"id": 800}}, "task": {"id": 354, "owner": {"id": 952}, "assignee": {"id": 1084}}, "job": {"id": 316, "assignee": {"id": 1184}}, "organization": {"id": 1290}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 624}, "assignee": {"id": 85}, "project": {"id": 387, "owner": {"id": 752}, "assignee": {"id": 808}}, "task": {"id": 308, "owner": {"id": 980}, "assignee": {"id": 1065}}, "job": {"id": 305, "assignee": {"id": 1187}}, "organization": {"id": 193}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 625}, "assignee": {"id": 45}, "project": {"id": 319, "owner": {"id": 780}, "assignee": {"id": 825}}, "task": {"id": 357, "owner": {"id": 962}, "assignee": {"id": 1098}}, "job": {"id": 378, "assignee": {"id": 1154}}, "organization": {"id": 193}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 635}, "assignee": {"id": 45}, "project": {"id": 307, "owner": {"id": 728}, "assignee": {"id": 897}}, "task": {"id": 307, "owner": {"id": 918}, "assignee": {"id": 1032}}, "job": {"id": 390, "assignee": {"id": 1179}}, "organization": {"id": 1207}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 617}, "assignee": {"id": 61}, "project": {"id": 300, "owner": {"id": 792}, "assignee": {"id": 865}}, "task": {"id": 341, "owner": {"id": 973}, "assignee": {"id": 1010}}, "job": {"id": 380, "assignee": {"id": 1160}}, "organization": {"id": 1210}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 614}, "assignee": {"id": 72}, "project": {"id": 357, "owner": {"id": 736}, "assignee": {"id": 839}}, "task": {"id": 370, "owner": {"id": 943}, "assignee": {"id": 1014}}, "job": {"id": 363, "assignee": {"id": 1187}}, "organization": {"id": 169}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 660}, "assignee": {"id": 54}, "project": {"id": 356, "owner": {"id": 780}, "assignee": {"id": 832}}, "task": {"id": 375, "owner": {"id": 949}, "assignee": {"id": 1018}}, "job": {"id": 304, "assignee": {"id": 1129}}, "organization": {"id": 180}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 603}, "assignee": {"id": 73}, "project": {"id": 379, "owner": {"id": 705}, "assignee": {"id": 859}}, "task": {"id": 393, "owner": {"id": 942}, "assignee": {"id": 1092}}, "job": {"id": 333, "assignee": {"id": 1126}}, "organization": {"id": 1239}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 670}, "assignee": {"id": 63}, "project": {"id": 331, "owner": {"id": 703}, "assignee": {"id": 848}}, "task": {"id": 371, "owner": {"id": 942}, "assignee": {"id": 1013}}, "job": {"id": 330, "assignee": {"id": 1161}}, "organization": {"id": 1210}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 692}, "assignee": {"id": 15}, "project": {"id": 319, "owner": {"id": 773}, "assignee": {"id": 867}}, "task": {"id": 356, "owner": {"id": 974}, "assignee": {"id": 1029}}, "job": {"id": 324, "assignee": {"id": 1192}}, "organization": {"id": 182}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 657}, "assignee": {"id": 55}, "project": {"id": 373, "owner": {"id": 768}, "assignee": {"id": 809}}, "task": {"id": 315, "owner": {"id": 948}, "assignee": {"id": 1097}}, "job": {"id": 323, "assignee": {"id": 1120}}, "organization": {"id": 137}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 644}, "assignee": {"id": 32}, "project": {"id": 319, "owner": {"id": 770}, "assignee": {"id": 863}}, "task": {"id": 398, "owner": {"id": 917}, "assignee": {"id": 1038}}, "job": {"id": 332, "assignee": {"id": 1124}}, "organization": {"id": 1254}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 616}, "assignee": {"id": 91}, "project": {"id": 388, "owner": {"id": 748}, "assignee": {"id": 808}}, "task": {"id": 396, "owner": {"id": 988}, "assignee": {"id": 1088}}, "job": {"id": 397, "assignee": {"id": 1168}}, "organization": {"id": 1290}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 611}, "assignee": {"id": 63}, "project": {"id": 307, "owner": {"id": 745}, "assignee": {"id": 805}}, "task": {"id": 366, "owner": {"id": 984}, "assignee": {"id": 1071}}, "job": {"id": 335, "assignee": {"id": 1152}}, "organization": {"id": 105}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 657}, "assignee": {"id": 1}, "project": {"id": 371, "owner": {"id": 766}, "assignee": {"id": 848}}, "task": {"id": 328, "owner": {"id": 967}, "assignee": {"id": 1058}}, "job": {"id": 310, "assignee": {"id": 1156}}, "organization": {"id": 172}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 650}, "assignee": {"id": 71}, "project": {"id": 312, "owner": {"id": 767}, "assignee": {"id": 835}}, "task": {"id": 380, "owner": {"id": 967}, "assignee": {"id": 1023}}, "job": {"id": 308, "assignee": {"id": 1193}}, "organization": {"id": 1230}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 633}, "assignee": {"id": 96}, "project": {"id": 382, "owner": {"id": 777}, "assignee": {"id": 807}}, "task": {"id": 309, "owner": {"id": 965}, "assignee": {"id": 1049}}, "job": {"id": 379, "assignee": {"id": 1183}}, "organization": {"id": 1233}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 661}, "assignee": {"id": 92}, "project": {"id": 393, "owner": {"id": 726}, "assignee": {"id": 883}}, "task": {"id": 334, "owner": {"id": 959}, "assignee": {"id": 1052}}, "job": {"id": 393, "assignee": {"id": 1114}}, "organization": {"id": 178}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 604}, "assignee": {"id": 5}, "project": {"id": 310, "owner": {"id": 750}, "assignee": {"id": 804}}, "task": {"id": 312, "owner": {"id": 977}, "assignee": {"id": 1066}}, "job": {"id": 398, "assignee": {"id": 1130}}, "organization": {"id": 126}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 657}, "assignee": {"id": 42}, "project": {"id": 328, "owner": {"id": 787}, "assignee": {"id": 811}}, "task": {"id": 328, "owner": {"id": 984}, "assignee": {"id": 1015}}, "job": {"id": 373, "assignee": {"id": 1143}}, "organization": {"id": 1226}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 695}, "assignee": {"id": 60}, "project": {"id": 335, "owner": {"id": 716}, "assignee": {"id": 805}}, "task": {"id": 307, "owner": {"id": 933}, "assignee": {"id": 1061}}, "job": {"id": 345, "assignee": {"id": 1101}}, "organization": {"id": 1277}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 624}, "assignee": {"id": 25}, "project": {"id": 336, "owner": {"id": 773}, "assignee": {"id": 849}}, "task": {"id": 382, "owner": {"id": 955}, "assignee": {"id": 1076}}, "job": {"id": 308, "assignee": {"id": 1174}}, "organization": {"id": 131}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 605}, "assignee": {"id": 44}, "project": {"id": 306, "owner": {"id": 723}, "assignee": {"id": 860}}, "task": {"id": 366, "owner": {"id": 930}, "assignee": {"id": 1058}}, "job": {"id": 326, "assignee": {"id": 1132}}, "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": 39, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 657}, "assignee": {"id": 39}, "project": {"id": 381, "owner": {"id": 770}, "assignee": {"id": 802}}, "task": {"id": 367, "owner": {"id": 950}, "assignee": {"id": 1050}}, "job": {"id": 323, "assignee": {"id": 1106}}, "organization": {"id": 1286}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 642}, "assignee": {"id": 77}, "project": {"id": 396, "owner": {"id": 740}, "assignee": {"id": 814}}, "task": {"id": 300, "owner": {"id": 902}, "assignee": {"id": 1018}}, "job": {"id": 366, "assignee": {"id": 1138}}, "organization": {"id": 1270}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 621}, "assignee": {"id": 36}, "project": {"id": 397, "owner": {"id": 779}, "assignee": {"id": 893}}, "task": {"id": 387, "owner": {"id": 970}, "assignee": {"id": 1030}}, "job": {"id": 304, "assignee": {"id": 1116}}, "organization": {"id": 166}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 629}, "assignee": {"id": 52}, "project": {"id": 341, "owner": {"id": 753}, "assignee": {"id": 862}}, "task": {"id": 390, "owner": {"id": 993}, "assignee": {"id": 1073}}, "job": {"id": 396, "assignee": {"id": 1160}}, "organization": {"id": 104}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 659}, "assignee": {"id": 61}, "project": {"id": 361, "owner": {"id": 755}, "assignee": {"id": 869}}, "task": {"id": 365, "owner": {"id": 936}, "assignee": {"id": 1091}}, "job": {"id": 342, "assignee": {"id": 1193}}, "organization": {"id": 1251}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 619}, "assignee": {"id": 91}, "project": {"id": 365, "owner": {"id": 768}, "assignee": {"id": 834}}, "task": {"id": 300, "owner": {"id": 932}, "assignee": {"id": 1051}}, "job": {"id": 313, "assignee": {"id": 1139}}, "organization": {"id": 1299}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 614}, "assignee": {"id": 53}, "project": {"id": 372, "owner": {"id": 789}, "assignee": {"id": 833}}, "task": {"id": 332, "owner": {"id": 914}, "assignee": {"id": 1011}}, "job": {"id": 309, "assignee": {"id": 1171}}, "organization": {"id": 126}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 678}, "assignee": {"id": 33}, "project": {"id": 381, "owner": {"id": 796}, "assignee": {"id": 815}}, "task": {"id": 361, "owner": {"id": 926}, "assignee": {"id": 1022}}, "job": {"id": 377, "assignee": {"id": 1189}}, "organization": {"id": 105}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 689}, "assignee": {"id": 7}, "project": {"id": 362, "owner": {"id": 742}, "assignee": {"id": 881}}, "task": {"id": 362, "owner": {"id": 946}, "assignee": {"id": 1029}}, "job": {"id": 380, "assignee": {"id": 1152}}, "organization": {"id": 1235}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 629}, "assignee": {"id": 4}, "project": {"id": 325, "owner": {"id": 722}, "assignee": {"id": 863}}, "task": {"id": 326, "owner": {"id": 909}, "assignee": {"id": 1008}}, "job": {"id": 300, "assignee": {"id": 1146}}, "organization": {"id": 1277}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 651}, "assignee": {"id": 39}, "project": {"id": 328, "owner": {"id": 710}, "assignee": {"id": 866}}, "task": {"id": 359, "owner": {"id": 938}, "assignee": {"id": 1043}}, "job": {"id": 352, "assignee": {"id": 1124}}, "organization": {"id": 109}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 692}, "assignee": {"id": 60}, "project": {"id": 386, "owner": {"id": 773}, "assignee": {"id": 809}}, "task": {"id": 364, "owner": {"id": 964}, "assignee": {"id": 1079}}, "job": {"id": 338, "assignee": {"id": 1192}}, "organization": {"id": 154}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 652}, "assignee": {"id": 49}, "project": {"id": 337, "owner": {"id": 744}, "assignee": {"id": 891}}, "task": {"id": 378, "owner": {"id": 965}, "assignee": {"id": 1033}}, "job": {"id": 343, "assignee": {"id": 1123}}, "organization": {"id": 1201}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 647}, "assignee": {"id": 97}, "project": {"id": 347, "owner": {"id": 769}, "assignee": {"id": 818}}, "task": {"id": 349, "owner": {"id": 957}, "assignee": {"id": 1024}}, "job": {"id": 334, "assignee": {"id": 1116}}, "organization": {"id": 1260}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 619}, "assignee": {"id": 39}, "project": {"id": 382, "owner": {"id": 765}, "assignee": {"id": 820}}, "task": {"id": 388, "owner": {"id": 905}, "assignee": {"id": 1067}}, "job": {"id": 367, "assignee": {"id": 1147}}, "organization": {"id": 102}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 699}, "assignee": {"id": 37}, "project": {"id": 396, "owner": {"id": 784}, "assignee": {"id": 872}}, "task": {"id": 390, "owner": {"id": 916}, "assignee": {"id": 1007}}, "job": {"id": 344, "assignee": {"id": 1199}}, "organization": {"id": 121}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 617}, "assignee": {"id": 77}, "project": {"id": 337, "owner": {"id": 770}, "assignee": {"id": 893}}, "task": {"id": 381, "owner": {"id": 991}, "assignee": {"id": 1001}}, "job": {"id": 385, "assignee": {"id": 1191}}, "organization": {"id": 1208}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 642}, "assignee": {"id": 2}, "project": {"id": 355, "owner": {"id": 705}, "assignee": {"id": 843}}, "task": {"id": 373, "owner": {"id": 916}, "assignee": {"id": 1007}}, "job": {"id": 367, "assignee": {"id": 1145}}, "organization": {"id": 1244}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 653}, "assignee": {"id": 39}, "project": {"id": 356, "owner": {"id": 738}, "assignee": {"id": 833}}, "task": {"id": 322, "owner": {"id": 994}, "assignee": {"id": 1037}}, "job": {"id": 363, "assignee": {"id": 1151}}, "organization": {"id": 169}}} +} + +test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { + not allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 606}, "assignee": {"id": 18}, "project": {"id": 340, "owner": {"id": 782}, "assignee": {"id": 817}}, "task": {"id": 378, "owner": {"id": 968}, "assignee": {"id": 1013}}, "job": {"id": 391, "assignee": {"id": 1160}}, "organization": {"id": 195}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 639}, "assignee": {"id": 38}, "project": {"id": 331, "owner": {"id": 712}, "assignee": {"id": 877}}, "task": {"id": 387, "owner": {"id": 982}, "assignee": {"id": 1042}}, "job": {"id": 311, "assignee": {"id": 1137}}, "organization": {"id": 1299}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 685}, "assignee": {"id": 85}, "project": {"id": 355, "owner": {"id": 799}, "assignee": {"id": 811}}, "task": {"id": 300, "owner": {"id": 975}, "assignee": {"id": 1010}}, "job": {"id": 385, "assignee": {"id": 1103}}, "organization": {"id": 1297}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 678}, "assignee": {"id": 81}, "project": {"id": 359, "owner": {"id": 758}, "assignee": {"id": 828}}, "task": {"id": 368, "owner": {"id": 907}, "assignee": {"id": 1056}}, "job": {"id": 387, "assignee": {"id": 1181}}, "organization": {"id": 126}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 638}, "assignee": {"id": 73}, "project": {"id": 396, "owner": {"id": 781}, "assignee": {"id": 877}}, "task": {"id": 378, "owner": {"id": 944}, "assignee": {"id": 1089}}, "job": {"id": 342, "assignee": {"id": 1176}}, "organization": {"id": 164}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 638}, "assignee": {"id": 91}, "project": {"id": 307, "owner": {"id": 714}, "assignee": {"id": 850}}, "task": {"id": 315, "owner": {"id": 998}, "assignee": {"id": 1071}}, "job": {"id": 357, "assignee": {"id": 1140}}, "organization": {"id": 1214}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 606}, "assignee": {"id": 68}, "project": {"id": 300, "owner": {"id": 734}, "assignee": {"id": 843}}, "task": {"id": 350, "owner": {"id": 958}, "assignee": {"id": 1050}}, "job": {"id": 335, "assignee": {"id": 1127}}, "organization": {"id": 1204}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 671}, "assignee": {"id": 19}, "project": {"id": 319, "owner": {"id": 740}, "assignee": {"id": 849}}, "task": {"id": 324, "owner": {"id": 932}, "assignee": {"id": 1045}}, "job": {"id": 301, "assignee": {"id": 1154}}, "organization": {"id": 179}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 650}, "assignee": {"id": 33}, "project": {"id": 374, "owner": {"id": 789}, "assignee": {"id": 821}}, "task": {"id": 368, "owner": {"id": 903}, "assignee": {"id": 1036}}, "job": {"id": 305, "assignee": {"id": 1116}}, "organization": {"id": 131}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 677}, "assignee": {"id": 39}, "project": {"id": 366, "owner": {"id": 716}, "assignee": {"id": 852}}, "task": {"id": 344, "owner": {"id": 932}, "assignee": {"id": 1079}}, "job": {"id": 330, "assignee": {"id": 1100}}, "organization": {"id": 1213}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 614}, "assignee": {"id": 62}, "project": {"id": 380, "owner": {"id": 751}, "assignee": {"id": 898}}, "task": {"id": 309, "owner": {"id": 968}, "assignee": {"id": 1023}}, "job": {"id": 396, "assignee": {"id": 1170}}, "organization": {"id": 1271}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 671}, "assignee": {"id": 66}, "project": {"id": 332, "owner": {"id": 723}, "assignee": {"id": 828}}, "task": {"id": 372, "owner": {"id": 927}, "assignee": {"id": 1078}}, "job": {"id": 388, "assignee": {"id": 1145}}, "organization": {"id": 130}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 681}, "assignee": {"id": 54}, "project": {"id": 329, "owner": {"id": 796}, "assignee": {"id": 851}}, "task": {"id": 391, "owner": {"id": 997}, "assignee": {"id": 1096}}, "job": {"id": 313, "assignee": {"id": 1166}}, "organization": {"id": 189}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 667}, "assignee": {"id": 51}, "project": {"id": 394, "owner": {"id": 700}, "assignee": {"id": 817}}, "task": {"id": 383, "owner": {"id": 965}, "assignee": {"id": 1006}}, "job": {"id": 322, "assignee": {"id": 1144}}, "organization": {"id": 1219}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 680}, "assignee": {"id": 92}, "project": {"id": 396, "owner": {"id": 745}, "assignee": {"id": 864}}, "task": {"id": 309, "owner": {"id": 924}, "assignee": {"id": 1088}}, "job": {"id": 371, "assignee": {"id": 1189}}, "organization": {"id": 1281}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 616}, "assignee": {"id": 64}, "project": {"id": 358, "owner": {"id": 779}, "assignee": {"id": 862}}, "task": {"id": 379, "owner": {"id": 900}, "assignee": {"id": 1077}}, "job": {"id": 320, "assignee": {"id": 1136}}, "organization": {"id": 108}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 686}, "assignee": {"id": 52}, "project": {"id": 310, "owner": {"id": 751}, "assignee": {"id": 835}}, "task": {"id": 386, "owner": {"id": 919}, "assignee": {"id": 1062}}, "job": {"id": 334, "assignee": {"id": 1138}}, "organization": {"id": 155}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 681}, "assignee": {"id": 33}, "project": {"id": 360, "owner": {"id": 784}, "assignee": {"id": 828}}, "task": {"id": 367, "owner": {"id": 932}, "assignee": {"id": 1098}}, "job": {"id": 370, "assignee": {"id": 1169}}, "organization": {"id": 1260}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 665}, "assignee": {"id": 66}, "project": {"id": 310, "owner": {"id": 773}, "assignee": {"id": 886}}, "task": {"id": 334, "owner": {"id": 963}, "assignee": {"id": 1066}}, "job": {"id": 390, "assignee": {"id": 1119}}, "organization": {"id": 1209}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 658}, "assignee": {"id": 80}, "project": {"id": 372, "owner": {"id": 704}, "assignee": {"id": 899}}, "task": {"id": 320, "owner": {"id": 981}, "assignee": {"id": 1082}}, "job": {"id": 317, "assignee": {"id": 1178}}, "organization": {"id": 182}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 603}, "assignee": {"id": 18}, "project": {"id": 363, "owner": {"id": 716}, "assignee": {"id": 891}}, "task": {"id": 329, "owner": {"id": 924}, "assignee": {"id": 1045}}, "job": {"id": 343, "assignee": {"id": 1139}}, "organization": {"id": 189}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 650}, "assignee": {"id": 80}, "project": {"id": 305, "owner": {"id": 766}, "assignee": {"id": 821}}, "task": {"id": 342, "owner": {"id": 917}, "assignee": {"id": 1079}}, "job": {"id": 326, "assignee": {"id": 1129}}, "organization": {"id": 1290}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 624}, "assignee": {"id": 47}, "project": {"id": 329, "owner": {"id": 796}, "assignee": {"id": 831}}, "task": {"id": 310, "owner": {"id": 903}, "assignee": {"id": 1079}}, "job": {"id": 317, "assignee": {"id": 1119}}, "organization": {"id": 1279}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 646}, "assignee": {"id": 44}, "project": {"id": 330, "owner": {"id": 725}, "assignee": {"id": 853}}, "task": {"id": 335, "owner": {"id": 913}, "assignee": {"id": 1011}}, "job": {"id": 369, "assignee": {"id": 1144}}, "organization": {"id": 168}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 628}, "assignee": {"id": 67}, "project": {"id": 386, "owner": {"id": 705}, "assignee": {"id": 827}}, "task": {"id": 321, "owner": {"id": 945}, "assignee": {"id": 1053}}, "job": {"id": 347, "assignee": {"id": 1171}}, "organization": {"id": 197}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 677}, "assignee": {"id": 36}, "project": {"id": 348, "owner": {"id": 704}, "assignee": {"id": 882}}, "task": {"id": 377, "owner": {"id": 904}, "assignee": {"id": 1033}}, "job": {"id": 357, "assignee": {"id": 1127}}, "organization": {"id": 1200}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 610}, "assignee": {"id": 10}, "project": {"id": 398, "owner": {"id": 770}, "assignee": {"id": 899}}, "task": {"id": 342, "owner": {"id": 937}, "assignee": {"id": 1063}}, "job": {"id": 316, "assignee": {"id": 1167}}, "organization": {"id": 1218}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 687}, "assignee": {"id": 518}, "project": {"id": 365, "owner": {"id": 741}, "assignee": {"id": 815}}, "task": {"id": 316, "owner": {"id": 959}, "assignee": {"id": 1064}}, "job": {"id": 305, "assignee": {"id": 1137}}, "organization": {"id": 112}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 672}, "assignee": {"id": 509}, "project": {"id": 328, "owner": {"id": 750}, "assignee": {"id": 864}}, "task": {"id": 348, "owner": {"id": 994}, "assignee": {"id": 1016}}, "job": {"id": 399, "assignee": {"id": 1171}}, "organization": {"id": 136}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 617}, "assignee": {"id": 515}, "project": {"id": 382, "owner": {"id": 739}, "assignee": {"id": 810}}, "task": {"id": 334, "owner": {"id": 903}, "assignee": {"id": 1046}}, "job": {"id": 336, "assignee": {"id": 1120}}, "organization": {"id": 1256}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 690}, "assignee": {"id": 562}, "project": {"id": 389, "owner": {"id": 729}, "assignee": {"id": 835}}, "task": {"id": 362, "owner": {"id": 998}, "assignee": {"id": 1058}}, "job": {"id": 328, "assignee": {"id": 1106}}, "organization": {"id": 1288}}} +} + +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": 166, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 609}, "assignee": {"id": 598}, "project": {"id": 345, "owner": {"id": 715}, "assignee": {"id": 834}}, "task": {"id": 337, "owner": {"id": 908}, "assignee": {"id": 1090}}, "job": {"id": 346, "assignee": {"id": 1178}}, "organization": {"id": 166}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 628}, "assignee": {"id": 522}, "project": {"id": 355, "owner": {"id": 769}, "assignee": {"id": 875}}, "task": {"id": 391, "owner": {"id": 926}, "assignee": {"id": 1075}}, "job": {"id": 382, "assignee": {"id": 1188}}, "organization": {"id": 115}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 688}, "assignee": {"id": 556}, "project": {"id": 385, "owner": {"id": 764}, "assignee": {"id": 876}}, "task": {"id": 393, "owner": {"id": 917}, "assignee": {"id": 1036}}, "job": {"id": 339, "assignee": {"id": 1117}}, "organization": {"id": 1222}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 617}, "assignee": {"id": 597}, "project": {"id": 303, "owner": {"id": 726}, "assignee": {"id": 808}}, "task": {"id": 384, "owner": {"id": 958}, "assignee": {"id": 1037}}, "job": {"id": 379, "assignee": {"id": 1153}}, "organization": {"id": 1249}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 672}, "assignee": {"id": 534}, "project": {"id": 318, "owner": {"id": 780}, "assignee": {"id": 831}}, "task": {"id": 304, "owner": {"id": 990}, "assignee": {"id": 1006}}, "job": {"id": 304, "assignee": {"id": 1128}}, "organization": {"id": 113}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 659}, "assignee": {"id": 546}, "project": {"id": 353, "owner": {"id": 747}, "assignee": {"id": 848}}, "task": {"id": 360, "owner": {"id": 909}, "assignee": {"id": 1078}}, "job": {"id": 362, "assignee": {"id": 1110}}, "organization": {"id": 115}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 643}, "assignee": {"id": 545}, "project": {"id": 355, "owner": {"id": 795}, "assignee": {"id": 875}}, "task": {"id": 324, "owner": {"id": 933}, "assignee": {"id": 1093}}, "job": {"id": 388, "assignee": {"id": 1156}}, "organization": {"id": 1295}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 694}, "assignee": {"id": 581}, "project": {"id": 354, "owner": {"id": 791}, "assignee": {"id": 896}}, "task": {"id": 380, "owner": {"id": 925}, "assignee": {"id": 1063}}, "job": {"id": 339, "assignee": {"id": 1174}}, "organization": {"id": 1228}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 681}, "assignee": {"id": 594}, "project": {"id": 398, "owner": {"id": 766}, "assignee": {"id": 886}}, "task": {"id": 338, "owner": {"id": 908}, "assignee": {"id": 1028}}, "job": {"id": 328, "assignee": {"id": 1188}}, "organization": {"id": 146}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 676}, "assignee": {"id": 546}, "project": {"id": 332, "owner": {"id": 743}, "assignee": {"id": 888}}, "task": {"id": 369, "owner": {"id": 902}, "assignee": {"id": 1048}}, "job": {"id": 306, "assignee": {"id": 1154}}, "organization": {"id": 116}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 675}, "assignee": {"id": 502}, "project": {"id": 378, "owner": {"id": 772}, "assignee": {"id": 838}}, "task": {"id": 386, "owner": {"id": 906}, "assignee": {"id": 1063}}, "job": {"id": 364, "assignee": {"id": 1110}}, "organization": {"id": 1203}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 665}, "assignee": {"id": 595}, "project": {"id": 341, "owner": {"id": 716}, "assignee": {"id": 898}}, "task": {"id": 337, "owner": {"id": 972}, "assignee": {"id": 1000}}, "job": {"id": 300, "assignee": {"id": 1144}}, "organization": {"id": 1247}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 659}, "assignee": {"id": 597}, "project": {"id": 313, "owner": {"id": 726}, "assignee": {"id": 867}}, "task": {"id": 330, "owner": {"id": 924}, "assignee": {"id": 1098}}, "job": {"id": 309, "assignee": {"id": 1180}}, "organization": {"id": 104}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 684}, "assignee": {"id": 554}, "project": {"id": 371, "owner": {"id": 745}, "assignee": {"id": 889}}, "task": {"id": 367, "owner": {"id": 978}, "assignee": {"id": 1061}}, "job": {"id": 394, "assignee": {"id": 1103}}, "organization": {"id": 101}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 600}, "assignee": {"id": 566}, "project": {"id": 322, "owner": {"id": 725}, "assignee": {"id": 882}}, "task": {"id": 336, "owner": {"id": 938}, "assignee": {"id": 1032}}, "job": {"id": 351, "assignee": {"id": 1128}}, "organization": {"id": 1213}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 642}, "assignee": {"id": 510}, "project": {"id": 391, "owner": {"id": 761}, "assignee": {"id": 806}}, "task": {"id": 329, "owner": {"id": 941}, "assignee": {"id": 1079}}, "job": {"id": 327, "assignee": {"id": 1196}}, "organization": {"id": 1219}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 668}, "assignee": {"id": 582}, "project": {"id": 331, "owner": {"id": 768}, "assignee": {"id": 840}}, "task": {"id": 318, "owner": {"id": 902}, "assignee": {"id": 1079}}, "job": {"id": 365, "assignee": {"id": 1130}}, "organization": {"id": 161}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 692}, "assignee": {"id": 548}, "project": {"id": 309, "owner": {"id": 754}, "assignee": {"id": 805}}, "task": {"id": 326, "owner": {"id": 939}, "assignee": {"id": 1038}}, "job": {"id": 336, "assignee": {"id": 1145}}, "organization": {"id": 125}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 678}, "assignee": {"id": 511}, "project": {"id": 358, "owner": {"id": 783}, "assignee": {"id": 825}}, "task": {"id": 381, "owner": {"id": 968}, "assignee": {"id": 1029}}, "job": {"id": 385, "assignee": {"id": 1158}}, "organization": {"id": 1262}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 664}, "assignee": {"id": 565}, "project": {"id": 303, "owner": {"id": 790}, "assignee": {"id": 800}}, "task": {"id": 331, "owner": {"id": 986}, "assignee": {"id": 1076}}, "job": {"id": 327, "assignee": {"id": 1143}}, "organization": {"id": 1274}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 634}, "assignee": {"id": 517}, "project": {"id": 397, "owner": {"id": 761}, "assignee": {"id": 816}}, "task": {"id": 339, "owner": {"id": 966}, "assignee": {"id": 1090}}, "job": {"id": 357, "assignee": {"id": 1121}}, "organization": {"id": 173}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 676}, "assignee": {"id": 512}, "project": {"id": 379, "owner": {"id": 761}, "assignee": {"id": 809}}, "task": {"id": 379, "owner": {"id": 923}, "assignee": {"id": 1084}}, "job": {"id": 352, "assignee": {"id": 1164}}, "organization": {"id": 135}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 682}, "assignee": {"id": 548}, "project": {"id": 352, "owner": {"id": 764}, "assignee": {"id": 891}}, "task": {"id": 370, "owner": {"id": 915}, "assignee": {"id": 1077}}, "job": {"id": 341, "assignee": {"id": 1105}}, "organization": {"id": 1207}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 643}, "assignee": {"id": 512}, "project": {"id": 361, "owner": {"id": 781}, "assignee": {"id": 871}}, "task": {"id": 311, "owner": {"id": 949}, "assignee": {"id": 1037}}, "job": {"id": 354, "assignee": {"id": 1112}}, "organization": {"id": 1245}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 666}, "assignee": {"id": 553}, "project": {"id": 360, "owner": {"id": 710}, "assignee": {"id": 869}}, "task": {"id": 338, "owner": {"id": 930}, "assignee": {"id": 1028}}, "job": {"id": 371, "assignee": {"id": 1175}}, "organization": {"id": 163}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 623}, "assignee": {"id": 590}, "project": {"id": 340, "owner": {"id": 779}, "assignee": {"id": 828}}, "task": {"id": 340, "owner": {"id": 933}, "assignee": {"id": 1071}}, "job": {"id": 359, "assignee": {"id": 1148}}, "organization": {"id": 102}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 690}, "assignee": {"id": 558}, "project": {"id": 385, "owner": {"id": 768}, "assignee": {"id": 876}}, "task": {"id": 346, "owner": {"id": 901}, "assignee": {"id": 1044}}, "job": {"id": 354, "assignee": {"id": 1165}}, "organization": {"id": 1204}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 693}, "assignee": {"id": 526}, "project": {"id": 333, "owner": {"id": 793}, "assignee": {"id": 840}}, "task": {"id": 395, "owner": {"id": 922}, "assignee": {"id": 1037}}, "job": {"id": 357, "assignee": {"id": 1185}}, "organization": {"id": 1216}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 675}, "assignee": {"id": 577}, "project": {"id": 379, "owner": {"id": 785}, "assignee": {"id": 882}}, "task": {"id": 348, "owner": {"id": 958}, "assignee": {"id": 1070}}, "job": {"id": 399, "assignee": {"id": 1160}}, "organization": {"id": 105}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 674}, "assignee": {"id": 577}, "project": {"id": 304, "owner": {"id": 721}, "assignee": {"id": 867}}, "task": {"id": 312, "owner": {"id": 972}, "assignee": {"id": 1049}}, "job": {"id": 382, "assignee": {"id": 1178}}, "organization": {"id": 181}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 692}, "assignee": {"id": 503}, "project": {"id": 396, "owner": {"id": 786}, "assignee": {"id": 821}}, "task": {"id": 325, "owner": {"id": 962}, "assignee": {"id": 1080}}, "job": {"id": 310, "assignee": {"id": 1129}}, "organization": {"id": 1234}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 684}, "assignee": {"id": 582}, "project": {"id": 389, "owner": {"id": 781}, "assignee": {"id": 847}}, "task": {"id": 375, "owner": {"id": 943}, "assignee": {"id": 1052}}, "job": {"id": 308, "assignee": {"id": 1137}}, "organization": {"id": 1218}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 656}, "assignee": {"id": 584}, "project": {"id": 306, "owner": {"id": 722}, "assignee": {"id": 823}}, "task": {"id": 370, "owner": {"id": 934}, "assignee": {"id": 1077}}, "job": {"id": 329, "assignee": {"id": 1129}}, "organization": {"id": 170}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 604}, "assignee": {"id": 541}, "project": {"id": 376, "owner": {"id": 752}, "assignee": {"id": 806}}, "task": {"id": 318, "owner": {"id": 936}, "assignee": {"id": 1073}}, "job": {"id": 367, "assignee": {"id": 1190}}, "organization": {"id": 186}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 607}, "assignee": {"id": 504}, "project": {"id": 351, "owner": {"id": 793}, "assignee": {"id": 813}}, "task": {"id": 371, "owner": {"id": 964}, "assignee": {"id": 1008}}, "job": {"id": 343, "assignee": {"id": 1134}}, "organization": {"id": 1284}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 636}, "assignee": {"id": 587}, "project": {"id": 378, "owner": {"id": 765}, "assignee": {"id": 837}}, "task": {"id": 362, "owner": {"id": 967}, "assignee": {"id": 1010}}, "job": {"id": 303, "assignee": {"id": 1178}}, "organization": {"id": 1277}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 657}, "assignee": {"id": 528}, "project": {"id": 393, "owner": {"id": 797}, "assignee": {"id": 830}}, "task": {"id": 333, "owner": {"id": 933}, "assignee": {"id": 1016}}, "job": {"id": 362, "assignee": {"id": 1190}}, "organization": {"id": 101}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 679}, "assignee": {"id": 500}, "project": {"id": 319, "owner": {"id": 794}, "assignee": {"id": 851}}, "task": {"id": 357, "owner": {"id": 976}, "assignee": {"id": 1067}}, "job": {"id": 345, "assignee": {"id": 1110}}, "organization": {"id": 139}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 632}, "assignee": {"id": 571}, "project": {"id": 340, "owner": {"id": 763}, "assignee": {"id": 863}}, "task": {"id": 331, "owner": {"id": 984}, "assignee": {"id": 1079}}, "job": {"id": 330, "assignee": {"id": 1118}}, "organization": {"id": 1201}}} +} + +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": 178, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 603}, "assignee": {"id": 562}, "project": {"id": 359, "owner": {"id": 750}, "assignee": {"id": 875}}, "task": {"id": 311, "owner": {"id": 995}, "assignee": {"id": 1036}}, "job": {"id": 312, "assignee": {"id": 1100}}, "organization": {"id": 1285}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 682}, "assignee": {"id": 587}, "project": {"id": 341, "owner": {"id": 733}, "assignee": {"id": 884}}, "task": {"id": 394, "owner": {"id": 969}, "assignee": {"id": 1068}}, "job": {"id": 394, "assignee": {"id": 1162}}, "organization": {"id": 133}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 648}, "assignee": {"id": 534}, "project": {"id": 341, "owner": {"id": 791}, "assignee": {"id": 881}}, "task": {"id": 359, "owner": {"id": 972}, "assignee": {"id": 1008}}, "job": {"id": 312, "assignee": {"id": 1159}}, "organization": {"id": 178}}} +} + +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": 139, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 688}, "assignee": {"id": 554}, "project": {"id": 316, "owner": {"id": 783}, "assignee": {"id": 857}}, "task": {"id": 341, "owner": {"id": 988}, "assignee": {"id": 1039}}, "job": {"id": 308, "assignee": {"id": 1152}}, "organization": {"id": 1241}}} +} + +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": 134, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 633}, "assignee": {"id": 567}, "project": {"id": 381, "owner": {"id": 720}, "assignee": {"id": 887}}, "task": {"id": 371, "owner": {"id": 943}, "assignee": {"id": 1008}}, "job": {"id": 361, "assignee": {"id": 1156}}, "organization": {"id": 1210}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 677}, "assignee": {"id": 545}, "project": {"id": 370, "owner": {"id": 734}, "assignee": {"id": 836}}, "task": {"id": 367, "owner": {"id": 979}, "assignee": {"id": 1028}}, "job": {"id": 379, "assignee": {"id": 1103}}, "organization": {"id": 179}}} +} + +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": 161, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 655}, "assignee": {"id": 521}, "project": {"id": 370, "owner": {"id": 739}, "assignee": {"id": 872}}, "task": {"id": 332, "owner": {"id": 928}, "assignee": {"id": 1036}}, "job": {"id": 385, "assignee": {"id": 1162}}, "organization": {"id": 161}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 638}, "assignee": {"id": 593}, "project": {"id": 355, "owner": {"id": 750}, "assignee": {"id": 851}}, "task": {"id": 370, "owner": {"id": 982}, "assignee": {"id": 1087}}, "job": {"id": 369, "assignee": {"id": 1106}}, "organization": {"id": 1230}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 646}, "assignee": {"id": 590}, "project": {"id": 329, "owner": {"id": 790}, "assignee": {"id": 876}}, "task": {"id": 334, "owner": {"id": 955}, "assignee": {"id": 1017}}, "job": {"id": 394, "assignee": {"id": 1175}}, "organization": {"id": 1234}}} +} + +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": 194, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 643}, "assignee": {"id": 519}, "project": {"id": 368, "owner": {"id": 774}, "assignee": {"id": 853}}, "task": {"id": 338, "owner": {"id": 955}, "assignee": {"id": 1028}}, "job": {"id": 385, "assignee": {"id": 1108}}, "organization": {"id": 194}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 642}, "assignee": {"id": 595}, "project": {"id": 323, "owner": {"id": 783}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 989}, "assignee": {"id": 1020}}, "job": {"id": 319, "assignee": {"id": 1176}}, "organization": {"id": 150}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 671}, "assignee": {"id": 510}, "project": {"id": 338, "owner": {"id": 705}, "assignee": {"id": 863}}, "task": {"id": 391, "owner": {"id": 997}, "assignee": {"id": 1011}}, "job": {"id": 357, "assignee": {"id": 1116}}, "organization": {"id": 1256}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 620}, "assignee": {"id": 523}, "project": {"id": 327, "owner": {"id": 713}, "assignee": {"id": 863}}, "task": {"id": 357, "owner": {"id": 904}, "assignee": {"id": 1040}}, "job": {"id": 304, "assignee": {"id": 1183}}, "organization": {"id": 1257}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 608}, "assignee": {"id": 558}, "project": {"id": 372, "owner": {"id": 736}, "assignee": {"id": 870}}, "task": {"id": 379, "owner": {"id": 922}, "assignee": {"id": 1011}}, "job": {"id": 395, "assignee": {"id": 1175}}, "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": 44, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 648}, "assignee": {"id": 514}, "project": {"id": 392, "owner": {"id": 787}, "assignee": {"id": 856}}, "task": {"id": 304, "owner": {"id": 919}, "assignee": {"id": 1045}}, "job": {"id": 343, "assignee": {"id": 1166}}, "organization": {"id": 199}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 655}, "assignee": {"id": 518}, "project": {"id": 333, "owner": {"id": 740}, "assignee": {"id": 840}}, "task": {"id": 336, "owner": {"id": 934}, "assignee": {"id": 1095}}, "job": {"id": 376, "assignee": {"id": 1164}}, "organization": {"id": 1238}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 619}, "assignee": {"id": 566}, "project": {"id": 349, "owner": {"id": 733}, "assignee": {"id": 878}}, "task": {"id": 336, "owner": {"id": 920}, "assignee": {"id": 1047}}, "job": {"id": 342, "assignee": {"id": 1169}}, "organization": {"id": 1205}}} +} + +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": 152, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 605}, "assignee": {"id": 598}, "project": {"id": 390, "owner": {"id": 752}, "assignee": {"id": 883}}, "task": {"id": 332, "owner": {"id": 957}, "assignee": {"id": 1018}}, "job": {"id": 336, "assignee": {"id": 1186}}, "organization": {"id": 152}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 637}, "assignee": {"id": 589}, "project": {"id": 322, "owner": {"id": 708}, "assignee": {"id": 885}}, "task": {"id": 346, "owner": {"id": 982}, "assignee": {"id": 1082}}, "job": {"id": 386, "assignee": {"id": 1143}}, "organization": {"id": 126}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 697}, "assignee": {"id": 567}, "project": {"id": 324, "owner": {"id": 755}, "assignee": {"id": 879}}, "task": {"id": 320, "owner": {"id": 952}, "assignee": {"id": 1053}}, "job": {"id": 304, "assignee": {"id": 1129}}, "organization": {"id": 1242}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 637}, "assignee": {"id": 560}, "project": {"id": 320, "owner": {"id": 706}, "assignee": {"id": 879}}, "task": {"id": 341, "owner": {"id": 944}, "assignee": {"id": 1009}}, "job": {"id": 345, "assignee": {"id": 1160}}, "organization": {"id": 1273}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 679}, "assignee": {"id": 516}, "project": {"id": 366, "owner": {"id": 757}, "assignee": {"id": 872}}, "task": {"id": 346, "owner": {"id": 981}, "assignee": {"id": 1028}}, "job": {"id": 352, "assignee": {"id": 1169}}, "organization": {"id": 196}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 620}, "assignee": {"id": 552}, "project": {"id": 322, "owner": {"id": 731}, "assignee": {"id": 832}}, "task": {"id": 351, "owner": {"id": 956}, "assignee": {"id": 1049}}, "job": {"id": 304, "assignee": {"id": 1146}}, "organization": {"id": 176}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 671}, "assignee": {"id": 519}, "project": {"id": 369, "owner": {"id": 719}, "assignee": {"id": 857}}, "task": {"id": 395, "owner": {"id": 958}, "assignee": {"id": 1012}}, "job": {"id": 372, "assignee": {"id": 1115}}, "organization": {"id": 1217}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 662}, "assignee": {"id": 513}, "project": {"id": 397, "owner": {"id": 778}, "assignee": {"id": 833}}, "task": {"id": 389, "owner": {"id": 933}, "assignee": {"id": 1025}}, "job": {"id": 344, "assignee": {"id": 1140}}, "organization": {"id": 1207}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 663}, "assignee": {"id": 509}, "project": {"id": 355, "owner": {"id": 799}, "assignee": {"id": 867}}, "task": {"id": 320, "owner": {"id": 998}, "assignee": {"id": 1086}}, "job": {"id": 363, "assignee": {"id": 1129}}, "organization": {"id": 144}}} +} + +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": 128, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 633}, "assignee": {"id": 507}, "project": {"id": 331, "owner": {"id": 757}, "assignee": {"id": 801}}, "task": {"id": 331, "owner": {"id": 993}, "assignee": {"id": 1067}}, "job": {"id": 324, "assignee": {"id": 1138}}, "organization": {"id": 128}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 695}, "assignee": {"id": 524}, "project": {"id": 377, "owner": {"id": 796}, "assignee": {"id": 892}}, "task": {"id": 330, "owner": {"id": 940}, "assignee": {"id": 1023}}, "job": {"id": 370, "assignee": {"id": 1108}}, "organization": {"id": 1271}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 650}, "assignee": {"id": 564}, "project": {"id": 353, "owner": {"id": 737}, "assignee": {"id": 847}}, "task": {"id": 383, "owner": {"id": 989}, "assignee": {"id": 1073}}, "job": {"id": 318, "assignee": {"id": 1181}}, "organization": {"id": 1236}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 696}, "assignee": {"id": 571}, "project": {"id": 391, "owner": {"id": 764}, "assignee": {"id": 839}}, "task": {"id": 359, "owner": {"id": 942}, "assignee": {"id": 1026}}, "job": {"id": 398, "assignee": {"id": 1163}}, "organization": {"id": 148}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 664}, "assignee": {"id": 564}, "project": {"id": 373, "owner": {"id": 754}, "assignee": {"id": 862}}, "task": {"id": 313, "owner": {"id": 901}, "assignee": {"id": 1047}}, "job": {"id": 373, "assignee": {"id": 1178}}, "organization": {"id": 114}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 632}, "assignee": {"id": 565}, "project": {"id": 335, "owner": {"id": 729}, "assignee": {"id": 847}}, "task": {"id": 353, "owner": {"id": 980}, "assignee": {"id": 1063}}, "job": {"id": 354, "assignee": {"id": 1132}}, "organization": {"id": 1221}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 600}, "assignee": {"id": 512}, "project": {"id": 327, "owner": {"id": 729}, "assignee": {"id": 843}}, "task": {"id": 351, "owner": {"id": 938}, "assignee": {"id": 1065}}, "job": {"id": 335, "assignee": {"id": 1198}}, "organization": {"id": 1281}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 689}, "assignee": {"id": 532}, "project": {"id": 379, "owner": {"id": 772}, "assignee": {"id": 832}}, "task": {"id": 327, "owner": {"id": 929}, "assignee": {"id": 1025}}, "job": {"id": 326, "assignee": {"id": 1173}}, "organization": {"id": 199}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 648}, "assignee": {"id": 512}, "project": {"id": 318, "owner": {"id": 743}, "assignee": {"id": 826}}, "task": {"id": 371, "owner": {"id": 974}, "assignee": {"id": 1016}}, "job": {"id": 396, "assignee": {"id": 1112}}, "organization": {"id": 173}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 653}, "assignee": {"id": 582}, "project": {"id": 324, "owner": {"id": 701}, "assignee": {"id": 845}}, "task": {"id": 371, "owner": {"id": 933}, "assignee": {"id": 1052}}, "job": {"id": 315, "assignee": {"id": 1149}}, "organization": {"id": 1257}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 632}, "assignee": {"id": 518}, "project": {"id": 306, "owner": {"id": 776}, "assignee": {"id": 819}}, "task": {"id": 343, "owner": {"id": 914}, "assignee": {"id": 1080}}, "job": {"id": 346, "assignee": {"id": 1187}}, "organization": {"id": 1262}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 638}, "assignee": {"id": 520}, "project": {"id": 384, "owner": {"id": 786}, "assignee": {"id": 855}}, "task": {"id": 329, "owner": {"id": 907}, "assignee": {"id": 1027}}, "job": {"id": 308, "assignee": {"id": 1125}}, "organization": {"id": 113}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 612}, "assignee": {"id": 501}, "project": {"id": 399, "owner": {"id": 782}, "assignee": {"id": 805}}, "task": {"id": 394, "owner": {"id": 906}, "assignee": {"id": 1093}}, "job": {"id": 301, "assignee": {"id": 1143}}, "organization": {"id": 151}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 609}, "assignee": {"id": 566}, "project": {"id": 378, "owner": {"id": 731}, "assignee": {"id": 814}}, "task": {"id": 342, "owner": {"id": 987}, "assignee": {"id": 1023}}, "job": {"id": 312, "assignee": {"id": 1122}}, "organization": {"id": 1280}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 657}, "assignee": {"id": 526}, "project": {"id": 346, "owner": {"id": 715}, "assignee": {"id": 809}}, "task": {"id": 368, "owner": {"id": 963}, "assignee": {"id": 1069}}, "job": {"id": 379, "assignee": {"id": 1168}}, "organization": {"id": 1286}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 641}, "assignee": {"id": 561}, "project": {"id": 339, "owner": {"id": 781}, "assignee": {"id": 820}}, "task": {"id": 378, "owner": {"id": 919}, "assignee": {"id": 1039}}, "job": {"id": 388, "assignee": {"id": 1160}}, "organization": {"id": 167}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 627}, "assignee": {"id": 553}, "project": {"id": 389, "owner": {"id": 747}, "assignee": {"id": 871}}, "task": {"id": 360, "owner": {"id": 937}, "assignee": {"id": 1006}}, "job": {"id": 313, "assignee": {"id": 1199}}, "organization": {"id": 116}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 610}, "assignee": {"id": 519}, "project": {"id": 359, "owner": {"id": 796}, "assignee": {"id": 871}}, "task": {"id": 308, "owner": {"id": 956}, "assignee": {"id": 1011}}, "job": {"id": 344, "assignee": {"id": 1108}}, "organization": {"id": 1274}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 608}, "assignee": {"id": 582}, "project": {"id": 352, "owner": {"id": 740}, "assignee": {"id": 896}}, "task": {"id": 319, "owner": {"id": 986}, "assignee": {"id": 1040}}, "job": {"id": 363, "assignee": {"id": 1137}}, "organization": {"id": 1207}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 609}, "assignee": {"id": 508}, "project": {"id": 383, "owner": {"id": 718}, "assignee": {"id": 873}}, "task": {"id": 306, "owner": {"id": 907}, "assignee": {"id": 1097}}, "job": {"id": 319, "assignee": {"id": 1108}}, "organization": {"id": 174}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 694}, "assignee": {"id": 563}, "project": {"id": 364, "owner": {"id": 769}, "assignee": {"id": 896}}, "task": {"id": 368, "owner": {"id": 915}, "assignee": {"id": 1063}}, "job": {"id": 301, "assignee": {"id": 1193}}, "organization": {"id": 192}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 692}, "assignee": {"id": 543}, "project": {"id": 353, "owner": {"id": 767}, "assignee": {"id": 866}}, "task": {"id": 396, "owner": {"id": 974}, "assignee": {"id": 1044}}, "job": {"id": 307, "assignee": {"id": 1132}}, "organization": {"id": 1220}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 638}, "assignee": {"id": 535}, "project": {"id": 310, "owner": {"id": 765}, "assignee": {"id": 851}}, "task": {"id": 374, "owner": {"id": 953}, "assignee": {"id": 1078}}, "job": {"id": 337, "assignee": {"id": 1177}}, "organization": {"id": 1278}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 697}, "assignee": {"id": 548}, "project": {"id": 328, "owner": {"id": 704}, "assignee": {"id": 860}}, "task": {"id": 317, "owner": {"id": 977}, "assignee": {"id": 1001}}, "job": {"id": 330, "assignee": {"id": 1121}}, "organization": {"id": 106}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 636}, "assignee": {"id": 593}, "project": {"id": 345, "owner": {"id": 795}, "assignee": {"id": 842}}, "task": {"id": 307, "owner": {"id": 931}, "assignee": {"id": 1013}}, "job": {"id": 316, "assignee": {"id": 1178}}, "organization": {"id": 126}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 604}, "assignee": {"id": 555}, "project": {"id": 327, "owner": {"id": 731}, "assignee": {"id": 850}}, "task": {"id": 337, "owner": {"id": 972}, "assignee": {"id": 1055}}, "job": {"id": 310, "assignee": {"id": 1184}}, "organization": {"id": 1293}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 664}, "assignee": {"id": 545}, "project": {"id": 345, "owner": {"id": 728}, "assignee": {"id": 832}}, "task": {"id": 391, "owner": {"id": 913}, "assignee": {"id": 1038}}, "job": {"id": 394, "assignee": {"id": 1139}}, "organization": {"id": 1232}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 601}, "assignee": {"id": 556}, "project": {"id": 355, "owner": {"id": 723}, "assignee": {"id": 879}}, "task": {"id": 310, "owner": {"id": 977}, "assignee": {"id": 1065}}, "job": {"id": 388, "assignee": {"id": 1161}}, "organization": {"id": 191}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 661}, "assignee": {"id": 550}, "project": {"id": 357, "owner": {"id": 776}, "assignee": {"id": 874}}, "task": {"id": 370, "owner": {"id": 906}, "assignee": {"id": 1021}}, "job": {"id": 300, "assignee": {"id": 1165}}, "organization": {"id": 138}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 641}, "assignee": {"id": 501}, "project": {"id": 311, "owner": {"id": 724}, "assignee": {"id": 805}}, "task": {"id": 383, "owner": {"id": 964}, "assignee": {"id": 1045}}, "job": {"id": 370, "assignee": {"id": 1129}}, "organization": {"id": 1214}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 659}, "assignee": {"id": 519}, "project": {"id": 393, "owner": {"id": 769}, "assignee": {"id": 809}}, "task": {"id": 316, "owner": {"id": 924}, "assignee": {"id": 1053}}, "job": {"id": 304, "assignee": {"id": 1101}}, "organization": {"id": 1255}}} +} + +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": 73, "privilege": "admin"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 647}, "assignee": {"id": 522}, "project": {"id": 388, "owner": {"id": 73}, "assignee": {"id": 866}}, "task": {"id": 335, "owner": {"id": 969}, "assignee": {"id": 1031}}, "job": {"id": 331, "assignee": {"id": 1171}}, "organization": {"id": 1280}}} +} + +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": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 648}, "assignee": {"id": 517}, "project": {"id": 338, "owner": {"id": 72}, "assignee": {"id": 810}}, "task": {"id": 345, "owner": {"id": 980}, "assignee": {"id": 1073}}, "job": {"id": 361, "assignee": {"id": 1184}}, "organization": {"id": 1292}}} +} + +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": 67, "privilege": "user"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 614}, "assignee": {"id": 502}, "project": {"id": 320, "owner": {"id": 67}, "assignee": {"id": 841}}, "task": {"id": 350, "owner": {"id": 926}, "assignee": {"id": 1025}}, "job": {"id": 357, "assignee": {"id": 1159}}, "organization": {"id": 1236}}} +} + +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": 25, "privilege": "worker"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 618}, "assignee": {"id": 581}, "project": {"id": 359, "owner": {"id": 25}, "assignee": {"id": 805}}, "task": {"id": 309, "owner": {"id": 945}, "assignee": {"id": 1089}}, "job": {"id": 340, "assignee": {"id": 1165}}, "organization": {"id": 1201}}} +} + +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": 3, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 675}, "assignee": {"id": 503}, "project": {"id": 323, "owner": {"id": 3}, "assignee": {"id": 843}}, "task": {"id": 343, "owner": {"id": 909}, "assignee": {"id": 1089}}, "job": {"id": 325, "assignee": {"id": 1165}}, "organization": {"id": 1295}}} +} + +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": 65, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 639}, "assignee": {"id": 536}, "project": {"id": 350, "owner": {"id": 729}, "assignee": {"id": 65}}, "task": {"id": 370, "owner": {"id": 966}, "assignee": {"id": 1072}}, "job": {"id": 384, "assignee": {"id": 1180}}, "organization": {"id": 1293}}} +} + +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": 44, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 655}, "assignee": {"id": 523}, "project": {"id": 381, "owner": {"id": 739}, "assignee": {"id": 44}}, "task": {"id": 386, "owner": {"id": 981}, "assignee": {"id": 1073}}, "job": {"id": 359, "assignee": {"id": 1178}}, "organization": {"id": 1211}}} +} + +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": 66, "privilege": "user"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 654}, "assignee": {"id": 564}, "project": {"id": 348, "owner": {"id": 754}, "assignee": {"id": 66}}, "task": {"id": 361, "owner": {"id": 986}, "assignee": {"id": 1025}}, "job": {"id": 374, "assignee": {"id": 1121}}, "organization": {"id": 1211}}} +} + +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": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 685}, "assignee": {"id": 588}, "project": {"id": 311, "owner": {"id": 724}, "assignee": {"id": 76}}, "task": {"id": 390, "owner": {"id": 973}, "assignee": {"id": 1026}}, "job": {"id": 385, "assignee": {"id": 1147}}, "organization": {"id": 1260}}} +} + +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": 2, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 632}, "assignee": {"id": 554}, "project": {"id": 328, "owner": {"id": 740}, "assignee": {"id": 2}}, "task": {"id": 311, "owner": {"id": 978}, "assignee": {"id": 1009}}, "job": {"id": 335, "assignee": {"id": 1165}}, "organization": {"id": 1295}}} +} + +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": 5, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 633}, "assignee": {"id": 565}, "project": {"id": 308, "owner": {"id": 779}, "assignee": {"id": 873}}, "task": {"id": 398, "owner": {"id": 5}, "assignee": {"id": 1019}}, "job": {"id": 394, "assignee": {"id": 1181}}, "organization": {"id": 1231}}} +} + +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": 64, "privilege": "admin"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 600}, "assignee": {"id": 532}, "project": {"id": 313, "owner": {"id": 782}, "assignee": {"id": 842}}, "task": {"id": 309, "owner": {"id": 64}, "assignee": {"id": 1026}}, "job": {"id": 383, "assignee": {"id": 1163}}, "organization": {"id": 1283}}} +} + +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": 84, "privilege": "business"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 673}, "assignee": {"id": 523}, "project": {"id": 315, "owner": {"id": 776}, "assignee": {"id": 897}}, "task": {"id": 362, "owner": {"id": 84}, "assignee": {"id": 1014}}, "job": {"id": 391, "assignee": {"id": 1173}}, "organization": {"id": 1224}}} +} + +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": 14, "privilege": "business"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 667}, "assignee": {"id": 599}, "project": {"id": 358, "owner": {"id": 768}, "assignee": {"id": 802}}, "task": {"id": 338, "owner": {"id": 14}, "assignee": {"id": 1033}}, "job": {"id": 377, "assignee": {"id": 1113}}, "organization": {"id": 1293}}} +} + +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": 86, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 693}, "assignee": {"id": 593}, "project": {"id": 317, "owner": {"id": 708}, "assignee": {"id": 842}}, "task": {"id": 355, "owner": {"id": 86}, "assignee": {"id": 1079}}, "job": {"id": 318, "assignee": {"id": 1153}}, "organization": {"id": 1210}}} +} + +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": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 620}, "assignee": {"id": 568}, "project": {"id": 351, "owner": {"id": 701}, "assignee": {"id": 859}}, "task": {"id": 322, "owner": {"id": 29}, "assignee": {"id": 1026}}, "job": {"id": 349, "assignee": {"id": 1142}}, "organization": {"id": 1289}}} +} + +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": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 627}, "assignee": {"id": 511}, "project": {"id": 300, "owner": {"id": 714}, "assignee": {"id": 873}}, "task": {"id": 345, "owner": {"id": 76}, "assignee": {"id": 1078}}, "job": {"id": 332, "assignee": {"id": 1181}}, "organization": {"id": 1271}}} +} + +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": 48, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 624}, "assignee": {"id": 547}, "project": {"id": 355, "owner": {"id": 701}, "assignee": {"id": 834}}, "task": {"id": 302, "owner": {"id": 48}, "assignee": {"id": 1061}}, "job": {"id": 353, "assignee": {"id": 1133}}, "organization": {"id": 1260}}} +} + +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": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 663}, "assignee": {"id": 530}, "project": {"id": 310, "owner": {"id": 798}, "assignee": {"id": 862}}, "task": {"id": 315, "owner": {"id": 14}, "assignee": {"id": 1091}}, "job": {"id": 311, "assignee": {"id": 1128}}, "organization": {"id": 1239}}} +} + +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": 26, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 654}, "assignee": {"id": 597}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 852}}, "task": {"id": 380, "owner": {"id": 26}, "assignee": {"id": 1018}}, "job": {"id": 307, "assignee": {"id": 1197}}, "organization": {"id": 1281}}} +} + +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": 70, "privilege": "admin"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 676}, "assignee": {"id": 582}, "project": {"id": 330, "owner": {"id": 708}, "assignee": {"id": 891}}, "task": {"id": 386, "owner": {"id": 919}, "assignee": {"id": 70}}, "job": {"id": 333, "assignee": {"id": 1181}}, "organization": {"id": 1246}}} +} + +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": 93, "privilege": "admin"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 678}, "assignee": {"id": 560}, "project": {"id": 364, "owner": {"id": 714}, "assignee": {"id": 836}}, "task": {"id": 339, "owner": {"id": 955}, "assignee": {"id": 93}}, "job": {"id": 347, "assignee": {"id": 1152}}, "organization": {"id": 1209}}} +} + +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": 2, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 662}, "assignee": {"id": 537}, "project": {"id": 319, "owner": {"id": 714}, "assignee": {"id": 875}}, "task": {"id": 388, "owner": {"id": 956}, "assignee": {"id": 2}}, "job": {"id": 353, "assignee": {"id": 1157}}, "organization": {"id": 1228}}} +} + +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": 88, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 637}, "assignee": {"id": 593}, "project": {"id": 308, "owner": {"id": 781}, "assignee": {"id": 879}}, "task": {"id": 392, "owner": {"id": 932}, "assignee": {"id": 88}}, "job": {"id": 336, "assignee": {"id": 1185}}, "organization": {"id": 1268}}} +} + +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": 25, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 611}, "assignee": {"id": 550}, "project": {"id": 376, "owner": {"id": 709}, "assignee": {"id": 824}}, "task": {"id": 318, "owner": {"id": 910}, "assignee": {"id": 25}}, "job": {"id": 326, "assignee": {"id": 1115}}, "organization": {"id": 1273}}} +} + +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": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 669}, "assignee": {"id": 538}, "project": {"id": 363, "owner": {"id": 786}, "assignee": {"id": 864}}, "task": {"id": 384, "owner": {"id": 951}, "assignee": {"id": 43}}, "job": {"id": 370, "assignee": {"id": 1174}}, "organization": {"id": 1268}}} +} + +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": 3, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 619}, "assignee": {"id": 578}, "project": {"id": 364, "owner": {"id": 763}, "assignee": {"id": 855}}, "task": {"id": 381, "owner": {"id": 932}, "assignee": {"id": 3}}, "job": {"id": 397, "assignee": {"id": 1126}}, "organization": {"id": 1295}}} +} + +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": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 622}, "assignee": {"id": 522}, "project": {"id": 353, "owner": {"id": 746}, "assignee": {"id": 891}}, "task": {"id": 320, "owner": {"id": 904}, "assignee": {"id": 19}}, "job": {"id": 308, "assignee": {"id": 1134}}, "organization": {"id": 1241}}} +} + +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": 13, "privilege": "none"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 621}, "assignee": {"id": 506}, "project": {"id": 389, "owner": {"id": 729}, "assignee": {"id": 825}}, "task": {"id": 354, "owner": {"id": 923}, "assignee": {"id": 13}}, "job": {"id": 365, "assignee": {"id": 1143}}, "organization": {"id": 1205}}} +} + +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": 90, "privilege": "none"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 666}, "assignee": {"id": 576}, "project": {"id": 335, "owner": {"id": 731}, "assignee": {"id": 803}}, "task": {"id": 395, "owner": {"id": 901}, "assignee": {"id": 90}}, "job": {"id": 306, "assignee": {"id": 1191}}, "organization": {"id": 1221}}} +} + +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": 65, "privilege": "admin"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 684}, "assignee": {"id": 578}, "project": {"id": 336, "owner": {"id": 733}, "assignee": {"id": 806}}, "task": {"id": 395, "owner": {"id": 906}, "assignee": {"id": 1032}}, "job": {"id": 387, "assignee": {"id": 65}}, "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": 73, "privilege": "admin"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 649}, "assignee": {"id": 510}, "project": {"id": 372, "owner": {"id": 713}, "assignee": {"id": 842}}, "task": {"id": 318, "owner": {"id": 900}, "assignee": {"id": 1004}}, "job": {"id": 347, "assignee": {"id": 73}}, "organization": {"id": 1241}}} +} + +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": 14, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 628}, "assignee": {"id": 561}, "project": {"id": 388, "owner": {"id": 776}, "assignee": {"id": 850}}, "task": {"id": 371, "owner": {"id": 937}, "assignee": {"id": 1040}}, "job": {"id": 317, "assignee": {"id": 14}}, "organization": {"id": 1217}}} +} + +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": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 614}, "assignee": {"id": 551}, "project": {"id": 365, "owner": {"id": 756}, "assignee": {"id": 857}}, "task": {"id": 304, "owner": {"id": 914}, "assignee": {"id": 1089}}, "job": {"id": 312, "assignee": {"id": 68}}, "organization": {"id": 1207}}} +} + +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": 91, "privilege": "user"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 680}, "assignee": {"id": 555}, "project": {"id": 351, "owner": {"id": 773}, "assignee": {"id": 866}}, "task": {"id": 349, "owner": {"id": 938}, "assignee": {"id": 1080}}, "job": {"id": 366, "assignee": {"id": 91}}, "organization": {"id": 1222}}} +} + +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": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 631}, "assignee": {"id": 580}, "project": {"id": 377, "owner": {"id": 771}, "assignee": {"id": 857}}, "task": {"id": 313, "owner": {"id": 986}, "assignee": {"id": 1034}}, "job": {"id": 311, "assignee": {"id": 43}}, "organization": {"id": 1292}}} +} + +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": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 677}, "assignee": {"id": 566}, "project": {"id": 318, "owner": {"id": 746}, "assignee": {"id": 838}}, "task": {"id": 328, "owner": {"id": 988}, "assignee": {"id": 1019}}, "job": {"id": 316, "assignee": {"id": 54}}, "organization": {"id": 1211}}} +} + +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": 90, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 668}, "assignee": {"id": 529}, "project": {"id": 359, "owner": {"id": 701}, "assignee": {"id": 867}}, "task": {"id": 303, "owner": {"id": 972}, "assignee": {"id": 1015}}, "job": {"id": 328, "assignee": {"id": 90}}, "organization": {"id": 1276}}} +} + +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": 51, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 697}, "assignee": {"id": 573}, "project": {"id": 328, "owner": {"id": 777}, "assignee": {"id": 814}}, "task": {"id": 314, "owner": {"id": 959}, "assignee": {"id": 1052}}, "job": {"id": 326, "assignee": {"id": 51}}, "organization": {"id": 1200}}} +} + +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": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 674}, "assignee": {"id": 545}, "project": {"id": 349, "owner": {"id": 718}, "assignee": {"id": 833}}, "task": {"id": 390, "owner": {"id": 960}, "assignee": {"id": 1080}}, "job": {"id": 319, "assignee": {"id": 56}}, "organization": {"id": 1268}}} +} + +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": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 669}, "assignee": {"id": 590}, "project": {"id": 361, "owner": {"id": 763}, "assignee": {"id": 882}}, "task": {"id": 365, "owner": {"id": 960}, "assignee": {"id": 1065}}, "job": {"id": 376, "assignee": {"id": 1139}}, "organization": {"id": 1269}}} +} + +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": 63, "privilege": "admin"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 688}, "assignee": {"id": 518}, "project": {"id": 348, "owner": {"id": 770}, "assignee": {"id": 805}}, "task": {"id": 315, "owner": {"id": 989}, "assignee": {"id": 1013}}, "job": {"id": 357, "assignee": {"id": 1141}}, "organization": {"id": 1206}}} +} + +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": 46, "privilege": "business"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 600}, "assignee": {"id": 500}, "project": {"id": 331, "owner": {"id": 793}, "assignee": {"id": 837}}, "task": {"id": 356, "owner": {"id": 926}, "assignee": {"id": 1050}}, "job": {"id": 370, "assignee": {"id": 1108}}, "organization": {"id": 1231}}} +} + +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": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 664}, "assignee": {"id": 527}, "project": {"id": 358, "owner": {"id": 776}, "assignee": {"id": 876}}, "task": {"id": 342, "owner": {"id": 909}, "assignee": {"id": 1060}}, "job": {"id": 305, "assignee": {"id": 1192}}, "organization": {"id": 1243}}} +} + +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": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 619}, "assignee": {"id": 509}, "project": {"id": 325, "owner": {"id": 798}, "assignee": {"id": 803}}, "task": {"id": 367, "owner": {"id": 902}, "assignee": {"id": 1026}}, "job": {"id": 343, "assignee": {"id": 1117}}, "organization": {"id": 1236}}} +} + +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": 51, "privilege": "user"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 604}, "assignee": {"id": 512}, "project": {"id": 316, "owner": {"id": 737}, "assignee": {"id": 855}}, "task": {"id": 381, "owner": {"id": 942}, "assignee": {"id": 1069}}, "job": {"id": 399, "assignee": {"id": 1118}}, "organization": {"id": 1248}}} +} + +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": 45, "privilege": "worker"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 693}, "assignee": {"id": 535}, "project": {"id": 389, "owner": {"id": 754}, "assignee": {"id": 814}}, "task": {"id": 309, "owner": {"id": 979}, "assignee": {"id": 1057}}, "job": {"id": 310, "assignee": {"id": 1107}}, "organization": {"id": 1246}}} +} + +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": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 666}, "assignee": {"id": 537}, "project": {"id": 379, "owner": {"id": 715}, "assignee": {"id": 888}}, "task": {"id": 358, "owner": {"id": 941}, "assignee": {"id": 1056}}, "job": {"id": 347, "assignee": {"id": 1117}}, "organization": {"id": 1218}}} +} + +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": 30, "privilege": "none"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 650}, "assignee": {"id": 506}, "project": {"id": 311, "owner": {"id": 767}, "assignee": {"id": 899}}, "task": {"id": 368, "owner": {"id": 994}, "assignee": {"id": 1047}}, "job": {"id": 385, "assignee": {"id": 1199}}, "organization": {"id": 1257}}} +} + +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": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 635}, "assignee": {"id": 566}, "project": {"id": 325, "owner": {"id": 776}, "assignee": {"id": 805}}, "task": {"id": 376, "owner": {"id": 959}, "assignee": {"id": 1086}}, "job": {"id": 361, "assignee": {"id": 1119}}, "organization": {"id": 1217}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 612}, "assignee": {"id": 572}, "project": {"id": 346, "owner": {"id": 72}, "assignee": {"id": 867}}, "task": {"id": 339, "owner": {"id": 978}, "assignee": {"id": 1013}}, "job": {"id": 396, "assignee": {"id": 1158}}, "organization": {"id": 195}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 669}, "assignee": {"id": 554}, "project": {"id": 325, "owner": {"id": 38}, "assignee": {"id": 802}}, "task": {"id": 301, "owner": {"id": 952}, "assignee": {"id": 1087}}, "job": {"id": 378, "assignee": {"id": 1156}}, "organization": {"id": 1225}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 632}, "assignee": {"id": 593}, "project": {"id": 310, "owner": {"id": 12}, "assignee": {"id": 867}}, "task": {"id": 341, "owner": {"id": 955}, "assignee": {"id": 1066}}, "job": {"id": 383, "assignee": {"id": 1175}}, "organization": {"id": 124}}} +} + +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": 198, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 640}, "assignee": {"id": 529}, "project": {"id": 332, "owner": {"id": 66}, "assignee": {"id": 807}}, "task": {"id": 354, "owner": {"id": 992}, "assignee": {"id": 1073}}, "job": {"id": 319, "assignee": {"id": 1189}}, "organization": {"id": 1286}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 676}, "assignee": {"id": 567}, "project": {"id": 331, "owner": {"id": 77}, "assignee": {"id": 844}}, "task": {"id": 388, "owner": {"id": 943}, "assignee": {"id": 1065}}, "job": {"id": 381, "assignee": {"id": 1139}}, "organization": {"id": 165}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 616}, "assignee": {"id": 570}, "project": {"id": 379, "owner": {"id": 42}, "assignee": {"id": 872}}, "task": {"id": 351, "owner": {"id": 936}, "assignee": {"id": 1013}}, "job": {"id": 383, "assignee": {"id": 1112}}, "organization": {"id": 1234}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 676}, "assignee": {"id": 584}, "project": {"id": 302, "owner": {"id": 27}, "assignee": {"id": 804}}, "task": {"id": 387, "owner": {"id": 983}, "assignee": {"id": 1037}}, "job": {"id": 355, "assignee": {"id": 1159}}, "organization": {"id": 154}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 610}, "assignee": {"id": 500}, "project": {"id": 399, "owner": {"id": 49}, "assignee": {"id": 839}}, "task": {"id": 369, "owner": {"id": 951}, "assignee": {"id": 1006}}, "job": {"id": 388, "assignee": {"id": 1108}}, "organization": {"id": 1292}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 673}, "assignee": {"id": 524}, "project": {"id": 374, "owner": {"id": 86}, "assignee": {"id": 867}}, "task": {"id": 306, "owner": {"id": 908}, "assignee": {"id": 1073}}, "job": {"id": 379, "assignee": {"id": 1143}}, "organization": {"id": 162}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 636}, "assignee": {"id": 579}, "project": {"id": 305, "owner": {"id": 67}, "assignee": {"id": 828}}, "task": {"id": 308, "owner": {"id": 980}, "assignee": {"id": 1050}}, "job": {"id": 398, "assignee": {"id": 1110}}, "organization": {"id": 1288}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 609}, "assignee": {"id": 531}, "project": {"id": 316, "owner": {"id": 62}, "assignee": {"id": 818}}, "task": {"id": 373, "owner": {"id": 975}, "assignee": {"id": 1006}}, "job": {"id": 385, "assignee": {"id": 1175}}, "organization": {"id": 118}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 610}, "assignee": {"id": 516}, "project": {"id": 335, "owner": {"id": 30}, "assignee": {"id": 828}}, "task": {"id": 333, "owner": {"id": 907}, "assignee": {"id": 1020}}, "job": {"id": 344, "assignee": {"id": 1184}}, "organization": {"id": 1204}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 607}, "assignee": {"id": 510}, "project": {"id": 319, "owner": {"id": 46}, "assignee": {"id": 867}}, "task": {"id": 349, "owner": {"id": 913}, "assignee": {"id": 1075}}, "job": {"id": 319, "assignee": {"id": 1138}}, "organization": {"id": 172}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 694}, "assignee": {"id": 580}, "project": {"id": 326, "owner": {"id": 33}, "assignee": {"id": 809}}, "task": {"id": 365, "owner": {"id": 984}, "assignee": {"id": 1081}}, "job": {"id": 325, "assignee": {"id": 1103}}, "organization": {"id": 1205}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 656}, "assignee": {"id": 525}, "project": {"id": 344, "owner": {"id": 50}, "assignee": {"id": 879}}, "task": {"id": 382, "owner": {"id": 992}, "assignee": {"id": 1005}}, "job": {"id": 322, "assignee": {"id": 1191}}, "organization": {"id": 169}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 647}, "assignee": {"id": 594}, "project": {"id": 370, "owner": {"id": 43}, "assignee": {"id": 878}}, "task": {"id": 382, "owner": {"id": 982}, "assignee": {"id": 1069}}, "job": {"id": 332, "assignee": {"id": 1160}}, "organization": {"id": 1233}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 663}, "assignee": {"id": 522}, "project": {"id": 343, "owner": {"id": 44}, "assignee": {"id": 874}}, "task": {"id": 392, "owner": {"id": 949}, "assignee": {"id": 1094}}, "job": {"id": 330, "assignee": {"id": 1154}}, "organization": {"id": 142}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 673}, "assignee": {"id": 506}, "project": {"id": 364, "owner": {"id": 76}, "assignee": {"id": 850}}, "task": {"id": 333, "owner": {"id": 979}, "assignee": {"id": 1094}}, "job": {"id": 372, "assignee": {"id": 1104}}, "organization": {"id": 1209}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 623}, "assignee": {"id": 537}, "project": {"id": 307, "owner": {"id": 48}, "assignee": {"id": 849}}, "task": {"id": 361, "owner": {"id": 995}, "assignee": {"id": 1081}}, "job": {"id": 381, "assignee": {"id": 1110}}, "organization": {"id": 130}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 652}, "assignee": {"id": 575}, "project": {"id": 314, "owner": {"id": 64}, "assignee": {"id": 835}}, "task": {"id": 345, "owner": {"id": 936}, "assignee": {"id": 1049}}, "job": {"id": 330, "assignee": {"id": 1181}}, "organization": {"id": 1232}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 672}, "assignee": {"id": 504}, "project": {"id": 364, "owner": {"id": 24}, "assignee": {"id": 873}}, "task": {"id": 334, "owner": {"id": 957}, "assignee": {"id": 1086}}, "job": {"id": 391, "assignee": {"id": 1176}}, "organization": {"id": 162}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 600}, "assignee": {"id": 515}, "project": {"id": 334, "owner": {"id": 90}, "assignee": {"id": 807}}, "task": {"id": 381, "owner": {"id": 927}, "assignee": {"id": 1069}}, "job": {"id": 340, "assignee": {"id": 1104}}, "organization": {"id": 1277}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 667}, "assignee": {"id": 505}, "project": {"id": 316, "owner": {"id": 58}, "assignee": {"id": 815}}, "task": {"id": 322, "owner": {"id": 935}, "assignee": {"id": 1061}}, "job": {"id": 393, "assignee": {"id": 1152}}, "organization": {"id": 193}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 639}, "assignee": {"id": 555}, "project": {"id": 324, "owner": {"id": 81}, "assignee": {"id": 866}}, "task": {"id": 357, "owner": {"id": 942}, "assignee": {"id": 1026}}, "job": {"id": 325, "assignee": {"id": 1123}}, "organization": {"id": 1256}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 667}, "assignee": {"id": 570}, "project": {"id": 337, "owner": {"id": 3}, "assignee": {"id": 879}}, "task": {"id": 399, "owner": {"id": 980}, "assignee": {"id": 1082}}, "job": {"id": 349, "assignee": {"id": 1157}}, "organization": {"id": 151}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 617}, "assignee": {"id": 568}, "project": {"id": 385, "owner": {"id": 98}, "assignee": {"id": 829}}, "task": {"id": 390, "owner": {"id": 901}, "assignee": {"id": 1034}}, "job": {"id": 313, "assignee": {"id": 1145}}, "organization": {"id": 1221}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 617}, "assignee": {"id": 500}, "project": {"id": 340, "owner": {"id": 31}, "assignee": {"id": 886}}, "task": {"id": 325, "owner": {"id": 987}, "assignee": {"id": 1027}}, "job": {"id": 312, "assignee": {"id": 1154}}, "organization": {"id": 197}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 644}, "assignee": {"id": 581}, "project": {"id": 330, "owner": {"id": 86}, "assignee": {"id": 897}}, "task": {"id": 335, "owner": {"id": 942}, "assignee": {"id": 1025}}, "job": {"id": 354, "assignee": {"id": 1131}}, "organization": {"id": 1296}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 629}, "assignee": {"id": 575}, "project": {"id": 326, "owner": {"id": 73}, "assignee": {"id": 848}}, "task": {"id": 392, "owner": {"id": 942}, "assignee": {"id": 1069}}, "job": {"id": 371, "assignee": {"id": 1107}}, "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": 32, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 652}, "assignee": {"id": 595}, "project": {"id": 327, "owner": {"id": 32}, "assignee": {"id": 884}}, "task": {"id": 335, "owner": {"id": 952}, "assignee": {"id": 1007}}, "job": {"id": 335, "assignee": {"id": 1176}}, "organization": {"id": 1254}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 643}, "assignee": {"id": 599}, "project": {"id": 320, "owner": {"id": 21}, "assignee": {"id": 876}}, "task": {"id": 368, "owner": {"id": 972}, "assignee": {"id": 1002}}, "job": {"id": 356, "assignee": {"id": 1131}}, "organization": {"id": 130}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 682}, "assignee": {"id": 586}, "project": {"id": 349, "owner": {"id": 56}, "assignee": {"id": 805}}, "task": {"id": 397, "owner": {"id": 920}, "assignee": {"id": 1037}}, "job": {"id": 375, "assignee": {"id": 1155}}, "organization": {"id": 1234}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 688}, "assignee": {"id": 544}, "project": {"id": 301, "owner": {"id": 51}, "assignee": {"id": 860}}, "task": {"id": 337, "owner": {"id": 912}, "assignee": {"id": 1030}}, "job": {"id": 341, "assignee": {"id": 1185}}, "organization": {"id": 170}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 607}, "assignee": {"id": 502}, "project": {"id": 391, "owner": {"id": 52}, "assignee": {"id": 886}}, "task": {"id": 347, "owner": {"id": 958}, "assignee": {"id": 1056}}, "job": {"id": 367, "assignee": {"id": 1198}}, "organization": {"id": 1240}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 629}, "assignee": {"id": 577}, "project": {"id": 351, "owner": {"id": 20}, "assignee": {"id": 899}}, "task": {"id": 386, "owner": {"id": 951}, "assignee": {"id": 1019}}, "job": {"id": 399, "assignee": {"id": 1151}}, "organization": {"id": 106}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 652}, "assignee": {"id": 526}, "project": {"id": 379, "owner": {"id": 41}, "assignee": {"id": 863}}, "task": {"id": 309, "owner": {"id": 975}, "assignee": {"id": 1058}}, "job": {"id": 306, "assignee": {"id": 1116}}, "organization": {"id": 1263}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 616}, "assignee": {"id": 503}, "project": {"id": 338, "owner": {"id": 97}, "assignee": {"id": 837}}, "task": {"id": 346, "owner": {"id": 998}, "assignee": {"id": 1048}}, "job": {"id": 395, "assignee": {"id": 1173}}, "organization": {"id": 120}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 677}, "assignee": {"id": 548}, "project": {"id": 306, "owner": {"id": 95}, "assignee": {"id": 880}}, "task": {"id": 369, "owner": {"id": 955}, "assignee": {"id": 1043}}, "job": {"id": 358, "assignee": {"id": 1194}}, "organization": {"id": 1282}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 610}, "assignee": {"id": 597}, "project": {"id": 386, "owner": {"id": 79}, "assignee": {"id": 899}}, "task": {"id": 332, "owner": {"id": 942}, "assignee": {"id": 1076}}, "job": {"id": 315, "assignee": {"id": 1188}}, "organization": {"id": 131}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 606}, "assignee": {"id": 583}, "project": {"id": 353, "owner": {"id": 25}, "assignee": {"id": 886}}, "task": {"id": 303, "owner": {"id": 928}, "assignee": {"id": 1083}}, "job": {"id": 358, "assignee": {"id": 1174}}, "organization": {"id": 1205}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 643}, "assignee": {"id": 557}, "project": {"id": 322, "owner": {"id": 75}, "assignee": {"id": 812}}, "task": {"id": 358, "owner": {"id": 995}, "assignee": {"id": 1028}}, "job": {"id": 305, "assignee": {"id": 1176}}, "organization": {"id": 196}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 624}, "assignee": {"id": 587}, "project": {"id": 379, "owner": {"id": 18}, "assignee": {"id": 827}}, "task": {"id": 312, "owner": {"id": 961}, "assignee": {"id": 1049}}, "job": {"id": 343, "assignee": {"id": 1166}}, "organization": {"id": 1224}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 686}, "assignee": {"id": 553}, "project": {"id": 370, "owner": {"id": 41}, "assignee": {"id": 893}}, "task": {"id": 337, "owner": {"id": 918}, "assignee": {"id": 1034}}, "job": {"id": 305, "assignee": {"id": 1139}}, "organization": {"id": 119}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 604}, "assignee": {"id": 566}, "project": {"id": 374, "owner": {"id": 64}, "assignee": {"id": 852}}, "task": {"id": 378, "owner": {"id": 957}, "assignee": {"id": 1034}}, "job": {"id": 314, "assignee": {"id": 1144}}, "organization": {"id": 1259}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 686}, "assignee": {"id": 527}, "project": {"id": 301, "owner": {"id": 64}, "assignee": {"id": 895}}, "task": {"id": 376, "owner": {"id": 934}, "assignee": {"id": 1046}}, "job": {"id": 326, "assignee": {"id": 1179}}, "organization": {"id": 101}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 690}, "assignee": {"id": 586}, "project": {"id": 301, "owner": {"id": 20}, "assignee": {"id": 821}}, "task": {"id": 360, "owner": {"id": 961}, "assignee": {"id": 1006}}, "job": {"id": 355, "assignee": {"id": 1153}}, "organization": {"id": 1283}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 615}, "assignee": {"id": 576}, "project": {"id": 382, "owner": {"id": 66}, "assignee": {"id": 827}}, "task": {"id": 300, "owner": {"id": 942}, "assignee": {"id": 1087}}, "job": {"id": 332, "assignee": {"id": 1179}}, "organization": {"id": 162}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 607}, "assignee": {"id": 518}, "project": {"id": 346, "owner": {"id": 61}, "assignee": {"id": 896}}, "task": {"id": 307, "owner": {"id": 911}, "assignee": {"id": 1093}}, "job": {"id": 310, "assignee": {"id": 1120}}, "organization": {"id": 1212}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 606}, "assignee": {"id": 519}, "project": {"id": 398, "owner": {"id": 66}, "assignee": {"id": 874}}, "task": {"id": 376, "owner": {"id": 917}, "assignee": {"id": 1070}}, "job": {"id": 301, "assignee": {"id": 1129}}, "organization": {"id": 102}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 664}, "assignee": {"id": 517}, "project": {"id": 380, "owner": {"id": 50}, "assignee": {"id": 809}}, "task": {"id": 347, "owner": {"id": 990}, "assignee": {"id": 1022}}, "job": {"id": 380, "assignee": {"id": 1195}}, "organization": {"id": 1238}}} +} + +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": 136, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 685}, "assignee": {"id": 596}, "project": {"id": 346, "owner": {"id": 748}, "assignee": {"id": 57}}, "task": {"id": 367, "owner": {"id": 973}, "assignee": {"id": 1073}}, "job": {"id": 319, "assignee": {"id": 1186}}, "organization": {"id": 136}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 659}, "assignee": {"id": 532}, "project": {"id": 352, "owner": {"id": 727}, "assignee": {"id": 82}}, "task": {"id": 305, "owner": {"id": 909}, "assignee": {"id": 1075}}, "job": {"id": 363, "assignee": {"id": 1171}}, "organization": {"id": 1262}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 608}, "assignee": {"id": 545}, "project": {"id": 371, "owner": {"id": 702}, "assignee": {"id": 27}}, "task": {"id": 377, "owner": {"id": 909}, "assignee": {"id": 1084}}, "job": {"id": 344, "assignee": {"id": 1115}}, "organization": {"id": 193}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 662}, "assignee": {"id": 507}, "project": {"id": 339, "owner": {"id": 772}, "assignee": {"id": 62}}, "task": {"id": 365, "owner": {"id": 951}, "assignee": {"id": 1014}}, "job": {"id": 368, "assignee": {"id": 1121}}, "organization": {"id": 1229}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 651}, "assignee": {"id": 528}, "project": {"id": 381, "owner": {"id": 756}, "assignee": {"id": 94}}, "task": {"id": 356, "owner": {"id": 911}, "assignee": {"id": 1019}}, "job": {"id": 388, "assignee": {"id": 1160}}, "organization": {"id": 129}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 632}, "assignee": {"id": 546}, "project": {"id": 378, "owner": {"id": 712}, "assignee": {"id": 71}}, "task": {"id": 335, "owner": {"id": 925}, "assignee": {"id": 1005}}, "job": {"id": 348, "assignee": {"id": 1105}}, "organization": {"id": 1236}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 676}, "assignee": {"id": 562}, "project": {"id": 355, "owner": {"id": 796}, "assignee": {"id": 25}}, "task": {"id": 357, "owner": {"id": 939}, "assignee": {"id": 1023}}, "job": {"id": 314, "assignee": {"id": 1170}}, "organization": {"id": 147}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 686}, "assignee": {"id": 599}, "project": {"id": 366, "owner": {"id": 752}, "assignee": {"id": 79}}, "task": {"id": 350, "owner": {"id": 914}, "assignee": {"id": 1078}}, "job": {"id": 305, "assignee": {"id": 1115}}, "organization": {"id": 1255}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 641}, "assignee": {"id": 524}, "project": {"id": 304, "owner": {"id": 771}, "assignee": {"id": 2}}, "task": {"id": 395, "owner": {"id": 923}, "assignee": {"id": 1072}}, "job": {"id": 315, "assignee": {"id": 1144}}, "organization": {"id": 134}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 698}, "assignee": {"id": 517}, "project": {"id": 321, "owner": {"id": 747}, "assignee": {"id": 92}}, "task": {"id": 375, "owner": {"id": 936}, "assignee": {"id": 1043}}, "job": {"id": 324, "assignee": {"id": 1171}}, "organization": {"id": 1283}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 691}, "assignee": {"id": 593}, "project": {"id": 339, "owner": {"id": 768}, "assignee": {"id": 28}}, "task": {"id": 378, "owner": {"id": 981}, "assignee": {"id": 1034}}, "job": {"id": 305, "assignee": {"id": 1105}}, "organization": {"id": 173}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 665}, "assignee": {"id": 587}, "project": {"id": 327, "owner": {"id": 715}, "assignee": {"id": 62}}, "task": {"id": 304, "owner": {"id": 946}, "assignee": {"id": 1010}}, "job": {"id": 395, "assignee": {"id": 1101}}, "organization": {"id": 1217}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 672}, "assignee": {"id": 513}, "project": {"id": 326, "owner": {"id": 726}, "assignee": {"id": 73}}, "task": {"id": 316, "owner": {"id": 903}, "assignee": {"id": 1000}}, "job": {"id": 344, "assignee": {"id": 1160}}, "organization": {"id": 181}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 613}, "assignee": {"id": 571}, "project": {"id": 352, "owner": {"id": 721}, "assignee": {"id": 46}}, "task": {"id": 368, "owner": {"id": 998}, "assignee": {"id": 1035}}, "job": {"id": 325, "assignee": {"id": 1196}}, "organization": {"id": 1245}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 679}, "assignee": {"id": 573}, "project": {"id": 339, "owner": {"id": 797}, "assignee": {"id": 67}}, "task": {"id": 355, "owner": {"id": 933}, "assignee": {"id": 1020}}, "job": {"id": 329, "assignee": {"id": 1187}}, "organization": {"id": 196}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 612}, "assignee": {"id": 526}, "project": {"id": 391, "owner": {"id": 735}, "assignee": {"id": 99}}, "task": {"id": 363, "owner": {"id": 910}, "assignee": {"id": 1043}}, "job": {"id": 359, "assignee": {"id": 1105}}, "organization": {"id": 1289}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 687}, "assignee": {"id": 590}, "project": {"id": 326, "owner": {"id": 709}, "assignee": {"id": 58}}, "task": {"id": 311, "owner": {"id": 964}, "assignee": {"id": 1023}}, "job": {"id": 311, "assignee": {"id": 1121}}, "organization": {"id": 177}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 615}, "assignee": {"id": 523}, "project": {"id": 384, "owner": {"id": 703}, "assignee": {"id": 37}}, "task": {"id": 324, "owner": {"id": 980}, "assignee": {"id": 1037}}, "job": {"id": 334, "assignee": {"id": 1177}}, "organization": {"id": 1259}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 641}, "assignee": {"id": 559}, "project": {"id": 318, "owner": {"id": 789}, "assignee": {"id": 37}}, "task": {"id": 395, "owner": {"id": 935}, "assignee": {"id": 1001}}, "job": {"id": 342, "assignee": {"id": 1106}}, "organization": {"id": 102}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 653}, "assignee": {"id": 563}, "project": {"id": 387, "owner": {"id": 798}, "assignee": {"id": 5}}, "task": {"id": 366, "owner": {"id": 996}, "assignee": {"id": 1049}}, "job": {"id": 346, "assignee": {"id": 1169}}, "organization": {"id": 1261}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 684}, "assignee": {"id": 574}, "project": {"id": 362, "owner": {"id": 733}, "assignee": {"id": 14}}, "task": {"id": 363, "owner": {"id": 918}, "assignee": {"id": 1066}}, "job": {"id": 397, "assignee": {"id": 1122}}, "organization": {"id": 113}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 626}, "assignee": {"id": 536}, "project": {"id": 330, "owner": {"id": 787}, "assignee": {"id": 57}}, "task": {"id": 363, "owner": {"id": 954}, "assignee": {"id": 1014}}, "job": {"id": 313, "assignee": {"id": 1161}}, "organization": {"id": 1279}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 685}, "assignee": {"id": 599}, "project": {"id": 354, "owner": {"id": 708}, "assignee": {"id": 52}}, "task": {"id": 354, "owner": {"id": 973}, "assignee": {"id": 1015}}, "job": {"id": 386, "assignee": {"id": 1193}}, "organization": {"id": 149}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 674}, "assignee": {"id": 589}, "project": {"id": 341, "owner": {"id": 799}, "assignee": {"id": 97}}, "task": {"id": 328, "owner": {"id": 993}, "assignee": {"id": 1027}}, "job": {"id": 385, "assignee": {"id": 1144}}, "organization": {"id": 1266}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 678}, "assignee": {"id": 535}, "project": {"id": 322, "owner": {"id": 748}, "assignee": {"id": 71}}, "task": {"id": 358, "owner": {"id": 960}, "assignee": {"id": 1098}}, "job": {"id": 343, "assignee": {"id": 1135}}, "organization": {"id": 150}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 640}, "assignee": {"id": 513}, "project": {"id": 393, "owner": {"id": 718}, "assignee": {"id": 25}}, "task": {"id": 363, "owner": {"id": 995}, "assignee": {"id": 1068}}, "job": {"id": 361, "assignee": {"id": 1109}}, "organization": {"id": 1243}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 698}, "assignee": {"id": 591}, "project": {"id": 361, "owner": {"id": 783}, "assignee": {"id": 90}}, "task": {"id": 300, "owner": {"id": 974}, "assignee": {"id": 1023}}, "job": {"id": 372, "assignee": {"id": 1115}}, "organization": {"id": 108}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 621}, "assignee": {"id": 580}, "project": {"id": 302, "owner": {"id": 757}, "assignee": {"id": 64}}, "task": {"id": 392, "owner": {"id": 966}, "assignee": {"id": 1099}}, "job": {"id": 374, "assignee": {"id": 1197}}, "organization": {"id": 1265}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 651}, "assignee": {"id": 586}, "project": {"id": 368, "owner": {"id": 720}, "assignee": {"id": 39}}, "task": {"id": 302, "owner": {"id": 983}, "assignee": {"id": 1022}}, "job": {"id": 328, "assignee": {"id": 1113}}, "organization": {"id": 130}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 601}, "assignee": {"id": 596}, "project": {"id": 333, "owner": {"id": 797}, "assignee": {"id": 58}}, "task": {"id": 367, "owner": {"id": 974}, "assignee": {"id": 1063}}, "job": {"id": 370, "assignee": {"id": 1182}}, "organization": {"id": 1244}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 677}, "assignee": {"id": 526}, "project": {"id": 344, "owner": {"id": 719}, "assignee": {"id": 46}}, "task": {"id": 388, "owner": {"id": 971}, "assignee": {"id": 1015}}, "job": {"id": 338, "assignee": {"id": 1182}}, "organization": {"id": 125}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 666}, "assignee": {"id": 580}, "project": {"id": 373, "owner": {"id": 717}, "assignee": {"id": 7}}, "task": {"id": 369, "owner": {"id": 961}, "assignee": {"id": 1014}}, "job": {"id": 377, "assignee": {"id": 1103}}, "organization": {"id": 1268}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 651}, "assignee": {"id": 557}, "project": {"id": 366, "owner": {"id": 759}, "assignee": {"id": 42}}, "task": {"id": 351, "owner": {"id": 921}, "assignee": {"id": 1051}}, "job": {"id": 392, "assignee": {"id": 1198}}, "organization": {"id": 113}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 672}, "assignee": {"id": 536}, "project": {"id": 395, "owner": {"id": 765}, "assignee": {"id": 22}}, "task": {"id": 336, "owner": {"id": 973}, "assignee": {"id": 1016}}, "job": {"id": 319, "assignee": {"id": 1143}}, "organization": {"id": 1276}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 645}, "assignee": {"id": 505}, "project": {"id": 388, "owner": {"id": 742}, "assignee": {"id": 98}}, "task": {"id": 345, "owner": {"id": 955}, "assignee": {"id": 1063}}, "job": {"id": 353, "assignee": {"id": 1129}}, "organization": {"id": 122}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 636}, "assignee": {"id": 534}, "project": {"id": 347, "owner": {"id": 767}, "assignee": {"id": 91}}, "task": {"id": 355, "owner": {"id": 963}, "assignee": {"id": 1016}}, "job": {"id": 333, "assignee": {"id": 1188}}, "organization": {"id": 1265}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 651}, "assignee": {"id": 580}, "project": {"id": 342, "owner": {"id": 715}, "assignee": {"id": 45}}, "task": {"id": 324, "owner": {"id": 938}, "assignee": {"id": 1064}}, "job": {"id": 302, "assignee": {"id": 1164}}, "organization": {"id": 136}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 693}, "assignee": {"id": 568}, "project": {"id": 386, "owner": {"id": 705}, "assignee": {"id": 31}}, "task": {"id": 350, "owner": {"id": 911}, "assignee": {"id": 1069}}, "job": {"id": 381, "assignee": {"id": 1193}}, "organization": {"id": 1297}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 619}, "assignee": {"id": 583}, "project": {"id": 363, "owner": {"id": 778}, "assignee": {"id": 98}}, "task": {"id": 319, "owner": {"id": 986}, "assignee": {"id": 1026}}, "job": {"id": 321, "assignee": {"id": 1182}}, "organization": {"id": 143}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 649}, "assignee": {"id": 565}, "project": {"id": 359, "owner": {"id": 709}, "assignee": {"id": 94}}, "task": {"id": 360, "owner": {"id": 991}, "assignee": {"id": 1067}}, "job": {"id": 365, "assignee": {"id": 1196}}, "organization": {"id": 1200}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 692}, "assignee": {"id": 508}, "project": {"id": 397, "owner": {"id": 752}, "assignee": {"id": 45}}, "task": {"id": 326, "owner": {"id": 934}, "assignee": {"id": 1087}}, "job": {"id": 302, "assignee": {"id": 1117}}, "organization": {"id": 189}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 650}, "assignee": {"id": 559}, "project": {"id": 373, "owner": {"id": 713}, "assignee": {"id": 88}}, "task": {"id": 356, "owner": {"id": 930}, "assignee": {"id": 1064}}, "job": {"id": 384, "assignee": {"id": 1112}}, "organization": {"id": 1217}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 607}, "assignee": {"id": 551}, "project": {"id": 399, "owner": {"id": 709}, "assignee": {"id": 71}}, "task": {"id": 305, "owner": {"id": 905}, "assignee": {"id": 1071}}, "job": {"id": 315, "assignee": {"id": 1132}}, "organization": {"id": 180}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 628}, "assignee": {"id": 507}, "project": {"id": 349, "owner": {"id": 751}, "assignee": {"id": 45}}, "task": {"id": 366, "owner": {"id": 950}, "assignee": {"id": 1051}}, "job": {"id": 378, "assignee": {"id": 1140}}, "organization": {"id": 1251}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 656}, "assignee": {"id": 522}, "project": {"id": 363, "owner": {"id": 726}, "assignee": {"id": 36}}, "task": {"id": 350, "owner": {"id": 990}, "assignee": {"id": 1076}}, "job": {"id": 391, "assignee": {"id": 1199}}, "organization": {"id": 174}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 634}, "assignee": {"id": 578}, "project": {"id": 314, "owner": {"id": 763}, "assignee": {"id": 25}}, "task": {"id": 388, "owner": {"id": 916}, "assignee": {"id": 1030}}, "job": {"id": 391, "assignee": {"id": 1147}}, "organization": {"id": 1263}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 697}, "assignee": {"id": 555}, "project": {"id": 392, "owner": {"id": 763}, "assignee": {"id": 92}}, "task": {"id": 335, "owner": {"id": 964}, "assignee": {"id": 1041}}, "job": {"id": 315, "assignee": {"id": 1167}}, "organization": {"id": 197}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 681}, "assignee": {"id": 545}, "project": {"id": 343, "owner": {"id": 797}, "assignee": {"id": 42}}, "task": {"id": 336, "owner": {"id": 953}, "assignee": {"id": 1003}}, "job": {"id": 392, "assignee": {"id": 1108}}, "organization": {"id": 1273}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 631}, "assignee": {"id": 571}, "project": {"id": 393, "owner": {"id": 704}, "assignee": {"id": 61}}, "task": {"id": 310, "owner": {"id": 975}, "assignee": {"id": 1052}}, "job": {"id": 366, "assignee": {"id": 1184}}, "organization": {"id": 173}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 673}, "assignee": {"id": 535}, "project": {"id": 344, "owner": {"id": 756}, "assignee": {"id": 3}}, "task": {"id": 349, "owner": {"id": 958}, "assignee": {"id": 1089}}, "job": {"id": 358, "assignee": {"id": 1139}}, "organization": {"id": 1279}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 658}, "assignee": {"id": 546}, "project": {"id": 378, "owner": {"id": 714}, "assignee": {"id": 823}}, "task": {"id": 336, "owner": {"id": 80}, "assignee": {"id": 1093}}, "job": {"id": 381, "assignee": {"id": 1197}}, "organization": {"id": 194}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 621}, "assignee": {"id": 588}, "project": {"id": 310, "owner": {"id": 704}, "assignee": {"id": 844}}, "task": {"id": 306, "owner": {"id": 79}, "assignee": {"id": 1078}}, "job": {"id": 365, "assignee": {"id": 1164}}, "organization": {"id": 161}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 620}, "assignee": {"id": 505}, "project": {"id": 354, "owner": {"id": 722}, "assignee": {"id": 854}}, "task": {"id": 363, "owner": {"id": 11}, "assignee": {"id": 1038}}, "job": {"id": 311, "assignee": {"id": 1124}}, "organization": {"id": 1247}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 697}, "assignee": {"id": 563}, "project": {"id": 344, "owner": {"id": 741}, "assignee": {"id": 889}}, "task": {"id": 392, "owner": {"id": 79}, "assignee": {"id": 1011}}, "job": {"id": 392, "assignee": {"id": 1179}}, "organization": {"id": 1201}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 640}, "assignee": {"id": 566}, "project": {"id": 302, "owner": {"id": 721}, "assignee": {"id": 854}}, "task": {"id": 389, "owner": {"id": 24}, "assignee": {"id": 1071}}, "job": {"id": 312, "assignee": {"id": 1162}}, "organization": {"id": 194}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 681}, "assignee": {"id": 558}, "project": {"id": 374, "owner": {"id": 715}, "assignee": {"id": 874}}, "task": {"id": 323, "owner": {"id": 40}, "assignee": {"id": 1033}}, "job": {"id": 350, "assignee": {"id": 1179}}, "organization": {"id": 128}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 673}, "assignee": {"id": 563}, "project": {"id": 306, "owner": {"id": 748}, "assignee": {"id": 810}}, "task": {"id": 393, "owner": {"id": 68}, "assignee": {"id": 1094}}, "job": {"id": 330, "assignee": {"id": 1193}}, "organization": {"id": 1237}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 615}, "assignee": {"id": 563}, "project": {"id": 370, "owner": {"id": 765}, "assignee": {"id": 865}}, "task": {"id": 387, "owner": {"id": 94}, "assignee": {"id": 1095}}, "job": {"id": 372, "assignee": {"id": 1133}}, "organization": {"id": 1297}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 681}, "assignee": {"id": 539}, "project": {"id": 340, "owner": {"id": 780}, "assignee": {"id": 850}}, "task": {"id": 378, "owner": {"id": 81}, "assignee": {"id": 1004}}, "job": {"id": 375, "assignee": {"id": 1115}}, "organization": {"id": 137}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 681}, "assignee": {"id": 568}, "project": {"id": 337, "owner": {"id": 703}, "assignee": {"id": 865}}, "task": {"id": 344, "owner": {"id": 32}, "assignee": {"id": 1057}}, "job": {"id": 385, "assignee": {"id": 1110}}, "organization": {"id": 140}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 637}, "assignee": {"id": 551}, "project": {"id": 302, "owner": {"id": 768}, "assignee": {"id": 860}}, "task": {"id": 361, "owner": {"id": 92}, "assignee": {"id": 1004}}, "job": {"id": 365, "assignee": {"id": 1163}}, "organization": {"id": 1250}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 609}, "assignee": {"id": 509}, "project": {"id": 333, "owner": {"id": 777}, "assignee": {"id": 879}}, "task": {"id": 300, "owner": {"id": 44}, "assignee": {"id": 1048}}, "job": {"id": 382, "assignee": {"id": 1160}}, "organization": {"id": 1245}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 611}, "assignee": {"id": 535}, "project": {"id": 398, "owner": {"id": 719}, "assignee": {"id": 852}}, "task": {"id": 340, "owner": {"id": 17}, "assignee": {"id": 1015}}, "job": {"id": 339, "assignee": {"id": 1127}}, "organization": {"id": 175}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 671}, "assignee": {"id": 506}, "project": {"id": 398, "owner": {"id": 740}, "assignee": {"id": 827}}, "task": {"id": 300, "owner": {"id": 22}, "assignee": {"id": 1016}}, "job": {"id": 323, "assignee": {"id": 1139}}, "organization": {"id": 175}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 638}, "assignee": {"id": 587}, "project": {"id": 336, "owner": {"id": 703}, "assignee": {"id": 842}}, "task": {"id": 313, "owner": {"id": 97}, "assignee": {"id": 1047}}, "job": {"id": 318, "assignee": {"id": 1170}}, "organization": {"id": 1222}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 610}, "assignee": {"id": 544}, "project": {"id": 392, "owner": {"id": 726}, "assignee": {"id": 853}}, "task": {"id": 337, "owner": {"id": 51}, "assignee": {"id": 1079}}, "job": {"id": 373, "assignee": {"id": 1161}}, "organization": {"id": 1206}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 698}, "assignee": {"id": 525}, "project": {"id": 343, "owner": {"id": 737}, "assignee": {"id": 867}}, "task": {"id": 325, "owner": {"id": 85}, "assignee": {"id": 1092}}, "job": {"id": 379, "assignee": {"id": 1112}}, "organization": {"id": 157}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 643}, "assignee": {"id": 537}, "project": {"id": 392, "owner": {"id": 799}, "assignee": {"id": 882}}, "task": {"id": 345, "owner": {"id": 61}, "assignee": {"id": 1057}}, "job": {"id": 346, "assignee": {"id": 1136}}, "organization": {"id": 159}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 699}, "assignee": {"id": 575}, "project": {"id": 375, "owner": {"id": 748}, "assignee": {"id": 856}}, "task": {"id": 300, "owner": {"id": 20}, "assignee": {"id": 1098}}, "job": {"id": 330, "assignee": {"id": 1193}}, "organization": {"id": 1283}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 659}, "assignee": {"id": 571}, "project": {"id": 345, "owner": {"id": 762}, "assignee": {"id": 819}}, "task": {"id": 332, "owner": {"id": 17}, "assignee": {"id": 1095}}, "job": {"id": 308, "assignee": {"id": 1113}}, "organization": {"id": 1227}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 605}, "assignee": {"id": 521}, "project": {"id": 301, "owner": {"id": 766}, "assignee": {"id": 852}}, "task": {"id": 320, "owner": {"id": 91}, "assignee": {"id": 1088}}, "job": {"id": 322, "assignee": {"id": 1198}}, "organization": {"id": 105}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 648}, "assignee": {"id": 590}, "project": {"id": 322, "owner": {"id": 703}, "assignee": {"id": 813}}, "task": {"id": 322, "owner": {"id": 23}, "assignee": {"id": 1010}}, "job": {"id": 333, "assignee": {"id": 1186}}, "organization": {"id": 123}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 624}, "assignee": {"id": 590}, "project": {"id": 303, "owner": {"id": 723}, "assignee": {"id": 818}}, "task": {"id": 337, "owner": {"id": 96}, "assignee": {"id": 1079}}, "job": {"id": 354, "assignee": {"id": 1148}}, "organization": {"id": 1252}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 609}, "assignee": {"id": 501}, "project": {"id": 379, "owner": {"id": 764}, "assignee": {"id": 899}}, "task": {"id": 371, "owner": {"id": 9}, "assignee": {"id": 1066}}, "job": {"id": 342, "assignee": {"id": 1190}}, "organization": {"id": 1213}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 628}, "assignee": {"id": 556}, "project": {"id": 346, "owner": {"id": 715}, "assignee": {"id": 885}}, "task": {"id": 329, "owner": {"id": 36}, "assignee": {"id": 1003}}, "job": {"id": 309, "assignee": {"id": 1125}}, "organization": {"id": 170}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 669}, "assignee": {"id": 569}, "project": {"id": 348, "owner": {"id": 774}, "assignee": {"id": 875}}, "task": {"id": 313, "owner": {"id": 67}, "assignee": {"id": 1035}}, "job": {"id": 368, "assignee": {"id": 1153}}, "organization": {"id": 142}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 663}, "assignee": {"id": 538}, "project": {"id": 397, "owner": {"id": 775}, "assignee": {"id": 886}}, "task": {"id": 352, "owner": {"id": 9}, "assignee": {"id": 1088}}, "job": {"id": 303, "assignee": {"id": 1177}}, "organization": {"id": 1237}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 646}, "assignee": {"id": 516}, "project": {"id": 300, "owner": {"id": 721}, "assignee": {"id": 825}}, "task": {"id": 312, "owner": {"id": 47}, "assignee": {"id": 1056}}, "job": {"id": 362, "assignee": {"id": 1106}}, "organization": {"id": 1243}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 664}, "assignee": {"id": 502}, "project": {"id": 375, "owner": {"id": 774}, "assignee": {"id": 836}}, "task": {"id": 351, "owner": {"id": 42}, "assignee": {"id": 1049}}, "job": {"id": 376, "assignee": {"id": 1169}}, "organization": {"id": 176}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 634}, "assignee": {"id": 540}, "project": {"id": 348, "owner": {"id": 704}, "assignee": {"id": 877}}, "task": {"id": 395, "owner": {"id": 36}, "assignee": {"id": 1019}}, "job": {"id": 359, "assignee": {"id": 1130}}, "organization": {"id": 132}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 609}, "assignee": {"id": 517}, "project": {"id": 304, "owner": {"id": 795}, "assignee": {"id": 879}}, "task": {"id": 399, "owner": {"id": 24}, "assignee": {"id": 1069}}, "job": {"id": 323, "assignee": {"id": 1184}}, "organization": {"id": 1218}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 641}, "assignee": {"id": 518}, "project": {"id": 310, "owner": {"id": 717}, "assignee": {"id": 802}}, "task": {"id": 331, "owner": {"id": 63}, "assignee": {"id": 1098}}, "job": {"id": 324, "assignee": {"id": 1164}}, "organization": {"id": 1203}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 635}, "assignee": {"id": 535}, "project": {"id": 327, "owner": {"id": 720}, "assignee": {"id": 877}}, "task": {"id": 312, "owner": {"id": 62}, "assignee": {"id": 1057}}, "job": {"id": 328, "assignee": {"id": 1171}}, "organization": {"id": 153}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 642}, "assignee": {"id": 530}, "project": {"id": 333, "owner": {"id": 768}, "assignee": {"id": 882}}, "task": {"id": 321, "owner": {"id": 97}, "assignee": {"id": 1078}}, "job": {"id": 310, "assignee": {"id": 1152}}, "organization": {"id": 185}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 663}, "assignee": {"id": 500}, "project": {"id": 374, "owner": {"id": 704}, "assignee": {"id": 859}}, "task": {"id": 361, "owner": {"id": 65}, "assignee": {"id": 1040}}, "job": {"id": 393, "assignee": {"id": 1144}}, "organization": {"id": 1272}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 655}, "assignee": {"id": 550}, "project": {"id": 372, "owner": {"id": 755}, "assignee": {"id": 822}}, "task": {"id": 354, "owner": {"id": 71}, "assignee": {"id": 1066}}, "job": {"id": 374, "assignee": {"id": 1194}}, "organization": {"id": 1233}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 639}, "assignee": {"id": 590}, "project": {"id": 377, "owner": {"id": 794}, "assignee": {"id": 852}}, "task": {"id": 374, "owner": {"id": 8}, "assignee": {"id": 1070}}, "job": {"id": 398, "assignee": {"id": 1168}}, "organization": {"id": 152}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 688}, "assignee": {"id": 570}, "project": {"id": 310, "owner": {"id": 704}, "assignee": {"id": 807}}, "task": {"id": 371, "owner": {"id": 59}, "assignee": {"id": 1041}}, "job": {"id": 355, "assignee": {"id": 1124}}, "organization": {"id": 179}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 603}, "assignee": {"id": 508}, "project": {"id": 336, "owner": {"id": 766}, "assignee": {"id": 830}}, "task": {"id": 393, "owner": {"id": 70}, "assignee": {"id": 1073}}, "job": {"id": 328, "assignee": {"id": 1180}}, "organization": {"id": 1245}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 602}, "assignee": {"id": 518}, "project": {"id": 340, "owner": {"id": 758}, "assignee": {"id": 803}}, "task": {"id": 398, "owner": {"id": 31}, "assignee": {"id": 1076}}, "job": {"id": 365, "assignee": {"id": 1124}}, "organization": {"id": 1284}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 653}, "assignee": {"id": 596}, "project": {"id": 384, "owner": {"id": 714}, "assignee": {"id": 892}}, "task": {"id": 353, "owner": {"id": 12}, "assignee": {"id": 1034}}, "job": {"id": 351, "assignee": {"id": 1154}}, "organization": {"id": 116}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 694}, "assignee": {"id": 532}, "project": {"id": 312, "owner": {"id": 799}, "assignee": {"id": 811}}, "task": {"id": 322, "owner": {"id": 7}, "assignee": {"id": 1021}}, "job": {"id": 326, "assignee": {"id": 1183}}, "organization": {"id": 165}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 699}, "assignee": {"id": 528}, "project": {"id": 335, "owner": {"id": 711}, "assignee": {"id": 838}}, "task": {"id": 392, "owner": {"id": 43}, "assignee": {"id": 1098}}, "job": {"id": 331, "assignee": {"id": 1142}}, "organization": {"id": 1241}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 603}, "assignee": {"id": 568}, "project": {"id": 315, "owner": {"id": 797}, "assignee": {"id": 854}}, "task": {"id": 307, "owner": {"id": 10}, "assignee": {"id": 1005}}, "job": {"id": 390, "assignee": {"id": 1182}}, "organization": {"id": 1209}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 690}, "assignee": {"id": 513}, "project": {"id": 331, "owner": {"id": 760}, "assignee": {"id": 809}}, "task": {"id": 374, "owner": {"id": 83}, "assignee": {"id": 1001}}, "job": {"id": 333, "assignee": {"id": 1154}}, "organization": {"id": 175}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 638}, "assignee": {"id": 571}, "project": {"id": 337, "owner": {"id": 788}, "assignee": {"id": 882}}, "task": {"id": 305, "owner": {"id": 46}, "assignee": {"id": 1095}}, "job": {"id": 326, "assignee": {"id": 1121}}, "organization": {"id": 119}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 637}, "assignee": {"id": 562}, "project": {"id": 389, "owner": {"id": 710}, "assignee": {"id": 896}}, "task": {"id": 327, "owner": {"id": 43}, "assignee": {"id": 1097}}, "job": {"id": 321, "assignee": {"id": 1114}}, "organization": {"id": 1208}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 622}, "assignee": {"id": 585}, "project": {"id": 326, "owner": {"id": 793}, "assignee": {"id": 869}}, "task": {"id": 380, "owner": {"id": 68}, "assignee": {"id": 1055}}, "job": {"id": 357, "assignee": {"id": 1194}}, "organization": {"id": 1206}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 604}, "assignee": {"id": 584}, "project": {"id": 372, "owner": {"id": 786}, "assignee": {"id": 815}}, "task": {"id": 390, "owner": {"id": 44}, "assignee": {"id": 1032}}, "job": {"id": 382, "assignee": {"id": 1191}}, "organization": {"id": 193}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 608}, "assignee": {"id": 593}, "project": {"id": 367, "owner": {"id": 710}, "assignee": {"id": 862}}, "task": {"id": 349, "owner": {"id": 83}, "assignee": {"id": 1052}}, "job": {"id": 316, "assignee": {"id": 1130}}, "organization": {"id": 163}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 665}, "assignee": {"id": 599}, "project": {"id": 327, "owner": {"id": 724}, "assignee": {"id": 834}}, "task": {"id": 320, "owner": {"id": 72}, "assignee": {"id": 1032}}, "job": {"id": 318, "assignee": {"id": 1194}}, "organization": {"id": 1251}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 673}, "assignee": {"id": 565}, "project": {"id": 381, "owner": {"id": 703}, "assignee": {"id": 821}}, "task": {"id": 371, "owner": {"id": 55}, "assignee": {"id": 1043}}, "job": {"id": 371, "assignee": {"id": 1144}}, "organization": {"id": 1274}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 641}, "assignee": {"id": 560}, "project": {"id": 384, "owner": {"id": 713}, "assignee": {"id": 844}}, "task": {"id": 388, "owner": {"id": 15}, "assignee": {"id": 1001}}, "job": {"id": 322, "assignee": {"id": 1145}}, "organization": {"id": 185}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 648}, "assignee": {"id": 506}, "project": {"id": 375, "owner": {"id": 733}, "assignee": {"id": 850}}, "task": {"id": 384, "owner": {"id": 77}, "assignee": {"id": 1007}}, "job": {"id": 365, "assignee": {"id": 1157}}, "organization": {"id": 187}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 638}, "assignee": {"id": 566}, "project": {"id": 320, "owner": {"id": 714}, "assignee": {"id": 828}}, "task": {"id": 303, "owner": {"id": 12}, "assignee": {"id": 1034}}, "job": {"id": 369, "assignee": {"id": 1131}}, "organization": {"id": 1246}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 639}, "assignee": {"id": 541}, "project": {"id": 317, "owner": {"id": 778}, "assignee": {"id": 824}}, "task": {"id": 316, "owner": {"id": 35}, "assignee": {"id": 1002}}, "job": {"id": 354, "assignee": {"id": 1142}}, "organization": {"id": 1234}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 653}, "assignee": {"id": 518}, "project": {"id": 309, "owner": {"id": 772}, "assignee": {"id": 854}}, "task": {"id": 385, "owner": {"id": 5}, "assignee": {"id": 1084}}, "job": {"id": 315, "assignee": {"id": 1193}}, "organization": {"id": 126}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 660}, "assignee": {"id": 559}, "project": {"id": 372, "owner": {"id": 703}, "assignee": {"id": 895}}, "task": {"id": 371, "owner": {"id": 18}, "assignee": {"id": 1078}}, "job": {"id": 327, "assignee": {"id": 1146}}, "organization": {"id": 129}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 645}, "assignee": {"id": 559}, "project": {"id": 338, "owner": {"id": 752}, "assignee": {"id": 832}}, "task": {"id": 312, "owner": {"id": 40}, "assignee": {"id": 1094}}, "job": {"id": 304, "assignee": {"id": 1195}}, "organization": {"id": 1284}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 620}, "assignee": {"id": 535}, "project": {"id": 321, "owner": {"id": 740}, "assignee": {"id": 898}}, "task": {"id": 363, "owner": {"id": 33}, "assignee": {"id": 1013}}, "job": {"id": 395, "assignee": {"id": 1144}}, "organization": {"id": 1248}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 621}, "assignee": {"id": 538}, "project": {"id": 332, "owner": {"id": 716}, "assignee": {"id": 853}}, "task": {"id": 316, "owner": {"id": 98}, "assignee": {"id": 1034}}, "job": {"id": 334, "assignee": {"id": 1133}}, "organization": {"id": 102}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 644}, "assignee": {"id": 597}, "project": {"id": 320, "owner": {"id": 741}, "assignee": {"id": 843}}, "task": {"id": 334, "owner": {"id": 0}, "assignee": {"id": 1011}}, "job": {"id": 312, "assignee": {"id": 1183}}, "organization": {"id": 162}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 665}, "assignee": {"id": 554}, "project": {"id": 384, "owner": {"id": 700}, "assignee": {"id": 880}}, "task": {"id": 326, "owner": {"id": 40}, "assignee": {"id": 1022}}, "job": {"id": 319, "assignee": {"id": 1145}}, "organization": {"id": 1269}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 656}, "assignee": {"id": 591}, "project": {"id": 331, "owner": {"id": 781}, "assignee": {"id": 891}}, "task": {"id": 373, "owner": {"id": 8}, "assignee": {"id": 1058}}, "job": {"id": 317, "assignee": {"id": 1193}}, "organization": {"id": 1224}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 690}, "assignee": {"id": 541}, "project": {"id": 346, "owner": {"id": 791}, "assignee": {"id": 843}}, "task": {"id": 338, "owner": {"id": 46}, "assignee": {"id": 1093}}, "job": {"id": 339, "assignee": {"id": 1152}}, "organization": {"id": 118}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 680}, "assignee": {"id": 528}, "project": {"id": 360, "owner": {"id": 785}, "assignee": {"id": 870}}, "task": {"id": 379, "owner": {"id": 42}, "assignee": {"id": 1061}}, "job": {"id": 332, "assignee": {"id": 1189}}, "organization": {"id": 193}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 624}, "assignee": {"id": 518}, "project": {"id": 367, "owner": {"id": 786}, "assignee": {"id": 849}}, "task": {"id": 305, "owner": {"id": 55}, "assignee": {"id": 1084}}, "job": {"id": 362, "assignee": {"id": 1131}}, "organization": {"id": 1282}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 689}, "assignee": {"id": 579}, "project": {"id": 390, "owner": {"id": 732}, "assignee": {"id": 839}}, "task": {"id": 322, "owner": {"id": 93}, "assignee": {"id": 1027}}, "job": {"id": 348, "assignee": {"id": 1130}}, "organization": {"id": 1233}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 625}, "assignee": {"id": 529}, "project": {"id": 310, "owner": {"id": 793}, "assignee": {"id": 879}}, "task": {"id": 397, "owner": {"id": 85}, "assignee": {"id": 1061}}, "job": {"id": 384, "assignee": {"id": 1168}}, "organization": {"id": 182}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 675}, "assignee": {"id": 542}, "project": {"id": 390, "owner": {"id": 772}, "assignee": {"id": 892}}, "task": {"id": 338, "owner": {"id": 53}, "assignee": {"id": 1034}}, "job": {"id": 375, "assignee": {"id": 1156}}, "organization": {"id": 105}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 670}, "assignee": {"id": 568}, "project": {"id": 385, "owner": {"id": 775}, "assignee": {"id": 840}}, "task": {"id": 330, "owner": {"id": 44}, "assignee": {"id": 1024}}, "job": {"id": 391, "assignee": {"id": 1110}}, "organization": {"id": 1271}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 608}, "assignee": {"id": 580}, "project": {"id": 349, "owner": {"id": 734}, "assignee": {"id": 836}}, "task": {"id": 358, "owner": {"id": 72}, "assignee": {"id": 1019}}, "job": {"id": 335, "assignee": {"id": 1165}}, "organization": {"id": 1278}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 605}, "assignee": {"id": 505}, "project": {"id": 304, "owner": {"id": 781}, "assignee": {"id": 847}}, "task": {"id": 398, "owner": {"id": 5}, "assignee": {"id": 1078}}, "job": {"id": 354, "assignee": {"id": 1133}}, "organization": {"id": 174}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 622}, "assignee": {"id": 597}, "project": {"id": 376, "owner": {"id": 783}, "assignee": {"id": 811}}, "task": {"id": 318, "owner": {"id": 99}, "assignee": {"id": 1098}}, "job": {"id": 336, "assignee": {"id": 1103}}, "organization": {"id": 181}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 636}, "assignee": {"id": 536}, "project": {"id": 358, "owner": {"id": 746}, "assignee": {"id": 830}}, "task": {"id": 333, "owner": {"id": 82}, "assignee": {"id": 1018}}, "job": {"id": 302, "assignee": {"id": 1194}}, "organization": {"id": 1220}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 614}, "assignee": {"id": 576}, "project": {"id": 384, "owner": {"id": 761}, "assignee": {"id": 845}}, "task": {"id": 343, "owner": {"id": 95}, "assignee": {"id": 1048}}, "job": {"id": 397, "assignee": {"id": 1159}}, "organization": {"id": 1247}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 613}, "assignee": {"id": 571}, "project": {"id": 380, "owner": {"id": 743}, "assignee": {"id": 834}}, "task": {"id": 377, "owner": {"id": 54}, "assignee": {"id": 1087}}, "job": {"id": 319, "assignee": {"id": 1130}}, "organization": {"id": 113}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 636}, "assignee": {"id": 562}, "project": {"id": 329, "owner": {"id": 799}, "assignee": {"id": 828}}, "task": {"id": 388, "owner": {"id": 48}, "assignee": {"id": 1033}}, "job": {"id": 329, "assignee": {"id": 1123}}, "organization": {"id": 180}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 630}, "assignee": {"id": 573}, "project": {"id": 307, "owner": {"id": 742}, "assignee": {"id": 840}}, "task": {"id": 305, "owner": {"id": 37}, "assignee": {"id": 1042}}, "job": {"id": 399, "assignee": {"id": 1123}}, "organization": {"id": 1205}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 680}, "assignee": {"id": 588}, "project": {"id": 344, "owner": {"id": 758}, "assignee": {"id": 825}}, "task": {"id": 337, "owner": {"id": 22}, "assignee": {"id": 1005}}, "job": {"id": 329, "assignee": {"id": 1195}}, "organization": {"id": 1241}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 667}, "assignee": {"id": 529}, "project": {"id": 312, "owner": {"id": 705}, "assignee": {"id": 861}}, "task": {"id": 399, "owner": {"id": 40}, "assignee": {"id": 1050}}, "job": {"id": 324, "assignee": {"id": 1143}}, "organization": {"id": 174}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 621}, "assignee": {"id": 507}, "project": {"id": 363, "owner": {"id": 709}, "assignee": {"id": 815}}, "task": {"id": 319, "owner": {"id": 98}, "assignee": {"id": 1047}}, "job": {"id": 313, "assignee": {"id": 1131}}, "organization": {"id": 108}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 673}, "assignee": {"id": 570}, "project": {"id": 338, "owner": {"id": 791}, "assignee": {"id": 822}}, "task": {"id": 342, "owner": {"id": 4}, "assignee": {"id": 1050}}, "job": {"id": 367, "assignee": {"id": 1106}}, "organization": {"id": 1291}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 654}, "assignee": {"id": 517}, "project": {"id": 342, "owner": {"id": 716}, "assignee": {"id": 858}}, "task": {"id": 395, "owner": {"id": 22}, "assignee": {"id": 1037}}, "job": {"id": 344, "assignee": {"id": 1139}}, "organization": {"id": 1230}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 603}, "assignee": {"id": 528}, "project": {"id": 363, "owner": {"id": 714}, "assignee": {"id": 883}}, "task": {"id": 327, "owner": {"id": 18}, "assignee": {"id": 1056}}, "job": {"id": 389, "assignee": {"id": 1198}}, "organization": {"id": 131}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 656}, "assignee": {"id": 556}, "project": {"id": 330, "owner": {"id": 724}, "assignee": {"id": 838}}, "task": {"id": 373, "owner": {"id": 10}, "assignee": {"id": 1023}}, "job": {"id": 381, "assignee": {"id": 1145}}, "organization": {"id": 151}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 678}, "assignee": {"id": 527}, "project": {"id": 326, "owner": {"id": 718}, "assignee": {"id": 821}}, "task": {"id": 368, "owner": {"id": 45}, "assignee": {"id": 1046}}, "job": {"id": 332, "assignee": {"id": 1136}}, "organization": {"id": 1241}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 649}, "assignee": {"id": 596}, "project": {"id": 322, "owner": {"id": 749}, "assignee": {"id": 866}}, "task": {"id": 345, "owner": {"id": 93}, "assignee": {"id": 1020}}, "job": {"id": 344, "assignee": {"id": 1188}}, "organization": {"id": 1258}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 602}, "assignee": {"id": 530}, "project": {"id": 327, "owner": {"id": 705}, "assignee": {"id": 812}}, "task": {"id": 303, "owner": {"id": 5}, "assignee": {"id": 1079}}, "job": {"id": 347, "assignee": {"id": 1123}}, "organization": {"id": 185}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 632}, "assignee": {"id": 575}, "project": {"id": 375, "owner": {"id": 757}, "assignee": {"id": 830}}, "task": {"id": 304, "owner": {"id": 15}, "assignee": {"id": 1082}}, "job": {"id": 350, "assignee": {"id": 1102}}, "organization": {"id": 174}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 665}, "assignee": {"id": 587}, "project": {"id": 342, "owner": {"id": 759}, "assignee": {"id": 894}}, "task": {"id": 347, "owner": {"id": 3}, "assignee": {"id": 1031}}, "job": {"id": 357, "assignee": {"id": 1145}}, "organization": {"id": 1254}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 619}, "assignee": {"id": 537}, "project": {"id": 358, "owner": {"id": 781}, "assignee": {"id": 895}}, "task": {"id": 361, "owner": {"id": 56}, "assignee": {"id": 1063}}, "job": {"id": 352, "assignee": {"id": 1171}}, "organization": {"id": 1263}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 680}, "assignee": {"id": 502}, "project": {"id": 398, "owner": {"id": 740}, "assignee": {"id": 895}}, "task": {"id": 357, "owner": {"id": 35}, "assignee": {"id": 1066}}, "job": {"id": 330, "assignee": {"id": 1196}}, "organization": {"id": 190}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 603}, "assignee": {"id": 547}, "project": {"id": 324, "owner": {"id": 716}, "assignee": {"id": 876}}, "task": {"id": 396, "owner": {"id": 80}, "assignee": {"id": 1045}}, "job": {"id": 359, "assignee": {"id": 1159}}, "organization": {"id": 150}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 639}, "assignee": {"id": 519}, "project": {"id": 313, "owner": {"id": 707}, "assignee": {"id": 894}}, "task": {"id": 340, "owner": {"id": 98}, "assignee": {"id": 1096}}, "job": {"id": 340, "assignee": {"id": 1133}}, "organization": {"id": 1234}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 610}, "assignee": {"id": 509}, "project": {"id": 309, "owner": {"id": 716}, "assignee": {"id": 850}}, "task": {"id": 331, "owner": {"id": 56}, "assignee": {"id": 1086}}, "job": {"id": 354, "assignee": {"id": 1157}}, "organization": {"id": 1203}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 621}, "assignee": {"id": 588}, "project": {"id": 330, "owner": {"id": 785}, "assignee": {"id": 840}}, "task": {"id": 356, "owner": {"id": 79}, "assignee": {"id": 1026}}, "job": {"id": 332, "assignee": {"id": 1143}}, "organization": {"id": 169}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 691}, "assignee": {"id": 598}, "project": {"id": 349, "owner": {"id": 759}, "assignee": {"id": 808}}, "task": {"id": 380, "owner": {"id": 81}, "assignee": {"id": 1098}}, "job": {"id": 348, "assignee": {"id": 1182}}, "organization": {"id": 104}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 622}, "assignee": {"id": 501}, "project": {"id": 398, "owner": {"id": 717}, "assignee": {"id": 886}}, "task": {"id": 383, "owner": {"id": 55}, "assignee": {"id": 1091}}, "job": {"id": 335, "assignee": {"id": 1160}}, "organization": {"id": 1259}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 672}, "assignee": {"id": 505}, "project": {"id": 331, "owner": {"id": 796}, "assignee": {"id": 813}}, "task": {"id": 345, "owner": {"id": 14}, "assignee": {"id": 1091}}, "job": {"id": 398, "assignee": {"id": 1116}}, "organization": {"id": 1225}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 685}, "assignee": {"id": 532}, "project": {"id": 386, "owner": {"id": 768}, "assignee": {"id": 881}}, "task": {"id": 355, "owner": {"id": 921}, "assignee": {"id": 87}}, "job": {"id": 397, "assignee": {"id": 1162}}, "organization": {"id": 123}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 694}, "assignee": {"id": 598}, "project": {"id": 356, "owner": {"id": 785}, "assignee": {"id": 835}}, "task": {"id": 383, "owner": {"id": 918}, "assignee": {"id": 37}}, "job": {"id": 318, "assignee": {"id": 1150}}, "organization": {"id": 106}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 647}, "assignee": {"id": 556}, "project": {"id": 334, "owner": {"id": 707}, "assignee": {"id": 830}}, "task": {"id": 320, "owner": {"id": 930}, "assignee": {"id": 23}}, "job": {"id": 329, "assignee": {"id": 1108}}, "organization": {"id": 1278}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 619}, "assignee": {"id": 500}, "project": {"id": 301, "owner": {"id": 793}, "assignee": {"id": 831}}, "task": {"id": 319, "owner": {"id": 917}, "assignee": {"id": 81}}, "job": {"id": 315, "assignee": {"id": 1178}}, "organization": {"id": 1216}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 602}, "assignee": {"id": 573}, "project": {"id": 394, "owner": {"id": 725}, "assignee": {"id": 862}}, "task": {"id": 304, "owner": {"id": 964}, "assignee": {"id": 82}}, "job": {"id": 320, "assignee": {"id": 1170}}, "organization": {"id": 198}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 649}, "assignee": {"id": 557}, "project": {"id": 314, "owner": {"id": 754}, "assignee": {"id": 832}}, "task": {"id": 350, "owner": {"id": 947}, "assignee": {"id": 88}}, "job": {"id": 327, "assignee": {"id": 1199}}, "organization": {"id": 106}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 612}, "assignee": {"id": 548}, "project": {"id": 308, "owner": {"id": 770}, "assignee": {"id": 805}}, "task": {"id": 380, "owner": {"id": 943}, "assignee": {"id": 17}}, "job": {"id": 383, "assignee": {"id": 1188}}, "organization": {"id": 1268}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 628}, "assignee": {"id": 513}, "project": {"id": 382, "owner": {"id": 720}, "assignee": {"id": 897}}, "task": {"id": 383, "owner": {"id": 939}, "assignee": {"id": 58}}, "job": {"id": 386, "assignee": {"id": 1123}}, "organization": {"id": 1235}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 620}, "assignee": {"id": 597}, "project": {"id": 341, "owner": {"id": 773}, "assignee": {"id": 810}}, "task": {"id": 340, "owner": {"id": 972}, "assignee": {"id": 22}}, "job": {"id": 386, "assignee": {"id": 1128}}, "organization": {"id": 170}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 666}, "assignee": {"id": 541}, "project": {"id": 316, "owner": {"id": 703}, "assignee": {"id": 816}}, "task": {"id": 356, "owner": {"id": 904}, "assignee": {"id": 14}}, "job": {"id": 368, "assignee": {"id": 1128}}, "organization": {"id": 167}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 606}, "assignee": {"id": 512}, "project": {"id": 390, "owner": {"id": 748}, "assignee": {"id": 833}}, "task": {"id": 306, "owner": {"id": 989}, "assignee": {"id": 64}}, "job": {"id": 394, "assignee": {"id": 1114}}, "organization": {"id": 1262}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 692}, "assignee": {"id": 555}, "project": {"id": 361, "owner": {"id": 716}, "assignee": {"id": 896}}, "task": {"id": 368, "owner": {"id": 974}, "assignee": {"id": 42}}, "job": {"id": 347, "assignee": {"id": 1187}}, "organization": {"id": 1280}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 648}, "assignee": {"id": 537}, "project": {"id": 306, "owner": {"id": 734}, "assignee": {"id": 832}}, "task": {"id": 391, "owner": {"id": 994}, "assignee": {"id": 34}}, "job": {"id": 382, "assignee": {"id": 1186}}, "organization": {"id": 118}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 689}, "assignee": {"id": 508}, "project": {"id": 362, "owner": {"id": 790}, "assignee": {"id": 829}}, "task": {"id": 336, "owner": {"id": 907}, "assignee": {"id": 2}}, "job": {"id": 395, "assignee": {"id": 1161}}, "organization": {"id": 146}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 604}, "assignee": {"id": 503}, "project": {"id": 318, "owner": {"id": 755}, "assignee": {"id": 815}}, "task": {"id": 333, "owner": {"id": 909}, "assignee": {"id": 54}}, "job": {"id": 367, "assignee": {"id": 1141}}, "organization": {"id": 1237}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 669}, "assignee": {"id": 514}, "project": {"id": 319, "owner": {"id": 794}, "assignee": {"id": 899}}, "task": {"id": 345, "owner": {"id": 998}, "assignee": {"id": 9}}, "job": {"id": 333, "assignee": {"id": 1186}}, "organization": {"id": 1275}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 656}, "assignee": {"id": 506}, "project": {"id": 339, "owner": {"id": 714}, "assignee": {"id": 803}}, "task": {"id": 308, "owner": {"id": 955}, "assignee": {"id": 50}}, "job": {"id": 325, "assignee": {"id": 1126}}, "organization": {"id": 173}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 610}, "assignee": {"id": 561}, "project": {"id": 378, "owner": {"id": 738}, "assignee": {"id": 898}}, "task": {"id": 334, "owner": {"id": 905}, "assignee": {"id": 45}}, "job": {"id": 348, "assignee": {"id": 1172}}, "organization": {"id": 146}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 689}, "assignee": {"id": 591}, "project": {"id": 392, "owner": {"id": 766}, "assignee": {"id": 854}}, "task": {"id": 303, "owner": {"id": 995}, "assignee": {"id": 30}}, "job": {"id": 304, "assignee": {"id": 1118}}, "organization": {"id": 1224}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 676}, "assignee": {"id": 564}, "project": {"id": 377, "owner": {"id": 732}, "assignee": {"id": 838}}, "task": {"id": 336, "owner": {"id": 975}, "assignee": {"id": 5}}, "job": {"id": 339, "assignee": {"id": 1102}}, "organization": {"id": 1286}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 672}, "assignee": {"id": 595}, "project": {"id": 383, "owner": {"id": 762}, "assignee": {"id": 866}}, "task": {"id": 337, "owner": {"id": 965}, "assignee": {"id": 3}}, "job": {"id": 389, "assignee": {"id": 1176}}, "organization": {"id": 161}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 666}, "assignee": {"id": 574}, "project": {"id": 393, "owner": {"id": 753}, "assignee": {"id": 838}}, "task": {"id": 373, "owner": {"id": 969}, "assignee": {"id": 68}}, "job": {"id": 396, "assignee": {"id": 1165}}, "organization": {"id": 185}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 667}, "assignee": {"id": 595}, "project": {"id": 332, "owner": {"id": 733}, "assignee": {"id": 831}}, "task": {"id": 383, "owner": {"id": 905}, "assignee": {"id": 79}}, "job": {"id": 314, "assignee": {"id": 1161}}, "organization": {"id": 1292}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 647}, "assignee": {"id": 553}, "project": {"id": 328, "owner": {"id": 795}, "assignee": {"id": 859}}, "task": {"id": 327, "owner": {"id": 981}, "assignee": {"id": 38}}, "job": {"id": 325, "assignee": {"id": 1194}}, "organization": {"id": 1279}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 643}, "assignee": {"id": 525}, "project": {"id": 346, "owner": {"id": 791}, "assignee": {"id": 863}}, "task": {"id": 345, "owner": {"id": 950}, "assignee": {"id": 35}}, "job": {"id": 312, "assignee": {"id": 1137}}, "organization": {"id": 169}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 622}, "assignee": {"id": 573}, "project": {"id": 338, "owner": {"id": 762}, "assignee": {"id": 856}}, "task": {"id": 359, "owner": {"id": 908}, "assignee": {"id": 77}}, "job": {"id": 391, "assignee": {"id": 1199}}, "organization": {"id": 171}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 688}, "assignee": {"id": 587}, "project": {"id": 367, "owner": {"id": 748}, "assignee": {"id": 830}}, "task": {"id": 394, "owner": {"id": 999}, "assignee": {"id": 23}}, "job": {"id": 395, "assignee": {"id": 1179}}, "organization": {"id": 1247}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 602}, "assignee": {"id": 541}, "project": {"id": 393, "owner": {"id": 765}, "assignee": {"id": 831}}, "task": {"id": 322, "owner": {"id": 957}, "assignee": {"id": 85}}, "job": {"id": 342, "assignee": {"id": 1114}}, "organization": {"id": 1274}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 659}, "assignee": {"id": 525}, "project": {"id": 349, "owner": {"id": 787}, "assignee": {"id": 837}}, "task": {"id": 322, "owner": {"id": 918}, "assignee": {"id": 76}}, "job": {"id": 327, "assignee": {"id": 1107}}, "organization": {"id": 126}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 662}, "assignee": {"id": 583}, "project": {"id": 301, "owner": {"id": 778}, "assignee": {"id": 890}}, "task": {"id": 386, "owner": {"id": 952}, "assignee": {"id": 5}}, "job": {"id": 360, "assignee": {"id": 1100}}, "organization": {"id": 157}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 613}, "assignee": {"id": 559}, "project": {"id": 386, "owner": {"id": 749}, "assignee": {"id": 828}}, "task": {"id": 341, "owner": {"id": 906}, "assignee": {"id": 91}}, "job": {"id": 392, "assignee": {"id": 1190}}, "organization": {"id": 1248}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 684}, "assignee": {"id": 531}, "project": {"id": 343, "owner": {"id": 743}, "assignee": {"id": 812}}, "task": {"id": 367, "owner": {"id": 915}, "assignee": {"id": 4}}, "job": {"id": 371, "assignee": {"id": 1171}}, "organization": {"id": 1297}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 684}, "assignee": {"id": 549}, "project": {"id": 343, "owner": {"id": 786}, "assignee": {"id": 858}}, "task": {"id": 391, "owner": {"id": 939}, "assignee": {"id": 62}}, "job": {"id": 340, "assignee": {"id": 1118}}, "organization": {"id": 100}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 675}, "assignee": {"id": 547}, "project": {"id": 331, "owner": {"id": 713}, "assignee": {"id": 832}}, "task": {"id": 398, "owner": {"id": 969}, "assignee": {"id": 32}}, "job": {"id": 385, "assignee": {"id": 1167}}, "organization": {"id": 131}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 673}, "assignee": {"id": 576}, "project": {"id": 326, "owner": {"id": 740}, "assignee": {"id": 825}}, "task": {"id": 322, "owner": {"id": 918}, "assignee": {"id": 60}}, "job": {"id": 349, "assignee": {"id": 1163}}, "organization": {"id": 1295}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 673}, "assignee": {"id": 517}, "project": {"id": 306, "owner": {"id": 758}, "assignee": {"id": 896}}, "task": {"id": 329, "owner": {"id": 922}, "assignee": {"id": 61}}, "job": {"id": 393, "assignee": {"id": 1120}}, "organization": {"id": 1268}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 611}, "assignee": {"id": 549}, "project": {"id": 301, "owner": {"id": 773}, "assignee": {"id": 859}}, "task": {"id": 328, "owner": {"id": 906}, "assignee": {"id": 16}}, "job": {"id": 363, "assignee": {"id": 1197}}, "organization": {"id": 157}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 615}, "assignee": {"id": 599}, "project": {"id": 341, "owner": {"id": 791}, "assignee": {"id": 880}}, "task": {"id": 334, "owner": {"id": 955}, "assignee": {"id": 9}}, "job": {"id": 327, "assignee": {"id": 1121}}, "organization": {"id": 187}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 682}, "assignee": {"id": 597}, "project": {"id": 325, "owner": {"id": 784}, "assignee": {"id": 853}}, "task": {"id": 375, "owner": {"id": 943}, "assignee": {"id": 0}}, "job": {"id": 302, "assignee": {"id": 1165}}, "organization": {"id": 1291}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 610}, "assignee": {"id": 552}, "project": {"id": 331, "owner": {"id": 720}, "assignee": {"id": 857}}, "task": {"id": 339, "owner": {"id": 976}, "assignee": {"id": 8}}, "job": {"id": 360, "assignee": {"id": 1110}}, "organization": {"id": 1208}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 662}, "assignee": {"id": 590}, "project": {"id": 353, "owner": {"id": 785}, "assignee": {"id": 876}}, "task": {"id": 328, "owner": {"id": 943}, "assignee": {"id": 66}}, "job": {"id": 316, "assignee": {"id": 1164}}, "organization": {"id": 191}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 684}, "assignee": {"id": 517}, "project": {"id": 374, "owner": {"id": 784}, "assignee": {"id": 885}}, "task": {"id": 307, "owner": {"id": 980}, "assignee": {"id": 30}}, "job": {"id": 374, "assignee": {"id": 1102}}, "organization": {"id": 104}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 611}, "assignee": {"id": 537}, "project": {"id": 332, "owner": {"id": 766}, "assignee": {"id": 850}}, "task": {"id": 345, "owner": {"id": 916}, "assignee": {"id": 10}}, "job": {"id": 322, "assignee": {"id": 1159}}, "organization": {"id": 1213}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 634}, "assignee": {"id": 519}, "project": {"id": 358, "owner": {"id": 779}, "assignee": {"id": 836}}, "task": {"id": 357, "owner": {"id": 908}, "assignee": {"id": 55}}, "job": {"id": 349, "assignee": {"id": 1140}}, "organization": {"id": 1204}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 659}, "assignee": {"id": 501}, "project": {"id": 393, "owner": {"id": 715}, "assignee": {"id": 866}}, "task": {"id": 355, "owner": {"id": 932}, "assignee": {"id": 82}}, "job": {"id": 367, "assignee": {"id": 1189}}, "organization": {"id": 132}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 637}, "assignee": {"id": 563}, "project": {"id": 363, "owner": {"id": 780}, "assignee": {"id": 897}}, "task": {"id": 338, "owner": {"id": 926}, "assignee": {"id": 84}}, "job": {"id": 383, "assignee": {"id": 1156}}, "organization": {"id": 149}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 647}, "assignee": {"id": 505}, "project": {"id": 377, "owner": {"id": 739}, "assignee": {"id": 851}}, "task": {"id": 303, "owner": {"id": 922}, "assignee": {"id": 42}}, "job": {"id": 355, "assignee": {"id": 1145}}, "organization": {"id": 1299}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 618}, "assignee": {"id": 541}, "project": {"id": 325, "owner": {"id": 775}, "assignee": {"id": 890}}, "task": {"id": 305, "owner": {"id": 929}, "assignee": {"id": 71}}, "job": {"id": 304, "assignee": {"id": 1184}}, "organization": {"id": 1242}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 687}, "assignee": {"id": 523}, "project": {"id": 342, "owner": {"id": 756}, "assignee": {"id": 890}}, "task": {"id": 391, "owner": {"id": 922}, "assignee": {"id": 2}}, "job": {"id": 300, "assignee": {"id": 1193}}, "organization": {"id": 196}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 601}, "assignee": {"id": 575}, "project": {"id": 335, "owner": {"id": 744}, "assignee": {"id": 872}}, "task": {"id": 357, "owner": {"id": 907}, "assignee": {"id": 42}}, "job": {"id": 387, "assignee": {"id": 1166}}, "organization": {"id": 134}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 689}, "assignee": {"id": 538}, "project": {"id": 325, "owner": {"id": 794}, "assignee": {"id": 808}}, "task": {"id": 353, "owner": {"id": 968}, "assignee": {"id": 53}}, "job": {"id": 361, "assignee": {"id": 1119}}, "organization": {"id": 1234}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 669}, "assignee": {"id": 535}, "project": {"id": 331, "owner": {"id": 787}, "assignee": {"id": 878}}, "task": {"id": 394, "owner": {"id": 985}, "assignee": {"id": 5}}, "job": {"id": 319, "assignee": {"id": 1174}}, "organization": {"id": 1236}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 623}, "assignee": {"id": 595}, "project": {"id": 336, "owner": {"id": 708}, "assignee": {"id": 873}}, "task": {"id": 331, "owner": {"id": 992}, "assignee": {"id": 68}}, "job": {"id": 349, "assignee": {"id": 1104}}, "organization": {"id": 112}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 609}, "assignee": {"id": 568}, "project": {"id": 317, "owner": {"id": 741}, "assignee": {"id": 880}}, "task": {"id": 347, "owner": {"id": 992}, "assignee": {"id": 4}}, "job": {"id": 389, "assignee": {"id": 1153}}, "organization": {"id": 178}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 658}, "assignee": {"id": 505}, "project": {"id": 342, "owner": {"id": 713}, "assignee": {"id": 821}}, "task": {"id": 331, "owner": {"id": 933}, "assignee": {"id": 87}}, "job": {"id": 372, "assignee": {"id": 1138}}, "organization": {"id": 1257}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 691}, "assignee": {"id": 518}, "project": {"id": 307, "owner": {"id": 783}, "assignee": {"id": 854}}, "task": {"id": 341, "owner": {"id": 917}, "assignee": {"id": 53}}, "job": {"id": 386, "assignee": {"id": 1169}}, "organization": {"id": 1251}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 699}, "assignee": {"id": 500}, "project": {"id": 378, "owner": {"id": 706}, "assignee": {"id": 863}}, "task": {"id": 329, "owner": {"id": 944}, "assignee": {"id": 7}}, "job": {"id": 387, "assignee": {"id": 1139}}, "organization": {"id": 190}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 690}, "assignee": {"id": 507}, "project": {"id": 345, "owner": {"id": 798}, "assignee": {"id": 862}}, "task": {"id": 397, "owner": {"id": 900}, "assignee": {"id": 80}}, "job": {"id": 397, "assignee": {"id": 1102}}, "organization": {"id": 163}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 668}, "assignee": {"id": 545}, "project": {"id": 349, "owner": {"id": 731}, "assignee": {"id": 825}}, "task": {"id": 307, "owner": {"id": 962}, "assignee": {"id": 31}}, "job": {"id": 351, "assignee": {"id": 1140}}, "organization": {"id": 1274}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 646}, "assignee": {"id": 584}, "project": {"id": 318, "owner": {"id": 759}, "assignee": {"id": 867}}, "task": {"id": 352, "owner": {"id": 944}, "assignee": {"id": 36}}, "job": {"id": 302, "assignee": {"id": 1165}}, "organization": {"id": 1284}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 695}, "assignee": {"id": 581}, "project": {"id": 321, "owner": {"id": 746}, "assignee": {"id": 871}}, "task": {"id": 329, "owner": {"id": 957}, "assignee": {"id": 92}}, "job": {"id": 393, "assignee": {"id": 1143}}, "organization": {"id": 184}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 630}, "assignee": {"id": 597}, "project": {"id": 338, "owner": {"id": 759}, "assignee": {"id": 823}}, "task": {"id": 343, "owner": {"id": 983}, "assignee": {"id": 91}}, "job": {"id": 329, "assignee": {"id": 1171}}, "organization": {"id": 125}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 646}, "assignee": {"id": 560}, "project": {"id": 320, "owner": {"id": 764}, "assignee": {"id": 836}}, "task": {"id": 337, "owner": {"id": 935}, "assignee": {"id": 40}}, "job": {"id": 360, "assignee": {"id": 1150}}, "organization": {"id": 1202}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 655}, "assignee": {"id": 543}, "project": {"id": 327, "owner": {"id": 753}, "assignee": {"id": 840}}, "task": {"id": 391, "owner": {"id": 928}, "assignee": {"id": 28}}, "job": {"id": 382, "assignee": {"id": 1148}}, "organization": {"id": 1212}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 602}, "assignee": {"id": 577}, "project": {"id": 302, "owner": {"id": 752}, "assignee": {"id": 837}}, "task": {"id": 308, "owner": {"id": 911}, "assignee": {"id": 77}}, "job": {"id": 303, "assignee": {"id": 1157}}, "organization": {"id": 131}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 628}, "assignee": {"id": 507}, "project": {"id": 315, "owner": {"id": 783}, "assignee": {"id": 875}}, "task": {"id": 379, "owner": {"id": 971}, "assignee": {"id": 94}}, "job": {"id": 392, "assignee": {"id": 1111}}, "organization": {"id": 179}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 686}, "assignee": {"id": 522}, "project": {"id": 346, "owner": {"id": 720}, "assignee": {"id": 839}}, "task": {"id": 325, "owner": {"id": 907}, "assignee": {"id": 93}}, "job": {"id": 310, "assignee": {"id": 1146}}, "organization": {"id": 1247}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 605}, "assignee": {"id": 523}, "project": {"id": 357, "owner": {"id": 783}, "assignee": {"id": 833}}, "task": {"id": 365, "owner": {"id": 981}, "assignee": {"id": 15}}, "job": {"id": 343, "assignee": {"id": 1178}}, "organization": {"id": 1289}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 679}, "assignee": {"id": 527}, "project": {"id": 371, "owner": {"id": 774}, "assignee": {"id": 867}}, "task": {"id": 391, "owner": {"id": 958}, "assignee": {"id": 56}}, "job": {"id": 396, "assignee": {"id": 1161}}, "organization": {"id": 166}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 651}, "assignee": {"id": 531}, "project": {"id": 347, "owner": {"id": 774}, "assignee": {"id": 869}}, "task": {"id": 322, "owner": {"id": 949}, "assignee": {"id": 80}}, "job": {"id": 361, "assignee": {"id": 1194}}, "organization": {"id": 127}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 641}, "assignee": {"id": 586}, "project": {"id": 391, "owner": {"id": 783}, "assignee": {"id": 871}}, "task": {"id": 319, "owner": {"id": 965}, "assignee": {"id": 70}}, "job": {"id": 365, "assignee": {"id": 1138}}, "organization": {"id": 1287}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 605}, "assignee": {"id": 561}, "project": {"id": 301, "owner": {"id": 708}, "assignee": {"id": 891}}, "task": {"id": 393, "owner": {"id": 907}, "assignee": {"id": 80}}, "job": {"id": 331, "assignee": {"id": 1194}}, "organization": {"id": 1260}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 609}, "assignee": {"id": 569}, "project": {"id": 305, "owner": {"id": 781}, "assignee": {"id": 831}}, "task": {"id": 398, "owner": {"id": 942}, "assignee": {"id": 37}}, "job": {"id": 366, "assignee": {"id": 1143}}, "organization": {"id": 140}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 667}, "assignee": {"id": 562}, "project": {"id": 341, "owner": {"id": 760}, "assignee": {"id": 815}}, "task": {"id": 327, "owner": {"id": 978}, "assignee": {"id": 71}}, "job": {"id": 319, "assignee": {"id": 1121}}, "organization": {"id": 163}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 653}, "assignee": {"id": 585}, "project": {"id": 339, "owner": {"id": 765}, "assignee": {"id": 832}}, "task": {"id": 364, "owner": {"id": 958}, "assignee": {"id": 38}}, "job": {"id": 394, "assignee": {"id": 1154}}, "organization": {"id": 1290}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 612}, "assignee": {"id": 501}, "project": {"id": 385, "owner": {"id": 700}, "assignee": {"id": 803}}, "task": {"id": 397, "owner": {"id": 980}, "assignee": {"id": 1}}, "job": {"id": 337, "assignee": {"id": 1102}}, "organization": {"id": 1272}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 610}, "assignee": {"id": 514}, "project": {"id": 310, "owner": {"id": 774}, "assignee": {"id": 890}}, "task": {"id": 352, "owner": {"id": 969}, "assignee": {"id": 93}}, "job": {"id": 387, "assignee": {"id": 1126}}, "organization": {"id": 109}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 688}, "assignee": {"id": 501}, "project": {"id": 370, "owner": {"id": 780}, "assignee": {"id": 807}}, "task": {"id": 337, "owner": {"id": 980}, "assignee": {"id": 84}}, "job": {"id": 312, "assignee": {"id": 1102}}, "organization": {"id": 116}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 669}, "assignee": {"id": 557}, "project": {"id": 341, "owner": {"id": 778}, "assignee": {"id": 822}}, "task": {"id": 399, "owner": {"id": 913}, "assignee": {"id": 98}}, "job": {"id": 379, "assignee": {"id": 1190}}, "organization": {"id": 1260}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 653}, "assignee": {"id": 593}, "project": {"id": 365, "owner": {"id": 709}, "assignee": {"id": 876}}, "task": {"id": 322, "owner": {"id": 993}, "assignee": {"id": 81}}, "job": {"id": 310, "assignee": {"id": 1197}}, "organization": {"id": 1276}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 654}, "assignee": {"id": 535}, "project": {"id": 301, "owner": {"id": 744}, "assignee": {"id": 878}}, "task": {"id": 333, "owner": {"id": 915}, "assignee": {"id": 68}}, "job": {"id": 361, "assignee": {"id": 1118}}, "organization": {"id": 180}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 626}, "assignee": {"id": 585}, "project": {"id": 304, "owner": {"id": 742}, "assignee": {"id": 870}}, "task": {"id": 385, "owner": {"id": 902}, "assignee": {"id": 9}}, "job": {"id": 333, "assignee": {"id": 1141}}, "organization": {"id": 149}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 607}, "assignee": {"id": 522}, "project": {"id": 385, "owner": {"id": 793}, "assignee": {"id": 889}}, "task": {"id": 308, "owner": {"id": 921}, "assignee": {"id": 29}}, "job": {"id": 331, "assignee": {"id": 1142}}, "organization": {"id": 1215}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 614}, "assignee": {"id": 542}, "project": {"id": 323, "owner": {"id": 731}, "assignee": {"id": 802}}, "task": {"id": 345, "owner": {"id": 926}, "assignee": {"id": 31}}, "job": {"id": 343, "assignee": {"id": 1141}}, "organization": {"id": 1231}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 643}, "assignee": {"id": 500}, "project": {"id": 312, "owner": {"id": 744}, "assignee": {"id": 817}}, "task": {"id": 302, "owner": {"id": 941}, "assignee": {"id": 58}}, "job": {"id": 387, "assignee": {"id": 1165}}, "organization": {"id": 154}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 615}, "assignee": {"id": 555}, "project": {"id": 330, "owner": {"id": 791}, "assignee": {"id": 822}}, "task": {"id": 307, "owner": {"id": 927}, "assignee": {"id": 11}}, "job": {"id": 399, "assignee": {"id": 1152}}, "organization": {"id": 136}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 663}, "assignee": {"id": 594}, "project": {"id": 374, "owner": {"id": 764}, "assignee": {"id": 820}}, "task": {"id": 354, "owner": {"id": 906}, "assignee": {"id": 45}}, "job": {"id": 300, "assignee": {"id": 1138}}, "organization": {"id": 1263}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 673}, "assignee": {"id": 587}, "project": {"id": 305, "owner": {"id": 764}, "assignee": {"id": 873}}, "task": {"id": 322, "owner": {"id": 900}, "assignee": {"id": 72}}, "job": {"id": 345, "assignee": {"id": 1159}}, "organization": {"id": 1285}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 627}, "assignee": {"id": 552}, "project": {"id": 363, "owner": {"id": 773}, "assignee": {"id": 829}}, "task": {"id": 385, "owner": {"id": 923}, "assignee": {"id": 53}}, "job": {"id": 317, "assignee": {"id": 1178}}, "organization": {"id": 155}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 609}, "assignee": {"id": 564}, "project": {"id": 326, "owner": {"id": 768}, "assignee": {"id": 817}}, "task": {"id": 325, "owner": {"id": 997}, "assignee": {"id": 31}}, "job": {"id": 302, "assignee": {"id": 1134}}, "organization": {"id": 115}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 684}, "assignee": {"id": 592}, "project": {"id": 385, "owner": {"id": 716}, "assignee": {"id": 802}}, "task": {"id": 379, "owner": {"id": 993}, "assignee": {"id": 78}}, "job": {"id": 357, "assignee": {"id": 1163}}, "organization": {"id": 1287}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 646}, "assignee": {"id": 581}, "project": {"id": 371, "owner": {"id": 797}, "assignee": {"id": 832}}, "task": {"id": 323, "owner": {"id": 949}, "assignee": {"id": 49}}, "job": {"id": 389, "assignee": {"id": 1157}}, "organization": {"id": 1273}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 665}, "assignee": {"id": 586}, "project": {"id": 387, "owner": {"id": 730}, "assignee": {"id": 894}}, "task": {"id": 319, "owner": {"id": 903}, "assignee": {"id": 84}}, "job": {"id": 351, "assignee": {"id": 1167}}, "organization": {"id": 143}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 656}, "assignee": {"id": 516}, "project": {"id": 313, "owner": {"id": 771}, "assignee": {"id": 887}}, "task": {"id": 322, "owner": {"id": 985}, "assignee": {"id": 89}}, "job": {"id": 317, "assignee": {"id": 1175}}, "organization": {"id": 103}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 685}, "assignee": {"id": 565}, "project": {"id": 317, "owner": {"id": 799}, "assignee": {"id": 895}}, "task": {"id": 337, "owner": {"id": 923}, "assignee": {"id": 22}}, "job": {"id": 368, "assignee": {"id": 1191}}, "organization": {"id": 1247}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 679}, "assignee": {"id": 527}, "project": {"id": 305, "owner": {"id": 790}, "assignee": {"id": 869}}, "task": {"id": 310, "owner": {"id": 995}, "assignee": {"id": 55}}, "job": {"id": 333, "assignee": {"id": 1157}}, "organization": {"id": 1230}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 653}, "assignee": {"id": 545}, "project": {"id": 354, "owner": {"id": 707}, "assignee": {"id": 823}}, "task": {"id": 325, "owner": {"id": 974}, "assignee": {"id": 97}}, "job": {"id": 388, "assignee": {"id": 1187}}, "organization": {"id": 167}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 632}, "assignee": {"id": 502}, "project": {"id": 398, "owner": {"id": 735}, "assignee": {"id": 812}}, "task": {"id": 390, "owner": {"id": 912}, "assignee": {"id": 11}}, "job": {"id": 310, "assignee": {"id": 1162}}, "organization": {"id": 191}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 662}, "assignee": {"id": 588}, "project": {"id": 396, "owner": {"id": 712}, "assignee": {"id": 804}}, "task": {"id": 307, "owner": {"id": 932}, "assignee": {"id": 23}}, "job": {"id": 330, "assignee": {"id": 1152}}, "organization": {"id": 1216}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 633}, "assignee": {"id": 588}, "project": {"id": 353, "owner": {"id": 748}, "assignee": {"id": 837}}, "task": {"id": 317, "owner": {"id": 976}, "assignee": {"id": 47}}, "job": {"id": 343, "assignee": {"id": 1114}}, "organization": {"id": 1256}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 623}, "assignee": {"id": 564}, "project": {"id": 393, "owner": {"id": 718}, "assignee": {"id": 842}}, "task": {"id": 397, "owner": {"id": 976}, "assignee": {"id": 1008}}, "job": {"id": 383, "assignee": {"id": 98}}, "organization": {"id": 164}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 630}, "assignee": {"id": 577}, "project": {"id": 347, "owner": {"id": 771}, "assignee": {"id": 877}}, "task": {"id": 332, "owner": {"id": 958}, "assignee": {"id": 1046}}, "job": {"id": 367, "assignee": {"id": 46}}, "organization": {"id": 196}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 697}, "assignee": {"id": 588}, "project": {"id": 398, "owner": {"id": 767}, "assignee": {"id": 873}}, "task": {"id": 334, "owner": {"id": 938}, "assignee": {"id": 1034}}, "job": {"id": 328, "assignee": {"id": 59}}, "organization": {"id": 1203}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 649}, "assignee": {"id": 536}, "project": {"id": 308, "owner": {"id": 709}, "assignee": {"id": 804}}, "task": {"id": 363, "owner": {"id": 930}, "assignee": {"id": 1060}}, "job": {"id": 382, "assignee": {"id": 55}}, "organization": {"id": 1240}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 613}, "assignee": {"id": 503}, "project": {"id": 345, "owner": {"id": 709}, "assignee": {"id": 826}}, "task": {"id": 376, "owner": {"id": 962}, "assignee": {"id": 1072}}, "job": {"id": 354, "assignee": {"id": 37}}, "organization": {"id": 179}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 649}, "assignee": {"id": 581}, "project": {"id": 350, "owner": {"id": 779}, "assignee": {"id": 895}}, "task": {"id": 341, "owner": {"id": 968}, "assignee": {"id": 1079}}, "job": {"id": 361, "assignee": {"id": 57}}, "organization": {"id": 104}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 675}, "assignee": {"id": 590}, "project": {"id": 312, "owner": {"id": 756}, "assignee": {"id": 873}}, "task": {"id": 358, "owner": {"id": 921}, "assignee": {"id": 1067}}, "job": {"id": 338, "assignee": {"id": 55}}, "organization": {"id": 1269}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 638}, "assignee": {"id": 504}, "project": {"id": 389, "owner": {"id": 773}, "assignee": {"id": 848}}, "task": {"id": 387, "owner": {"id": 947}, "assignee": {"id": 1026}}, "job": {"id": 380, "assignee": {"id": 87}}, "organization": {"id": 1237}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 687}, "assignee": {"id": 533}, "project": {"id": 327, "owner": {"id": 792}, "assignee": {"id": 848}}, "task": {"id": 358, "owner": {"id": 956}, "assignee": {"id": 1015}}, "job": {"id": 382, "assignee": {"id": 95}}, "organization": {"id": 106}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 604}, "assignee": {"id": 584}, "project": {"id": 343, "owner": {"id": 759}, "assignee": {"id": 884}}, "task": {"id": 368, "owner": {"id": 900}, "assignee": {"id": 1078}}, "job": {"id": 395, "assignee": {"id": 23}}, "organization": {"id": 137}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 613}, "assignee": {"id": 510}, "project": {"id": 399, "owner": {"id": 725}, "assignee": {"id": 862}}, "task": {"id": 386, "owner": {"id": 954}, "assignee": {"id": 1073}}, "job": {"id": 388, "assignee": {"id": 52}}, "organization": {"id": 1219}}} +} + +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": 154, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 669}, "assignee": {"id": 518}, "project": {"id": 322, "owner": {"id": 776}, "assignee": {"id": 871}}, "task": {"id": 353, "owner": {"id": 944}, "assignee": {"id": 1032}}, "job": {"id": 352, "assignee": {"id": 35}}, "organization": {"id": 1244}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 660}, "assignee": {"id": 551}, "project": {"id": 384, "owner": {"id": 790}, "assignee": {"id": 815}}, "task": {"id": 325, "owner": {"id": 945}, "assignee": {"id": 1084}}, "job": {"id": 346, "assignee": {"id": 32}}, "organization": {"id": 154}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 660}, "assignee": {"id": 571}, "project": {"id": 322, "owner": {"id": 708}, "assignee": {"id": 822}}, "task": {"id": 354, "owner": {"id": 919}, "assignee": {"id": 1072}}, "job": {"id": 367, "assignee": {"id": 34}}, "organization": {"id": 198}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 677}, "assignee": {"id": 509}, "project": {"id": 351, "owner": {"id": 724}, "assignee": {"id": 819}}, "task": {"id": 389, "owner": {"id": 978}, "assignee": {"id": 1083}}, "job": {"id": 398, "assignee": {"id": 26}}, "organization": {"id": 1249}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 663}, "assignee": {"id": 595}, "project": {"id": 380, "owner": {"id": 751}, "assignee": {"id": 887}}, "task": {"id": 358, "owner": {"id": 910}, "assignee": {"id": 1075}}, "job": {"id": 398, "assignee": {"id": 33}}, "organization": {"id": 1237}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 605}, "assignee": {"id": 560}, "project": {"id": 357, "owner": {"id": 710}, "assignee": {"id": 857}}, "task": {"id": 311, "owner": {"id": 932}, "assignee": {"id": 1046}}, "job": {"id": 352, "assignee": {"id": 83}}, "organization": {"id": 191}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 667}, "assignee": {"id": 556}, "project": {"id": 301, "owner": {"id": 711}, "assignee": {"id": 832}}, "task": {"id": 352, "owner": {"id": 913}, "assignee": {"id": 1098}}, "job": {"id": 340, "assignee": {"id": 87}}, "organization": {"id": 161}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 642}, "assignee": {"id": 540}, "project": {"id": 363, "owner": {"id": 777}, "assignee": {"id": 824}}, "task": {"id": 393, "owner": {"id": 999}, "assignee": {"id": 1041}}, "job": {"id": 349, "assignee": {"id": 67}}, "organization": {"id": 1286}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 685}, "assignee": {"id": 567}, "project": {"id": 319, "owner": {"id": 770}, "assignee": {"id": 803}}, "task": {"id": 384, "owner": {"id": 973}, "assignee": {"id": 1049}}, "job": {"id": 395, "assignee": {"id": 32}}, "organization": {"id": 1204}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 648}, "assignee": {"id": 571}, "project": {"id": 376, "owner": {"id": 793}, "assignee": {"id": 825}}, "task": {"id": 396, "owner": {"id": 932}, "assignee": {"id": 1099}}, "job": {"id": 359, "assignee": {"id": 1}}, "organization": {"id": 156}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 623}, "assignee": {"id": 582}, "project": {"id": 316, "owner": {"id": 702}, "assignee": {"id": 840}}, "task": {"id": 388, "owner": {"id": 996}, "assignee": {"id": 1027}}, "job": {"id": 339, "assignee": {"id": 64}}, "organization": {"id": 160}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 615}, "assignee": {"id": 580}, "project": {"id": 379, "owner": {"id": 776}, "assignee": {"id": 829}}, "task": {"id": 307, "owner": {"id": 904}, "assignee": {"id": 1060}}, "job": {"id": 363, "assignee": {"id": 97}}, "organization": {"id": 1226}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 604}, "assignee": {"id": 562}, "project": {"id": 309, "owner": {"id": 760}, "assignee": {"id": 800}}, "task": {"id": 356, "owner": {"id": 981}, "assignee": {"id": 1018}}, "job": {"id": 372, "assignee": {"id": 34}}, "organization": {"id": 1251}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 657}, "assignee": {"id": 535}, "project": {"id": 350, "owner": {"id": 715}, "assignee": {"id": 891}}, "task": {"id": 321, "owner": {"id": 938}, "assignee": {"id": 1068}}, "job": {"id": 335, "assignee": {"id": 49}}, "organization": {"id": 104}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 634}, "assignee": {"id": 582}, "project": {"id": 350, "owner": {"id": 755}, "assignee": {"id": 897}}, "task": {"id": 394, "owner": {"id": 924}, "assignee": {"id": 1005}}, "job": {"id": 370, "assignee": {"id": 5}}, "organization": {"id": 154}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 625}, "assignee": {"id": 549}, "project": {"id": 347, "owner": {"id": 716}, "assignee": {"id": 895}}, "task": {"id": 327, "owner": {"id": 930}, "assignee": {"id": 1085}}, "job": {"id": 371, "assignee": {"id": 40}}, "organization": {"id": 1258}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 697}, "assignee": {"id": 596}, "project": {"id": 347, "owner": {"id": 712}, "assignee": {"id": 869}}, "task": {"id": 375, "owner": {"id": 940}, "assignee": {"id": 1032}}, "job": {"id": 324, "assignee": {"id": 15}}, "organization": {"id": 1210}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 631}, "assignee": {"id": 517}, "project": {"id": 340, "owner": {"id": 716}, "assignee": {"id": 871}}, "task": {"id": 363, "owner": {"id": 914}, "assignee": {"id": 1028}}, "job": {"id": 303, "assignee": {"id": 36}}, "organization": {"id": 118}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 629}, "assignee": {"id": 598}, "project": {"id": 302, "owner": {"id": 790}, "assignee": {"id": 869}}, "task": {"id": 318, "owner": {"id": 975}, "assignee": {"id": 1042}}, "job": {"id": 345, "assignee": {"id": 60}}, "organization": {"id": 107}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 683}, "assignee": {"id": 527}, "project": {"id": 391, "owner": {"id": 782}, "assignee": {"id": 827}}, "task": {"id": 367, "owner": {"id": 919}, "assignee": {"id": 1002}}, "job": {"id": 380, "assignee": {"id": 56}}, "organization": {"id": 1265}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 675}, "assignee": {"id": 566}, "project": {"id": 327, "owner": {"id": 770}, "assignee": {"id": 819}}, "task": {"id": 307, "owner": {"id": 905}, "assignee": {"id": 1069}}, "job": {"id": 328, "assignee": {"id": 82}}, "organization": {"id": 1220}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 665}, "assignee": {"id": 575}, "project": {"id": 374, "owner": {"id": 712}, "assignee": {"id": 853}}, "task": {"id": 341, "owner": {"id": 940}, "assignee": {"id": 1044}}, "job": {"id": 393, "assignee": {"id": 56}}, "organization": {"id": 107}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 619}, "assignee": {"id": 523}, "project": {"id": 302, "owner": {"id": 786}, "assignee": {"id": 831}}, "task": {"id": 393, "owner": {"id": 990}, "assignee": {"id": 1037}}, "job": {"id": 362, "assignee": {"id": 29}}, "organization": {"id": 129}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 643}, "assignee": {"id": 576}, "project": {"id": 390, "owner": {"id": 797}, "assignee": {"id": 865}}, "task": {"id": 388, "owner": {"id": 967}, "assignee": {"id": 1040}}, "job": {"id": 336, "assignee": {"id": 47}}, "organization": {"id": 1254}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 613}, "assignee": {"id": 534}, "project": {"id": 319, "owner": {"id": 796}, "assignee": {"id": 847}}, "task": {"id": 327, "owner": {"id": 993}, "assignee": {"id": 1033}}, "job": {"id": 307, "assignee": {"id": 19}}, "organization": {"id": 1201}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 622}, "assignee": {"id": 569}, "project": {"id": 340, "owner": {"id": 782}, "assignee": {"id": 861}}, "task": {"id": 306, "owner": {"id": 970}, "assignee": {"id": 1051}}, "job": {"id": 396, "assignee": {"id": 45}}, "organization": {"id": 117}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 611}, "assignee": {"id": 567}, "project": {"id": 325, "owner": {"id": 794}, "assignee": {"id": 827}}, "task": {"id": 372, "owner": {"id": 917}, "assignee": {"id": 1003}}, "job": {"id": 386, "assignee": {"id": 53}}, "organization": {"id": 116}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 619}, "assignee": {"id": 552}, "project": {"id": 345, "owner": {"id": 754}, "assignee": {"id": 836}}, "task": {"id": 380, "owner": {"id": 961}, "assignee": {"id": 1014}}, "job": {"id": 363, "assignee": {"id": 32}}, "organization": {"id": 1248}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 601}, "assignee": {"id": 521}, "project": {"id": 317, "owner": {"id": 752}, "assignee": {"id": 884}}, "task": {"id": 333, "owner": {"id": 958}, "assignee": {"id": 1021}}, "job": {"id": 301, "assignee": {"id": 1}}, "organization": {"id": 1239}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 669}, "assignee": {"id": 590}, "project": {"id": 355, "owner": {"id": 778}, "assignee": {"id": 897}}, "task": {"id": 305, "owner": {"id": 921}, "assignee": {"id": 1060}}, "job": {"id": 326, "assignee": {"id": 55}}, "organization": {"id": 176}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 640}, "assignee": {"id": 577}, "project": {"id": 304, "owner": {"id": 786}, "assignee": {"id": 854}}, "task": {"id": 397, "owner": {"id": 972}, "assignee": {"id": 1028}}, "job": {"id": 362, "assignee": {"id": 43}}, "organization": {"id": 136}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 696}, "assignee": {"id": 531}, "project": {"id": 320, "owner": {"id": 764}, "assignee": {"id": 811}}, "task": {"id": 351, "owner": {"id": 948}, "assignee": {"id": 1081}}, "job": {"id": 325, "assignee": {"id": 60}}, "organization": {"id": 1293}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 687}, "assignee": {"id": 574}, "project": {"id": 338, "owner": {"id": 783}, "assignee": {"id": 884}}, "task": {"id": 301, "owner": {"id": 925}, "assignee": {"id": 1014}}, "job": {"id": 371, "assignee": {"id": 41}}, "organization": {"id": 1239}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 659}, "assignee": {"id": 561}, "project": {"id": 361, "owner": {"id": 786}, "assignee": {"id": 813}}, "task": {"id": 325, "owner": {"id": 980}, "assignee": {"id": 1088}}, "job": {"id": 360, "assignee": {"id": 96}}, "organization": {"id": 182}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 631}, "assignee": {"id": 556}, "project": {"id": 341, "owner": {"id": 715}, "assignee": {"id": 871}}, "task": {"id": 316, "owner": {"id": 994}, "assignee": {"id": 1053}}, "job": {"id": 338, "assignee": {"id": 77}}, "organization": {"id": 184}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 642}, "assignee": {"id": 530}, "project": {"id": 361, "owner": {"id": 756}, "assignee": {"id": 827}}, "task": {"id": 369, "owner": {"id": 953}, "assignee": {"id": 1095}}, "job": {"id": 386, "assignee": {"id": 45}}, "organization": {"id": 1204}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 612}, "assignee": {"id": 568}, "project": {"id": 318, "owner": {"id": 787}, "assignee": {"id": 865}}, "task": {"id": 375, "owner": {"id": 990}, "assignee": {"id": 1095}}, "job": {"id": 335, "assignee": {"id": 43}}, "organization": {"id": 1253}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 619}, "assignee": {"id": 598}, "project": {"id": 380, "owner": {"id": 724}, "assignee": {"id": 893}}, "task": {"id": 378, "owner": {"id": 936}, "assignee": {"id": 1039}}, "job": {"id": 363, "assignee": {"id": 8}}, "organization": {"id": 176}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 630}, "assignee": {"id": 566}, "project": {"id": 370, "owner": {"id": 780}, "assignee": {"id": 847}}, "task": {"id": 337, "owner": {"id": 946}, "assignee": {"id": 1023}}, "job": {"id": 342, "assignee": {"id": 41}}, "organization": {"id": 182}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 608}, "assignee": {"id": 570}, "project": {"id": 364, "owner": {"id": 702}, "assignee": {"id": 821}}, "task": {"id": 386, "owner": {"id": 978}, "assignee": {"id": 1050}}, "job": {"id": 325, "assignee": {"id": 47}}, "organization": {"id": 1258}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 653}, "assignee": {"id": 530}, "project": {"id": 307, "owner": {"id": 787}, "assignee": {"id": 806}}, "task": {"id": 331, "owner": {"id": 987}, "assignee": {"id": 1021}}, "job": {"id": 376, "assignee": {"id": 45}}, "organization": {"id": 1281}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 667}, "assignee": {"id": 541}, "project": {"id": 352, "owner": {"id": 792}, "assignee": {"id": 830}}, "task": {"id": 307, "owner": {"id": 912}, "assignee": {"id": 1007}}, "job": {"id": 303, "assignee": {"id": 95}}, "organization": {"id": 118}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 691}, "assignee": {"id": 555}, "project": {"id": 398, "owner": {"id": 782}, "assignee": {"id": 886}}, "task": {"id": 301, "owner": {"id": 998}, "assignee": {"id": 1096}}, "job": {"id": 327, "assignee": {"id": 76}}, "organization": {"id": 146}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 662}, "assignee": {"id": 535}, "project": {"id": 353, "owner": {"id": 795}, "assignee": {"id": 851}}, "task": {"id": 314, "owner": {"id": 957}, "assignee": {"id": 1037}}, "job": {"id": 357, "assignee": {"id": 79}}, "organization": {"id": 1237}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 682}, "assignee": {"id": 584}, "project": {"id": 394, "owner": {"id": 738}, "assignee": {"id": 823}}, "task": {"id": 331, "owner": {"id": 938}, "assignee": {"id": 1091}}, "job": {"id": 315, "assignee": {"id": 1}}, "organization": {"id": 1288}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 657}, "assignee": {"id": 593}, "project": {"id": 388, "owner": {"id": 787}, "assignee": {"id": 872}}, "task": {"id": 317, "owner": {"id": 996}, "assignee": {"id": 1003}}, "job": {"id": 392, "assignee": {"id": 41}}, "organization": {"id": 180}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 692}, "assignee": {"id": 514}, "project": {"id": 390, "owner": {"id": 779}, "assignee": {"id": 888}}, "task": {"id": 314, "owner": {"id": 990}, "assignee": {"id": 1064}}, "job": {"id": 374, "assignee": {"id": 8}}, "organization": {"id": 184}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 600}, "assignee": {"id": 567}, "project": {"id": 339, "owner": {"id": 732}, "assignee": {"id": 834}}, "task": {"id": 307, "owner": {"id": 932}, "assignee": {"id": 1056}}, "job": {"id": 362, "assignee": {"id": 30}}, "organization": {"id": 1241}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 627}, "assignee": {"id": 527}, "project": {"id": 395, "owner": {"id": 701}, "assignee": {"id": 816}}, "task": {"id": 345, "owner": {"id": 982}, "assignee": {"id": 1046}}, "job": {"id": 330, "assignee": {"id": 91}}, "organization": {"id": 1240}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 699}, "assignee": {"id": 586}, "project": {"id": 312, "owner": {"id": 717}, "assignee": {"id": 875}}, "task": {"id": 313, "owner": {"id": 904}, "assignee": {"id": 1028}}, "job": {"id": 316, "assignee": {"id": 98}}, "organization": {"id": 112}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 685}, "assignee": {"id": 593}, "project": {"id": 394, "owner": {"id": 759}, "assignee": {"id": 884}}, "task": {"id": 399, "owner": {"id": 973}, "assignee": {"id": 1097}}, "job": {"id": 370, "assignee": {"id": 62}}, "organization": {"id": 145}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 624}, "assignee": {"id": 534}, "project": {"id": 307, "owner": {"id": 714}, "assignee": {"id": 806}}, "task": {"id": 339, "owner": {"id": 988}, "assignee": {"id": 1071}}, "job": {"id": 335, "assignee": {"id": 1}}, "organization": {"id": 1264}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 658}, "assignee": {"id": 569}, "project": {"id": 340, "owner": {"id": 702}, "assignee": {"id": 860}}, "task": {"id": 318, "owner": {"id": 940}, "assignee": {"id": 1053}}, "job": {"id": 306, "assignee": {"id": 71}}, "organization": {"id": 1299}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 673}, "assignee": {"id": 524}, "project": {"id": 371, "owner": {"id": 798}, "assignee": {"id": 853}}, "task": {"id": 370, "owner": {"id": 914}, "assignee": {"id": 1093}}, "job": {"id": 341, "assignee": {"id": 44}}, "organization": {"id": 181}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 621}, "assignee": {"id": 574}, "project": {"id": 358, "owner": {"id": 714}, "assignee": {"id": 874}}, "task": {"id": 342, "owner": {"id": 911}, "assignee": {"id": 1040}}, "job": {"id": 322, "assignee": {"id": 83}}, "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": 53, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 641}, "assignee": {"id": 587}, "project": {"id": 385, "owner": {"id": 733}, "assignee": {"id": 885}}, "task": {"id": 398, "owner": {"id": 983}, "assignee": {"id": 1055}}, "job": {"id": 331, "assignee": {"id": 53}}, "organization": {"id": 1223}}} +} + +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": 192, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 610}, "assignee": {"id": 570}, "project": {"id": 308, "owner": {"id": 715}, "assignee": {"id": 882}}, "task": {"id": 337, "owner": {"id": 973}, "assignee": {"id": 1040}}, "job": {"id": 372, "assignee": {"id": 54}}, "organization": {"id": 1277}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 651}, "assignee": {"id": 537}, "project": {"id": 344, "owner": {"id": 765}, "assignee": {"id": 865}}, "task": {"id": 323, "owner": {"id": 974}, "assignee": {"id": 1058}}, "job": {"id": 352, "assignee": {"id": 92}}, "organization": {"id": 130}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 611}, "assignee": {"id": 515}, "project": {"id": 362, "owner": {"id": 711}, "assignee": {"id": 845}}, "task": {"id": 302, "owner": {"id": 908}, "assignee": {"id": 1021}}, "job": {"id": 369, "assignee": {"id": 97}}, "organization": {"id": 180}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 644}, "assignee": {"id": 583}, "project": {"id": 339, "owner": {"id": 738}, "assignee": {"id": 830}}, "task": {"id": 347, "owner": {"id": 915}, "assignee": {"id": 1097}}, "job": {"id": 370, "assignee": {"id": 64}}, "organization": {"id": 1227}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 672}, "assignee": {"id": 504}, "project": {"id": 340, "owner": {"id": 719}, "assignee": {"id": 850}}, "task": {"id": 310, "owner": {"id": 943}, "assignee": {"id": 1088}}, "job": {"id": 337, "assignee": {"id": 88}}, "organization": {"id": 1217}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 636}, "assignee": {"id": 531}, "project": {"id": 391, "owner": {"id": 782}, "assignee": {"id": 823}}, "task": {"id": 344, "owner": {"id": 906}, "assignee": {"id": 1024}}, "job": {"id": 327, "assignee": {"id": 13}}, "organization": {"id": 143}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 618}, "assignee": {"id": 520}, "project": {"id": 394, "owner": {"id": 720}, "assignee": {"id": 821}}, "task": {"id": 379, "owner": {"id": 975}, "assignee": {"id": 1038}}, "job": {"id": 337, "assignee": {"id": 39}}, "organization": {"id": 161}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 647}, "assignee": {"id": 582}, "project": {"id": 341, "owner": {"id": 739}, "assignee": {"id": 880}}, "task": {"id": 304, "owner": {"id": 921}, "assignee": {"id": 1083}}, "job": {"id": 393, "assignee": {"id": 80}}, "organization": {"id": 1222}}} +} + +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": 110, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 675}, "assignee": {"id": 544}, "project": {"id": 366, "owner": {"id": 785}, "assignee": {"id": 885}}, "task": {"id": 313, "owner": {"id": 930}, "assignee": {"id": 1080}}, "job": {"id": 302, "assignee": {"id": 57}}, "organization": {"id": 1206}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 670}, "assignee": {"id": 579}, "project": {"id": 353, "owner": {"id": 737}, "assignee": {"id": 867}}, "task": {"id": 360, "owner": {"id": 903}, "assignee": {"id": 1079}}, "job": {"id": 379, "assignee": {"id": 40}}, "organization": {"id": 162}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 638}, "assignee": {"id": 525}, "project": {"id": 362, "owner": {"id": 705}, "assignee": {"id": 897}}, "task": {"id": 389, "owner": {"id": 980}, "assignee": {"id": 1066}}, "job": {"id": 371, "assignee": {"id": 31}}, "organization": {"id": 164}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 679}, "assignee": {"id": 558}, "project": {"id": 329, "owner": {"id": 777}, "assignee": {"id": 810}}, "task": {"id": 320, "owner": {"id": 994}, "assignee": {"id": 1028}}, "job": {"id": 328, "assignee": {"id": 92}}, "organization": {"id": 1258}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 686}, "assignee": {"id": 524}, "project": {"id": 383, "owner": {"id": 756}, "assignee": {"id": 855}}, "task": {"id": 374, "owner": {"id": 927}, "assignee": {"id": 1083}}, "job": {"id": 322, "assignee": {"id": 3}}, "organization": {"id": 1280}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 631}, "assignee": {"id": 597}, "project": {"id": 310, "owner": {"id": 753}, "assignee": {"id": 836}}, "task": {"id": 338, "owner": {"id": 959}, "assignee": {"id": 1086}}, "job": {"id": 380, "assignee": {"id": 67}}, "organization": {"id": 148}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 629}, "assignee": {"id": 509}, "project": {"id": 377, "owner": {"id": 703}, "assignee": {"id": 859}}, "task": {"id": 347, "owner": {"id": 991}, "assignee": {"id": 1007}}, "job": {"id": 332, "assignee": {"id": 57}}, "organization": {"id": 196}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 625}, "assignee": {"id": 539}, "project": {"id": 342, "owner": {"id": 700}, "assignee": {"id": 845}}, "task": {"id": 361, "owner": {"id": 941}, "assignee": {"id": 1089}}, "job": {"id": 333, "assignee": {"id": 55}}, "organization": {"id": 1233}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 637}, "assignee": {"id": 517}, "project": {"id": 359, "owner": {"id": 771}, "assignee": {"id": 894}}, "task": {"id": 303, "owner": {"id": 959}, "assignee": {"id": 1005}}, "job": {"id": 369, "assignee": {"id": 95}}, "organization": {"id": 1275}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 602}, "assignee": {"id": 531}, "project": {"id": 337, "owner": {"id": 728}, "assignee": {"id": 815}}, "task": {"id": 325, "owner": {"id": 946}, "assignee": {"id": 1054}}, "job": {"id": 331, "assignee": {"id": 89}}, "organization": {"id": 170}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 645}, "assignee": {"id": 550}, "project": {"id": 313, "owner": {"id": 740}, "assignee": {"id": 843}}, "task": {"id": 394, "owner": {"id": 988}, "assignee": {"id": 1088}}, "job": {"id": 392, "assignee": {"id": 17}}, "organization": {"id": 176}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 619}, "assignee": {"id": 516}, "project": {"id": 348, "owner": {"id": 793}, "assignee": {"id": 801}}, "task": {"id": 372, "owner": {"id": 979}, "assignee": {"id": 1078}}, "job": {"id": 346, "assignee": {"id": 80}}, "organization": {"id": 1230}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 602}, "assignee": {"id": 534}, "project": {"id": 316, "owner": {"id": 705}, "assignee": {"id": 875}}, "task": {"id": 397, "owner": {"id": 955}, "assignee": {"id": 1026}}, "job": {"id": 338, "assignee": {"id": 0}}, "organization": {"id": 1236}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 601}, "assignee": {"id": 568}, "project": {"id": 385, "owner": {"id": 709}, "assignee": {"id": 829}}, "task": {"id": 394, "owner": {"id": 937}, "assignee": {"id": 1037}}, "job": {"id": 349, "assignee": {"id": 73}}, "organization": {"id": 129}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 678}, "assignee": {"id": 550}, "project": {"id": 320, "owner": {"id": 741}, "assignee": {"id": 850}}, "task": {"id": 305, "owner": {"id": 942}, "assignee": {"id": 1025}}, "job": {"id": 338, "assignee": {"id": 80}}, "organization": {"id": 128}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 652}, "assignee": {"id": 500}, "project": {"id": 359, "owner": {"id": 714}, "assignee": {"id": 868}}, "task": {"id": 311, "owner": {"id": 970}, "assignee": {"id": 1028}}, "job": {"id": 363, "assignee": {"id": 73}}, "organization": {"id": 1257}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 699}, "assignee": {"id": 518}, "project": {"id": 326, "owner": {"id": 713}, "assignee": {"id": 879}}, "task": {"id": 361, "owner": {"id": 955}, "assignee": {"id": 1005}}, "job": {"id": 308, "assignee": {"id": 53}}, "organization": {"id": 1277}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 641}, "assignee": {"id": 570}, "project": {"id": 328, "owner": {"id": 769}, "assignee": {"id": 858}}, "task": {"id": 300, "owner": {"id": 985}, "assignee": {"id": 1095}}, "job": {"id": 370, "assignee": {"id": 62}}, "organization": {"id": 151}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 657}, "assignee": {"id": 556}, "project": {"id": 326, "owner": {"id": 733}, "assignee": {"id": 815}}, "task": {"id": 360, "owner": {"id": 992}, "assignee": {"id": 1072}}, "job": {"id": 397, "assignee": {"id": 64}}, "organization": {"id": 149}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 661}, "assignee": {"id": 500}, "project": {"id": 370, "owner": {"id": 736}, "assignee": {"id": 886}}, "task": {"id": 335, "owner": {"id": 960}, "assignee": {"id": 1021}}, "job": {"id": 388, "assignee": {"id": 41}}, "organization": {"id": 1201}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 623}, "assignee": {"id": 553}, "project": {"id": 342, "owner": {"id": 784}, "assignee": {"id": 802}}, "task": {"id": 321, "owner": {"id": 948}, "assignee": {"id": 1072}}, "job": {"id": 319, "assignee": {"id": 63}}, "organization": {"id": 1272}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 679}, "assignee": {"id": 538}, "project": {"id": 394, "owner": {"id": 723}, "assignee": {"id": 889}}, "task": {"id": 303, "owner": {"id": 911}, "assignee": {"id": 1086}}, "job": {"id": 318, "assignee": {"id": 51}}, "organization": {"id": 184}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 645}, "assignee": {"id": 510}, "project": {"id": 321, "owner": {"id": 775}, "assignee": {"id": 836}}, "task": {"id": 384, "owner": {"id": 926}, "assignee": {"id": 1071}}, "job": {"id": 389, "assignee": {"id": 11}}, "organization": {"id": 131}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 614}, "assignee": {"id": 512}, "project": {"id": 380, "owner": {"id": 790}, "assignee": {"id": 825}}, "task": {"id": 341, "owner": {"id": 938}, "assignee": {"id": 1016}}, "job": {"id": 355, "assignee": {"id": 11}}, "organization": {"id": 1248}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 600}, "assignee": {"id": 524}, "project": {"id": 333, "owner": {"id": 774}, "assignee": {"id": 819}}, "task": {"id": 312, "owner": {"id": 929}, "assignee": {"id": 1060}}, "job": {"id": 359, "assignee": {"id": 35}}, "organization": {"id": 1246}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 694}, "assignee": {"id": 590}, "project": {"id": 382, "owner": {"id": 728}, "assignee": {"id": 863}}, "task": {"id": 317, "owner": {"id": 996}, "assignee": {"id": 1096}}, "job": {"id": 344, "assignee": {"id": 1135}}, "organization": {"id": 113}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 680}, "assignee": {"id": 527}, "project": {"id": 336, "owner": {"id": 772}, "assignee": {"id": 895}}, "task": {"id": 398, "owner": {"id": 978}, "assignee": {"id": 1009}}, "job": {"id": 347, "assignee": {"id": 1115}}, "organization": {"id": 114}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 676}, "assignee": {"id": 553}, "project": {"id": 326, "owner": {"id": 789}, "assignee": {"id": 898}}, "task": {"id": 393, "owner": {"id": 984}, "assignee": {"id": 1019}}, "job": {"id": 373, "assignee": {"id": 1198}}, "organization": {"id": 1204}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 694}, "assignee": {"id": 511}, "project": {"id": 368, "owner": {"id": 724}, "assignee": {"id": 868}}, "task": {"id": 348, "owner": {"id": 984}, "assignee": {"id": 1050}}, "job": {"id": 388, "assignee": {"id": 1147}}, "organization": {"id": 1257}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 670}, "assignee": {"id": 502}, "project": {"id": 382, "owner": {"id": 723}, "assignee": {"id": 865}}, "task": {"id": 340, "owner": {"id": 900}, "assignee": {"id": 1019}}, "job": {"id": 336, "assignee": {"id": 1130}}, "organization": {"id": 119}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 653}, "assignee": {"id": 529}, "project": {"id": 347, "owner": {"id": 787}, "assignee": {"id": 823}}, "task": {"id": 327, "owner": {"id": 975}, "assignee": {"id": 1094}}, "job": {"id": 384, "assignee": {"id": 1120}}, "organization": {"id": 119}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 627}, "assignee": {"id": 575}, "project": {"id": 331, "owner": {"id": 736}, "assignee": {"id": 845}}, "task": {"id": 370, "owner": {"id": 938}, "assignee": {"id": 1005}}, "job": {"id": 377, "assignee": {"id": 1178}}, "organization": {"id": 1292}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 663}, "assignee": {"id": 556}, "project": {"id": 366, "owner": {"id": 707}, "assignee": {"id": 803}}, "task": {"id": 308, "owner": {"id": 970}, "assignee": {"id": 1034}}, "job": {"id": 312, "assignee": {"id": 1192}}, "organization": {"id": 1226}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 643}, "assignee": {"id": 567}, "project": {"id": 325, "owner": {"id": 718}, "assignee": {"id": 883}}, "task": {"id": 386, "owner": {"id": 944}, "assignee": {"id": 1014}}, "job": {"id": 339, "assignee": {"id": 1101}}, "organization": {"id": 135}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 641}, "assignee": {"id": 530}, "project": {"id": 386, "owner": {"id": 738}, "assignee": {"id": 838}}, "task": {"id": 361, "owner": {"id": 952}, "assignee": {"id": 1019}}, "job": {"id": 355, "assignee": {"id": 1183}}, "organization": {"id": 160}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 610}, "assignee": {"id": 543}, "project": {"id": 337, "owner": {"id": 796}, "assignee": {"id": 808}}, "task": {"id": 370, "owner": {"id": 998}, "assignee": {"id": 1032}}, "job": {"id": 397, "assignee": {"id": 1138}}, "organization": {"id": 1271}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 662}, "assignee": {"id": 580}, "project": {"id": 341, "owner": {"id": 711}, "assignee": {"id": 859}}, "task": {"id": 305, "owner": {"id": 962}, "assignee": {"id": 1085}}, "job": {"id": 307, "assignee": {"id": 1140}}, "organization": {"id": 1271}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 669}, "assignee": {"id": 594}, "project": {"id": 369, "owner": {"id": 775}, "assignee": {"id": 815}}, "task": {"id": 348, "owner": {"id": 996}, "assignee": {"id": 1083}}, "job": {"id": 340, "assignee": {"id": 1135}}, "organization": {"id": 182}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 661}, "assignee": {"id": 533}, "project": {"id": 365, "owner": {"id": 729}, "assignee": {"id": 831}}, "task": {"id": 370, "owner": {"id": 965}, "assignee": {"id": 1024}}, "job": {"id": 329, "assignee": {"id": 1177}}, "organization": {"id": 167}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 649}, "assignee": {"id": 549}, "project": {"id": 335, "owner": {"id": 751}, "assignee": {"id": 842}}, "task": {"id": 379, "owner": {"id": 988}, "assignee": {"id": 1076}}, "job": {"id": 398, "assignee": {"id": 1145}}, "organization": {"id": 1200}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 640}, "assignee": {"id": 575}, "project": {"id": 317, "owner": {"id": 771}, "assignee": {"id": 899}}, "task": {"id": 394, "owner": {"id": 981}, "assignee": {"id": 1060}}, "job": {"id": 364, "assignee": {"id": 1121}}, "organization": {"id": 1249}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 631}, "assignee": {"id": 534}, "project": {"id": 305, "owner": {"id": 765}, "assignee": {"id": 827}}, "task": {"id": 399, "owner": {"id": 993}, "assignee": {"id": 1062}}, "job": {"id": 336, "assignee": {"id": 1144}}, "organization": {"id": 192}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 637}, "assignee": {"id": 593}, "project": {"id": 308, "owner": {"id": 741}, "assignee": {"id": 872}}, "task": {"id": 344, "owner": {"id": 986}, "assignee": {"id": 1003}}, "job": {"id": 359, "assignee": {"id": 1126}}, "organization": {"id": 143}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 616}, "assignee": {"id": 533}, "project": {"id": 351, "owner": {"id": 768}, "assignee": {"id": 883}}, "task": {"id": 347, "owner": {"id": 918}, "assignee": {"id": 1083}}, "job": {"id": 399, "assignee": {"id": 1165}}, "organization": {"id": 1261}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 619}, "assignee": {"id": 504}, "project": {"id": 321, "owner": {"id": 751}, "assignee": {"id": 877}}, "task": {"id": 362, "owner": {"id": 975}, "assignee": {"id": 1096}}, "job": {"id": 389, "assignee": {"id": 1111}}, "organization": {"id": 1247}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 649}, "assignee": {"id": 519}, "project": {"id": 303, "owner": {"id": 750}, "assignee": {"id": 887}}, "task": {"id": 301, "owner": {"id": 925}, "assignee": {"id": 1067}}, "job": {"id": 390, "assignee": {"id": 1110}}, "organization": {"id": 172}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 689}, "assignee": {"id": 514}, "project": {"id": 372, "owner": {"id": 758}, "assignee": {"id": 824}}, "task": {"id": 305, "owner": {"id": 947}, "assignee": {"id": 1088}}, "job": {"id": 397, "assignee": {"id": 1173}}, "organization": {"id": 191}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 642}, "assignee": {"id": 591}, "project": {"id": 369, "owner": {"id": 716}, "assignee": {"id": 846}}, "task": {"id": 377, "owner": {"id": 951}, "assignee": {"id": 1090}}, "job": {"id": 378, "assignee": {"id": 1120}}, "organization": {"id": 1271}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 690}, "assignee": {"id": 512}, "project": {"id": 309, "owner": {"id": 715}, "assignee": {"id": 836}}, "task": {"id": 315, "owner": {"id": 913}, "assignee": {"id": 1064}}, "job": {"id": 333, "assignee": {"id": 1170}}, "organization": {"id": 1259}}} +} + +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": 174, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 655}, "assignee": {"id": 596}, "project": {"id": 314, "owner": {"id": 750}, "assignee": {"id": 845}}, "task": {"id": 391, "owner": {"id": 916}, "assignee": {"id": 1099}}, "job": {"id": 356, "assignee": {"id": 1151}}, "organization": {"id": 174}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 655}, "assignee": {"id": 502}, "project": {"id": 354, "owner": {"id": 701}, "assignee": {"id": 808}}, "task": {"id": 323, "owner": {"id": 975}, "assignee": {"id": 1016}}, "job": {"id": 341, "assignee": {"id": 1129}}, "organization": {"id": 182}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 617}, "assignee": {"id": 581}, "project": {"id": 340, "owner": {"id": 775}, "assignee": {"id": 879}}, "task": {"id": 362, "owner": {"id": 955}, "assignee": {"id": 1004}}, "job": {"id": 327, "assignee": {"id": 1160}}, "organization": {"id": 1246}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 605}, "assignee": {"id": 539}, "project": {"id": 325, "owner": {"id": 701}, "assignee": {"id": 829}}, "task": {"id": 315, "owner": {"id": 954}, "assignee": {"id": 1077}}, "job": {"id": 387, "assignee": {"id": 1150}}, "organization": {"id": 1294}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 636}, "assignee": {"id": 587}, "project": {"id": 371, "owner": {"id": 725}, "assignee": {"id": 807}}, "task": {"id": 357, "owner": {"id": 928}, "assignee": {"id": 1099}}, "job": {"id": 372, "assignee": {"id": 1159}}, "organization": {"id": 117}}} +} + +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": 139, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 673}, "assignee": {"id": 557}, "project": {"id": 310, "owner": {"id": 731}, "assignee": {"id": 822}}, "task": {"id": 350, "owner": {"id": 999}, "assignee": {"id": 1019}}, "job": {"id": 306, "assignee": {"id": 1112}}, "organization": {"id": 139}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 673}, "assignee": {"id": 557}, "project": {"id": 311, "owner": {"id": 727}, "assignee": {"id": 851}}, "task": {"id": 311, "owner": {"id": 973}, "assignee": {"id": 1057}}, "job": {"id": 392, "assignee": {"id": 1195}}, "organization": {"id": 1258}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 628}, "assignee": {"id": 515}, "project": {"id": 352, "owner": {"id": 742}, "assignee": {"id": 861}}, "task": {"id": 360, "owner": {"id": 914}, "assignee": {"id": 1065}}, "job": {"id": 379, "assignee": {"id": 1132}}, "organization": {"id": 1209}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 658}, "assignee": {"id": 545}, "project": {"id": 320, "owner": {"id": 701}, "assignee": {"id": 819}}, "task": {"id": 397, "owner": {"id": 935}, "assignee": {"id": 1073}}, "job": {"id": 325, "assignee": {"id": 1108}}, "organization": {"id": 158}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 659}, "assignee": {"id": 595}, "project": {"id": 355, "owner": {"id": 781}, "assignee": {"id": 816}}, "task": {"id": 348, "owner": {"id": 912}, "assignee": {"id": 1001}}, "job": {"id": 345, "assignee": {"id": 1103}}, "organization": {"id": 105}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 684}, "assignee": {"id": 554}, "project": {"id": 385, "owner": {"id": 789}, "assignee": {"id": 851}}, "task": {"id": 323, "owner": {"id": 942}, "assignee": {"id": 1076}}, "job": {"id": 320, "assignee": {"id": 1182}}, "organization": {"id": 1266}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 658}, "assignee": {"id": 565}, "project": {"id": 342, "owner": {"id": 716}, "assignee": {"id": 837}}, "task": {"id": 378, "owner": {"id": 995}, "assignee": {"id": 1051}}, "job": {"id": 354, "assignee": {"id": 1154}}, "organization": {"id": 1292}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 604}, "assignee": {"id": 513}, "project": {"id": 318, "owner": {"id": 721}, "assignee": {"id": 865}}, "task": {"id": 332, "owner": {"id": 955}, "assignee": {"id": 1044}}, "job": {"id": 376, "assignee": {"id": 1196}}, "organization": {"id": 160}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 693}, "assignee": {"id": 540}, "project": {"id": 351, "owner": {"id": 730}, "assignee": {"id": 808}}, "task": {"id": 319, "owner": {"id": 932}, "assignee": {"id": 1073}}, "job": {"id": 325, "assignee": {"id": 1101}}, "organization": {"id": 160}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 645}, "assignee": {"id": 504}, "project": {"id": 352, "owner": {"id": 712}, "assignee": {"id": 801}}, "task": {"id": 356, "owner": {"id": 995}, "assignee": {"id": 1071}}, "job": {"id": 399, "assignee": {"id": 1167}}, "organization": {"id": 1283}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 635}, "assignee": {"id": 503}, "project": {"id": 308, "owner": {"id": 774}, "assignee": {"id": 849}}, "task": {"id": 391, "owner": {"id": 953}, "assignee": {"id": 1012}}, "job": {"id": 316, "assignee": {"id": 1139}}, "organization": {"id": 1243}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 632}, "assignee": {"id": 524}, "project": {"id": 357, "owner": {"id": 731}, "assignee": {"id": 810}}, "task": {"id": 300, "owner": {"id": 956}, "assignee": {"id": 1009}}, "job": {"id": 383, "assignee": {"id": 1154}}, "organization": {"id": 183}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 628}, "assignee": {"id": 511}, "project": {"id": 357, "owner": {"id": 791}, "assignee": {"id": 862}}, "task": {"id": 382, "owner": {"id": 985}, "assignee": {"id": 1066}}, "job": {"id": 337, "assignee": {"id": 1121}}, "organization": {"id": 181}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 636}, "assignee": {"id": 536}, "project": {"id": 331, "owner": {"id": 734}, "assignee": {"id": 800}}, "task": {"id": 343, "owner": {"id": 999}, "assignee": {"id": 1034}}, "job": {"id": 391, "assignee": {"id": 1113}}, "organization": {"id": 1208}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 618}, "assignee": {"id": 519}, "project": {"id": 349, "owner": {"id": 759}, "assignee": {"id": 834}}, "task": {"id": 326, "owner": {"id": 903}, "assignee": {"id": 1070}}, "job": {"id": 359, "assignee": {"id": 1177}}, "organization": {"id": 1287}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 612}, "assignee": {"id": 531}, "project": {"id": 380, "owner": {"id": 781}, "assignee": {"id": 854}}, "task": {"id": 304, "owner": {"id": 933}, "assignee": {"id": 1048}}, "job": {"id": 396, "assignee": {"id": 1166}}, "organization": {"id": 100}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 698}, "assignee": {"id": 579}, "project": {"id": 350, "owner": {"id": 754}, "assignee": {"id": 853}}, "task": {"id": 342, "owner": {"id": 996}, "assignee": {"id": 1069}}, "job": {"id": 358, "assignee": {"id": 1171}}, "organization": {"id": 139}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 601}, "assignee": {"id": 593}, "project": {"id": 392, "owner": {"id": 737}, "assignee": {"id": 874}}, "task": {"id": 354, "owner": {"id": 967}, "assignee": {"id": 1005}}, "job": {"id": 391, "assignee": {"id": 1133}}, "organization": {"id": 1243}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 618}, "assignee": {"id": 555}, "project": {"id": 303, "owner": {"id": 728}, "assignee": {"id": 878}}, "task": {"id": 332, "owner": {"id": 942}, "assignee": {"id": 1007}}, "job": {"id": 365, "assignee": {"id": 1124}}, "organization": {"id": 1294}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 642}, "assignee": {"id": 552}, "project": {"id": 326, "owner": {"id": 798}, "assignee": {"id": 833}}, "task": {"id": 370, "owner": {"id": 969}, "assignee": {"id": 1071}}, "job": {"id": 395, "assignee": {"id": 1173}}, "organization": {"id": 172}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 663}, "assignee": {"id": 534}, "project": {"id": 355, "owner": {"id": 733}, "assignee": {"id": 891}}, "task": {"id": 375, "owner": {"id": 976}, "assignee": {"id": 1043}}, "job": {"id": 339, "assignee": {"id": 1189}}, "organization": {"id": 161}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 627}, "assignee": {"id": 553}, "project": {"id": 323, "owner": {"id": 774}, "assignee": {"id": 868}}, "task": {"id": 355, "owner": {"id": 977}, "assignee": {"id": 1058}}, "job": {"id": 327, "assignee": {"id": 1175}}, "organization": {"id": 1283}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 656}, "assignee": {"id": 526}, "project": {"id": 312, "owner": {"id": 701}, "assignee": {"id": 820}}, "task": {"id": 335, "owner": {"id": 937}, "assignee": {"id": 1057}}, "job": {"id": 376, "assignee": {"id": 1171}}, "organization": {"id": 1210}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 681}, "assignee": {"id": 592}, "project": {"id": 373, "owner": {"id": 749}, "assignee": {"id": 834}}, "task": {"id": 305, "owner": {"id": 935}, "assignee": {"id": 1021}}, "job": {"id": 371, "assignee": {"id": 1174}}, "organization": {"id": 174}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 677}, "assignee": {"id": 523}, "project": {"id": 388, "owner": {"id": 741}, "assignee": {"id": 874}}, "task": {"id": 300, "owner": {"id": 979}, "assignee": {"id": 1036}}, "job": {"id": 330, "assignee": {"id": 1151}}, "organization": {"id": 156}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 690}, "assignee": {"id": 574}, "project": {"id": 395, "owner": {"id": 703}, "assignee": {"id": 858}}, "task": {"id": 372, "owner": {"id": 982}, "assignee": {"id": 1011}}, "job": {"id": 322, "assignee": {"id": 1108}}, "organization": {"id": 1244}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 662}, "assignee": {"id": 555}, "project": {"id": 332, "owner": {"id": 727}, "assignee": {"id": 895}}, "task": {"id": 363, "owner": {"id": 968}, "assignee": {"id": 1033}}, "job": {"id": 385, "assignee": {"id": 1117}}, "organization": {"id": 1213}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 677}, "assignee": {"id": 566}, "project": {"id": 365, "owner": {"id": 764}, "assignee": {"id": 875}}, "task": {"id": 375, "owner": {"id": 927}, "assignee": {"id": 1046}}, "job": {"id": 362, "assignee": {"id": 1142}}, "organization": {"id": 137}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 652}, "assignee": {"id": 572}, "project": {"id": 336, "owner": {"id": 700}, "assignee": {"id": 808}}, "task": {"id": 361, "owner": {"id": 923}, "assignee": {"id": 1078}}, "job": {"id": 364, "assignee": {"id": 1117}}, "organization": {"id": 102}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 674}, "assignee": {"id": 521}, "project": {"id": 361, "owner": {"id": 725}, "assignee": {"id": 809}}, "task": {"id": 362, "owner": {"id": 920}, "assignee": {"id": 1050}}, "job": {"id": 333, "assignee": {"id": 1155}}, "organization": {"id": 1245}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 633}, "assignee": {"id": 597}, "project": {"id": 398, "owner": {"id": 734}, "assignee": {"id": 886}}, "task": {"id": 343, "owner": {"id": 906}, "assignee": {"id": 1084}}, "job": {"id": 385, "assignee": {"id": 1124}}, "organization": {"id": 1222}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 671}, "assignee": {"id": 528}, "project": {"id": 365, "owner": {"id": 750}, "assignee": {"id": 881}}, "task": {"id": 325, "owner": {"id": 942}, "assignee": {"id": 1083}}, "job": {"id": 394, "assignee": {"id": 1118}}, "organization": {"id": 191}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 634}, "assignee": {"id": 527}, "project": {"id": 388, "owner": {"id": 717}, "assignee": {"id": 898}}, "task": {"id": 392, "owner": {"id": 901}, "assignee": {"id": 1051}}, "job": {"id": 373, "assignee": {"id": 1131}}, "organization": {"id": 176}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 647}, "assignee": {"id": 568}, "project": {"id": 308, "owner": {"id": 704}, "assignee": {"id": 859}}, "task": {"id": 339, "owner": {"id": 992}, "assignee": {"id": 1082}}, "job": {"id": 374, "assignee": {"id": 1119}}, "organization": {"id": 1215}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 652}, "assignee": {"id": 574}, "project": {"id": 330, "owner": {"id": 780}, "assignee": {"id": 805}}, "task": {"id": 326, "owner": {"id": 905}, "assignee": {"id": 1083}}, "job": {"id": 354, "assignee": {"id": 1180}}, "organization": {"id": 1235}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 671}, "assignee": {"id": 501}, "project": {"id": 363, "owner": {"id": 776}, "assignee": {"id": 838}}, "task": {"id": 395, "owner": {"id": 941}, "assignee": {"id": 1041}}, "job": {"id": 358, "assignee": {"id": 1115}}, "organization": {"id": 163}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 648}, "assignee": {"id": 527}, "project": {"id": 395, "owner": {"id": 718}, "assignee": {"id": 879}}, "task": {"id": 311, "owner": {"id": 947}, "assignee": {"id": 1022}}, "job": {"id": 331, "assignee": {"id": 1195}}, "organization": {"id": 168}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 626}, "assignee": {"id": 536}, "project": {"id": 355, "owner": {"id": 797}, "assignee": {"id": 808}}, "task": {"id": 393, "owner": {"id": 947}, "assignee": {"id": 1068}}, "job": {"id": 371, "assignee": {"id": 1182}}, "organization": {"id": 1203}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 685}, "assignee": {"id": 599}, "project": {"id": 389, "owner": {"id": 723}, "assignee": {"id": 826}}, "task": {"id": 331, "owner": {"id": 920}, "assignee": {"id": 1047}}, "job": {"id": 314, "assignee": {"id": 1152}}, "organization": {"id": 1273}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 673}, "assignee": {"id": 518}, "project": {"id": 324, "owner": {"id": 788}, "assignee": {"id": 861}}, "task": {"id": 384, "owner": {"id": 936}, "assignee": {"id": 1086}}, "job": {"id": 380, "assignee": {"id": 1159}}, "organization": {"id": 140}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 643}, "assignee": {"id": 524}, "project": {"id": 381, "owner": {"id": 775}, "assignee": {"id": 890}}, "task": {"id": 375, "owner": {"id": 962}, "assignee": {"id": 1064}}, "job": {"id": 339, "assignee": {"id": 1145}}, "organization": {"id": 185}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 687}, "assignee": {"id": 513}, "project": {"id": 337, "owner": {"id": 795}, "assignee": {"id": 810}}, "task": {"id": 305, "owner": {"id": 935}, "assignee": {"id": 1013}}, "job": {"id": 356, "assignee": {"id": 1125}}, "organization": {"id": 1213}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 636}, "assignee": {"id": 599}, "project": {"id": 390, "owner": {"id": 773}, "assignee": {"id": 852}}, "task": {"id": 396, "owner": {"id": 973}, "assignee": {"id": 1023}}, "job": {"id": 347, "assignee": {"id": 1175}}, "organization": {"id": 1246}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 622}, "assignee": {"id": 575}, "project": {"id": 314, "owner": {"id": 742}, "assignee": {"id": 819}}, "task": {"id": 310, "owner": {"id": 959}, "assignee": {"id": 1045}}, "job": {"id": 329, "assignee": {"id": 1166}}, "organization": {"id": 122}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 610}, "assignee": {"id": 597}, "project": {"id": 354, "owner": {"id": 750}, "assignee": {"id": 843}}, "task": {"id": 349, "owner": {"id": 976}, "assignee": {"id": 1010}}, "job": {"id": 381, "assignee": {"id": 1135}}, "organization": {"id": 180}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 647}, "assignee": {"id": 501}, "project": {"id": 302, "owner": {"id": 775}, "assignee": {"id": 858}}, "task": {"id": 324, "owner": {"id": 904}, "assignee": {"id": 1053}}, "job": {"id": 346, "assignee": {"id": 1191}}, "organization": {"id": 1295}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 690}, "assignee": {"id": 525}, "project": {"id": 340, "owner": {"id": 760}, "assignee": {"id": 855}}, "task": {"id": 329, "owner": {"id": 937}, "assignee": {"id": 1009}}, "job": {"id": 376, "assignee": {"id": 1161}}, "organization": {"id": 1291}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 646}, "assignee": {"id": 539}, "project": {"id": 389, "owner": {"id": 748}, "assignee": {"id": 832}}, "task": {"id": 389, "owner": {"id": 971}, "assignee": {"id": 1001}}, "job": {"id": 363, "assignee": {"id": 1161}}, "organization": {"id": 106}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 664}, "assignee": {"id": 582}, "project": {"id": 331, "owner": {"id": 747}, "assignee": {"id": 860}}, "task": {"id": 380, "owner": {"id": 915}, "assignee": {"id": 1037}}, "job": {"id": 356, "assignee": {"id": 1188}}, "organization": {"id": 119}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 668}, "assignee": {"id": 583}, "project": {"id": 351, "owner": {"id": 703}, "assignee": {"id": 893}}, "task": {"id": 362, "owner": {"id": 997}, "assignee": {"id": 1037}}, "job": {"id": 371, "assignee": {"id": 1193}}, "organization": {"id": 1265}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 674}, "assignee": {"id": 596}, "project": {"id": 321, "owner": {"id": 706}, "assignee": {"id": 835}}, "task": {"id": 321, "owner": {"id": 991}, "assignee": {"id": 1073}}, "job": {"id": 344, "assignee": {"id": 1154}}, "organization": {"id": 1217}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 604}, "assignee": {"id": 510}, "project": {"id": 364, "owner": {"id": 707}, "assignee": {"id": 870}}, "task": {"id": 395, "owner": {"id": 956}, "assignee": {"id": 1008}}, "job": {"id": 349, "assignee": {"id": 1189}}, "organization": {"id": 115}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 609}, "assignee": {"id": 508}, "project": {"id": 302, "owner": {"id": 713}, "assignee": {"id": 875}}, "task": {"id": 377, "owner": {"id": 905}, "assignee": {"id": 1003}}, "job": {"id": 319, "assignee": {"id": 1181}}, "organization": {"id": 158}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 697}, "assignee": {"id": 566}, "project": {"id": 345, "owner": {"id": 777}, "assignee": {"id": 891}}, "task": {"id": 303, "owner": {"id": 988}, "assignee": {"id": 1038}}, "job": {"id": 326, "assignee": {"id": 1187}}, "organization": {"id": 1262}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 645}, "assignee": {"id": 580}, "project": {"id": 392, "owner": {"id": 734}, "assignee": {"id": 826}}, "task": {"id": 374, "owner": {"id": 996}, "assignee": {"id": 1035}}, "job": {"id": 309, "assignee": {"id": 1124}}, "organization": {"id": 1249}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 678}, "assignee": {"id": 570}, "project": {"id": 382, "owner": {"id": 742}, "assignee": {"id": 865}}, "task": {"id": 388, "owner": {"id": 968}, "assignee": {"id": 1029}}, "job": {"id": 345, "assignee": {"id": 1175}}, "organization": {"id": 112}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 652}, "assignee": {"id": 573}, "project": {"id": 386, "owner": {"id": 747}, "assignee": {"id": 831}}, "task": {"id": 341, "owner": {"id": 986}, "assignee": {"id": 1086}}, "job": {"id": 392, "assignee": {"id": 1114}}, "organization": {"id": 169}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 647}, "assignee": {"id": 522}, "project": {"id": 335, "owner": {"id": 737}, "assignee": {"id": 805}}, "task": {"id": 389, "owner": {"id": 963}, "assignee": {"id": 1009}}, "job": {"id": 396, "assignee": {"id": 1175}}, "organization": {"id": 1291}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 640}, "assignee": {"id": 523}, "project": {"id": 399, "owner": {"id": 719}, "assignee": {"id": 874}}, "task": {"id": 310, "owner": {"id": 941}, "assignee": {"id": 1092}}, "job": {"id": 335, "assignee": {"id": 1138}}, "organization": {"id": 1213}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 620}, "assignee": {"id": 544}, "project": {"id": 304, "owner": {"id": 703}, "assignee": {"id": 832}}, "task": {"id": 364, "owner": {"id": 915}, "assignee": {"id": 1050}}, "job": {"id": 368, "assignee": {"id": 1187}}, "organization": {"id": 197}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 602}, "assignee": {"id": 593}, "project": {"id": 356, "owner": {"id": 794}, "assignee": {"id": 832}}, "task": {"id": 327, "owner": {"id": 966}, "assignee": {"id": 1057}}, "job": {"id": 391, "assignee": {"id": 1194}}, "organization": {"id": 150}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 626}, "assignee": {"id": 532}, "project": {"id": 388, "owner": {"id": 781}, "assignee": {"id": 877}}, "task": {"id": 309, "owner": {"id": 956}, "assignee": {"id": 1009}}, "job": {"id": 317, "assignee": {"id": 1189}}, "organization": {"id": 1236}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 635}, "assignee": {"id": 554}, "project": {"id": 339, "owner": {"id": 749}, "assignee": {"id": 861}}, "task": {"id": 346, "owner": {"id": 961}, "assignee": {"id": 1018}}, "job": {"id": 303, "assignee": {"id": 1198}}, "organization": {"id": 1209}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 667}, "assignee": {"id": 586}, "project": {"id": 343, "owner": {"id": 737}, "assignee": {"id": 838}}, "task": {"id": 317, "owner": {"id": 959}, "assignee": {"id": 1008}}, "job": {"id": 329, "assignee": {"id": 1119}}, "organization": {"id": 156}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 699}, "assignee": {"id": 543}, "project": {"id": 358, "owner": {"id": 742}, "assignee": {"id": 814}}, "task": {"id": 334, "owner": {"id": 901}, "assignee": {"id": 1077}}, "job": {"id": 318, "assignee": {"id": 1198}}, "organization": {"id": 122}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 621}, "assignee": {"id": 533}, "project": {"id": 302, "owner": {"id": 797}, "assignee": {"id": 847}}, "task": {"id": 395, "owner": {"id": 948}, "assignee": {"id": 1049}}, "job": {"id": 303, "assignee": {"id": 1126}}, "organization": {"id": 1245}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 600}, "assignee": {"id": 520}, "project": {"id": 369, "owner": {"id": 734}, "assignee": {"id": 871}}, "task": {"id": 390, "owner": {"id": 972}, "assignee": {"id": 1006}}, "job": {"id": 326, "assignee": {"id": 1154}}, "organization": {"id": 1277}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 675}, "assignee": {"id": 512}, "project": {"id": 371, "owner": {"id": 743}, "assignee": {"id": 878}}, "task": {"id": 373, "owner": {"id": 976}, "assignee": {"id": 1032}}, "job": {"id": 385, "assignee": {"id": 1162}}, "organization": {"id": 106}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 676}, "assignee": {"id": 519}, "project": {"id": 392, "owner": {"id": 700}, "assignee": {"id": 896}}, "task": {"id": 374, "owner": {"id": 948}, "assignee": {"id": 1063}}, "job": {"id": 373, "assignee": {"id": 1168}}, "organization": {"id": 194}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 619}, "assignee": {"id": 556}, "project": {"id": 393, "owner": {"id": 745}, "assignee": {"id": 850}}, "task": {"id": 389, "owner": {"id": 925}, "assignee": {"id": 1061}}, "job": {"id": 377, "assignee": {"id": 1146}}, "organization": {"id": 1268}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 619}, "assignee": {"id": 500}, "project": {"id": 326, "owner": {"id": 707}, "assignee": {"id": 815}}, "task": {"id": 329, "owner": {"id": 915}, "assignee": {"id": 1013}}, "job": {"id": 330, "assignee": {"id": 1143}}, "organization": {"id": 1227}}} +} + +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": 60, "privilege": "admin"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 634}, "assignee": {"id": 522}, "project": {"id": 332, "owner": {"id": 60}, "assignee": {"id": 888}}, "task": {"id": 303, "owner": {"id": 948}, "assignee": {"id": 1018}}, "job": {"id": 305, "assignee": {"id": 1155}}, "organization": {"id": 1263}}} +} + +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": 0, "privilege": "business"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 695}, "assignee": {"id": 584}, "project": {"id": 378, "owner": {"id": 0}, "assignee": {"id": 898}}, "task": {"id": 383, "owner": {"id": 930}, "assignee": {"id": 1014}}, "job": {"id": 342, "assignee": {"id": 1162}}, "organization": {"id": 1264}}} +} + +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": 46, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 649}, "assignee": {"id": 529}, "project": {"id": 312, "owner": {"id": 46}, "assignee": {"id": 854}}, "task": {"id": 354, "owner": {"id": 933}, "assignee": {"id": 1035}}, "job": {"id": 382, "assignee": {"id": 1185}}, "organization": {"id": 1215}}} +} + +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": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 668}, "assignee": {"id": 569}, "project": {"id": 363, "owner": {"id": 9}, "assignee": {"id": 804}}, "task": {"id": 389, "owner": {"id": 982}, "assignee": {"id": 1083}}, "job": {"id": 372, "assignee": {"id": 1140}}, "organization": {"id": 1269}}} +} + +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": 47, "privilege": "none"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 673}, "assignee": {"id": 579}, "project": {"id": 321, "owner": {"id": 47}, "assignee": {"id": 895}}, "task": {"id": 379, "owner": {"id": 992}, "assignee": {"id": 1036}}, "job": {"id": 374, "assignee": {"id": 1127}}, "organization": {"id": 1254}}} +} + +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": 7, "privilege": "admin"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 606}, "assignee": {"id": 591}, "project": {"id": 376, "owner": {"id": 748}, "assignee": {"id": 7}}, "task": {"id": 342, "owner": {"id": 972}, "assignee": {"id": 1069}}, "job": {"id": 310, "assignee": {"id": 1144}}, "organization": {"id": 1284}}} +} + +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": 70, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 676}, "assignee": {"id": 534}, "project": {"id": 311, "owner": {"id": 766}, "assignee": {"id": 70}}, "task": {"id": 335, "owner": {"id": 930}, "assignee": {"id": 1028}}, "job": {"id": 375, "assignee": {"id": 1118}}, "organization": {"id": 1264}}} +} + +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": 68, "privilege": "user"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 664}, "assignee": {"id": 505}, "project": {"id": 344, "owner": {"id": 740}, "assignee": {"id": 68}}, "task": {"id": 329, "owner": {"id": 935}, "assignee": {"id": 1017}}, "job": {"id": 366, "assignee": {"id": 1156}}, "organization": {"id": 1275}}} +} + +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": 78, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 693}, "assignee": {"id": 524}, "project": {"id": 399, "owner": {"id": 733}, "assignee": {"id": 78}}, "task": {"id": 376, "owner": {"id": 970}, "assignee": {"id": 1003}}, "job": {"id": 359, "assignee": {"id": 1191}}, "organization": {"id": 1289}}} +} + +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": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 636}, "assignee": {"id": 534}, "project": {"id": 309, "owner": {"id": 749}, "assignee": {"id": 94}}, "task": {"id": 398, "owner": {"id": 996}, "assignee": {"id": 1062}}, "job": {"id": 369, "assignee": {"id": 1131}}, "organization": {"id": 1247}}} +} + +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": 72, "privilege": "admin"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 600}, "assignee": {"id": 573}, "project": {"id": 378, "owner": {"id": 798}, "assignee": {"id": 821}}, "task": {"id": 356, "owner": {"id": 72}, "assignee": {"id": 1006}}, "job": {"id": 309, "assignee": {"id": 1170}}, "organization": {"id": 1231}}} +} + +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": 75, "privilege": "admin"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 678}, "assignee": {"id": 555}, "project": {"id": 373, "owner": {"id": 735}, "assignee": {"id": 885}}, "task": {"id": 335, "owner": {"id": 75}, "assignee": {"id": 1078}}, "job": {"id": 347, "assignee": {"id": 1166}}, "organization": {"id": 1220}}} +} + +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": 38, "privilege": "business"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 610}, "assignee": {"id": 567}, "project": {"id": 300, "owner": {"id": 703}, "assignee": {"id": 840}}, "task": {"id": 375, "owner": {"id": 38}, "assignee": {"id": 1020}}, "job": {"id": 374, "assignee": {"id": 1126}}, "organization": {"id": 1227}}} +} + +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": 29, "privilege": "business"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 679}, "assignee": {"id": 576}, "project": {"id": 342, "owner": {"id": 767}, "assignee": {"id": 829}}, "task": {"id": 367, "owner": {"id": 29}, "assignee": {"id": 1066}}, "job": {"id": 327, "assignee": {"id": 1173}}, "organization": {"id": 1292}}} +} + +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": 65, "privilege": "user"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 653}, "assignee": {"id": 539}, "project": {"id": 371, "owner": {"id": 738}, "assignee": {"id": 833}}, "task": {"id": 334, "owner": {"id": 65}, "assignee": {"id": 1053}}, "job": {"id": 348, "assignee": {"id": 1190}}, "organization": {"id": 1248}}} +} + +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": 69, "privilege": "user"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 638}, "assignee": {"id": 562}, "project": {"id": 334, "owner": {"id": 741}, "assignee": {"id": 893}}, "task": {"id": 310, "owner": {"id": 69}, "assignee": {"id": 1061}}, "job": {"id": 376, "assignee": {"id": 1116}}, "organization": {"id": 1274}}} +} + +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": 46, "privilege": "worker"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 642}, "assignee": {"id": 517}, "project": {"id": 321, "owner": {"id": 714}, "assignee": {"id": 852}}, "task": {"id": 393, "owner": {"id": 46}, "assignee": {"id": 1089}}, "job": {"id": 376, "assignee": {"id": 1195}}, "organization": {"id": 1226}}} +} + +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": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 652}, "assignee": {"id": 585}, "project": {"id": 387, "owner": {"id": 758}, "assignee": {"id": 842}}, "task": {"id": 386, "owner": {"id": 89}, "assignee": {"id": 1048}}, "job": {"id": 329, "assignee": {"id": 1136}}, "organization": {"id": 1237}}} +} + +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": 323, "owner": {"id": 607}, "assignee": {"id": 545}, "project": {"id": 376, "owner": {"id": 782}, "assignee": {"id": 888}}, "task": {"id": 324, "owner": {"id": 3}, "assignee": {"id": 1087}}, "job": {"id": 355, "assignee": {"id": 1165}}, "organization": {"id": 1219}}} +} + +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": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 638}, "assignee": {"id": 527}, "project": {"id": 388, "owner": {"id": 757}, "assignee": {"id": 810}}, "task": {"id": 330, "owner": {"id": 16}, "assignee": {"id": 1028}}, "job": {"id": 322, "assignee": {"id": 1139}}, "organization": {"id": 1228}}} +} + +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": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 657}, "assignee": {"id": 524}, "project": {"id": 365, "owner": {"id": 740}, "assignee": {"id": 846}}, "task": {"id": 383, "owner": {"id": 975}, "assignee": {"id": 31}}, "job": {"id": 310, "assignee": {"id": 1168}}, "organization": {"id": 1209}}} +} + +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": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 640}, "assignee": {"id": 586}, "project": {"id": 314, "owner": {"id": 751}, "assignee": {"id": 898}}, "task": {"id": 338, "owner": {"id": 994}, "assignee": {"id": 49}}, "job": {"id": 344, "assignee": {"id": 1116}}, "organization": {"id": 1212}}} +} + +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": 49, "privilege": "business"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 613}, "assignee": {"id": 578}, "project": {"id": 345, "owner": {"id": 769}, "assignee": {"id": 816}}, "task": {"id": 399, "owner": {"id": 996}, "assignee": {"id": 49}}, "job": {"id": 303, "assignee": {"id": 1154}}, "organization": {"id": 1200}}} +} + +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": 26, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 643}, "assignee": {"id": 596}, "project": {"id": 322, "owner": {"id": 781}, "assignee": {"id": 866}}, "task": {"id": 390, "owner": {"id": 967}, "assignee": {"id": 26}}, "job": {"id": 399, "assignee": {"id": 1138}}, "organization": {"id": 1294}}} +} + +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": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 621}, "assignee": {"id": 583}, "project": {"id": 393, "owner": {"id": 783}, "assignee": {"id": 889}}, "task": {"id": 376, "owner": {"id": 926}, "assignee": {"id": 88}}, "job": {"id": 352, "assignee": {"id": 1114}}, "organization": {"id": 1229}}} +} + +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": 66, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 630}, "assignee": {"id": 587}, "project": {"id": 324, "owner": {"id": 770}, "assignee": {"id": 809}}, "task": {"id": 382, "owner": {"id": 902}, "assignee": {"id": 66}}, "job": {"id": 370, "assignee": {"id": 1171}}, "organization": {"id": 1268}}} +} + +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": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 629}, "assignee": {"id": 559}, "project": {"id": 303, "owner": {"id": 700}, "assignee": {"id": 813}}, "task": {"id": 368, "owner": {"id": 978}, "assignee": {"id": 31}}, "job": {"id": 394, "assignee": {"id": 1100}}, "organization": {"id": 1210}}} +} + +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": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 632}, "assignee": {"id": 538}, "project": {"id": 310, "owner": {"id": 740}, "assignee": {"id": 898}}, "task": {"id": 392, "owner": {"id": 978}, "assignee": {"id": 9}}, "job": {"id": 360, "assignee": {"id": 1143}}, "organization": {"id": 1254}}} +} + +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": 18, "privilege": "none"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 666}, "assignee": {"id": 501}, "project": {"id": 378, "owner": {"id": 741}, "assignee": {"id": 863}}, "task": {"id": 382, "owner": {"id": 985}, "assignee": {"id": 18}}, "job": {"id": 309, "assignee": {"id": 1159}}, "organization": {"id": 1298}}} +} + +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": 57, "privilege": "none"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 665}, "assignee": {"id": 582}, "project": {"id": 331, "owner": {"id": 778}, "assignee": {"id": 856}}, "task": {"id": 337, "owner": {"id": 920}, "assignee": {"id": 57}}, "job": {"id": 381, "assignee": {"id": 1112}}, "organization": {"id": 1267}}} +} + +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": 55, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 680}, "assignee": {"id": 597}, "project": {"id": 339, "owner": {"id": 747}, "assignee": {"id": 808}}, "task": {"id": 397, "owner": {"id": 989}, "assignee": {"id": 1042}}, "job": {"id": 345, "assignee": {"id": 55}}, "organization": {"id": 1204}}} +} + +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": 60, "privilege": "admin"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 611}, "assignee": {"id": 550}, "project": {"id": 361, "owner": {"id": 759}, "assignee": {"id": 883}}, "task": {"id": 312, "owner": {"id": 944}, "assignee": {"id": 1052}}, "job": {"id": 349, "assignee": {"id": 60}}, "organization": {"id": 1270}}} +} + +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": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 698}, "assignee": {"id": 549}, "project": {"id": 362, "owner": {"id": 786}, "assignee": {"id": 845}}, "task": {"id": 379, "owner": {"id": 976}, "assignee": {"id": 1088}}, "job": {"id": 391, "assignee": {"id": 87}}, "organization": {"id": 1257}}} +} + +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": 13, "privilege": "business"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 664}, "assignee": {"id": 504}, "project": {"id": 349, "owner": {"id": 791}, "assignee": {"id": 889}}, "task": {"id": 393, "owner": {"id": 921}, "assignee": {"id": 1075}}, "job": {"id": 389, "assignee": {"id": 13}}, "organization": {"id": 1208}}} +} + +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": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 627}, "assignee": {"id": 513}, "project": {"id": 304, "owner": {"id": 775}, "assignee": {"id": 882}}, "task": {"id": 359, "owner": {"id": 925}, "assignee": {"id": 1033}}, "job": {"id": 320, "assignee": {"id": 13}}, "organization": {"id": 1221}}} +} + +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": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 671}, "assignee": {"id": 568}, "project": {"id": 348, "owner": {"id": 710}, "assignee": {"id": 864}}, "task": {"id": 381, "owner": {"id": 988}, "assignee": {"id": 1096}}, "job": {"id": 380, "assignee": {"id": 13}}, "organization": {"id": 1292}}} +} + +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": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 669}, "assignee": {"id": 528}, "project": {"id": 382, "owner": {"id": 710}, "assignee": {"id": 846}}, "task": {"id": 328, "owner": {"id": 960}, "assignee": {"id": 1020}}, "job": {"id": 358, "assignee": {"id": 64}}, "organization": {"id": 1218}}} +} + +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": 96, "privilege": "worker"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 626}, "assignee": {"id": 520}, "project": {"id": 366, "owner": {"id": 714}, "assignee": {"id": 852}}, "task": {"id": 361, "owner": {"id": 920}, "assignee": {"id": 1077}}, "job": {"id": 351, "assignee": {"id": 96}}, "organization": {"id": 1284}}} +} + +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": 90, "privilege": "none"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 642}, "assignee": {"id": 522}, "project": {"id": 381, "owner": {"id": 778}, "assignee": {"id": 863}}, "task": {"id": 385, "owner": {"id": 974}, "assignee": {"id": 1077}}, "job": {"id": 327, "assignee": {"id": 90}}, "organization": {"id": 1284}}} +} + +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": 77, "privilege": "none"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 684}, "assignee": {"id": 571}, "project": {"id": 306, "owner": {"id": 766}, "assignee": {"id": 814}}, "task": {"id": 325, "owner": {"id": 904}, "assignee": {"id": 1001}}, "job": {"id": 355, "assignee": {"id": 77}}, "organization": {"id": 1234}}} +} + +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": 17, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 17}, "assignee": {"id": 505}, "project": {"id": 394, "owner": {"id": 761}, "assignee": {"id": 861}}, "task": {"id": 366, "owner": {"id": 951}, "assignee": {"id": 1013}}, "job": {"id": 393, "assignee": {"id": 1120}}, "organization": {"id": 1268}}} +} + +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": 67, "privilege": "admin"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 67}, "assignee": {"id": 563}, "project": {"id": 305, "owner": {"id": 724}, "assignee": {"id": 845}}, "task": {"id": 330, "owner": {"id": 929}, "assignee": {"id": 1019}}, "job": {"id": 320, "assignee": {"id": 1134}}, "organization": {"id": 1257}}} +} + +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": 45, "privilege": "business"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 45}, "assignee": {"id": 573}, "project": {"id": 323, "owner": {"id": 768}, "assignee": {"id": 852}}, "task": {"id": 343, "owner": {"id": 909}, "assignee": {"id": 1097}}, "job": {"id": 361, "assignee": {"id": 1101}}, "organization": {"id": 1215}}} +} + +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": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 79}, "assignee": {"id": 573}, "project": {"id": 323, "owner": {"id": 798}, "assignee": {"id": 818}}, "task": {"id": 361, "owner": {"id": 918}, "assignee": {"id": 1027}}, "job": {"id": 331, "assignee": {"id": 1166}}, "organization": {"id": 1280}}} +} + +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": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 22}, "assignee": {"id": 563}, "project": {"id": 377, "owner": {"id": 730}, "assignee": {"id": 830}}, "task": {"id": 391, "owner": {"id": 971}, "assignee": {"id": 1020}}, "job": {"id": 320, "assignee": {"id": 1178}}, "organization": {"id": 1254}}} +} + +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": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 17}, "assignee": {"id": 579}, "project": {"id": 310, "owner": {"id": 784}, "assignee": {"id": 879}}, "task": {"id": 391, "owner": {"id": 972}, "assignee": {"id": 1018}}, "job": {"id": 392, "assignee": {"id": 1144}}, "organization": {"id": 1261}}} +} + +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": 95, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 95}, "assignee": {"id": 556}, "project": {"id": 399, "owner": {"id": 765}, "assignee": {"id": 829}}, "task": {"id": 336, "owner": {"id": 963}, "assignee": {"id": 1092}}, "job": {"id": 321, "assignee": {"id": 1192}}, "organization": {"id": 1240}}} +} + +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": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 76}, "assignee": {"id": 588}, "project": {"id": 347, "owner": {"id": 714}, "assignee": {"id": 899}}, "task": {"id": 394, "owner": {"id": 946}, "assignee": {"id": 1012}}, "job": {"id": 355, "assignee": {"id": 1108}}, "organization": {"id": 1224}}} +} + +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": 75, "privilege": "none"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 75}, "assignee": {"id": 574}, "project": {"id": 350, "owner": {"id": 745}, "assignee": {"id": 885}}, "task": {"id": 317, "owner": {"id": 904}, "assignee": {"id": 1018}}, "job": {"id": 314, "assignee": {"id": 1164}}, "organization": {"id": 1260}}} +} + +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": 39, "privilege": "none"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 39}, "assignee": {"id": 522}, "project": {"id": 361, "owner": {"id": 771}, "assignee": {"id": 828}}, "task": {"id": 369, "owner": {"id": 978}, "assignee": {"id": 1036}}, "job": {"id": 342, "assignee": {"id": 1181}}, "organization": {"id": 1298}}} +} + +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": 14, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 615}, "assignee": {"id": 14}, "project": {"id": 385, "owner": {"id": 713}, "assignee": {"id": 810}}, "task": {"id": 331, "owner": {"id": 962}, "assignee": {"id": 1084}}, "job": {"id": 369, "assignee": {"id": 1135}}, "organization": {"id": 1236}}} +} + +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": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 601}, "assignee": {"id": 39}, "project": {"id": 309, "owner": {"id": 761}, "assignee": {"id": 891}}, "task": {"id": 310, "owner": {"id": 941}, "assignee": {"id": 1088}}, "job": {"id": 391, "assignee": {"id": 1163}}, "organization": {"id": 1221}}} +} + +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": 80, "privilege": "business"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 674}, "assignee": {"id": 80}, "project": {"id": 376, "owner": {"id": 745}, "assignee": {"id": 825}}, "task": {"id": 397, "owner": {"id": 993}, "assignee": {"id": 1002}}, "job": {"id": 386, "assignee": {"id": 1171}}, "organization": {"id": 1293}}} +} + +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": 50, "privilege": "business"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 682}, "assignee": {"id": 50}, "project": {"id": 353, "owner": {"id": 782}, "assignee": {"id": 883}}, "task": {"id": 306, "owner": {"id": 934}, "assignee": {"id": 1085}}, "job": {"id": 336, "assignee": {"id": 1118}}, "organization": {"id": 1283}}} +} + +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": 15, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 624}, "assignee": {"id": 15}, "project": {"id": 392, "owner": {"id": 733}, "assignee": {"id": 840}}, "task": {"id": 356, "owner": {"id": 951}, "assignee": {"id": 1031}}, "job": {"id": 359, "assignee": {"id": 1135}}, "organization": {"id": 1211}}} +} + +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": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 644}, "assignee": {"id": 13}, "project": {"id": 369, "owner": {"id": 780}, "assignee": {"id": 873}}, "task": {"id": 325, "owner": {"id": 910}, "assignee": {"id": 1072}}, "job": {"id": 351, "assignee": {"id": 1119}}, "organization": {"id": 1221}}} +} + +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": 93, "privilege": "worker"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 629}, "assignee": {"id": 93}, "project": {"id": 366, "owner": {"id": 721}, "assignee": {"id": 892}}, "task": {"id": 349, "owner": {"id": 955}, "assignee": {"id": 1038}}, "job": {"id": 303, "assignee": {"id": 1123}}, "organization": {"id": 1241}}} +} + +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": 85, "privilege": "worker"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 677}, "assignee": {"id": 85}, "project": {"id": 325, "owner": {"id": 734}, "assignee": {"id": 833}}, "task": {"id": 398, "owner": {"id": 913}, "assignee": {"id": 1029}}, "job": {"id": 371, "assignee": {"id": 1151}}, "organization": {"id": 1208}}} +} + +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": 7, "privilege": "none"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 699}, "assignee": {"id": 7}, "project": {"id": 380, "owner": {"id": 743}, "assignee": {"id": 801}}, "task": {"id": 327, "owner": {"id": 915}, "assignee": {"id": 1040}}, "job": {"id": 371, "assignee": {"id": 1104}}, "organization": {"id": 1280}}} +} + +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": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 618}, "assignee": {"id": 21}, "project": {"id": 346, "owner": {"id": 735}, "assignee": {"id": 894}}, "task": {"id": 374, "owner": {"id": 927}, "assignee": {"id": 1069}}, "job": {"id": 380, "assignee": {"id": 1103}}, "organization": {"id": 1269}}} +} + +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": 60, "privilege": "admin"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 628}, "assignee": {"id": 558}, "project": {"id": 330, "owner": {"id": 774}, "assignee": {"id": 896}}, "task": {"id": 396, "owner": {"id": 974}, "assignee": {"id": 1033}}, "job": {"id": 323, "assignee": {"id": 1146}}, "organization": {"id": 1252}}} +} + +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": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 638}, "assignee": {"id": 545}, "project": {"id": 311, "owner": {"id": 775}, "assignee": {"id": 877}}, "task": {"id": 344, "owner": {"id": 903}, "assignee": {"id": 1052}}, "job": {"id": 383, "assignee": {"id": 1114}}, "organization": {"id": 1232}}} +} + +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": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 601}, "assignee": {"id": 546}, "project": {"id": 321, "owner": {"id": 790}, "assignee": {"id": 855}}, "task": {"id": 359, "owner": {"id": 917}, "assignee": {"id": 1058}}, "job": {"id": 359, "assignee": {"id": 1127}}, "organization": {"id": 1297}}} +} + +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": 30, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 694}, "assignee": {"id": 520}, "project": {"id": 305, "owner": {"id": 779}, "assignee": {"id": 882}}, "task": {"id": 329, "owner": {"id": 988}, "assignee": {"id": 1005}}, "job": {"id": 364, "assignee": {"id": 1181}}, "organization": {"id": 1298}}} +} + +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": 73, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 612}, "assignee": {"id": 546}, "project": {"id": 365, "owner": {"id": 716}, "assignee": {"id": 844}}, "task": {"id": 327, "owner": {"id": 952}, "assignee": {"id": 1016}}, "job": {"id": 350, "assignee": {"id": 1188}}, "organization": {"id": 1277}}} +} + +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": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 617}, "assignee": {"id": 593}, "project": {"id": 357, "owner": {"id": 723}, "assignee": {"id": 848}}, "task": {"id": 343, "owner": {"id": 955}, "assignee": {"id": 1064}}, "job": {"id": 352, "assignee": {"id": 1146}}, "organization": {"id": 1290}}} +} + +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": 72, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 670}, "assignee": {"id": 510}, "project": {"id": 385, "owner": {"id": 781}, "assignee": {"id": 816}}, "task": {"id": 337, "owner": {"id": 944}, "assignee": {"id": 1001}}, "job": {"id": 337, "assignee": {"id": 1129}}, "organization": {"id": 1218}}} +} + +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": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 642}, "assignee": {"id": 544}, "project": {"id": 372, "owner": {"id": 701}, "assignee": {"id": 898}}, "task": {"id": 356, "owner": {"id": 987}, "assignee": {"id": 1000}}, "job": {"id": 339, "assignee": {"id": 1174}}, "organization": {"id": 1291}}} +} + +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": 82, "privilege": "none"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 623}, "assignee": {"id": 536}, "project": {"id": 369, "owner": {"id": 772}, "assignee": {"id": 862}}, "task": {"id": 379, "owner": {"id": 914}, "assignee": {"id": 1058}}, "job": {"id": 344, "assignee": {"id": 1133}}, "organization": {"id": 1295}}} +} + +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": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 616}, "assignee": {"id": 515}, "project": {"id": 345, "owner": {"id": 771}, "assignee": {"id": 822}}, "task": {"id": 308, "owner": {"id": 918}, "assignee": {"id": 1056}}, "job": {"id": 399, "assignee": {"id": 1173}}, "organization": {"id": 1267}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 687}, "assignee": {"id": 517}, "project": {"id": 357, "owner": {"id": 30}, "assignee": {"id": 816}}, "task": {"id": 391, "owner": {"id": 932}, "assignee": {"id": 1074}}, "job": {"id": 322, "assignee": {"id": 1146}}, "organization": {"id": 118}}} +} + +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": 112, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 653}, "assignee": {"id": 502}, "project": {"id": 384, "owner": {"id": 49}, "assignee": {"id": 869}}, "task": {"id": 346, "owner": {"id": 940}, "assignee": {"id": 1032}}, "job": {"id": 334, "assignee": {"id": 1174}}, "organization": {"id": 1243}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 655}, "assignee": {"id": 538}, "project": {"id": 372, "owner": {"id": 61}, "assignee": {"id": 827}}, "task": {"id": 395, "owner": {"id": 950}, "assignee": {"id": 1074}}, "job": {"id": 343, "assignee": {"id": 1136}}, "organization": {"id": 162}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 674}, "assignee": {"id": 513}, "project": {"id": 382, "owner": {"id": 80}, "assignee": {"id": 861}}, "task": {"id": 383, "owner": {"id": 940}, "assignee": {"id": 1019}}, "job": {"id": 309, "assignee": {"id": 1193}}, "organization": {"id": 1226}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 678}, "assignee": {"id": 567}, "project": {"id": 325, "owner": {"id": 73}, "assignee": {"id": 806}}, "task": {"id": 343, "owner": {"id": 927}, "assignee": {"id": 1092}}, "job": {"id": 393, "assignee": {"id": 1165}}, "organization": {"id": 151}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 682}, "assignee": {"id": 573}, "project": {"id": 385, "owner": {"id": 11}, "assignee": {"id": 835}}, "task": {"id": 331, "owner": {"id": 961}, "assignee": {"id": 1034}}, "job": {"id": 309, "assignee": {"id": 1104}}, "organization": {"id": 1255}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 644}, "assignee": {"id": 526}, "project": {"id": 381, "owner": {"id": 3}, "assignee": {"id": 870}}, "task": {"id": 314, "owner": {"id": 904}, "assignee": {"id": 1012}}, "job": {"id": 321, "assignee": {"id": 1123}}, "organization": {"id": 194}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 651}, "assignee": {"id": 554}, "project": {"id": 364, "owner": {"id": 30}, "assignee": {"id": 858}}, "task": {"id": 311, "owner": {"id": 989}, "assignee": {"id": 1074}}, "job": {"id": 329, "assignee": {"id": 1115}}, "organization": {"id": 1201}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 670}, "assignee": {"id": 598}, "project": {"id": 386, "owner": {"id": 56}, "assignee": {"id": 857}}, "task": {"id": 387, "owner": {"id": 937}, "assignee": {"id": 1004}}, "job": {"id": 350, "assignee": {"id": 1185}}, "organization": {"id": 181}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 618}, "assignee": {"id": 595}, "project": {"id": 334, "owner": {"id": 40}, "assignee": {"id": 829}}, "task": {"id": 359, "owner": {"id": 975}, "assignee": {"id": 1058}}, "job": {"id": 366, "assignee": {"id": 1145}}, "organization": {"id": 1217}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 698}, "assignee": {"id": 514}, "project": {"id": 393, "owner": {"id": 65}, "assignee": {"id": 869}}, "task": {"id": 369, "owner": {"id": 964}, "assignee": {"id": 1090}}, "job": {"id": 309, "assignee": {"id": 1113}}, "organization": {"id": 123}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 631}, "assignee": {"id": 592}, "project": {"id": 337, "owner": {"id": 0}, "assignee": {"id": 855}}, "task": {"id": 392, "owner": {"id": 938}, "assignee": {"id": 1084}}, "job": {"id": 331, "assignee": {"id": 1178}}, "organization": {"id": 1255}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 647}, "assignee": {"id": 565}, "project": {"id": 351, "owner": {"id": 38}, "assignee": {"id": 894}}, "task": {"id": 373, "owner": {"id": 942}, "assignee": {"id": 1035}}, "job": {"id": 385, "assignee": {"id": 1174}}, "organization": {"id": 101}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 693}, "assignee": {"id": 529}, "project": {"id": 337, "owner": {"id": 65}, "assignee": {"id": 894}}, "task": {"id": 310, "owner": {"id": 983}, "assignee": {"id": 1073}}, "job": {"id": 386, "assignee": {"id": 1115}}, "organization": {"id": 1269}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 649}, "assignee": {"id": 569}, "project": {"id": 337, "owner": {"id": 10}, "assignee": {"id": 832}}, "task": {"id": 386, "owner": {"id": 905}, "assignee": {"id": 1023}}, "job": {"id": 371, "assignee": {"id": 1104}}, "organization": {"id": 170}}} +} + +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": 128, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 664}, "assignee": {"id": 558}, "project": {"id": 303, "owner": {"id": 42}, "assignee": {"id": 874}}, "task": {"id": 389, "owner": {"id": 943}, "assignee": {"id": 1065}}, "job": {"id": 386, "assignee": {"id": 1100}}, "organization": {"id": 1213}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 656}, "assignee": {"id": 502}, "project": {"id": 342, "owner": {"id": 21}, "assignee": {"id": 819}}, "task": {"id": 304, "owner": {"id": 961}, "assignee": {"id": 1027}}, "job": {"id": 368, "assignee": {"id": 1165}}, "organization": {"id": 119}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 678}, "assignee": {"id": 502}, "project": {"id": 340, "owner": {"id": 48}, "assignee": {"id": 864}}, "task": {"id": 343, "owner": {"id": 903}, "assignee": {"id": 1001}}, "job": {"id": 337, "assignee": {"id": 1178}}, "organization": {"id": 1270}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 641}, "assignee": {"id": 529}, "project": {"id": 395, "owner": {"id": 43}, "assignee": {"id": 858}}, "task": {"id": 376, "owner": {"id": 915}, "assignee": {"id": 1092}}, "job": {"id": 324, "assignee": {"id": 1105}}, "organization": {"id": 159}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 679}, "assignee": {"id": 594}, "project": {"id": 323, "owner": {"id": 22}, "assignee": {"id": 858}}, "task": {"id": 338, "owner": {"id": 970}, "assignee": {"id": 1038}}, "job": {"id": 356, "assignee": {"id": 1167}}, "organization": {"id": 1280}}} +} + +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": 103, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 632}, "assignee": {"id": 523}, "project": {"id": 338, "owner": {"id": 21}, "assignee": {"id": 875}}, "task": {"id": 318, "owner": {"id": 903}, "assignee": {"id": 1054}}, "job": {"id": 340, "assignee": {"id": 1155}}, "organization": {"id": 103}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 688}, "assignee": {"id": 577}, "project": {"id": 373, "owner": {"id": 45}, "assignee": {"id": 876}}, "task": {"id": 316, "owner": {"id": 957}, "assignee": {"id": 1026}}, "job": {"id": 363, "assignee": {"id": 1165}}, "organization": {"id": 1280}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 691}, "assignee": {"id": 562}, "project": {"id": 321, "owner": {"id": 6}, "assignee": {"id": 832}}, "task": {"id": 320, "owner": {"id": 927}, "assignee": {"id": 1064}}, "job": {"id": 336, "assignee": {"id": 1194}}, "organization": {"id": 104}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 697}, "assignee": {"id": 539}, "project": {"id": 380, "owner": {"id": 53}, "assignee": {"id": 885}}, "task": {"id": 338, "owner": {"id": 973}, "assignee": {"id": 1013}}, "job": {"id": 311, "assignee": {"id": 1173}}, "organization": {"id": 1263}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 622}, "assignee": {"id": 519}, "project": {"id": 333, "owner": {"id": 23}, "assignee": {"id": 894}}, "task": {"id": 306, "owner": {"id": 980}, "assignee": {"id": 1074}}, "job": {"id": 317, "assignee": {"id": 1141}}, "organization": {"id": 108}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 603}, "assignee": {"id": 550}, "project": {"id": 312, "owner": {"id": 16}, "assignee": {"id": 848}}, "task": {"id": 373, "owner": {"id": 943}, "assignee": {"id": 1044}}, "job": {"id": 356, "assignee": {"id": 1114}}, "organization": {"id": 1268}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 662}, "assignee": {"id": 585}, "project": {"id": 314, "owner": {"id": 63}, "assignee": {"id": 824}}, "task": {"id": 365, "owner": {"id": 963}, "assignee": {"id": 1082}}, "job": {"id": 381, "assignee": {"id": 1168}}, "organization": {"id": 158}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 616}, "assignee": {"id": 511}, "project": {"id": 305, "owner": {"id": 66}, "assignee": {"id": 855}}, "task": {"id": 357, "owner": {"id": 965}, "assignee": {"id": 1045}}, "job": {"id": 342, "assignee": {"id": 1159}}, "organization": {"id": 1279}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 621}, "assignee": {"id": 521}, "project": {"id": 330, "owner": {"id": 78}, "assignee": {"id": 894}}, "task": {"id": 361, "owner": {"id": 960}, "assignee": {"id": 1042}}, "job": {"id": 375, "assignee": {"id": 1150}}, "organization": {"id": 170}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 680}, "assignee": {"id": 543}, "project": {"id": 353, "owner": {"id": 2}, "assignee": {"id": 806}}, "task": {"id": 305, "owner": {"id": 934}, "assignee": {"id": 1036}}, "job": {"id": 343, "assignee": {"id": 1120}}, "organization": {"id": 1208}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 695}, "assignee": {"id": 599}, "project": {"id": 381, "owner": {"id": 59}, "assignee": {"id": 843}}, "task": {"id": 386, "owner": {"id": 997}, "assignee": {"id": 1090}}, "job": {"id": 317, "assignee": {"id": 1176}}, "organization": {"id": 132}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 632}, "assignee": {"id": 591}, "project": {"id": 383, "owner": {"id": 58}, "assignee": {"id": 856}}, "task": {"id": 386, "owner": {"id": 935}, "assignee": {"id": 1058}}, "job": {"id": 395, "assignee": {"id": 1169}}, "organization": {"id": 1223}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 684}, "assignee": {"id": 565}, "project": {"id": 394, "owner": {"id": 71}, "assignee": {"id": 814}}, "task": {"id": 396, "owner": {"id": 952}, "assignee": {"id": 1007}}, "job": {"id": 354, "assignee": {"id": 1147}}, "organization": {"id": 136}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 685}, "assignee": {"id": 521}, "project": {"id": 320, "owner": {"id": 2}, "assignee": {"id": 877}}, "task": {"id": 399, "owner": {"id": 917}, "assignee": {"id": 1035}}, "job": {"id": 311, "assignee": {"id": 1130}}, "organization": {"id": 1244}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 634}, "assignee": {"id": 550}, "project": {"id": 370, "owner": {"id": 80}, "assignee": {"id": 855}}, "task": {"id": 379, "owner": {"id": 999}, "assignee": {"id": 1089}}, "job": {"id": 366, "assignee": {"id": 1149}}, "organization": {"id": 195}}} +} + +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": 168, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 686}, "assignee": {"id": 583}, "project": {"id": 323, "owner": {"id": 74}, "assignee": {"id": 871}}, "task": {"id": 313, "owner": {"id": 943}, "assignee": {"id": 1051}}, "job": {"id": 389, "assignee": {"id": 1194}}, "organization": {"id": 1204}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 660}, "assignee": {"id": 506}, "project": {"id": 375, "owner": {"id": 85}, "assignee": {"id": 892}}, "task": {"id": 359, "owner": {"id": 916}, "assignee": {"id": 1095}}, "job": {"id": 367, "assignee": {"id": 1199}}, "organization": {"id": 122}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 698}, "assignee": {"id": 572}, "project": {"id": 361, "owner": {"id": 11}, "assignee": {"id": 881}}, "task": {"id": 382, "owner": {"id": 918}, "assignee": {"id": 1065}}, "job": {"id": 341, "assignee": {"id": 1197}}, "organization": {"id": 1254}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 676}, "assignee": {"id": 545}, "project": {"id": 311, "owner": {"id": 9}, "assignee": {"id": 850}}, "task": {"id": 345, "owner": {"id": 974}, "assignee": {"id": 1000}}, "job": {"id": 381, "assignee": {"id": 1150}}, "organization": {"id": 115}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 698}, "assignee": {"id": 593}, "project": {"id": 380, "owner": {"id": 1}, "assignee": {"id": 803}}, "task": {"id": 365, "owner": {"id": 929}, "assignee": {"id": 1013}}, "job": {"id": 319, "assignee": {"id": 1186}}, "organization": {"id": 1260}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 637}, "assignee": {"id": 575}, "project": {"id": 333, "owner": {"id": 39}, "assignee": {"id": 887}}, "task": {"id": 307, "owner": {"id": 962}, "assignee": {"id": 1047}}, "job": {"id": 377, "assignee": {"id": 1164}}, "organization": {"id": 137}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 655}, "assignee": {"id": 541}, "project": {"id": 348, "owner": {"id": 65}, "assignee": {"id": 888}}, "task": {"id": 344, "owner": {"id": 978}, "assignee": {"id": 1037}}, "job": {"id": 334, "assignee": {"id": 1120}}, "organization": {"id": 1220}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 679}, "assignee": {"id": 546}, "project": {"id": 381, "owner": {"id": 4}, "assignee": {"id": 880}}, "task": {"id": 359, "owner": {"id": 979}, "assignee": {"id": 1085}}, "job": {"id": 387, "assignee": {"id": 1160}}, "organization": {"id": 183}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 655}, "assignee": {"id": 503}, "project": {"id": 318, "owner": {"id": 35}, "assignee": {"id": 849}}, "task": {"id": 305, "owner": {"id": 975}, "assignee": {"id": 1088}}, "job": {"id": 342, "assignee": {"id": 1165}}, "organization": {"id": 1234}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 675}, "assignee": {"id": 572}, "project": {"id": 347, "owner": {"id": 97}, "assignee": {"id": 836}}, "task": {"id": 348, "owner": {"id": 985}, "assignee": {"id": 1004}}, "job": {"id": 389, "assignee": {"id": 1101}}, "organization": {"id": 124}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 669}, "assignee": {"id": 549}, "project": {"id": 357, "owner": {"id": 64}, "assignee": {"id": 839}}, "task": {"id": 325, "owner": {"id": 905}, "assignee": {"id": 1061}}, "job": {"id": 343, "assignee": {"id": 1171}}, "organization": {"id": 1263}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 687}, "assignee": {"id": 529}, "project": {"id": 307, "owner": {"id": 12}, "assignee": {"id": 852}}, "task": {"id": 356, "owner": {"id": 975}, "assignee": {"id": 1075}}, "job": {"id": 337, "assignee": {"id": 1176}}, "organization": {"id": 137}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 663}, "assignee": {"id": 516}, "project": {"id": 341, "owner": {"id": 84}, "assignee": {"id": 822}}, "task": {"id": 378, "owner": {"id": 997}, "assignee": {"id": 1080}}, "job": {"id": 337, "assignee": {"id": 1170}}, "organization": {"id": 1218}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 658}, "assignee": {"id": 511}, "project": {"id": 372, "owner": {"id": 51}, "assignee": {"id": 898}}, "task": {"id": 310, "owner": {"id": 900}, "assignee": {"id": 1099}}, "job": {"id": 356, "assignee": {"id": 1197}}, "organization": {"id": 156}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 601}, "assignee": {"id": 562}, "project": {"id": 339, "owner": {"id": 29}, "assignee": {"id": 830}}, "task": {"id": 370, "owner": {"id": 917}, "assignee": {"id": 1006}}, "job": {"id": 360, "assignee": {"id": 1184}}, "organization": {"id": 1285}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 661}, "assignee": {"id": 587}, "project": {"id": 343, "owner": {"id": 712}, "assignee": {"id": 82}}, "task": {"id": 342, "owner": {"id": 992}, "assignee": {"id": 1031}}, "job": {"id": 388, "assignee": {"id": 1129}}, "organization": {"id": 192}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 640}, "assignee": {"id": 533}, "project": {"id": 334, "owner": {"id": 758}, "assignee": {"id": 94}}, "task": {"id": 312, "owner": {"id": 932}, "assignee": {"id": 1063}}, "job": {"id": 359, "assignee": {"id": 1167}}, "organization": {"id": 1210}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 602}, "assignee": {"id": 581}, "project": {"id": 381, "owner": {"id": 783}, "assignee": {"id": 94}}, "task": {"id": 388, "owner": {"id": 977}, "assignee": {"id": 1096}}, "job": {"id": 312, "assignee": {"id": 1156}}, "organization": {"id": 152}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 674}, "assignee": {"id": 542}, "project": {"id": 370, "owner": {"id": 708}, "assignee": {"id": 72}}, "task": {"id": 335, "owner": {"id": 952}, "assignee": {"id": 1013}}, "job": {"id": 349, "assignee": {"id": 1101}}, "organization": {"id": 1296}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 602}, "assignee": {"id": 549}, "project": {"id": 328, "owner": {"id": 753}, "assignee": {"id": 40}}, "task": {"id": 399, "owner": {"id": 997}, "assignee": {"id": 1035}}, "job": {"id": 338, "assignee": {"id": 1120}}, "organization": {"id": 176}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 660}, "assignee": {"id": 500}, "project": {"id": 376, "owner": {"id": 751}, "assignee": {"id": 20}}, "task": {"id": 331, "owner": {"id": 984}, "assignee": {"id": 1093}}, "job": {"id": 333, "assignee": {"id": 1108}}, "organization": {"id": 1239}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 678}, "assignee": {"id": 521}, "project": {"id": 310, "owner": {"id": 799}, "assignee": {"id": 96}}, "task": {"id": 323, "owner": {"id": 966}, "assignee": {"id": 1096}}, "job": {"id": 340, "assignee": {"id": 1169}}, "organization": {"id": 183}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 610}, "assignee": {"id": 577}, "project": {"id": 327, "owner": {"id": 797}, "assignee": {"id": 77}}, "task": {"id": 308, "owner": {"id": 944}, "assignee": {"id": 1062}}, "job": {"id": 357, "assignee": {"id": 1118}}, "organization": {"id": 1216}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 608}, "assignee": {"id": 528}, "project": {"id": 355, "owner": {"id": 779}, "assignee": {"id": 94}}, "task": {"id": 361, "owner": {"id": 925}, "assignee": {"id": 1016}}, "job": {"id": 334, "assignee": {"id": 1114}}, "organization": {"id": 141}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 662}, "assignee": {"id": 589}, "project": {"id": 377, "owner": {"id": 702}, "assignee": {"id": 60}}, "task": {"id": 324, "owner": {"id": 988}, "assignee": {"id": 1069}}, "job": {"id": 300, "assignee": {"id": 1127}}, "organization": {"id": 1238}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 627}, "assignee": {"id": 595}, "project": {"id": 398, "owner": {"id": 760}, "assignee": {"id": 16}}, "task": {"id": 342, "owner": {"id": 960}, "assignee": {"id": 1095}}, "job": {"id": 310, "assignee": {"id": 1167}}, "organization": {"id": 136}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 697}, "assignee": {"id": 584}, "project": {"id": 379, "owner": {"id": 788}, "assignee": {"id": 59}}, "task": {"id": 326, "owner": {"id": 987}, "assignee": {"id": 1013}}, "job": {"id": 334, "assignee": {"id": 1197}}, "organization": {"id": 1272}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 613}, "assignee": {"id": 547}, "project": {"id": 340, "owner": {"id": 779}, "assignee": {"id": 81}}, "task": {"id": 338, "owner": {"id": 934}, "assignee": {"id": 1047}}, "job": {"id": 355, "assignee": {"id": 1197}}, "organization": {"id": 103}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 674}, "assignee": {"id": 510}, "project": {"id": 368, "owner": {"id": 766}, "assignee": {"id": 1}}, "task": {"id": 301, "owner": {"id": 963}, "assignee": {"id": 1018}}, "job": {"id": 344, "assignee": {"id": 1118}}, "organization": {"id": 1219}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 682}, "assignee": {"id": 521}, "project": {"id": 349, "owner": {"id": 779}, "assignee": {"id": 60}}, "task": {"id": 330, "owner": {"id": 958}, "assignee": {"id": 1037}}, "job": {"id": 333, "assignee": {"id": 1155}}, "organization": {"id": 150}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 681}, "assignee": {"id": 506}, "project": {"id": 348, "owner": {"id": 722}, "assignee": {"id": 8}}, "task": {"id": 391, "owner": {"id": 999}, "assignee": {"id": 1063}}, "job": {"id": 359, "assignee": {"id": 1196}}, "organization": {"id": 1239}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 694}, "assignee": {"id": 520}, "project": {"id": 364, "owner": {"id": 735}, "assignee": {"id": 30}}, "task": {"id": 308, "owner": {"id": 963}, "assignee": {"id": 1037}}, "job": {"id": 340, "assignee": {"id": 1111}}, "organization": {"id": 114}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 631}, "assignee": {"id": 568}, "project": {"id": 315, "owner": {"id": 755}, "assignee": {"id": 21}}, "task": {"id": 364, "owner": {"id": 946}, "assignee": {"id": 1093}}, "job": {"id": 327, "assignee": {"id": 1106}}, "organization": {"id": 1214}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 637}, "assignee": {"id": 577}, "project": {"id": 347, "owner": {"id": 744}, "assignee": {"id": 26}}, "task": {"id": 373, "owner": {"id": 997}, "assignee": {"id": 1016}}, "job": {"id": 300, "assignee": {"id": 1170}}, "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": 48, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 655}, "assignee": {"id": 530}, "project": {"id": 335, "owner": {"id": 730}, "assignee": {"id": 48}}, "task": {"id": 335, "owner": {"id": 944}, "assignee": {"id": 1032}}, "job": {"id": 317, "assignee": {"id": 1194}}, "organization": {"id": 1236}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 631}, "assignee": {"id": 513}, "project": {"id": 306, "owner": {"id": 779}, "assignee": {"id": 56}}, "task": {"id": 361, "owner": {"id": 924}, "assignee": {"id": 1062}}, "job": {"id": 342, "assignee": {"id": 1156}}, "organization": {"id": 199}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 688}, "assignee": {"id": 511}, "project": {"id": 325, "owner": {"id": 751}, "assignee": {"id": 46}}, "task": {"id": 305, "owner": {"id": 935}, "assignee": {"id": 1017}}, "job": {"id": 350, "assignee": {"id": 1122}}, "organization": {"id": 1236}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 654}, "assignee": {"id": 588}, "project": {"id": 386, "owner": {"id": 733}, "assignee": {"id": 15}}, "task": {"id": 383, "owner": {"id": 921}, "assignee": {"id": 1003}}, "job": {"id": 318, "assignee": {"id": 1181}}, "organization": {"id": 118}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 668}, "assignee": {"id": 588}, "project": {"id": 364, "owner": {"id": 745}, "assignee": {"id": 78}}, "task": {"id": 380, "owner": {"id": 902}, "assignee": {"id": 1086}}, "job": {"id": 322, "assignee": {"id": 1137}}, "organization": {"id": 1219}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 630}, "assignee": {"id": 507}, "project": {"id": 390, "owner": {"id": 776}, "assignee": {"id": 91}}, "task": {"id": 343, "owner": {"id": 904}, "assignee": {"id": 1076}}, "job": {"id": 339, "assignee": {"id": 1174}}, "organization": {"id": 143}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 653}, "assignee": {"id": 580}, "project": {"id": 378, "owner": {"id": 730}, "assignee": {"id": 14}}, "task": {"id": 364, "owner": {"id": 935}, "assignee": {"id": 1071}}, "job": {"id": 352, "assignee": {"id": 1189}}, "organization": {"id": 1243}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 653}, "assignee": {"id": 509}, "project": {"id": 340, "owner": {"id": 752}, "assignee": {"id": 15}}, "task": {"id": 389, "owner": {"id": 939}, "assignee": {"id": 1077}}, "job": {"id": 308, "assignee": {"id": 1144}}, "organization": {"id": 183}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 618}, "assignee": {"id": 531}, "project": {"id": 308, "owner": {"id": 775}, "assignee": {"id": 9}}, "task": {"id": 383, "owner": {"id": 925}, "assignee": {"id": 1031}}, "job": {"id": 394, "assignee": {"id": 1182}}, "organization": {"id": 1236}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 606}, "assignee": {"id": 505}, "project": {"id": 330, "owner": {"id": 707}, "assignee": {"id": 69}}, "task": {"id": 305, "owner": {"id": 968}, "assignee": {"id": 1013}}, "job": {"id": 304, "assignee": {"id": 1160}}, "organization": {"id": 198}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 688}, "assignee": {"id": 512}, "project": {"id": 399, "owner": {"id": 720}, "assignee": {"id": 2}}, "task": {"id": 347, "owner": {"id": 929}, "assignee": {"id": 1003}}, "job": {"id": 302, "assignee": {"id": 1107}}, "organization": {"id": 1263}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 652}, "assignee": {"id": 591}, "project": {"id": 344, "owner": {"id": 731}, "assignee": {"id": 89}}, "task": {"id": 350, "owner": {"id": 981}, "assignee": {"id": 1095}}, "job": {"id": 307, "assignee": {"id": 1178}}, "organization": {"id": 162}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 646}, "assignee": {"id": 539}, "project": {"id": 302, "owner": {"id": 755}, "assignee": {"id": 14}}, "task": {"id": 302, "owner": {"id": 992}, "assignee": {"id": 1035}}, "job": {"id": 326, "assignee": {"id": 1173}}, "organization": {"id": 1262}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 623}, "assignee": {"id": 556}, "project": {"id": 369, "owner": {"id": 784}, "assignee": {"id": 88}}, "task": {"id": 303, "owner": {"id": 930}, "assignee": {"id": 1036}}, "job": {"id": 345, "assignee": {"id": 1167}}, "organization": {"id": 179}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 668}, "assignee": {"id": 532}, "project": {"id": 386, "owner": {"id": 760}, "assignee": {"id": 77}}, "task": {"id": 363, "owner": {"id": 985}, "assignee": {"id": 1078}}, "job": {"id": 307, "assignee": {"id": 1136}}, "organization": {"id": 1232}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 605}, "assignee": {"id": 522}, "project": {"id": 331, "owner": {"id": 744}, "assignee": {"id": 49}}, "task": {"id": 317, "owner": {"id": 947}, "assignee": {"id": 1064}}, "job": {"id": 359, "assignee": {"id": 1103}}, "organization": {"id": 156}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 611}, "assignee": {"id": 538}, "project": {"id": 358, "owner": {"id": 756}, "assignee": {"id": 66}}, "task": {"id": 340, "owner": {"id": 930}, "assignee": {"id": 1003}}, "job": {"id": 357, "assignee": {"id": 1164}}, "organization": {"id": 1261}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 666}, "assignee": {"id": 533}, "project": {"id": 315, "owner": {"id": 714}, "assignee": {"id": 86}}, "task": {"id": 348, "owner": {"id": 979}, "assignee": {"id": 1049}}, "job": {"id": 305, "assignee": {"id": 1114}}, "organization": {"id": 117}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 693}, "assignee": {"id": 561}, "project": {"id": 321, "owner": {"id": 798}, "assignee": {"id": 8}}, "task": {"id": 318, "owner": {"id": 936}, "assignee": {"id": 1075}}, "job": {"id": 341, "assignee": {"id": 1149}}, "organization": {"id": 1299}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 628}, "assignee": {"id": 556}, "project": {"id": 318, "owner": {"id": 776}, "assignee": {"id": 79}}, "task": {"id": 374, "owner": {"id": 997}, "assignee": {"id": 1076}}, "job": {"id": 327, "assignee": {"id": 1138}}, "organization": {"id": 189}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 691}, "assignee": {"id": 579}, "project": {"id": 399, "owner": {"id": 735}, "assignee": {"id": 19}}, "task": {"id": 390, "owner": {"id": 972}, "assignee": {"id": 1093}}, "job": {"id": 394, "assignee": {"id": 1185}}, "organization": {"id": 1284}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 625}, "assignee": {"id": 581}, "project": {"id": 313, "owner": {"id": 709}, "assignee": {"id": 2}}, "task": {"id": 312, "owner": {"id": 908}, "assignee": {"id": 1097}}, "job": {"id": 397, "assignee": {"id": 1183}}, "organization": {"id": 139}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 655}, "assignee": {"id": 586}, "project": {"id": 323, "owner": {"id": 741}, "assignee": {"id": 91}}, "task": {"id": 395, "owner": {"id": 942}, "assignee": {"id": 1051}}, "job": {"id": 309, "assignee": {"id": 1164}}, "organization": {"id": 1204}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 630}, "assignee": {"id": 539}, "project": {"id": 342, "owner": {"id": 727}, "assignee": {"id": 25}}, "task": {"id": 380, "owner": {"id": 965}, "assignee": {"id": 1046}}, "job": {"id": 386, "assignee": {"id": 1125}}, "organization": {"id": 197}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 675}, "assignee": {"id": 552}, "project": {"id": 370, "owner": {"id": 799}, "assignee": {"id": 30}}, "task": {"id": 326, "owner": {"id": 992}, "assignee": {"id": 1057}}, "job": {"id": 382, "assignee": {"id": 1123}}, "organization": {"id": 1250}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 621}, "assignee": {"id": 501}, "project": {"id": 388, "owner": {"id": 724}, "assignee": {"id": 57}}, "task": {"id": 332, "owner": {"id": 932}, "assignee": {"id": 1022}}, "job": {"id": 330, "assignee": {"id": 1182}}, "organization": {"id": 167}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 685}, "assignee": {"id": 532}, "project": {"id": 363, "owner": {"id": 746}, "assignee": {"id": 77}}, "task": {"id": 399, "owner": {"id": 938}, "assignee": {"id": 1069}}, "job": {"id": 353, "assignee": {"id": 1153}}, "organization": {"id": 1289}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 630}, "assignee": {"id": 580}, "project": {"id": 322, "owner": {"id": 703}, "assignee": {"id": 97}}, "task": {"id": 343, "owner": {"id": 962}, "assignee": {"id": 1016}}, "job": {"id": 348, "assignee": {"id": 1188}}, "organization": {"id": 158}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 650}, "assignee": {"id": 569}, "project": {"id": 342, "owner": {"id": 734}, "assignee": {"id": 55}}, "task": {"id": 353, "owner": {"id": 928}, "assignee": {"id": 1098}}, "job": {"id": 370, "assignee": {"id": 1164}}, "organization": {"id": 1237}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 607}, "assignee": {"id": 574}, "project": {"id": 307, "owner": {"id": 708}, "assignee": {"id": 96}}, "task": {"id": 371, "owner": {"id": 934}, "assignee": {"id": 1000}}, "job": {"id": 312, "assignee": {"id": 1152}}, "organization": {"id": 102}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 609}, "assignee": {"id": 553}, "project": {"id": 317, "owner": {"id": 723}, "assignee": {"id": 57}}, "task": {"id": 389, "owner": {"id": 907}, "assignee": {"id": 1029}}, "job": {"id": 338, "assignee": {"id": 1128}}, "organization": {"id": 1255}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 650}, "assignee": {"id": 579}, "project": {"id": 325, "owner": {"id": 759}, "assignee": {"id": 875}}, "task": {"id": 341, "owner": {"id": 97}, "assignee": {"id": 1048}}, "job": {"id": 321, "assignee": {"id": 1195}}, "organization": {"id": 163}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 609}, "assignee": {"id": 532}, "project": {"id": 308, "owner": {"id": 710}, "assignee": {"id": 802}}, "task": {"id": 393, "owner": {"id": 77}, "assignee": {"id": 1004}}, "job": {"id": 391, "assignee": {"id": 1110}}, "organization": {"id": 153}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 619}, "assignee": {"id": 525}, "project": {"id": 335, "owner": {"id": 743}, "assignee": {"id": 826}}, "task": {"id": 312, "owner": {"id": 66}, "assignee": {"id": 1020}}, "job": {"id": 316, "assignee": {"id": 1149}}, "organization": {"id": 1204}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 681}, "assignee": {"id": 569}, "project": {"id": 375, "owner": {"id": 799}, "assignee": {"id": 887}}, "task": {"id": 358, "owner": {"id": 9}, "assignee": {"id": 1053}}, "job": {"id": 372, "assignee": {"id": 1188}}, "organization": {"id": 1293}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 666}, "assignee": {"id": 505}, "project": {"id": 393, "owner": {"id": 705}, "assignee": {"id": 898}}, "task": {"id": 393, "owner": {"id": 46}, "assignee": {"id": 1026}}, "job": {"id": 379, "assignee": {"id": 1137}}, "organization": {"id": 174}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 614}, "assignee": {"id": 592}, "project": {"id": 395, "owner": {"id": 740}, "assignee": {"id": 816}}, "task": {"id": 366, "owner": {"id": 16}, "assignee": {"id": 1085}}, "job": {"id": 390, "assignee": {"id": 1199}}, "organization": {"id": 113}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 692}, "assignee": {"id": 538}, "project": {"id": 362, "owner": {"id": 792}, "assignee": {"id": 893}}, "task": {"id": 307, "owner": {"id": 88}, "assignee": {"id": 1060}}, "job": {"id": 332, "assignee": {"id": 1165}}, "organization": {"id": 1227}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 612}, "assignee": {"id": 525}, "project": {"id": 374, "owner": {"id": 767}, "assignee": {"id": 835}}, "task": {"id": 395, "owner": {"id": 94}, "assignee": {"id": 1035}}, "job": {"id": 372, "assignee": {"id": 1156}}, "organization": {"id": 1244}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 686}, "assignee": {"id": 511}, "project": {"id": 376, "owner": {"id": 724}, "assignee": {"id": 886}}, "task": {"id": 337, "owner": {"id": 14}, "assignee": {"id": 1074}}, "job": {"id": 349, "assignee": {"id": 1186}}, "organization": {"id": 152}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 606}, "assignee": {"id": 585}, "project": {"id": 326, "owner": {"id": 788}, "assignee": {"id": 830}}, "task": {"id": 386, "owner": {"id": 9}, "assignee": {"id": 1038}}, "job": {"id": 310, "assignee": {"id": 1177}}, "organization": {"id": 126}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 690}, "assignee": {"id": 544}, "project": {"id": 311, "owner": {"id": 763}, "assignee": {"id": 889}}, "task": {"id": 382, "owner": {"id": 10}, "assignee": {"id": 1054}}, "job": {"id": 366, "assignee": {"id": 1123}}, "organization": {"id": 1244}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 656}, "assignee": {"id": 554}, "project": {"id": 327, "owner": {"id": 701}, "assignee": {"id": 851}}, "task": {"id": 383, "owner": {"id": 89}, "assignee": {"id": 1087}}, "job": {"id": 378, "assignee": {"id": 1189}}, "organization": {"id": 1260}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 658}, "assignee": {"id": 588}, "project": {"id": 347, "owner": {"id": 798}, "assignee": {"id": 876}}, "task": {"id": 309, "owner": {"id": 53}, "assignee": {"id": 1035}}, "job": {"id": 396, "assignee": {"id": 1115}}, "organization": {"id": 199}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 646}, "assignee": {"id": 590}, "project": {"id": 333, "owner": {"id": 769}, "assignee": {"id": 871}}, "task": {"id": 310, "owner": {"id": 61}, "assignee": {"id": 1005}}, "job": {"id": 344, "assignee": {"id": 1120}}, "organization": {"id": 109}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 685}, "assignee": {"id": 500}, "project": {"id": 362, "owner": {"id": 724}, "assignee": {"id": 847}}, "task": {"id": 346, "owner": {"id": 23}, "assignee": {"id": 1091}}, "job": {"id": 329, "assignee": {"id": 1156}}, "organization": {"id": 1208}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 670}, "assignee": {"id": 529}, "project": {"id": 361, "owner": {"id": 709}, "assignee": {"id": 815}}, "task": {"id": 369, "owner": {"id": 98}, "assignee": {"id": 1045}}, "job": {"id": 366, "assignee": {"id": 1122}}, "organization": {"id": 1240}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 681}, "assignee": {"id": 556}, "project": {"id": 347, "owner": {"id": 722}, "assignee": {"id": 858}}, "task": {"id": 389, "owner": {"id": 64}, "assignee": {"id": 1031}}, "job": {"id": 399, "assignee": {"id": 1138}}, "organization": {"id": 152}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 646}, "assignee": {"id": 537}, "project": {"id": 324, "owner": {"id": 770}, "assignee": {"id": 856}}, "task": {"id": 345, "owner": {"id": 23}, "assignee": {"id": 1004}}, "job": {"id": 358, "assignee": {"id": 1133}}, "organization": {"id": 155}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 689}, "assignee": {"id": 545}, "project": {"id": 316, "owner": {"id": 779}, "assignee": {"id": 868}}, "task": {"id": 370, "owner": {"id": 34}, "assignee": {"id": 1008}}, "job": {"id": 315, "assignee": {"id": 1164}}, "organization": {"id": 1225}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 694}, "assignee": {"id": 583}, "project": {"id": 343, "owner": {"id": 718}, "assignee": {"id": 888}}, "task": {"id": 348, "owner": {"id": 72}, "assignee": {"id": 1080}}, "job": {"id": 367, "assignee": {"id": 1172}}, "organization": {"id": 1256}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 632}, "assignee": {"id": 509}, "project": {"id": 346, "owner": {"id": 745}, "assignee": {"id": 897}}, "task": {"id": 358, "owner": {"id": 66}, "assignee": {"id": 1016}}, "job": {"id": 395, "assignee": {"id": 1156}}, "organization": {"id": 100}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 661}, "assignee": {"id": 535}, "project": {"id": 307, "owner": {"id": 769}, "assignee": {"id": 873}}, "task": {"id": 378, "owner": {"id": 66}, "assignee": {"id": 1066}}, "job": {"id": 398, "assignee": {"id": 1143}}, "organization": {"id": 172}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 609}, "assignee": {"id": 538}, "project": {"id": 339, "owner": {"id": 714}, "assignee": {"id": 820}}, "task": {"id": 309, "owner": {"id": 86}, "assignee": {"id": 1085}}, "job": {"id": 391, "assignee": {"id": 1157}}, "organization": {"id": 1252}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 691}, "assignee": {"id": 564}, "project": {"id": 309, "owner": {"id": 722}, "assignee": {"id": 855}}, "task": {"id": 301, "owner": {"id": 73}, "assignee": {"id": 1053}}, "job": {"id": 355, "assignee": {"id": 1100}}, "organization": {"id": 1289}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 676}, "assignee": {"id": 521}, "project": {"id": 318, "owner": {"id": 772}, "assignee": {"id": 812}}, "task": {"id": 329, "owner": {"id": 29}, "assignee": {"id": 1051}}, "job": {"id": 357, "assignee": {"id": 1193}}, "organization": {"id": 132}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 643}, "assignee": {"id": 598}, "project": {"id": 322, "owner": {"id": 734}, "assignee": {"id": 833}}, "task": {"id": 372, "owner": {"id": 61}, "assignee": {"id": 1061}}, "job": {"id": 326, "assignee": {"id": 1170}}, "organization": {"id": 197}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 670}, "assignee": {"id": 573}, "project": {"id": 319, "owner": {"id": 738}, "assignee": {"id": 830}}, "task": {"id": 346, "owner": {"id": 67}, "assignee": {"id": 1043}}, "job": {"id": 373, "assignee": {"id": 1155}}, "organization": {"id": 1253}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 677}, "assignee": {"id": 562}, "project": {"id": 334, "owner": {"id": 748}, "assignee": {"id": 806}}, "task": {"id": 358, "owner": {"id": 11}, "assignee": {"id": 1044}}, "job": {"id": 348, "assignee": {"id": 1112}}, "organization": {"id": 1280}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 695}, "assignee": {"id": 543}, "project": {"id": 344, "owner": {"id": 791}, "assignee": {"id": 823}}, "task": {"id": 338, "owner": {"id": 75}, "assignee": {"id": 1055}}, "job": {"id": 312, "assignee": {"id": 1185}}, "organization": {"id": 141}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 669}, "assignee": {"id": 587}, "project": {"id": 366, "owner": {"id": 740}, "assignee": {"id": 868}}, "task": {"id": 393, "owner": {"id": 17}, "assignee": {"id": 1015}}, "job": {"id": 356, "assignee": {"id": 1112}}, "organization": {"id": 167}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 691}, "assignee": {"id": 571}, "project": {"id": 312, "owner": {"id": 772}, "assignee": {"id": 837}}, "task": {"id": 356, "owner": {"id": 80}, "assignee": {"id": 1085}}, "job": {"id": 357, "assignee": {"id": 1187}}, "organization": {"id": 1285}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 613}, "assignee": {"id": 529}, "project": {"id": 377, "owner": {"id": 744}, "assignee": {"id": 836}}, "task": {"id": 347, "owner": {"id": 40}, "assignee": {"id": 1051}}, "job": {"id": 334, "assignee": {"id": 1162}}, "organization": {"id": 1221}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 666}, "assignee": {"id": 509}, "project": {"id": 348, "owner": {"id": 784}, "assignee": {"id": 877}}, "task": {"id": 303, "owner": {"id": 42}, "assignee": {"id": 1081}}, "job": {"id": 390, "assignee": {"id": 1197}}, "organization": {"id": 159}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 659}, "assignee": {"id": 570}, "project": {"id": 327, "owner": {"id": 737}, "assignee": {"id": 820}}, "task": {"id": 304, "owner": {"id": 97}, "assignee": {"id": 1032}}, "job": {"id": 357, "assignee": {"id": 1161}}, "organization": {"id": 179}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 657}, "assignee": {"id": 567}, "project": {"id": 315, "owner": {"id": 710}, "assignee": {"id": 808}}, "task": {"id": 370, "owner": {"id": 79}, "assignee": {"id": 1097}}, "job": {"id": 305, "assignee": {"id": 1176}}, "organization": {"id": 1238}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 689}, "assignee": {"id": 530}, "project": {"id": 383, "owner": {"id": 745}, "assignee": {"id": 811}}, "task": {"id": 344, "owner": {"id": 14}, "assignee": {"id": 1077}}, "job": {"id": 363, "assignee": {"id": 1190}}, "organization": {"id": 1284}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 688}, "assignee": {"id": 590}, "project": {"id": 361, "owner": {"id": 701}, "assignee": {"id": 810}}, "task": {"id": 313, "owner": {"id": 43}, "assignee": {"id": 1059}}, "job": {"id": 362, "assignee": {"id": 1132}}, "organization": {"id": 131}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 630}, "assignee": {"id": 521}, "project": {"id": 376, "owner": {"id": 789}, "assignee": {"id": 807}}, "task": {"id": 331, "owner": {"id": 95}, "assignee": {"id": 1071}}, "job": {"id": 309, "assignee": {"id": 1186}}, "organization": {"id": 138}}} +} + +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": 169, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 697}, "assignee": {"id": 584}, "project": {"id": 334, "owner": {"id": 734}, "assignee": {"id": 896}}, "task": {"id": 338, "owner": {"id": 87}, "assignee": {"id": 1044}}, "job": {"id": 391, "assignee": {"id": 1184}}, "organization": {"id": 1252}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 684}, "assignee": {"id": 518}, "project": {"id": 356, "owner": {"id": 739}, "assignee": {"id": 882}}, "task": {"id": 390, "owner": {"id": 61}, "assignee": {"id": 1043}}, "job": {"id": 392, "assignee": {"id": 1109}}, "organization": {"id": 1289}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 667}, "assignee": {"id": 593}, "project": {"id": 310, "owner": {"id": 773}, "assignee": {"id": 815}}, "task": {"id": 364, "owner": {"id": 77}, "assignee": {"id": 1036}}, "job": {"id": 372, "assignee": {"id": 1109}}, "organization": {"id": 165}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 678}, "assignee": {"id": 545}, "project": {"id": 397, "owner": {"id": 747}, "assignee": {"id": 814}}, "task": {"id": 330, "owner": {"id": 83}, "assignee": {"id": 1013}}, "job": {"id": 336, "assignee": {"id": 1112}}, "organization": {"id": 194}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 627}, "assignee": {"id": 581}, "project": {"id": 336, "owner": {"id": 733}, "assignee": {"id": 811}}, "task": {"id": 388, "owner": {"id": 24}, "assignee": {"id": 1051}}, "job": {"id": 329, "assignee": {"id": 1161}}, "organization": {"id": 1256}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 616}, "assignee": {"id": 599}, "project": {"id": 358, "owner": {"id": 773}, "assignee": {"id": 863}}, "task": {"id": 307, "owner": {"id": 9}, "assignee": {"id": 1076}}, "job": {"id": 356, "assignee": {"id": 1127}}, "organization": {"id": 1282}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 680}, "assignee": {"id": 556}, "project": {"id": 346, "owner": {"id": 770}, "assignee": {"id": 894}}, "task": {"id": 309, "owner": {"id": 61}, "assignee": {"id": 1080}}, "job": {"id": 336, "assignee": {"id": 1175}}, "organization": {"id": 110}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 618}, "assignee": {"id": 564}, "project": {"id": 395, "owner": {"id": 790}, "assignee": {"id": 876}}, "task": {"id": 392, "owner": {"id": 44}, "assignee": {"id": 1029}}, "job": {"id": 373, "assignee": {"id": 1181}}, "organization": {"id": 105}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 623}, "assignee": {"id": 554}, "project": {"id": 350, "owner": {"id": 740}, "assignee": {"id": 877}}, "task": {"id": 301, "owner": {"id": 99}, "assignee": {"id": 1026}}, "job": {"id": 340, "assignee": {"id": 1162}}, "organization": {"id": 1251}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 695}, "assignee": {"id": 569}, "project": {"id": 386, "owner": {"id": 770}, "assignee": {"id": 880}}, "task": {"id": 300, "owner": {"id": 85}, "assignee": {"id": 1038}}, "job": {"id": 366, "assignee": {"id": 1106}}, "organization": {"id": 1200}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 690}, "assignee": {"id": 515}, "project": {"id": 389, "owner": {"id": 799}, "assignee": {"id": 804}}, "task": {"id": 361, "owner": {"id": 24}, "assignee": {"id": 1058}}, "job": {"id": 373, "assignee": {"id": 1174}}, "organization": {"id": 172}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 631}, "assignee": {"id": 541}, "project": {"id": 355, "owner": {"id": 731}, "assignee": {"id": 863}}, "task": {"id": 350, "owner": {"id": 20}, "assignee": {"id": 1094}}, "job": {"id": 375, "assignee": {"id": 1160}}, "organization": {"id": 165}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 607}, "assignee": {"id": 501}, "project": {"id": 357, "owner": {"id": 728}, "assignee": {"id": 806}}, "task": {"id": 385, "owner": {"id": 11}, "assignee": {"id": 1095}}, "job": {"id": 343, "assignee": {"id": 1199}}, "organization": {"id": 1292}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 698}, "assignee": {"id": 579}, "project": {"id": 348, "owner": {"id": 764}, "assignee": {"id": 829}}, "task": {"id": 386, "owner": {"id": 88}, "assignee": {"id": 1072}}, "job": {"id": 352, "assignee": {"id": 1180}}, "organization": {"id": 1284}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 678}, "assignee": {"id": 579}, "project": {"id": 371, "owner": {"id": 736}, "assignee": {"id": 870}}, "task": {"id": 362, "owner": {"id": 56}, "assignee": {"id": 1057}}, "job": {"id": 372, "assignee": {"id": 1172}}, "organization": {"id": 114}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 674}, "assignee": {"id": 527}, "project": {"id": 385, "owner": {"id": 768}, "assignee": {"id": 819}}, "task": {"id": 388, "owner": {"id": 79}, "assignee": {"id": 1048}}, "job": {"id": 351, "assignee": {"id": 1162}}, "organization": {"id": 190}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 656}, "assignee": {"id": 570}, "project": {"id": 313, "owner": {"id": 797}, "assignee": {"id": 831}}, "task": {"id": 343, "owner": {"id": 35}, "assignee": {"id": 1044}}, "job": {"id": 354, "assignee": {"id": 1120}}, "organization": {"id": 1246}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 601}, "assignee": {"id": 555}, "project": {"id": 316, "owner": {"id": 701}, "assignee": {"id": 801}}, "task": {"id": 332, "owner": {"id": 60}, "assignee": {"id": 1066}}, "job": {"id": 377, "assignee": {"id": 1105}}, "organization": {"id": 1222}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 618}, "assignee": {"id": 515}, "project": {"id": 303, "owner": {"id": 734}, "assignee": {"id": 842}}, "task": {"id": 344, "owner": {"id": 95}, "assignee": {"id": 1073}}, "job": {"id": 370, "assignee": {"id": 1183}}, "organization": {"id": 174}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 638}, "assignee": {"id": 511}, "project": {"id": 355, "owner": {"id": 705}, "assignee": {"id": 865}}, "task": {"id": 370, "owner": {"id": 45}, "assignee": {"id": 1088}}, "job": {"id": 338, "assignee": {"id": 1115}}, "organization": {"id": 121}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 660}, "assignee": {"id": 539}, "project": {"id": 328, "owner": {"id": 735}, "assignee": {"id": 823}}, "task": {"id": 305, "owner": {"id": 70}, "assignee": {"id": 1001}}, "job": {"id": 373, "assignee": {"id": 1195}}, "organization": {"id": 1231}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 667}, "assignee": {"id": 527}, "project": {"id": 358, "owner": {"id": 707}, "assignee": {"id": 888}}, "task": {"id": 307, "owner": {"id": 21}, "assignee": {"id": 1097}}, "job": {"id": 394, "assignee": {"id": 1122}}, "organization": {"id": 1265}}} +} + +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": 167, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 653}, "assignee": {"id": 597}, "project": {"id": 365, "owner": {"id": 766}, "assignee": {"id": 817}}, "task": {"id": 358, "owner": {"id": 32}, "assignee": {"id": 1083}}, "job": {"id": 396, "assignee": {"id": 1131}}, "organization": {"id": 167}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 647}, "assignee": {"id": 503}, "project": {"id": 333, "owner": {"id": 724}, "assignee": {"id": 854}}, "task": {"id": 331, "owner": {"id": 98}, "assignee": {"id": 1091}}, "job": {"id": 372, "assignee": {"id": 1166}}, "organization": {"id": 197}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 697}, "assignee": {"id": 571}, "project": {"id": 392, "owner": {"id": 775}, "assignee": {"id": 881}}, "task": {"id": 391, "owner": {"id": 5}, "assignee": {"id": 1087}}, "job": {"id": 311, "assignee": {"id": 1112}}, "organization": {"id": 1221}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 619}, "assignee": {"id": 528}, "project": {"id": 328, "owner": {"id": 712}, "assignee": {"id": 877}}, "task": {"id": 356, "owner": {"id": 37}, "assignee": {"id": 1056}}, "job": {"id": 314, "assignee": {"id": 1144}}, "organization": {"id": 1287}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 619}, "assignee": {"id": 539}, "project": {"id": 335, "owner": {"id": 743}, "assignee": {"id": 876}}, "task": {"id": 366, "owner": {"id": 7}, "assignee": {"id": 1092}}, "job": {"id": 302, "assignee": {"id": 1171}}, "organization": {"id": 152}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 624}, "assignee": {"id": 511}, "project": {"id": 395, "owner": {"id": 776}, "assignee": {"id": 846}}, "task": {"id": 318, "owner": {"id": 23}, "assignee": {"id": 1095}}, "job": {"id": 339, "assignee": {"id": 1127}}, "organization": {"id": 175}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 684}, "assignee": {"id": 518}, "project": {"id": 368, "owner": {"id": 767}, "assignee": {"id": 862}}, "task": {"id": 347, "owner": {"id": 98}, "assignee": {"id": 1055}}, "job": {"id": 316, "assignee": {"id": 1111}}, "organization": {"id": 1280}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 687}, "assignee": {"id": 598}, "project": {"id": 304, "owner": {"id": 792}, "assignee": {"id": 898}}, "task": {"id": 380, "owner": {"id": 97}, "assignee": {"id": 1082}}, "job": {"id": 300, "assignee": {"id": 1139}}, "organization": {"id": 1236}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 668}, "assignee": {"id": 509}, "project": {"id": 369, "owner": {"id": 721}, "assignee": {"id": 842}}, "task": {"id": 301, "owner": {"id": 11}, "assignee": {"id": 1088}}, "job": {"id": 303, "assignee": {"id": 1113}}, "organization": {"id": 181}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 663}, "assignee": {"id": 558}, "project": {"id": 344, "owner": {"id": 789}, "assignee": {"id": 807}}, "task": {"id": 348, "owner": {"id": 49}, "assignee": {"id": 1028}}, "job": {"id": 377, "assignee": {"id": 1172}}, "organization": {"id": 167}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 615}, "assignee": {"id": 537}, "project": {"id": 397, "owner": {"id": 720}, "assignee": {"id": 841}}, "task": {"id": 344, "owner": {"id": 12}, "assignee": {"id": 1020}}, "job": {"id": 388, "assignee": {"id": 1108}}, "organization": {"id": 1219}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 600}, "assignee": {"id": 594}, "project": {"id": 327, "owner": {"id": 718}, "assignee": {"id": 836}}, "task": {"id": 363, "owner": {"id": 11}, "assignee": {"id": 1042}}, "job": {"id": 369, "assignee": {"id": 1192}}, "organization": {"id": 1258}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 604}, "assignee": {"id": 579}, "project": {"id": 348, "owner": {"id": 704}, "assignee": {"id": 804}}, "task": {"id": 376, "owner": {"id": 62}, "assignee": {"id": 1072}}, "job": {"id": 315, "assignee": {"id": 1172}}, "organization": {"id": 188}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 662}, "assignee": {"id": 540}, "project": {"id": 332, "owner": {"id": 726}, "assignee": {"id": 878}}, "task": {"id": 367, "owner": {"id": 22}, "assignee": {"id": 1080}}, "job": {"id": 388, "assignee": {"id": 1138}}, "organization": {"id": 116}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 674}, "assignee": {"id": 597}, "project": {"id": 387, "owner": {"id": 718}, "assignee": {"id": 801}}, "task": {"id": 361, "owner": {"id": 8}, "assignee": {"id": 1061}}, "job": {"id": 351, "assignee": {"id": 1123}}, "organization": {"id": 1287}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 690}, "assignee": {"id": 539}, "project": {"id": 378, "owner": {"id": 730}, "assignee": {"id": 831}}, "task": {"id": 354, "owner": {"id": 81}, "assignee": {"id": 1017}}, "job": {"id": 302, "assignee": {"id": 1117}}, "organization": {"id": 1286}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 649}, "assignee": {"id": 584}, "project": {"id": 310, "owner": {"id": 764}, "assignee": {"id": 882}}, "task": {"id": 326, "owner": {"id": 99}, "assignee": {"id": 1058}}, "job": {"id": 306, "assignee": {"id": 1122}}, "organization": {"id": 197}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 643}, "assignee": {"id": 594}, "project": {"id": 309, "owner": {"id": 753}, "assignee": {"id": 817}}, "task": {"id": 309, "owner": {"id": 29}, "assignee": {"id": 1049}}, "job": {"id": 313, "assignee": {"id": 1102}}, "organization": {"id": 123}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 644}, "assignee": {"id": 563}, "project": {"id": 378, "owner": {"id": 749}, "assignee": {"id": 860}}, "task": {"id": 306, "owner": {"id": 29}, "assignee": {"id": 1019}}, "job": {"id": 335, "assignee": {"id": 1150}}, "organization": {"id": 1230}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 606}, "assignee": {"id": 575}, "project": {"id": 378, "owner": {"id": 797}, "assignee": {"id": 850}}, "task": {"id": 360, "owner": {"id": 44}, "assignee": {"id": 1076}}, "job": {"id": 344, "assignee": {"id": 1183}}, "organization": {"id": 1204}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 649}, "assignee": {"id": 585}, "project": {"id": 343, "owner": {"id": 773}, "assignee": {"id": 882}}, "task": {"id": 332, "owner": {"id": 10}, "assignee": {"id": 1094}}, "job": {"id": 313, "assignee": {"id": 1176}}, "organization": {"id": 161}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 683}, "assignee": {"id": 556}, "project": {"id": 381, "owner": {"id": 765}, "assignee": {"id": 846}}, "task": {"id": 312, "owner": {"id": 84}, "assignee": {"id": 1056}}, "job": {"id": 340, "assignee": {"id": 1123}}, "organization": {"id": 189}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 687}, "assignee": {"id": 569}, "project": {"id": 332, "owner": {"id": 721}, "assignee": {"id": 842}}, "task": {"id": 355, "owner": {"id": 17}, "assignee": {"id": 1006}}, "job": {"id": 312, "assignee": {"id": 1183}}, "organization": {"id": 1250}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 616}, "assignee": {"id": 568}, "project": {"id": 331, "owner": {"id": 736}, "assignee": {"id": 840}}, "task": {"id": 380, "owner": {"id": 70}, "assignee": {"id": 1080}}, "job": {"id": 396, "assignee": {"id": 1120}}, "organization": {"id": 1210}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 696}, "assignee": {"id": 513}, "project": {"id": 302, "owner": {"id": 782}, "assignee": {"id": 853}}, "task": {"id": 348, "owner": {"id": 11}, "assignee": {"id": 1064}}, "job": {"id": 361, "assignee": {"id": 1123}}, "organization": {"id": 153}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 618}, "assignee": {"id": 549}, "project": {"id": 318, "owner": {"id": 791}, "assignee": {"id": 875}}, "task": {"id": 326, "owner": {"id": 13}, "assignee": {"id": 1005}}, "job": {"id": 319, "assignee": {"id": 1178}}, "organization": {"id": 161}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 616}, "assignee": {"id": 565}, "project": {"id": 378, "owner": {"id": 764}, "assignee": {"id": 864}}, "task": {"id": 333, "owner": {"id": 91}, "assignee": {"id": 1098}}, "job": {"id": 354, "assignee": {"id": 1193}}, "organization": {"id": 1287}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 665}, "assignee": {"id": 566}, "project": {"id": 305, "owner": {"id": 780}, "assignee": {"id": 889}}, "task": {"id": 326, "owner": {"id": 3}, "assignee": {"id": 1013}}, "job": {"id": 390, "assignee": {"id": 1136}}, "organization": {"id": 1223}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 647}, "assignee": {"id": 512}, "project": {"id": 358, "owner": {"id": 706}, "assignee": {"id": 852}}, "task": {"id": 381, "owner": {"id": 15}, "assignee": {"id": 1025}}, "job": {"id": 377, "assignee": {"id": 1186}}, "organization": {"id": 169}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 696}, "assignee": {"id": 588}, "project": {"id": 390, "owner": {"id": 769}, "assignee": {"id": 844}}, "task": {"id": 362, "owner": {"id": 14}, "assignee": {"id": 1046}}, "job": {"id": 329, "assignee": {"id": 1192}}, "organization": {"id": 121}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 664}, "assignee": {"id": 547}, "project": {"id": 300, "owner": {"id": 703}, "assignee": {"id": 830}}, "task": {"id": 388, "owner": {"id": 15}, "assignee": {"id": 1005}}, "job": {"id": 375, "assignee": {"id": 1112}}, "organization": {"id": 1229}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 642}, "assignee": {"id": 507}, "project": {"id": 325, "owner": {"id": 732}, "assignee": {"id": 868}}, "task": {"id": 338, "owner": {"id": 28}, "assignee": {"id": 1009}}, "job": {"id": 389, "assignee": {"id": 1101}}, "organization": {"id": 1215}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 650}, "assignee": {"id": 530}, "project": {"id": 327, "owner": {"id": 779}, "assignee": {"id": 813}}, "task": {"id": 304, "owner": {"id": 11}, "assignee": {"id": 1097}}, "job": {"id": 396, "assignee": {"id": 1111}}, "organization": {"id": 176}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 629}, "assignee": {"id": 572}, "project": {"id": 314, "owner": {"id": 734}, "assignee": {"id": 860}}, "task": {"id": 334, "owner": {"id": 72}, "assignee": {"id": 1028}}, "job": {"id": 330, "assignee": {"id": 1138}}, "organization": {"id": 178}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 654}, "assignee": {"id": 594}, "project": {"id": 373, "owner": {"id": 742}, "assignee": {"id": 805}}, "task": {"id": 385, "owner": {"id": 14}, "assignee": {"id": 1018}}, "job": {"id": 358, "assignee": {"id": 1190}}, "organization": {"id": 1210}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 669}, "assignee": {"id": 545}, "project": {"id": 361, "owner": {"id": 748}, "assignee": {"id": 837}}, "task": {"id": 327, "owner": {"id": 69}, "assignee": {"id": 1022}}, "job": {"id": 351, "assignee": {"id": 1132}}, "organization": {"id": 1281}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 650}, "assignee": {"id": 569}, "project": {"id": 355, "owner": {"id": 700}, "assignee": {"id": 856}}, "task": {"id": 389, "owner": {"id": 30}, "assignee": {"id": 1035}}, "job": {"id": 399, "assignee": {"id": 1129}}, "organization": {"id": 149}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 654}, "assignee": {"id": 530}, "project": {"id": 397, "owner": {"id": 736}, "assignee": {"id": 868}}, "task": {"id": 399, "owner": {"id": 75}, "assignee": {"id": 1038}}, "job": {"id": 356, "assignee": {"id": 1158}}, "organization": {"id": 138}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 685}, "assignee": {"id": 573}, "project": {"id": 313, "owner": {"id": 744}, "assignee": {"id": 807}}, "task": {"id": 375, "owner": {"id": 39}, "assignee": {"id": 1063}}, "job": {"id": 334, "assignee": {"id": 1127}}, "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": 21, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 608}, "assignee": {"id": 523}, "project": {"id": 388, "owner": {"id": 760}, "assignee": {"id": 873}}, "task": {"id": 333, "owner": {"id": 21}, "assignee": {"id": 1076}}, "job": {"id": 305, "assignee": {"id": 1189}}, "organization": {"id": 1213}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 607}, "assignee": {"id": 545}, "project": {"id": 399, "owner": {"id": 731}, "assignee": {"id": 844}}, "task": {"id": 306, "owner": {"id": 993}, "assignee": {"id": 81}}, "job": {"id": 382, "assignee": {"id": 1106}}, "organization": {"id": 144}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 615}, "assignee": {"id": 515}, "project": {"id": 356, "owner": {"id": 716}, "assignee": {"id": 847}}, "task": {"id": 376, "owner": {"id": 996}, "assignee": {"id": 35}}, "job": {"id": 377, "assignee": {"id": 1109}}, "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": 52, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 670}, "assignee": {"id": 513}, "project": {"id": 311, "owner": {"id": 751}, "assignee": {"id": 816}}, "task": {"id": 327, "owner": {"id": 920}, "assignee": {"id": 52}}, "job": {"id": 306, "assignee": {"id": 1152}}, "organization": {"id": 1253}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 656}, "assignee": {"id": 599}, "project": {"id": 331, "owner": {"id": 779}, "assignee": {"id": 834}}, "task": {"id": 381, "owner": {"id": 940}, "assignee": {"id": 36}}, "job": {"id": 336, "assignee": {"id": 1191}}, "organization": {"id": 1216}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 657}, "assignee": {"id": 515}, "project": {"id": 399, "owner": {"id": 738}, "assignee": {"id": 850}}, "task": {"id": 350, "owner": {"id": 998}, "assignee": {"id": 63}}, "job": {"id": 344, "assignee": {"id": 1190}}, "organization": {"id": 149}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 613}, "assignee": {"id": 558}, "project": {"id": 325, "owner": {"id": 737}, "assignee": {"id": 895}}, "task": {"id": 316, "owner": {"id": 980}, "assignee": {"id": 2}}, "job": {"id": 321, "assignee": {"id": 1166}}, "organization": {"id": 122}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 659}, "assignee": {"id": 562}, "project": {"id": 380, "owner": {"id": 735}, "assignee": {"id": 856}}, "task": {"id": 388, "owner": {"id": 979}, "assignee": {"id": 28}}, "job": {"id": 335, "assignee": {"id": 1139}}, "organization": {"id": 1242}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 606}, "assignee": {"id": 592}, "project": {"id": 311, "owner": {"id": 798}, "assignee": {"id": 868}}, "task": {"id": 341, "owner": {"id": 905}, "assignee": {"id": 77}}, "job": {"id": 381, "assignee": {"id": 1102}}, "organization": {"id": 1222}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 649}, "assignee": {"id": 540}, "project": {"id": 335, "owner": {"id": 732}, "assignee": {"id": 840}}, "task": {"id": 383, "owner": {"id": 968}, "assignee": {"id": 64}}, "job": {"id": 321, "assignee": {"id": 1143}}, "organization": {"id": 161}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 660}, "assignee": {"id": 570}, "project": {"id": 373, "owner": {"id": 793}, "assignee": {"id": 859}}, "task": {"id": 337, "owner": {"id": 929}, "assignee": {"id": 20}}, "job": {"id": 395, "assignee": {"id": 1195}}, "organization": {"id": 111}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 686}, "assignee": {"id": 560}, "project": {"id": 394, "owner": {"id": 768}, "assignee": {"id": 855}}, "task": {"id": 335, "owner": {"id": 917}, "assignee": {"id": 29}}, "job": {"id": 335, "assignee": {"id": 1122}}, "organization": {"id": 1205}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 690}, "assignee": {"id": 560}, "project": {"id": 397, "owner": {"id": 730}, "assignee": {"id": 809}}, "task": {"id": 369, "owner": {"id": 901}, "assignee": {"id": 9}}, "job": {"id": 361, "assignee": {"id": 1183}}, "organization": {"id": 1233}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 611}, "assignee": {"id": 545}, "project": {"id": 300, "owner": {"id": 776}, "assignee": {"id": 897}}, "task": {"id": 355, "owner": {"id": 953}, "assignee": {"id": 24}}, "job": {"id": 351, "assignee": {"id": 1110}}, "organization": {"id": 156}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 696}, "assignee": {"id": 595}, "project": {"id": 323, "owner": {"id": 735}, "assignee": {"id": 837}}, "task": {"id": 346, "owner": {"id": 993}, "assignee": {"id": 36}}, "job": {"id": 395, "assignee": {"id": 1131}}, "organization": {"id": 128}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 678}, "assignee": {"id": 599}, "project": {"id": 304, "owner": {"id": 731}, "assignee": {"id": 897}}, "task": {"id": 325, "owner": {"id": 905}, "assignee": {"id": 81}}, "job": {"id": 393, "assignee": {"id": 1166}}, "organization": {"id": 1246}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 629}, "assignee": {"id": 562}, "project": {"id": 307, "owner": {"id": 705}, "assignee": {"id": 853}}, "task": {"id": 353, "owner": {"id": 945}, "assignee": {"id": 3}}, "job": {"id": 320, "assignee": {"id": 1193}}, "organization": {"id": 1204}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 603}, "assignee": {"id": 520}, "project": {"id": 353, "owner": {"id": 752}, "assignee": {"id": 867}}, "task": {"id": 324, "owner": {"id": 909}, "assignee": {"id": 4}}, "job": {"id": 363, "assignee": {"id": 1175}}, "organization": {"id": 181}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 629}, "assignee": {"id": 549}, "project": {"id": 324, "owner": {"id": 725}, "assignee": {"id": 894}}, "task": {"id": 349, "owner": {"id": 987}, "assignee": {"id": 15}}, "job": {"id": 334, "assignee": {"id": 1143}}, "organization": {"id": 165}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 623}, "assignee": {"id": 523}, "project": {"id": 339, "owner": {"id": 746}, "assignee": {"id": 880}}, "task": {"id": 340, "owner": {"id": 929}, "assignee": {"id": 58}}, "job": {"id": 313, "assignee": {"id": 1126}}, "organization": {"id": 1254}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 641}, "assignee": {"id": 547}, "project": {"id": 344, "owner": {"id": 717}, "assignee": {"id": 848}}, "task": {"id": 362, "owner": {"id": 931}, "assignee": {"id": 38}}, "job": {"id": 370, "assignee": {"id": 1146}}, "organization": {"id": 1256}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 675}, "assignee": {"id": 508}, "project": {"id": 394, "owner": {"id": 709}, "assignee": {"id": 840}}, "task": {"id": 336, "owner": {"id": 941}, "assignee": {"id": 26}}, "job": {"id": 326, "assignee": {"id": 1196}}, "organization": {"id": 165}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 662}, "assignee": {"id": 507}, "project": {"id": 311, "owner": {"id": 709}, "assignee": {"id": 825}}, "task": {"id": 331, "owner": {"id": 986}, "assignee": {"id": 52}}, "job": {"id": 366, "assignee": {"id": 1123}}, "organization": {"id": 177}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 641}, "assignee": {"id": 551}, "project": {"id": 316, "owner": {"id": 702}, "assignee": {"id": 856}}, "task": {"id": 318, "owner": {"id": 992}, "assignee": {"id": 1}}, "job": {"id": 387, "assignee": {"id": 1132}}, "organization": {"id": 1246}}} +} + +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": 161, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 628}, "assignee": {"id": 588}, "project": {"id": 384, "owner": {"id": 743}, "assignee": {"id": 813}}, "task": {"id": 365, "owner": {"id": 919}, "assignee": {"id": 4}}, "job": {"id": 318, "assignee": {"id": 1189}}, "organization": {"id": 1298}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 623}, "assignee": {"id": 542}, "project": {"id": 358, "owner": {"id": 723}, "assignee": {"id": 813}}, "task": {"id": 302, "owner": {"id": 967}, "assignee": {"id": 23}}, "job": {"id": 374, "assignee": {"id": 1167}}, "organization": {"id": 122}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 699}, "assignee": {"id": 596}, "project": {"id": 313, "owner": {"id": 757}, "assignee": {"id": 881}}, "task": {"id": 377, "owner": {"id": 967}, "assignee": {"id": 68}}, "job": {"id": 377, "assignee": {"id": 1119}}, "organization": {"id": 125}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 632}, "assignee": {"id": 596}, "project": {"id": 394, "owner": {"id": 712}, "assignee": {"id": 867}}, "task": {"id": 335, "owner": {"id": 938}, "assignee": {"id": 3}}, "job": {"id": 338, "assignee": {"id": 1154}}, "organization": {"id": 1235}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 623}, "assignee": {"id": 550}, "project": {"id": 379, "owner": {"id": 792}, "assignee": {"id": 822}}, "task": {"id": 323, "owner": {"id": 995}, "assignee": {"id": 3}}, "job": {"id": 384, "assignee": {"id": 1125}}, "organization": {"id": 1231}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 646}, "assignee": {"id": 576}, "project": {"id": 397, "owner": {"id": 758}, "assignee": {"id": 822}}, "task": {"id": 301, "owner": {"id": 935}, "assignee": {"id": 13}}, "job": {"id": 311, "assignee": {"id": 1196}}, "organization": {"id": 140}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 670}, "assignee": {"id": 524}, "project": {"id": 337, "owner": {"id": 706}, "assignee": {"id": 805}}, "task": {"id": 313, "owner": {"id": 917}, "assignee": {"id": 63}}, "job": {"id": 377, "assignee": {"id": 1159}}, "organization": {"id": 144}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 665}, "assignee": {"id": 579}, "project": {"id": 324, "owner": {"id": 701}, "assignee": {"id": 856}}, "task": {"id": 319, "owner": {"id": 991}, "assignee": {"id": 8}}, "job": {"id": 374, "assignee": {"id": 1162}}, "organization": {"id": 1227}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 632}, "assignee": {"id": 527}, "project": {"id": 358, "owner": {"id": 732}, "assignee": {"id": 822}}, "task": {"id": 335, "owner": {"id": 954}, "assignee": {"id": 98}}, "job": {"id": 330, "assignee": {"id": 1111}}, "organization": {"id": 1278}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 613}, "assignee": {"id": 591}, "project": {"id": 390, "owner": {"id": 748}, "assignee": {"id": 846}}, "task": {"id": 313, "owner": {"id": 933}, "assignee": {"id": 61}}, "job": {"id": 377, "assignee": {"id": 1119}}, "organization": {"id": 102}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 628}, "assignee": {"id": 500}, "project": {"id": 325, "owner": {"id": 793}, "assignee": {"id": 883}}, "task": {"id": 363, "owner": {"id": 964}, "assignee": {"id": 38}}, "job": {"id": 303, "assignee": {"id": 1185}}, "organization": {"id": 100}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 661}, "assignee": {"id": 595}, "project": {"id": 336, "owner": {"id": 757}, "assignee": {"id": 826}}, "task": {"id": 387, "owner": {"id": 971}, "assignee": {"id": 47}}, "job": {"id": 394, "assignee": {"id": 1163}}, "organization": {"id": 1206}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 620}, "assignee": {"id": 556}, "project": {"id": 305, "owner": {"id": 795}, "assignee": {"id": 810}}, "task": {"id": 377, "owner": {"id": 997}, "assignee": {"id": 52}}, "job": {"id": 337, "assignee": {"id": 1181}}, "organization": {"id": 1259}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 624}, "assignee": {"id": 579}, "project": {"id": 304, "owner": {"id": 775}, "assignee": {"id": 890}}, "task": {"id": 388, "owner": {"id": 968}, "assignee": {"id": 58}}, "job": {"id": 304, "assignee": {"id": 1195}}, "organization": {"id": 145}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 654}, "assignee": {"id": 505}, "project": {"id": 356, "owner": {"id": 796}, "assignee": {"id": 880}}, "task": {"id": 320, "owner": {"id": 975}, "assignee": {"id": 5}}, "job": {"id": 356, "assignee": {"id": 1114}}, "organization": {"id": 138}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 699}, "assignee": {"id": 531}, "project": {"id": 347, "owner": {"id": 745}, "assignee": {"id": 814}}, "task": {"id": 305, "owner": {"id": 920}, "assignee": {"id": 54}}, "job": {"id": 374, "assignee": {"id": 1197}}, "organization": {"id": 1200}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 638}, "assignee": {"id": 592}, "project": {"id": 337, "owner": {"id": 798}, "assignee": {"id": 838}}, "task": {"id": 373, "owner": {"id": 958}, "assignee": {"id": 54}}, "job": {"id": 380, "assignee": {"id": 1148}}, "organization": {"id": 1219}}} +} + +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": 172, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 685}, "assignee": {"id": 589}, "project": {"id": 390, "owner": {"id": 732}, "assignee": {"id": 871}}, "task": {"id": 361, "owner": {"id": 959}, "assignee": {"id": 77}}, "job": {"id": 364, "assignee": {"id": 1155}}, "organization": {"id": 172}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 617}, "assignee": {"id": 511}, "project": {"id": 329, "owner": {"id": 781}, "assignee": {"id": 891}}, "task": {"id": 396, "owner": {"id": 993}, "assignee": {"id": 17}}, "job": {"id": 339, "assignee": {"id": 1110}}, "organization": {"id": 162}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 644}, "assignee": {"id": 598}, "project": {"id": 363, "owner": {"id": 758}, "assignee": {"id": 871}}, "task": {"id": 363, "owner": {"id": 991}, "assignee": {"id": 41}}, "job": {"id": 319, "assignee": {"id": 1189}}, "organization": {"id": 1270}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 605}, "assignee": {"id": 577}, "project": {"id": 325, "owner": {"id": 798}, "assignee": {"id": 878}}, "task": {"id": 388, "owner": {"id": 915}, "assignee": {"id": 83}}, "job": {"id": 307, "assignee": {"id": 1123}}, "organization": {"id": 1217}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 637}, "assignee": {"id": 520}, "project": {"id": 378, "owner": {"id": 786}, "assignee": {"id": 847}}, "task": {"id": 378, "owner": {"id": 947}, "assignee": {"id": 66}}, "job": {"id": 369, "assignee": {"id": 1126}}, "organization": {"id": 128}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 624}, "assignee": {"id": 589}, "project": {"id": 358, "owner": {"id": 756}, "assignee": {"id": 889}}, "task": {"id": 394, "owner": {"id": 955}, "assignee": {"id": 99}}, "job": {"id": 391, "assignee": {"id": 1100}}, "organization": {"id": 112}}} +} + +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": 174, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 627}, "assignee": {"id": 587}, "project": {"id": 343, "owner": {"id": 757}, "assignee": {"id": 841}}, "task": {"id": 312, "owner": {"id": 926}, "assignee": {"id": 90}}, "job": {"id": 304, "assignee": {"id": 1186}}, "organization": {"id": 1208}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 632}, "assignee": {"id": 502}, "project": {"id": 388, "owner": {"id": 726}, "assignee": {"id": 820}}, "task": {"id": 326, "owner": {"id": 992}, "assignee": {"id": 89}}, "job": {"id": 370, "assignee": {"id": 1191}}, "organization": {"id": 1252}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 693}, "assignee": {"id": 577}, "project": {"id": 315, "owner": {"id": 749}, "assignee": {"id": 804}}, "task": {"id": 320, "owner": {"id": 959}, "assignee": {"id": 92}}, "job": {"id": 363, "assignee": {"id": 1100}}, "organization": {"id": 154}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 683}, "assignee": {"id": 528}, "project": {"id": 359, "owner": {"id": 774}, "assignee": {"id": 842}}, "task": {"id": 342, "owner": {"id": 971}, "assignee": {"id": 85}}, "job": {"id": 329, "assignee": {"id": 1171}}, "organization": {"id": 137}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 603}, "assignee": {"id": 579}, "project": {"id": 386, "owner": {"id": 725}, "assignee": {"id": 899}}, "task": {"id": 361, "owner": {"id": 916}, "assignee": {"id": 27}}, "job": {"id": 379, "assignee": {"id": 1118}}, "organization": {"id": 1245}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 629}, "assignee": {"id": 500}, "project": {"id": 390, "owner": {"id": 746}, "assignee": {"id": 848}}, "task": {"id": 311, "owner": {"id": 978}, "assignee": {"id": 82}}, "job": {"id": 364, "assignee": {"id": 1195}}, "organization": {"id": 1251}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 670}, "assignee": {"id": 513}, "project": {"id": 300, "owner": {"id": 783}, "assignee": {"id": 889}}, "task": {"id": 315, "owner": {"id": 917}, "assignee": {"id": 62}}, "job": {"id": 375, "assignee": {"id": 1165}}, "organization": {"id": 187}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 633}, "assignee": {"id": 540}, "project": {"id": 366, "owner": {"id": 739}, "assignee": {"id": 873}}, "task": {"id": 328, "owner": {"id": 933}, "assignee": {"id": 1}}, "job": {"id": 335, "assignee": {"id": 1133}}, "organization": {"id": 180}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 628}, "assignee": {"id": 566}, "project": {"id": 391, "owner": {"id": 764}, "assignee": {"id": 883}}, "task": {"id": 339, "owner": {"id": 967}, "assignee": {"id": 77}}, "job": {"id": 379, "assignee": {"id": 1142}}, "organization": {"id": 1234}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 654}, "assignee": {"id": 588}, "project": {"id": 329, "owner": {"id": 730}, "assignee": {"id": 825}}, "task": {"id": 329, "owner": {"id": 915}, "assignee": {"id": 4}}, "job": {"id": 327, "assignee": {"id": 1148}}, "organization": {"id": 1292}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 639}, "assignee": {"id": 508}, "project": {"id": 309, "owner": {"id": 701}, "assignee": {"id": 881}}, "task": {"id": 309, "owner": {"id": 952}, "assignee": {"id": 4}}, "job": {"id": 372, "assignee": {"id": 1147}}, "organization": {"id": 155}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 639}, "assignee": {"id": 584}, "project": {"id": 311, "owner": {"id": 700}, "assignee": {"id": 820}}, "task": {"id": 344, "owner": {"id": 945}, "assignee": {"id": 38}}, "job": {"id": 359, "assignee": {"id": 1147}}, "organization": {"id": 111}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 644}, "assignee": {"id": 524}, "project": {"id": 308, "owner": {"id": 780}, "assignee": {"id": 812}}, "task": {"id": 398, "owner": {"id": 932}, "assignee": {"id": 24}}, "job": {"id": 313, "assignee": {"id": 1114}}, "organization": {"id": 1269}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 601}, "assignee": {"id": 525}, "project": {"id": 310, "owner": {"id": 725}, "assignee": {"id": 890}}, "task": {"id": 370, "owner": {"id": 929}, "assignee": {"id": 38}}, "job": {"id": 375, "assignee": {"id": 1176}}, "organization": {"id": 1252}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 692}, "assignee": {"id": 575}, "project": {"id": 340, "owner": {"id": 796}, "assignee": {"id": 880}}, "task": {"id": 328, "owner": {"id": 969}, "assignee": {"id": 70}}, "job": {"id": 321, "assignee": {"id": 1116}}, "organization": {"id": 144}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 641}, "assignee": {"id": 508}, "project": {"id": 313, "owner": {"id": 755}, "assignee": {"id": 853}}, "task": {"id": 374, "owner": {"id": 921}, "assignee": {"id": 49}}, "job": {"id": 340, "assignee": {"id": 1162}}, "organization": {"id": 199}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 652}, "assignee": {"id": 591}, "project": {"id": 345, "owner": {"id": 734}, "assignee": {"id": 842}}, "task": {"id": 386, "owner": {"id": 959}, "assignee": {"id": 34}}, "job": {"id": 322, "assignee": {"id": 1157}}, "organization": {"id": 1235}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 686}, "assignee": {"id": 542}, "project": {"id": 345, "owner": {"id": 721}, "assignee": {"id": 815}}, "task": {"id": 388, "owner": {"id": 956}, "assignee": {"id": 5}}, "job": {"id": 324, "assignee": {"id": 1155}}, "organization": {"id": 1204}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 659}, "assignee": {"id": 527}, "project": {"id": 393, "owner": {"id": 745}, "assignee": {"id": 876}}, "task": {"id": 350, "owner": {"id": 984}, "assignee": {"id": 8}}, "job": {"id": 351, "assignee": {"id": 1161}}, "organization": {"id": 159}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 631}, "assignee": {"id": 501}, "project": {"id": 375, "owner": {"id": 776}, "assignee": {"id": 812}}, "task": {"id": 329, "owner": {"id": 938}, "assignee": {"id": 79}}, "job": {"id": 391, "assignee": {"id": 1197}}, "organization": {"id": 111}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 634}, "assignee": {"id": 532}, "project": {"id": 304, "owner": {"id": 747}, "assignee": {"id": 831}}, "task": {"id": 352, "owner": {"id": 906}, "assignee": {"id": 33}}, "job": {"id": 312, "assignee": {"id": 1158}}, "organization": {"id": 1285}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 631}, "assignee": {"id": 573}, "project": {"id": 343, "owner": {"id": 792}, "assignee": {"id": 898}}, "task": {"id": 323, "owner": {"id": 911}, "assignee": {"id": 68}}, "job": {"id": 335, "assignee": {"id": 1135}}, "organization": {"id": 1267}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 634}, "assignee": {"id": 513}, "project": {"id": 339, "owner": {"id": 701}, "assignee": {"id": 806}}, "task": {"id": 328, "owner": {"id": 933}, "assignee": {"id": 55}}, "job": {"id": 331, "assignee": {"id": 1181}}, "organization": {"id": 115}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 657}, "assignee": {"id": 543}, "project": {"id": 360, "owner": {"id": 717}, "assignee": {"id": 804}}, "task": {"id": 366, "owner": {"id": 971}, "assignee": {"id": 73}}, "job": {"id": 323, "assignee": {"id": 1129}}, "organization": {"id": 158}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 608}, "assignee": {"id": 505}, "project": {"id": 311, "owner": {"id": 786}, "assignee": {"id": 804}}, "task": {"id": 308, "owner": {"id": 965}, "assignee": {"id": 26}}, "job": {"id": 342, "assignee": {"id": 1129}}, "organization": {"id": 1289}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 674}, "assignee": {"id": 575}, "project": {"id": 342, "owner": {"id": 713}, "assignee": {"id": 867}}, "task": {"id": 345, "owner": {"id": 937}, "assignee": {"id": 7}}, "job": {"id": 332, "assignee": {"id": 1116}}, "organization": {"id": 1221}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 656}, "assignee": {"id": 594}, "project": {"id": 388, "owner": {"id": 729}, "assignee": {"id": 828}}, "task": {"id": 379, "owner": {"id": 966}, "assignee": {"id": 44}}, "job": {"id": 315, "assignee": {"id": 1123}}, "organization": {"id": 167}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 653}, "assignee": {"id": 590}, "project": {"id": 384, "owner": {"id": 765}, "assignee": {"id": 847}}, "task": {"id": 321, "owner": {"id": 964}, "assignee": {"id": 7}}, "job": {"id": 398, "assignee": {"id": 1137}}, "organization": {"id": 145}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 657}, "assignee": {"id": 584}, "project": {"id": 309, "owner": {"id": 715}, "assignee": {"id": 882}}, "task": {"id": 385, "owner": {"id": 901}, "assignee": {"id": 20}}, "job": {"id": 315, "assignee": {"id": 1125}}, "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": 29, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 695}, "assignee": {"id": 543}, "project": {"id": 393, "owner": {"id": 759}, "assignee": {"id": 837}}, "task": {"id": 301, "owner": {"id": 917}, "assignee": {"id": 29}}, "job": {"id": 349, "assignee": {"id": 1129}}, "organization": {"id": 1255}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 670}, "assignee": {"id": 543}, "project": {"id": 354, "owner": {"id": 709}, "assignee": {"id": 814}}, "task": {"id": 333, "owner": {"id": 932}, "assignee": {"id": 30}}, "job": {"id": 311, "assignee": {"id": 1143}}, "organization": {"id": 139}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 640}, "assignee": {"id": 527}, "project": {"id": 357, "owner": {"id": 743}, "assignee": {"id": 863}}, "task": {"id": 371, "owner": {"id": 951}, "assignee": {"id": 80}}, "job": {"id": 399, "assignee": {"id": 1124}}, "organization": {"id": 128}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 699}, "assignee": {"id": 584}, "project": {"id": 312, "owner": {"id": 713}, "assignee": {"id": 885}}, "task": {"id": 352, "owner": {"id": 987}, "assignee": {"id": 53}}, "job": {"id": 375, "assignee": {"id": 1163}}, "organization": {"id": 1273}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 689}, "assignee": {"id": 579}, "project": {"id": 395, "owner": {"id": 757}, "assignee": {"id": 820}}, "task": {"id": 394, "owner": {"id": 976}, "assignee": {"id": 6}}, "job": {"id": 347, "assignee": {"id": 1138}}, "organization": {"id": 1254}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 679}, "assignee": {"id": 594}, "project": {"id": 361, "owner": {"id": 726}, "assignee": {"id": 858}}, "task": {"id": 311, "owner": {"id": 956}, "assignee": {"id": 51}}, "job": {"id": 358, "assignee": {"id": 1138}}, "organization": {"id": 186}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 626}, "assignee": {"id": 522}, "project": {"id": 384, "owner": {"id": 794}, "assignee": {"id": 876}}, "task": {"id": 301, "owner": {"id": 980}, "assignee": {"id": 37}}, "job": {"id": 340, "assignee": {"id": 1103}}, "organization": {"id": 152}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 616}, "assignee": {"id": 529}, "project": {"id": 361, "owner": {"id": 734}, "assignee": {"id": 886}}, "task": {"id": 312, "owner": {"id": 937}, "assignee": {"id": 37}}, "job": {"id": 321, "assignee": {"id": 1142}}, "organization": {"id": 1233}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 682}, "assignee": {"id": 557}, "project": {"id": 307, "owner": {"id": 771}, "assignee": {"id": 884}}, "task": {"id": 366, "owner": {"id": 971}, "assignee": {"id": 90}}, "job": {"id": 368, "assignee": {"id": 1160}}, "organization": {"id": 1261}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 618}, "assignee": {"id": 598}, "project": {"id": 306, "owner": {"id": 737}, "assignee": {"id": 889}}, "task": {"id": 381, "owner": {"id": 952}, "assignee": {"id": 88}}, "job": {"id": 335, "assignee": {"id": 1112}}, "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": 89, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 623}, "assignee": {"id": 553}, "project": {"id": 399, "owner": {"id": 797}, "assignee": {"id": 887}}, "task": {"id": 368, "owner": {"id": 991}, "assignee": {"id": 89}}, "job": {"id": 321, "assignee": {"id": 1186}}, "organization": {"id": 110}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 606}, "assignee": {"id": 509}, "project": {"id": 319, "owner": {"id": 740}, "assignee": {"id": 805}}, "task": {"id": 348, "owner": {"id": 902}, "assignee": {"id": 4}}, "job": {"id": 304, "assignee": {"id": 1170}}, "organization": {"id": 1296}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 613}, "assignee": {"id": 512}, "project": {"id": 342, "owner": {"id": 735}, "assignee": {"id": 877}}, "task": {"id": 380, "owner": {"id": 948}, "assignee": {"id": 72}}, "job": {"id": 386, "assignee": {"id": 1118}}, "organization": {"id": 1265}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 613}, "assignee": {"id": 532}, "project": {"id": 366, "owner": {"id": 790}, "assignee": {"id": 830}}, "task": {"id": 325, "owner": {"id": 976}, "assignee": {"id": 55}}, "job": {"id": 397, "assignee": {"id": 1135}}, "organization": {"id": 112}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 611}, "assignee": {"id": 521}, "project": {"id": 368, "owner": {"id": 787}, "assignee": {"id": 809}}, "task": {"id": 351, "owner": {"id": 909}, "assignee": {"id": 15}}, "job": {"id": 372, "assignee": {"id": 1153}}, "organization": {"id": 118}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 686}, "assignee": {"id": 597}, "project": {"id": 373, "owner": {"id": 777}, "assignee": {"id": 876}}, "task": {"id": 348, "owner": {"id": 986}, "assignee": {"id": 58}}, "job": {"id": 309, "assignee": {"id": 1139}}, "organization": {"id": 1284}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 641}, "assignee": {"id": 599}, "project": {"id": 349, "owner": {"id": 742}, "assignee": {"id": 811}}, "task": {"id": 312, "owner": {"id": 962}, "assignee": {"id": 3}}, "job": {"id": 383, "assignee": {"id": 1196}}, "organization": {"id": 1224}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 600}, "assignee": {"id": 579}, "project": {"id": 300, "owner": {"id": 777}, "assignee": {"id": 828}}, "task": {"id": 326, "owner": {"id": 990}, "assignee": {"id": 32}}, "job": {"id": 365, "assignee": {"id": 1123}}, "organization": {"id": 175}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 638}, "assignee": {"id": 583}, "project": {"id": 336, "owner": {"id": 719}, "assignee": {"id": 862}}, "task": {"id": 399, "owner": {"id": 930}, "assignee": {"id": 73}}, "job": {"id": 380, "assignee": {"id": 1157}}, "organization": {"id": 131}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 600}, "assignee": {"id": 555}, "project": {"id": 350, "owner": {"id": 700}, "assignee": {"id": 818}}, "task": {"id": 336, "owner": {"id": 955}, "assignee": {"id": 48}}, "job": {"id": 308, "assignee": {"id": 1106}}, "organization": {"id": 1204}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 666}, "assignee": {"id": 525}, "project": {"id": 306, "owner": {"id": 706}, "assignee": {"id": 853}}, "task": {"id": 379, "owner": {"id": 981}, "assignee": {"id": 15}}, "job": {"id": 360, "assignee": {"id": 1145}}, "organization": {"id": 1252}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 661}, "assignee": {"id": 591}, "project": {"id": 377, "owner": {"id": 713}, "assignee": {"id": 838}}, "task": {"id": 364, "owner": {"id": 912}, "assignee": {"id": 39}}, "job": {"id": 343, "assignee": {"id": 1112}}, "organization": {"id": 190}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 628}, "assignee": {"id": 563}, "project": {"id": 310, "owner": {"id": 746}, "assignee": {"id": 834}}, "task": {"id": 309, "owner": {"id": 994}, "assignee": {"id": 14}}, "job": {"id": 393, "assignee": {"id": 1111}}, "organization": {"id": 156}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 666}, "assignee": {"id": 516}, "project": {"id": 303, "owner": {"id": 734}, "assignee": {"id": 818}}, "task": {"id": 351, "owner": {"id": 995}, "assignee": {"id": 29}}, "job": {"id": 345, "assignee": {"id": 1124}}, "organization": {"id": 1201}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 615}, "assignee": {"id": 527}, "project": {"id": 329, "owner": {"id": 716}, "assignee": {"id": 874}}, "task": {"id": 399, "owner": {"id": 984}, "assignee": {"id": 14}}, "job": {"id": 359, "assignee": {"id": 1153}}, "organization": {"id": 1231}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 659}, "assignee": {"id": 555}, "project": {"id": 329, "owner": {"id": 708}, "assignee": {"id": 850}}, "task": {"id": 345, "owner": {"id": 999}, "assignee": {"id": 1072}}, "job": {"id": 382, "assignee": {"id": 85}}, "organization": {"id": 160}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 627}, "assignee": {"id": 541}, "project": {"id": 358, "owner": {"id": 734}, "assignee": {"id": 894}}, "task": {"id": 327, "owner": {"id": 988}, "assignee": {"id": 1023}}, "job": {"id": 398, "assignee": {"id": 98}}, "organization": {"id": 167}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 624}, "assignee": {"id": 598}, "project": {"id": 385, "owner": {"id": 735}, "assignee": {"id": 831}}, "task": {"id": 329, "owner": {"id": 932}, "assignee": {"id": 1088}}, "job": {"id": 337, "assignee": {"id": 78}}, "organization": {"id": 1293}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 605}, "assignee": {"id": 517}, "project": {"id": 375, "owner": {"id": 777}, "assignee": {"id": 839}}, "task": {"id": 304, "owner": {"id": 989}, "assignee": {"id": 1047}}, "job": {"id": 335, "assignee": {"id": 16}}, "organization": {"id": 1248}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 660}, "assignee": {"id": 581}, "project": {"id": 330, "owner": {"id": 745}, "assignee": {"id": 897}}, "task": {"id": 332, "owner": {"id": 972}, "assignee": {"id": 1035}}, "job": {"id": 396, "assignee": {"id": 89}}, "organization": {"id": 112}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 674}, "assignee": {"id": 593}, "project": {"id": 304, "owner": {"id": 726}, "assignee": {"id": 821}}, "task": {"id": 381, "owner": {"id": 923}, "assignee": {"id": 1098}}, "job": {"id": 377, "assignee": {"id": 1}}, "organization": {"id": 126}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 692}, "assignee": {"id": 575}, "project": {"id": 356, "owner": {"id": 734}, "assignee": {"id": 896}}, "task": {"id": 301, "owner": {"id": 909}, "assignee": {"id": 1063}}, "job": {"id": 377, "assignee": {"id": 97}}, "organization": {"id": 1281}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 668}, "assignee": {"id": 563}, "project": {"id": 348, "owner": {"id": 768}, "assignee": {"id": 838}}, "task": {"id": 380, "owner": {"id": 999}, "assignee": {"id": 1041}}, "job": {"id": 306, "assignee": {"id": 29}}, "organization": {"id": 1245}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 626}, "assignee": {"id": 511}, "project": {"id": 305, "owner": {"id": 790}, "assignee": {"id": 828}}, "task": {"id": 364, "owner": {"id": 937}, "assignee": {"id": 1043}}, "job": {"id": 392, "assignee": {"id": 65}}, "organization": {"id": 108}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 613}, "assignee": {"id": 569}, "project": {"id": 337, "owner": {"id": 744}, "assignee": {"id": 824}}, "task": {"id": 392, "owner": {"id": 930}, "assignee": {"id": 1047}}, "job": {"id": 344, "assignee": {"id": 51}}, "organization": {"id": 171}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 658}, "assignee": {"id": 597}, "project": {"id": 355, "owner": {"id": 745}, "assignee": {"id": 850}}, "task": {"id": 339, "owner": {"id": 923}, "assignee": {"id": 1026}}, "job": {"id": 395, "assignee": {"id": 76}}, "organization": {"id": 1239}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 649}, "assignee": {"id": 563}, "project": {"id": 301, "owner": {"id": 723}, "assignee": {"id": 889}}, "task": {"id": 322, "owner": {"id": 977}, "assignee": {"id": 1097}}, "job": {"id": 333, "assignee": {"id": 37}}, "organization": {"id": 1207}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 614}, "assignee": {"id": 587}, "project": {"id": 329, "owner": {"id": 791}, "assignee": {"id": 871}}, "task": {"id": 355, "owner": {"id": 978}, "assignee": {"id": 1079}}, "job": {"id": 307, "assignee": {"id": 16}}, "organization": {"id": 150}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 650}, "assignee": {"id": 555}, "project": {"id": 367, "owner": {"id": 797}, "assignee": {"id": 869}}, "task": {"id": 391, "owner": {"id": 977}, "assignee": {"id": 1041}}, "job": {"id": 389, "assignee": {"id": 23}}, "organization": {"id": 129}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 678}, "assignee": {"id": 597}, "project": {"id": 388, "owner": {"id": 761}, "assignee": {"id": 834}}, "task": {"id": 356, "owner": {"id": 955}, "assignee": {"id": 1028}}, "job": {"id": 346, "assignee": {"id": 85}}, "organization": {"id": 1289}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 649}, "assignee": {"id": 522}, "project": {"id": 379, "owner": {"id": 754}, "assignee": {"id": 843}}, "task": {"id": 316, "owner": {"id": 948}, "assignee": {"id": 1062}}, "job": {"id": 391, "assignee": {"id": 74}}, "organization": {"id": 1256}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 646}, "assignee": {"id": 588}, "project": {"id": 340, "owner": {"id": 738}, "assignee": {"id": 805}}, "task": {"id": 348, "owner": {"id": 909}, "assignee": {"id": 1073}}, "job": {"id": 306, "assignee": {"id": 4}}, "organization": {"id": 179}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 670}, "assignee": {"id": 558}, "project": {"id": 306, "owner": {"id": 727}, "assignee": {"id": 830}}, "task": {"id": 326, "owner": {"id": 908}, "assignee": {"id": 1036}}, "job": {"id": 371, "assignee": {"id": 56}}, "organization": {"id": 159}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 680}, "assignee": {"id": 547}, "project": {"id": 352, "owner": {"id": 700}, "assignee": {"id": 847}}, "task": {"id": 328, "owner": {"id": 921}, "assignee": {"id": 1001}}, "job": {"id": 337, "assignee": {"id": 20}}, "organization": {"id": 1216}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 652}, "assignee": {"id": 542}, "project": {"id": 383, "owner": {"id": 773}, "assignee": {"id": 888}}, "task": {"id": 387, "owner": {"id": 902}, "assignee": {"id": 1087}}, "job": {"id": 375, "assignee": {"id": 94}}, "organization": {"id": 1291}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 643}, "assignee": {"id": 542}, "project": {"id": 366, "owner": {"id": 724}, "assignee": {"id": 822}}, "task": {"id": 352, "owner": {"id": 905}, "assignee": {"id": 1006}}, "job": {"id": 362, "assignee": {"id": 68}}, "organization": {"id": 198}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 695}, "assignee": {"id": 565}, "project": {"id": 369, "owner": {"id": 798}, "assignee": {"id": 805}}, "task": {"id": 355, "owner": {"id": 988}, "assignee": {"id": 1004}}, "job": {"id": 342, "assignee": {"id": 27}}, "organization": {"id": 178}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 671}, "assignee": {"id": 576}, "project": {"id": 305, "owner": {"id": 792}, "assignee": {"id": 895}}, "task": {"id": 383, "owner": {"id": 929}, "assignee": {"id": 1020}}, "job": {"id": 301, "assignee": {"id": 67}}, "organization": {"id": 1292}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 654}, "assignee": {"id": 582}, "project": {"id": 363, "owner": {"id": 766}, "assignee": {"id": 886}}, "task": {"id": 370, "owner": {"id": 981}, "assignee": {"id": 1065}}, "job": {"id": 354, "assignee": {"id": 53}}, "organization": {"id": 1279}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 631}, "assignee": {"id": 590}, "project": {"id": 354, "owner": {"id": 724}, "assignee": {"id": 853}}, "task": {"id": 340, "owner": {"id": 952}, "assignee": {"id": 1038}}, "job": {"id": 354, "assignee": {"id": 8}}, "organization": {"id": 182}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 618}, "assignee": {"id": 528}, "project": {"id": 378, "owner": {"id": 754}, "assignee": {"id": 852}}, "task": {"id": 368, "owner": {"id": 996}, "assignee": {"id": 1074}}, "job": {"id": 362, "assignee": {"id": 48}}, "organization": {"id": 167}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 627}, "assignee": {"id": 504}, "project": {"id": 324, "owner": {"id": 750}, "assignee": {"id": 811}}, "task": {"id": 373, "owner": {"id": 927}, "assignee": {"id": 1086}}, "job": {"id": 316, "assignee": {"id": 98}}, "organization": {"id": 1273}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 691}, "assignee": {"id": 581}, "project": {"id": 310, "owner": {"id": 777}, "assignee": {"id": 829}}, "task": {"id": 379, "owner": {"id": 914}, "assignee": {"id": 1092}}, "job": {"id": 340, "assignee": {"id": 15}}, "organization": {"id": 1237}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 684}, "assignee": {"id": 523}, "project": {"id": 368, "owner": {"id": 700}, "assignee": {"id": 863}}, "task": {"id": 330, "owner": {"id": 982}, "assignee": {"id": 1098}}, "job": {"id": 371, "assignee": {"id": 39}}, "organization": {"id": 185}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 664}, "assignee": {"id": 537}, "project": {"id": 363, "owner": {"id": 752}, "assignee": {"id": 830}}, "task": {"id": 362, "owner": {"id": 920}, "assignee": {"id": 1090}}, "job": {"id": 321, "assignee": {"id": 69}}, "organization": {"id": 117}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 606}, "assignee": {"id": 534}, "project": {"id": 390, "owner": {"id": 700}, "assignee": {"id": 852}}, "task": {"id": 330, "owner": {"id": 935}, "assignee": {"id": 1045}}, "job": {"id": 309, "assignee": {"id": 81}}, "organization": {"id": 1208}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 694}, "assignee": {"id": 548}, "project": {"id": 343, "owner": {"id": 769}, "assignee": {"id": 872}}, "task": {"id": 322, "owner": {"id": 971}, "assignee": {"id": 1077}}, "job": {"id": 310, "assignee": {"id": 49}}, "organization": {"id": 1250}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 654}, "assignee": {"id": 592}, "project": {"id": 356, "owner": {"id": 791}, "assignee": {"id": 871}}, "task": {"id": 333, "owner": {"id": 975}, "assignee": {"id": 1089}}, "job": {"id": 316, "assignee": {"id": 67}}, "organization": {"id": 196}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 648}, "assignee": {"id": 532}, "project": {"id": 353, "owner": {"id": 794}, "assignee": {"id": 892}}, "task": {"id": 318, "owner": {"id": 923}, "assignee": {"id": 1076}}, "job": {"id": 398, "assignee": {"id": 23}}, "organization": {"id": 143}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 600}, "assignee": {"id": 556}, "project": {"id": 399, "owner": {"id": 779}, "assignee": {"id": 891}}, "task": {"id": 348, "owner": {"id": 944}, "assignee": {"id": 1031}}, "job": {"id": 343, "assignee": {"id": 9}}, "organization": {"id": 1205}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 685}, "assignee": {"id": 545}, "project": {"id": 301, "owner": {"id": 792}, "assignee": {"id": 857}}, "task": {"id": 358, "owner": {"id": 907}, "assignee": {"id": 1016}}, "job": {"id": 355, "assignee": {"id": 79}}, "organization": {"id": 1212}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 642}, "assignee": {"id": 512}, "project": {"id": 383, "owner": {"id": 717}, "assignee": {"id": 880}}, "task": {"id": 337, "owner": {"id": 958}, "assignee": {"id": 1062}}, "job": {"id": 327, "assignee": {"id": 9}}, "organization": {"id": 116}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 654}, "assignee": {"id": 552}, "project": {"id": 315, "owner": {"id": 738}, "assignee": {"id": 805}}, "task": {"id": 382, "owner": {"id": 910}, "assignee": {"id": 1019}}, "job": {"id": 344, "assignee": {"id": 91}}, "organization": {"id": 138}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 660}, "assignee": {"id": 590}, "project": {"id": 385, "owner": {"id": 755}, "assignee": {"id": 833}}, "task": {"id": 357, "owner": {"id": 975}, "assignee": {"id": 1019}}, "job": {"id": 358, "assignee": {"id": 53}}, "organization": {"id": 1202}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 676}, "assignee": {"id": 547}, "project": {"id": 392, "owner": {"id": 749}, "assignee": {"id": 831}}, "task": {"id": 375, "owner": {"id": 960}, "assignee": {"id": 1078}}, "job": {"id": 359, "assignee": {"id": 41}}, "organization": {"id": 1285}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 615}, "assignee": {"id": 517}, "project": {"id": 354, "owner": {"id": 730}, "assignee": {"id": 829}}, "task": {"id": 362, "owner": {"id": 967}, "assignee": {"id": 1098}}, "job": {"id": 395, "assignee": {"id": 19}}, "organization": {"id": 181}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 681}, "assignee": {"id": 572}, "project": {"id": 387, "owner": {"id": 754}, "assignee": {"id": 892}}, "task": {"id": 354, "owner": {"id": 928}, "assignee": {"id": 1035}}, "job": {"id": 376, "assignee": {"id": 2}}, "organization": {"id": 173}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 643}, "assignee": {"id": 550}, "project": {"id": 373, "owner": {"id": 725}, "assignee": {"id": 805}}, "task": {"id": 369, "owner": {"id": 959}, "assignee": {"id": 1095}}, "job": {"id": 386, "assignee": {"id": 59}}, "organization": {"id": 1221}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 640}, "assignee": {"id": 502}, "project": {"id": 342, "owner": {"id": 741}, "assignee": {"id": 885}}, "task": {"id": 397, "owner": {"id": 951}, "assignee": {"id": 1091}}, "job": {"id": 372, "assignee": {"id": 75}}, "organization": {"id": 1231}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 679}, "assignee": {"id": 596}, "project": {"id": 344, "owner": {"id": 755}, "assignee": {"id": 889}}, "task": {"id": 367, "owner": {"id": 981}, "assignee": {"id": 1070}}, "job": {"id": 367, "assignee": {"id": 97}}, "organization": {"id": 159}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 680}, "assignee": {"id": 559}, "project": {"id": 302, "owner": {"id": 787}, "assignee": {"id": 810}}, "task": {"id": 333, "owner": {"id": 925}, "assignee": {"id": 1041}}, "job": {"id": 334, "assignee": {"id": 13}}, "organization": {"id": 127}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 690}, "assignee": {"id": 500}, "project": {"id": 321, "owner": {"id": 726}, "assignee": {"id": 863}}, "task": {"id": 327, "owner": {"id": 971}, "assignee": {"id": 1084}}, "job": {"id": 372, "assignee": {"id": 96}}, "organization": {"id": 1231}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 697}, "assignee": {"id": 553}, "project": {"id": 357, "owner": {"id": 741}, "assignee": {"id": 882}}, "task": {"id": 316, "owner": {"id": 922}, "assignee": {"id": 1010}}, "job": {"id": 318, "assignee": {"id": 11}}, "organization": {"id": 1279}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 650}, "assignee": {"id": 506}, "project": {"id": 343, "owner": {"id": 751}, "assignee": {"id": 842}}, "task": {"id": 335, "owner": {"id": 941}, "assignee": {"id": 1084}}, "job": {"id": 347, "assignee": {"id": 63}}, "organization": {"id": 177}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 634}, "assignee": {"id": 545}, "project": {"id": 314, "owner": {"id": 797}, "assignee": {"id": 800}}, "task": {"id": 372, "owner": {"id": 985}, "assignee": {"id": 1046}}, "job": {"id": 330, "assignee": {"id": 82}}, "organization": {"id": 193}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 664}, "assignee": {"id": 539}, "project": {"id": 301, "owner": {"id": 722}, "assignee": {"id": 879}}, "task": {"id": 377, "owner": {"id": 928}, "assignee": {"id": 1080}}, "job": {"id": 328, "assignee": {"id": 86}}, "organization": {"id": 1221}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 685}, "assignee": {"id": 504}, "project": {"id": 309, "owner": {"id": 793}, "assignee": {"id": 893}}, "task": {"id": 369, "owner": {"id": 977}, "assignee": {"id": 1024}}, "job": {"id": 383, "assignee": {"id": 51}}, "organization": {"id": 1259}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 695}, "assignee": {"id": 531}, "project": {"id": 338, "owner": {"id": 741}, "assignee": {"id": 846}}, "task": {"id": 384, "owner": {"id": 913}, "assignee": {"id": 1093}}, "job": {"id": 329, "assignee": {"id": 88}}, "organization": {"id": 147}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 628}, "assignee": {"id": 547}, "project": {"id": 378, "owner": {"id": 788}, "assignee": {"id": 834}}, "task": {"id": 385, "owner": {"id": 994}, "assignee": {"id": 1082}}, "job": {"id": 371, "assignee": {"id": 20}}, "organization": {"id": 154}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 669}, "assignee": {"id": 508}, "project": {"id": 351, "owner": {"id": 712}, "assignee": {"id": 820}}, "task": {"id": 350, "owner": {"id": 914}, "assignee": {"id": 1068}}, "job": {"id": 340, "assignee": {"id": 32}}, "organization": {"id": 1281}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 604}, "assignee": {"id": 580}, "project": {"id": 326, "owner": {"id": 777}, "assignee": {"id": 845}}, "task": {"id": 338, "owner": {"id": 918}, "assignee": {"id": 1034}}, "job": {"id": 352, "assignee": {"id": 28}}, "organization": {"id": 1212}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 644}, "assignee": {"id": 535}, "project": {"id": 381, "owner": {"id": 765}, "assignee": {"id": 867}}, "task": {"id": 334, "owner": {"id": 968}, "assignee": {"id": 1054}}, "job": {"id": 336, "assignee": {"id": 9}}, "organization": {"id": 122}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 656}, "assignee": {"id": 527}, "project": {"id": 342, "owner": {"id": 759}, "assignee": {"id": 822}}, "task": {"id": 363, "owner": {"id": 951}, "assignee": {"id": 1083}}, "job": {"id": 317, "assignee": {"id": 80}}, "organization": {"id": 141}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 604}, "assignee": {"id": 531}, "project": {"id": 306, "owner": {"id": 793}, "assignee": {"id": 820}}, "task": {"id": 352, "owner": {"id": 976}, "assignee": {"id": 1049}}, "job": {"id": 396, "assignee": {"id": 80}}, "organization": {"id": 1248}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 634}, "assignee": {"id": 566}, "project": {"id": 324, "owner": {"id": 769}, "assignee": {"id": 863}}, "task": {"id": 327, "owner": {"id": 910}, "assignee": {"id": 1089}}, "job": {"id": 354, "assignee": {"id": 17}}, "organization": {"id": 1257}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 656}, "assignee": {"id": 582}, "project": {"id": 392, "owner": {"id": 719}, "assignee": {"id": 809}}, "task": {"id": 385, "owner": {"id": 959}, "assignee": {"id": 1033}}, "job": {"id": 383, "assignee": {"id": 93}}, "organization": {"id": 168}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 629}, "assignee": {"id": 564}, "project": {"id": 318, "owner": {"id": 775}, "assignee": {"id": 885}}, "task": {"id": 354, "owner": {"id": 980}, "assignee": {"id": 1076}}, "job": {"id": 303, "assignee": {"id": 5}}, "organization": {"id": 196}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 637}, "assignee": {"id": 550}, "project": {"id": 363, "owner": {"id": 700}, "assignee": {"id": 808}}, "task": {"id": 340, "owner": {"id": 941}, "assignee": {"id": 1087}}, "job": {"id": 352, "assignee": {"id": 11}}, "organization": {"id": 1270}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 654}, "assignee": {"id": 524}, "project": {"id": 374, "owner": {"id": 718}, "assignee": {"id": 869}}, "task": {"id": 397, "owner": {"id": 928}, "assignee": {"id": 1001}}, "job": {"id": 322, "assignee": {"id": 64}}, "organization": {"id": 1273}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 659}, "assignee": {"id": 531}, "project": {"id": 300, "owner": {"id": 707}, "assignee": {"id": 884}}, "task": {"id": 326, "owner": {"id": 947}, "assignee": {"id": 1042}}, "job": {"id": 337, "assignee": {"id": 20}}, "organization": {"id": 149}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 660}, "assignee": {"id": 594}, "project": {"id": 324, "owner": {"id": 737}, "assignee": {"id": 896}}, "task": {"id": 392, "owner": {"id": 946}, "assignee": {"id": 1017}}, "job": {"id": 357, "assignee": {"id": 52}}, "organization": {"id": 161}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 657}, "assignee": {"id": 555}, "project": {"id": 396, "owner": {"id": 749}, "assignee": {"id": 810}}, "task": {"id": 393, "owner": {"id": 972}, "assignee": {"id": 1053}}, "job": {"id": 359, "assignee": {"id": 99}}, "organization": {"id": 1285}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 608}, "assignee": {"id": 577}, "project": {"id": 334, "owner": {"id": 755}, "assignee": {"id": 821}}, "task": {"id": 377, "owner": {"id": 989}, "assignee": {"id": 1061}}, "job": {"id": 391, "assignee": {"id": 6}}, "organization": {"id": 1205}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 661}, "assignee": {"id": 524}, "project": {"id": 369, "owner": {"id": 785}, "assignee": {"id": 829}}, "task": {"id": 331, "owner": {"id": 979}, "assignee": {"id": 1049}}, "job": {"id": 332, "assignee": {"id": 19}}, "organization": {"id": 173}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 660}, "assignee": {"id": 569}, "project": {"id": 378, "owner": {"id": 746}, "assignee": {"id": 848}}, "task": {"id": 356, "owner": {"id": 977}, "assignee": {"id": 1087}}, "job": {"id": 388, "assignee": {"id": 1}}, "organization": {"id": 104}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 621}, "assignee": {"id": 550}, "project": {"id": 398, "owner": {"id": 733}, "assignee": {"id": 847}}, "task": {"id": 323, "owner": {"id": 960}, "assignee": {"id": 1016}}, "job": {"id": 330, "assignee": {"id": 37}}, "organization": {"id": 1260}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 652}, "assignee": {"id": 524}, "project": {"id": 369, "owner": {"id": 777}, "assignee": {"id": 851}}, "task": {"id": 323, "owner": {"id": 937}, "assignee": {"id": 1024}}, "job": {"id": 359, "assignee": {"id": 29}}, "organization": {"id": 1295}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 666}, "assignee": {"id": 593}, "project": {"id": 364, "owner": {"id": 740}, "assignee": {"id": 864}}, "task": {"id": 350, "owner": {"id": 937}, "assignee": {"id": 1093}}, "job": {"id": 369, "assignee": {"id": 98}}, "organization": {"id": 138}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 602}, "assignee": {"id": 544}, "project": {"id": 390, "owner": {"id": 779}, "assignee": {"id": 844}}, "task": {"id": 338, "owner": {"id": 955}, "assignee": {"id": 1082}}, "job": {"id": 356, "assignee": {"id": 42}}, "organization": {"id": 154}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 657}, "assignee": {"id": 524}, "project": {"id": 354, "owner": {"id": 707}, "assignee": {"id": 832}}, "task": {"id": 307, "owner": {"id": 951}, "assignee": {"id": 1072}}, "job": {"id": 353, "assignee": {"id": 78}}, "organization": {"id": 1268}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 639}, "assignee": {"id": 577}, "project": {"id": 390, "owner": {"id": 788}, "assignee": {"id": 810}}, "task": {"id": 366, "owner": {"id": 988}, "assignee": {"id": 1067}}, "job": {"id": 306, "assignee": {"id": 89}}, "organization": {"id": 1275}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 693}, "assignee": {"id": 577}, "project": {"id": 332, "owner": {"id": 772}, "assignee": {"id": 805}}, "task": {"id": 361, "owner": {"id": 904}, "assignee": {"id": 1071}}, "job": {"id": 396, "assignee": {"id": 28}}, "organization": {"id": 112}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 607}, "assignee": {"id": 519}, "project": {"id": 358, "owner": {"id": 754}, "assignee": {"id": 889}}, "task": {"id": 312, "owner": {"id": 931}, "assignee": {"id": 1052}}, "job": {"id": 313, "assignee": {"id": 50}}, "organization": {"id": 164}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 615}, "assignee": {"id": 589}, "project": {"id": 374, "owner": {"id": 790}, "assignee": {"id": 808}}, "task": {"id": 344, "owner": {"id": 947}, "assignee": {"id": 1080}}, "job": {"id": 377, "assignee": {"id": 97}}, "organization": {"id": 1246}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 697}, "assignee": {"id": 545}, "project": {"id": 313, "owner": {"id": 754}, "assignee": {"id": 800}}, "task": {"id": 334, "owner": {"id": 978}, "assignee": {"id": 1063}}, "job": {"id": 399, "assignee": {"id": 85}}, "organization": {"id": 1265}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 688}, "assignee": {"id": 535}, "project": {"id": 301, "owner": {"id": 786}, "assignee": {"id": 848}}, "task": {"id": 389, "owner": {"id": 913}, "assignee": {"id": 1068}}, "job": {"id": 329, "assignee": {"id": 72}}, "organization": {"id": 184}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 651}, "assignee": {"id": 524}, "project": {"id": 310, "owner": {"id": 727}, "assignee": {"id": 833}}, "task": {"id": 312, "owner": {"id": 914}, "assignee": {"id": 1090}}, "job": {"id": 336, "assignee": {"id": 73}}, "organization": {"id": 143}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 685}, "assignee": {"id": 592}, "project": {"id": 334, "owner": {"id": 771}, "assignee": {"id": 885}}, "task": {"id": 399, "owner": {"id": 997}, "assignee": {"id": 1019}}, "job": {"id": 358, "assignee": {"id": 52}}, "organization": {"id": 1218}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 674}, "assignee": {"id": 595}, "project": {"id": 320, "owner": {"id": 746}, "assignee": {"id": 838}}, "task": {"id": 350, "owner": {"id": 901}, "assignee": {"id": 1034}}, "job": {"id": 305, "assignee": {"id": 74}}, "organization": {"id": 1221}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 636}, "assignee": {"id": 588}, "project": {"id": 308, "owner": {"id": 779}, "assignee": {"id": 894}}, "task": {"id": 333, "owner": {"id": 962}, "assignee": {"id": 1002}}, "job": {"id": 332, "assignee": {"id": 52}}, "organization": {"id": 164}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 674}, "assignee": {"id": 569}, "project": {"id": 336, "owner": {"id": 798}, "assignee": {"id": 829}}, "task": {"id": 380, "owner": {"id": 937}, "assignee": {"id": 1049}}, "job": {"id": 307, "assignee": {"id": 4}}, "organization": {"id": 165}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 665}, "assignee": {"id": 588}, "project": {"id": 349, "owner": {"id": 791}, "assignee": {"id": 852}}, "task": {"id": 324, "owner": {"id": 967}, "assignee": {"id": 1027}}, "job": {"id": 391, "assignee": {"id": 68}}, "organization": {"id": 1204}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 696}, "assignee": {"id": 567}, "project": {"id": 336, "owner": {"id": 713}, "assignee": {"id": 886}}, "task": {"id": 391, "owner": {"id": 927}, "assignee": {"id": 1007}}, "job": {"id": 362, "assignee": {"id": 15}}, "organization": {"id": 1222}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 655}, "assignee": {"id": 556}, "project": {"id": 344, "owner": {"id": 725}, "assignee": {"id": 879}}, "task": {"id": 391, "owner": {"id": 966}, "assignee": {"id": 1095}}, "job": {"id": 323, "assignee": {"id": 49}}, "organization": {"id": 122}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 678}, "assignee": {"id": 506}, "project": {"id": 381, "owner": {"id": 724}, "assignee": {"id": 895}}, "task": {"id": 311, "owner": {"id": 932}, "assignee": {"id": 1095}}, "job": {"id": 381, "assignee": {"id": 28}}, "organization": {"id": 162}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 654}, "assignee": {"id": 534}, "project": {"id": 370, "owner": {"id": 790}, "assignee": {"id": 821}}, "task": {"id": 328, "owner": {"id": 907}, "assignee": {"id": 1013}}, "job": {"id": 389, "assignee": {"id": 29}}, "organization": {"id": 1238}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 678}, "assignee": {"id": 530}, "project": {"id": 370, "owner": {"id": 776}, "assignee": {"id": 816}}, "task": {"id": 343, "owner": {"id": 973}, "assignee": {"id": 1039}}, "job": {"id": 393, "assignee": {"id": 82}}, "organization": {"id": 1207}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 641}, "assignee": {"id": 540}, "project": {"id": 317, "owner": {"id": 706}, "assignee": {"id": 878}}, "task": {"id": 369, "owner": {"id": 940}, "assignee": {"id": 1073}}, "job": {"id": 362, "assignee": {"id": 39}}, "organization": {"id": 125}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 688}, "assignee": {"id": 561}, "project": {"id": 308, "owner": {"id": 715}, "assignee": {"id": 830}}, "task": {"id": 337, "owner": {"id": 960}, "assignee": {"id": 1008}}, "job": {"id": 311, "assignee": {"id": 92}}, "organization": {"id": 112}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 642}, "assignee": {"id": 531}, "project": {"id": 349, "owner": {"id": 751}, "assignee": {"id": 871}}, "task": {"id": 322, "owner": {"id": 989}, "assignee": {"id": 1099}}, "job": {"id": 307, "assignee": {"id": 53}}, "organization": {"id": 1233}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 696}, "assignee": {"id": 520}, "project": {"id": 305, "owner": {"id": 794}, "assignee": {"id": 822}}, "task": {"id": 366, "owner": {"id": 915}, "assignee": {"id": 1033}}, "job": {"id": 357, "assignee": {"id": 33}}, "organization": {"id": 1259}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 667}, "assignee": {"id": 554}, "project": {"id": 321, "owner": {"id": 753}, "assignee": {"id": 880}}, "task": {"id": 364, "owner": {"id": 923}, "assignee": {"id": 1038}}, "job": {"id": 339, "assignee": {"id": 13}}, "organization": {"id": 146}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 698}, "assignee": {"id": 598}, "project": {"id": 304, "owner": {"id": 780}, "assignee": {"id": 823}}, "task": {"id": 342, "owner": {"id": 905}, "assignee": {"id": 1071}}, "job": {"id": 314, "assignee": {"id": 0}}, "organization": {"id": 154}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 694}, "assignee": {"id": 565}, "project": {"id": 305, "owner": {"id": 706}, "assignee": {"id": 858}}, "task": {"id": 316, "owner": {"id": 970}, "assignee": {"id": 1048}}, "job": {"id": 371, "assignee": {"id": 40}}, "organization": {"id": 1216}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 607}, "assignee": {"id": 572}, "project": {"id": 367, "owner": {"id": 759}, "assignee": {"id": 806}}, "task": {"id": 334, "owner": {"id": 999}, "assignee": {"id": 1035}}, "job": {"id": 341, "assignee": {"id": 47}}, "organization": {"id": 1205}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 44}, "assignee": {"id": 571}, "project": {"id": 359, "owner": {"id": 759}, "assignee": {"id": 873}}, "task": {"id": 377, "owner": {"id": 900}, "assignee": {"id": 1069}}, "job": {"id": 357, "assignee": {"id": 1106}}, "organization": {"id": 100}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 78}, "assignee": {"id": 582}, "project": {"id": 310, "owner": {"id": 791}, "assignee": {"id": 845}}, "task": {"id": 394, "owner": {"id": 929}, "assignee": {"id": 1035}}, "job": {"id": 345, "assignee": {"id": 1122}}, "organization": {"id": 150}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 21}, "assignee": {"id": 553}, "project": {"id": 348, "owner": {"id": 715}, "assignee": {"id": 866}}, "task": {"id": 321, "owner": {"id": 945}, "assignee": {"id": 1036}}, "job": {"id": 341, "assignee": {"id": 1146}}, "organization": {"id": 1219}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 33}, "assignee": {"id": 548}, "project": {"id": 315, "owner": {"id": 790}, "assignee": {"id": 846}}, "task": {"id": 366, "owner": {"id": 960}, "assignee": {"id": 1051}}, "job": {"id": 319, "assignee": {"id": 1189}}, "organization": {"id": 1222}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 14}, "assignee": {"id": 541}, "project": {"id": 371, "owner": {"id": 758}, "assignee": {"id": 891}}, "task": {"id": 341, "owner": {"id": 926}, "assignee": {"id": 1032}}, "job": {"id": 389, "assignee": {"id": 1181}}, "organization": {"id": 105}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 46}, "assignee": {"id": 537}, "project": {"id": 322, "owner": {"id": 737}, "assignee": {"id": 819}}, "task": {"id": 380, "owner": {"id": 920}, "assignee": {"id": 1002}}, "job": {"id": 361, "assignee": {"id": 1121}}, "organization": {"id": 174}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 20}, "assignee": {"id": 540}, "project": {"id": 362, "owner": {"id": 755}, "assignee": {"id": 829}}, "task": {"id": 369, "owner": {"id": 987}, "assignee": {"id": 1048}}, "job": {"id": 308, "assignee": {"id": 1175}}, "organization": {"id": 1260}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 31}, "assignee": {"id": 586}, "project": {"id": 339, "owner": {"id": 763}, "assignee": {"id": 822}}, "task": {"id": 315, "owner": {"id": 931}, "assignee": {"id": 1032}}, "job": {"id": 378, "assignee": {"id": 1169}}, "organization": {"id": 1276}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 68}, "assignee": {"id": 507}, "project": {"id": 318, "owner": {"id": 783}, "assignee": {"id": 829}}, "task": {"id": 375, "owner": {"id": 908}, "assignee": {"id": 1010}}, "job": {"id": 317, "assignee": {"id": 1113}}, "organization": {"id": 197}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 4}, "assignee": {"id": 538}, "project": {"id": 337, "owner": {"id": 723}, "assignee": {"id": 829}}, "task": {"id": 383, "owner": {"id": 902}, "assignee": {"id": 1069}}, "job": {"id": 397, "assignee": {"id": 1163}}, "organization": {"id": 193}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 22}, "assignee": {"id": 538}, "project": {"id": 351, "owner": {"id": 777}, "assignee": {"id": 880}}, "task": {"id": 342, "owner": {"id": 996}, "assignee": {"id": 1013}}, "job": {"id": 321, "assignee": {"id": 1137}}, "organization": {"id": 1283}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 95}, "assignee": {"id": 523}, "project": {"id": 317, "owner": {"id": 703}, "assignee": {"id": 870}}, "task": {"id": 371, "owner": {"id": 940}, "assignee": {"id": 1080}}, "job": {"id": 353, "assignee": {"id": 1158}}, "organization": {"id": 1218}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 32}, "assignee": {"id": 581}, "project": {"id": 372, "owner": {"id": 702}, "assignee": {"id": 855}}, "task": {"id": 397, "owner": {"id": 997}, "assignee": {"id": 1059}}, "job": {"id": 328, "assignee": {"id": 1181}}, "organization": {"id": 189}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 86}, "assignee": {"id": 565}, "project": {"id": 372, "owner": {"id": 747}, "assignee": {"id": 876}}, "task": {"id": 368, "owner": {"id": 953}, "assignee": {"id": 1048}}, "job": {"id": 393, "assignee": {"id": 1111}}, "organization": {"id": 174}}} +} + +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": 113, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 60}, "assignee": {"id": 574}, "project": {"id": 354, "owner": {"id": 733}, "assignee": {"id": 892}}, "task": {"id": 392, "owner": {"id": 929}, "assignee": {"id": 1086}}, "job": {"id": 330, "assignee": {"id": 1102}}, "organization": {"id": 1217}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 96}, "assignee": {"id": 565}, "project": {"id": 359, "owner": {"id": 758}, "assignee": {"id": 880}}, "task": {"id": 362, "owner": {"id": 971}, "assignee": {"id": 1079}}, "job": {"id": 378, "assignee": {"id": 1110}}, "organization": {"id": 1281}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 7}, "assignee": {"id": 515}, "project": {"id": 395, "owner": {"id": 797}, "assignee": {"id": 823}}, "task": {"id": 396, "owner": {"id": 998}, "assignee": {"id": 1005}}, "job": {"id": 399, "assignee": {"id": 1151}}, "organization": {"id": 109}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 96}, "assignee": {"id": 516}, "project": {"id": 391, "owner": {"id": 762}, "assignee": {"id": 808}}, "task": {"id": 372, "owner": {"id": 994}, "assignee": {"id": 1012}}, "job": {"id": 396, "assignee": {"id": 1150}}, "organization": {"id": 195}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 17}, "assignee": {"id": 548}, "project": {"id": 323, "owner": {"id": 758}, "assignee": {"id": 883}}, "task": {"id": 395, "owner": {"id": 954}, "assignee": {"id": 1019}}, "job": {"id": 381, "assignee": {"id": 1185}}, "organization": {"id": 1232}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 73}, "assignee": {"id": 529}, "project": {"id": 329, "owner": {"id": 794}, "assignee": {"id": 845}}, "task": {"id": 364, "owner": {"id": 963}, "assignee": {"id": 1001}}, "job": {"id": 376, "assignee": {"id": 1183}}, "organization": {"id": 1205}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 93}, "assignee": {"id": 523}, "project": {"id": 342, "owner": {"id": 706}, "assignee": {"id": 868}}, "task": {"id": 343, "owner": {"id": 956}, "assignee": {"id": 1098}}, "job": {"id": 319, "assignee": {"id": 1126}}, "organization": {"id": 126}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 41}, "assignee": {"id": 599}, "project": {"id": 376, "owner": {"id": 740}, "assignee": {"id": 861}}, "task": {"id": 347, "owner": {"id": 935}, "assignee": {"id": 1013}}, "job": {"id": 372, "assignee": {"id": 1100}}, "organization": {"id": 170}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 39}, "assignee": {"id": 589}, "project": {"id": 373, "owner": {"id": 717}, "assignee": {"id": 818}}, "task": {"id": 322, "owner": {"id": 994}, "assignee": {"id": 1024}}, "job": {"id": 359, "assignee": {"id": 1131}}, "organization": {"id": 1254}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 48}, "assignee": {"id": 548}, "project": {"id": 320, "owner": {"id": 765}, "assignee": {"id": 847}}, "task": {"id": 319, "owner": {"id": 944}, "assignee": {"id": 1002}}, "job": {"id": 395, "assignee": {"id": 1180}}, "organization": {"id": 1249}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 91}, "assignee": {"id": 585}, "project": {"id": 342, "owner": {"id": 799}, "assignee": {"id": 870}}, "task": {"id": 357, "owner": {"id": 983}, "assignee": {"id": 1037}}, "job": {"id": 373, "assignee": {"id": 1149}}, "organization": {"id": 142}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 37}, "assignee": {"id": 525}, "project": {"id": 355, "owner": {"id": 749}, "assignee": {"id": 895}}, "task": {"id": 359, "owner": {"id": 926}, "assignee": {"id": 1059}}, "job": {"id": 350, "assignee": {"id": 1110}}, "organization": {"id": 127}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 20}, "assignee": {"id": 566}, "project": {"id": 363, "owner": {"id": 794}, "assignee": {"id": 859}}, "task": {"id": 343, "owner": {"id": 972}, "assignee": {"id": 1093}}, "job": {"id": 358, "assignee": {"id": 1178}}, "organization": {"id": 1292}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 8}, "assignee": {"id": 514}, "project": {"id": 372, "owner": {"id": 723}, "assignee": {"id": 841}}, "task": {"id": 378, "owner": {"id": 951}, "assignee": {"id": 1041}}, "job": {"id": 338, "assignee": {"id": 1194}}, "organization": {"id": 1252}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 7}, "assignee": {"id": 543}, "project": {"id": 351, "owner": {"id": 735}, "assignee": {"id": 870}}, "task": {"id": 392, "owner": {"id": 946}, "assignee": {"id": 1059}}, "job": {"id": 335, "assignee": {"id": 1190}}, "organization": {"id": 101}}} +} + +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": 156, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 28}, "assignee": {"id": 582}, "project": {"id": 380, "owner": {"id": 715}, "assignee": {"id": 807}}, "task": {"id": 344, "owner": {"id": 918}, "assignee": {"id": 1077}}, "job": {"id": 364, "assignee": {"id": 1143}}, "organization": {"id": 156}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 72}, "assignee": {"id": 530}, "project": {"id": 339, "owner": {"id": 708}, "assignee": {"id": 852}}, "task": {"id": 369, "owner": {"id": 900}, "assignee": {"id": 1097}}, "job": {"id": 313, "assignee": {"id": 1137}}, "organization": {"id": 1226}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 93}, "assignee": {"id": 526}, "project": {"id": 318, "owner": {"id": 707}, "assignee": {"id": 891}}, "task": {"id": 300, "owner": {"id": 918}, "assignee": {"id": 1027}}, "job": {"id": 326, "assignee": {"id": 1117}}, "organization": {"id": 1259}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 31}, "assignee": {"id": 577}, "project": {"id": 373, "owner": {"id": 781}, "assignee": {"id": 803}}, "task": {"id": 389, "owner": {"id": 925}, "assignee": {"id": 1030}}, "job": {"id": 357, "assignee": {"id": 1124}}, "organization": {"id": 150}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 67}, "assignee": {"id": 577}, "project": {"id": 370, "owner": {"id": 787}, "assignee": {"id": 811}}, "task": {"id": 332, "owner": {"id": 987}, "assignee": {"id": 1031}}, "job": {"id": 367, "assignee": {"id": 1134}}, "organization": {"id": 159}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 65}, "assignee": {"id": 505}, "project": {"id": 336, "owner": {"id": 785}, "assignee": {"id": 810}}, "task": {"id": 320, "owner": {"id": 976}, "assignee": {"id": 1036}}, "job": {"id": 315, "assignee": {"id": 1175}}, "organization": {"id": 1204}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 90}, "assignee": {"id": 507}, "project": {"id": 314, "owner": {"id": 725}, "assignee": {"id": 859}}, "task": {"id": 308, "owner": {"id": 937}, "assignee": {"id": 1023}}, "job": {"id": 373, "assignee": {"id": 1147}}, "organization": {"id": 1263}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 91}, "assignee": {"id": 579}, "project": {"id": 335, "owner": {"id": 722}, "assignee": {"id": 884}}, "task": {"id": 367, "owner": {"id": 966}, "assignee": {"id": 1038}}, "job": {"id": 319, "assignee": {"id": 1133}}, "organization": {"id": 144}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 87}, "assignee": {"id": 596}, "project": {"id": 353, "owner": {"id": 727}, "assignee": {"id": 830}}, "task": {"id": 353, "owner": {"id": 998}, "assignee": {"id": 1074}}, "job": {"id": 396, "assignee": {"id": 1137}}, "organization": {"id": 170}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 36}, "assignee": {"id": 529}, "project": {"id": 388, "owner": {"id": 744}, "assignee": {"id": 820}}, "task": {"id": 381, "owner": {"id": 931}, "assignee": {"id": 1091}}, "job": {"id": 369, "assignee": {"id": 1156}}, "organization": {"id": 1204}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 69}, "assignee": {"id": 514}, "project": {"id": 316, "owner": {"id": 758}, "assignee": {"id": 871}}, "task": {"id": 300, "owner": {"id": 973}, "assignee": {"id": 1011}}, "job": {"id": 352, "assignee": {"id": 1122}}, "organization": {"id": 1216}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 44}, "assignee": {"id": 586}, "project": {"id": 397, "owner": {"id": 743}, "assignee": {"id": 829}}, "task": {"id": 302, "owner": {"id": 903}, "assignee": {"id": 1005}}, "job": {"id": 309, "assignee": {"id": 1130}}, "organization": {"id": 127}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 84}, "assignee": {"id": 534}, "project": {"id": 322, "owner": {"id": 792}, "assignee": {"id": 803}}, "task": {"id": 341, "owner": {"id": 922}, "assignee": {"id": 1040}}, "job": {"id": 328, "assignee": {"id": 1132}}, "organization": {"id": 190}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 72}, "assignee": {"id": 546}, "project": {"id": 348, "owner": {"id": 764}, "assignee": {"id": 830}}, "task": {"id": 301, "owner": {"id": 990}, "assignee": {"id": 1068}}, "job": {"id": 365, "assignee": {"id": 1156}}, "organization": {"id": 1234}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 5}, "assignee": {"id": 577}, "project": {"id": 328, "owner": {"id": 793}, "assignee": {"id": 803}}, "task": {"id": 382, "owner": {"id": 943}, "assignee": {"id": 1046}}, "job": {"id": 394, "assignee": {"id": 1191}}, "organization": {"id": 1241}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 37}, "assignee": {"id": 547}, "project": {"id": 328, "owner": {"id": 786}, "assignee": {"id": 810}}, "task": {"id": 385, "owner": {"id": 967}, "assignee": {"id": 1057}}, "job": {"id": 358, "assignee": {"id": 1164}}, "organization": {"id": 104}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 47}, "assignee": {"id": 544}, "project": {"id": 318, "owner": {"id": 789}, "assignee": {"id": 800}}, "task": {"id": 378, "owner": {"id": 977}, "assignee": {"id": 1092}}, "job": {"id": 389, "assignee": {"id": 1115}}, "organization": {"id": 182}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 83}, "assignee": {"id": 519}, "project": {"id": 399, "owner": {"id": 729}, "assignee": {"id": 818}}, "task": {"id": 366, "owner": {"id": 967}, "assignee": {"id": 1038}}, "job": {"id": 384, "assignee": {"id": 1102}}, "organization": {"id": 1233}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 70}, "assignee": {"id": 550}, "project": {"id": 340, "owner": {"id": 731}, "assignee": {"id": 813}}, "task": {"id": 371, "owner": {"id": 982}, "assignee": {"id": 1077}}, "job": {"id": 374, "assignee": {"id": 1126}}, "organization": {"id": 1247}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 11}, "assignee": {"id": 574}, "project": {"id": 342, "owner": {"id": 723}, "assignee": {"id": 882}}, "task": {"id": 324, "owner": {"id": 922}, "assignee": {"id": 1034}}, "job": {"id": 316, "assignee": {"id": 1183}}, "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": 75, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 75}, "assignee": {"id": 571}, "project": {"id": 353, "owner": {"id": 733}, "assignee": {"id": 835}}, "task": {"id": 380, "owner": {"id": 997}, "assignee": {"id": 1042}}, "job": {"id": 369, "assignee": {"id": 1156}}, "organization": {"id": 168}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 51}, "assignee": {"id": 551}, "project": {"id": 372, "owner": {"id": 771}, "assignee": {"id": 865}}, "task": {"id": 358, "owner": {"id": 956}, "assignee": {"id": 1001}}, "job": {"id": 394, "assignee": {"id": 1117}}, "organization": {"id": 1257}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 74}, "assignee": {"id": 543}, "project": {"id": 362, "owner": {"id": 727}, "assignee": {"id": 865}}, "task": {"id": 310, "owner": {"id": 929}, "assignee": {"id": 1074}}, "job": {"id": 356, "assignee": {"id": 1108}}, "organization": {"id": 1283}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 82}, "assignee": {"id": 504}, "project": {"id": 321, "owner": {"id": 722}, "assignee": {"id": 834}}, "task": {"id": 349, "owner": {"id": 992}, "assignee": {"id": 1035}}, "job": {"id": 309, "assignee": {"id": 1153}}, "organization": {"id": 154}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 24}, "assignee": {"id": 518}, "project": {"id": 387, "owner": {"id": 759}, "assignee": {"id": 889}}, "task": {"id": 387, "owner": {"id": 902}, "assignee": {"id": 1062}}, "job": {"id": 381, "assignee": {"id": 1185}}, "organization": {"id": 103}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 24}, "assignee": {"id": 508}, "project": {"id": 379, "owner": {"id": 764}, "assignee": {"id": 833}}, "task": {"id": 365, "owner": {"id": 907}, "assignee": {"id": 1051}}, "job": {"id": 360, "assignee": {"id": 1112}}, "organization": {"id": 1288}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 0}, "assignee": {"id": 595}, "project": {"id": 365, "owner": {"id": 767}, "assignee": {"id": 877}}, "task": {"id": 397, "owner": {"id": 907}, "assignee": {"id": 1081}}, "job": {"id": 385, "assignee": {"id": 1175}}, "organization": {"id": 1260}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 94}, "assignee": {"id": 584}, "project": {"id": 339, "owner": {"id": 727}, "assignee": {"id": 851}}, "task": {"id": 395, "owner": {"id": 913}, "assignee": {"id": 1080}}, "job": {"id": 316, "assignee": {"id": 1117}}, "organization": {"id": 154}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 73}, "assignee": {"id": 555}, "project": {"id": 345, "owner": {"id": 765}, "assignee": {"id": 858}}, "task": {"id": 374, "owner": {"id": 915}, "assignee": {"id": 1041}}, "job": {"id": 328, "assignee": {"id": 1136}}, "organization": {"id": 169}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 40}, "assignee": {"id": 537}, "project": {"id": 374, "owner": {"id": 751}, "assignee": {"id": 877}}, "task": {"id": 333, "owner": {"id": 985}, "assignee": {"id": 1054}}, "job": {"id": 354, "assignee": {"id": 1187}}, "organization": {"id": 1285}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 87}, "assignee": {"id": 567}, "project": {"id": 334, "owner": {"id": 771}, "assignee": {"id": 871}}, "task": {"id": 309, "owner": {"id": 939}, "assignee": {"id": 1037}}, "job": {"id": 360, "assignee": {"id": 1169}}, "organization": {"id": 1291}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 41}, "assignee": {"id": 585}, "project": {"id": 340, "owner": {"id": 798}, "assignee": {"id": 808}}, "task": {"id": 342, "owner": {"id": 920}, "assignee": {"id": 1067}}, "job": {"id": 322, "assignee": {"id": 1161}}, "organization": {"id": 100}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 15}, "assignee": {"id": 546}, "project": {"id": 347, "owner": {"id": 714}, "assignee": {"id": 893}}, "task": {"id": 377, "owner": {"id": 952}, "assignee": {"id": 1044}}, "job": {"id": 365, "assignee": {"id": 1162}}, "organization": {"id": 172}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 64}, "assignee": {"id": 592}, "project": {"id": 350, "owner": {"id": 711}, "assignee": {"id": 866}}, "task": {"id": 365, "owner": {"id": 947}, "assignee": {"id": 1058}}, "job": {"id": 331, "assignee": {"id": 1189}}, "organization": {"id": 1247}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 56}, "assignee": {"id": 542}, "project": {"id": 356, "owner": {"id": 738}, "assignee": {"id": 857}}, "task": {"id": 316, "owner": {"id": 920}, "assignee": {"id": 1074}}, "job": {"id": 344, "assignee": {"id": 1183}}, "organization": {"id": 1245}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 46}, "assignee": {"id": 585}, "project": {"id": 362, "owner": {"id": 760}, "assignee": {"id": 831}}, "task": {"id": 316, "owner": {"id": 988}, "assignee": {"id": 1005}}, "job": {"id": 388, "assignee": {"id": 1104}}, "organization": {"id": 199}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 19}, "assignee": {"id": 581}, "project": {"id": 399, "owner": {"id": 705}, "assignee": {"id": 809}}, "task": {"id": 331, "owner": {"id": 960}, "assignee": {"id": 1001}}, "job": {"id": 373, "assignee": {"id": 1129}}, "organization": {"id": 107}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 23}, "assignee": {"id": 594}, "project": {"id": 349, "owner": {"id": 772}, "assignee": {"id": 803}}, "task": {"id": 390, "owner": {"id": 933}, "assignee": {"id": 1063}}, "job": {"id": 325, "assignee": {"id": 1193}}, "organization": {"id": 1286}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 1}, "assignee": {"id": 564}, "project": {"id": 391, "owner": {"id": 795}, "assignee": {"id": 875}}, "task": {"id": 324, "owner": {"id": 981}, "assignee": {"id": 1019}}, "job": {"id": 359, "assignee": {"id": 1115}}, "organization": {"id": 1278}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 46}, "assignee": {"id": 571}, "project": {"id": 334, "owner": {"id": 778}, "assignee": {"id": 838}}, "task": {"id": 323, "owner": {"id": 951}, "assignee": {"id": 1093}}, "job": {"id": 334, "assignee": {"id": 1145}}, "organization": {"id": 187}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 56}, "assignee": {"id": 500}, "project": {"id": 370, "owner": {"id": 718}, "assignee": {"id": 870}}, "task": {"id": 362, "owner": {"id": 913}, "assignee": {"id": 1075}}, "job": {"id": 308, "assignee": {"id": 1134}}, "organization": {"id": 188}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 73}, "assignee": {"id": 571}, "project": {"id": 368, "owner": {"id": 745}, "assignee": {"id": 809}}, "task": {"id": 371, "owner": {"id": 927}, "assignee": {"id": 1096}}, "job": {"id": 391, "assignee": {"id": 1138}}, "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": 4, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 4}, "assignee": {"id": 562}, "project": {"id": 351, "owner": {"id": 769}, "assignee": {"id": 884}}, "task": {"id": 365, "owner": {"id": 998}, "assignee": {"id": 1037}}, "job": {"id": 372, "assignee": {"id": 1121}}, "organization": {"id": 1270}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 77}, "assignee": {"id": 565}, "project": {"id": 393, "owner": {"id": 791}, "assignee": {"id": 848}}, "task": {"id": 328, "owner": {"id": 921}, "assignee": {"id": 1050}}, "job": {"id": 376, "assignee": {"id": 1115}}, "organization": {"id": 153}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 23}, "assignee": {"id": 570}, "project": {"id": 300, "owner": {"id": 790}, "assignee": {"id": 851}}, "task": {"id": 312, "owner": {"id": 960}, "assignee": {"id": 1080}}, "job": {"id": 311, "assignee": {"id": 1174}}, "organization": {"id": 182}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 96}, "assignee": {"id": 521}, "project": {"id": 364, "owner": {"id": 730}, "assignee": {"id": 829}}, "task": {"id": 376, "owner": {"id": 914}, "assignee": {"id": 1053}}, "job": {"id": 361, "assignee": {"id": 1191}}, "organization": {"id": 1235}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 74}, "assignee": {"id": 524}, "project": {"id": 367, "owner": {"id": 774}, "assignee": {"id": 814}}, "task": {"id": 398, "owner": {"id": 934}, "assignee": {"id": 1057}}, "job": {"id": 341, "assignee": {"id": 1125}}, "organization": {"id": 1217}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 35}, "assignee": {"id": 584}, "project": {"id": 325, "owner": {"id": 756}, "assignee": {"id": 880}}, "task": {"id": 311, "owner": {"id": 955}, "assignee": {"id": 1003}}, "job": {"id": 322, "assignee": {"id": 1126}}, "organization": {"id": 173}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 96}, "assignee": {"id": 514}, "project": {"id": 359, "owner": {"id": 750}, "assignee": {"id": 812}}, "task": {"id": 311, "owner": {"id": 964}, "assignee": {"id": 1089}}, "job": {"id": 367, "assignee": {"id": 1118}}, "organization": {"id": 164}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 7}, "assignee": {"id": 585}, "project": {"id": 398, "owner": {"id": 724}, "assignee": {"id": 832}}, "task": {"id": 314, "owner": {"id": 992}, "assignee": {"id": 1081}}, "job": {"id": 368, "assignee": {"id": 1123}}, "organization": {"id": 1252}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 17}, "assignee": {"id": 588}, "project": {"id": 311, "owner": {"id": 706}, "assignee": {"id": 838}}, "task": {"id": 368, "owner": {"id": 935}, "assignee": {"id": 1091}}, "job": {"id": 300, "assignee": {"id": 1117}}, "organization": {"id": 1213}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 15}, "assignee": {"id": 552}, "project": {"id": 305, "owner": {"id": 792}, "assignee": {"id": 882}}, "task": {"id": 378, "owner": {"id": 925}, "assignee": {"id": 1019}}, "job": {"id": 398, "assignee": {"id": 1144}}, "organization": {"id": 159}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 60}, "assignee": {"id": 503}, "project": {"id": 354, "owner": {"id": 768}, "assignee": {"id": 814}}, "task": {"id": 384, "owner": {"id": 954}, "assignee": {"id": 1028}}, "job": {"id": 359, "assignee": {"id": 1166}}, "organization": {"id": 152}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 46}, "assignee": {"id": 530}, "project": {"id": 305, "owner": {"id": 766}, "assignee": {"id": 850}}, "task": {"id": 377, "owner": {"id": 973}, "assignee": {"id": 1021}}, "job": {"id": 392, "assignee": {"id": 1103}}, "organization": {"id": 1283}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 45}, "assignee": {"id": 577}, "project": {"id": 321, "owner": {"id": 750}, "assignee": {"id": 891}}, "task": {"id": 373, "owner": {"id": 972}, "assignee": {"id": 1080}}, "job": {"id": 308, "assignee": {"id": 1185}}, "organization": {"id": 1291}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 31}, "assignee": {"id": 505}, "project": {"id": 357, "owner": {"id": 720}, "assignee": {"id": 864}}, "task": {"id": 363, "owner": {"id": 908}, "assignee": {"id": 1028}}, "job": {"id": 319, "assignee": {"id": 1157}}, "organization": {"id": 139}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 99}, "assignee": {"id": 503}, "project": {"id": 368, "owner": {"id": 711}, "assignee": {"id": 835}}, "task": {"id": 339, "owner": {"id": 976}, "assignee": {"id": 1033}}, "job": {"id": 393, "assignee": {"id": 1147}}, "organization": {"id": 139}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 3}, "assignee": {"id": 542}, "project": {"id": 314, "owner": {"id": 712}, "assignee": {"id": 829}}, "task": {"id": 392, "owner": {"id": 998}, "assignee": {"id": 1045}}, "job": {"id": 375, "assignee": {"id": 1158}}, "organization": {"id": 1231}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 34}, "assignee": {"id": 562}, "project": {"id": 367, "owner": {"id": 760}, "assignee": {"id": 833}}, "task": {"id": 300, "owner": {"id": 910}, "assignee": {"id": 1085}}, "job": {"id": 367, "assignee": {"id": 1142}}, "organization": {"id": 1241}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 30}, "assignee": {"id": 539}, "project": {"id": 325, "owner": {"id": 719}, "assignee": {"id": 819}}, "task": {"id": 385, "owner": {"id": 990}, "assignee": {"id": 1049}}, "job": {"id": 384, "assignee": {"id": 1180}}, "organization": {"id": 184}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 61}, "assignee": {"id": 563}, "project": {"id": 334, "owner": {"id": 719}, "assignee": {"id": 874}}, "task": {"id": 371, "owner": {"id": 928}, "assignee": {"id": 1043}}, "job": {"id": 313, "assignee": {"id": 1168}}, "organization": {"id": 175}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 7}, "assignee": {"id": 527}, "project": {"id": 396, "owner": {"id": 742}, "assignee": {"id": 818}}, "task": {"id": 373, "owner": {"id": 931}, "assignee": {"id": 1029}}, "job": {"id": 328, "assignee": {"id": 1172}}, "organization": {"id": 1270}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 53}, "assignee": {"id": 527}, "project": {"id": 334, "owner": {"id": 796}, "assignee": {"id": 881}}, "task": {"id": 371, "owner": {"id": 967}, "assignee": {"id": 1012}}, "job": {"id": 358, "assignee": {"id": 1105}}, "organization": {"id": 1281}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 10}, "assignee": {"id": 506}, "project": {"id": 384, "owner": {"id": 729}, "assignee": {"id": 818}}, "task": {"id": 380, "owner": {"id": 949}, "assignee": {"id": 1099}}, "job": {"id": 345, "assignee": {"id": 1126}}, "organization": {"id": 174}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 43}, "assignee": {"id": 520}, "project": {"id": 316, "owner": {"id": 767}, "assignee": {"id": 824}}, "task": {"id": 354, "owner": {"id": 957}, "assignee": {"id": 1016}}, "job": {"id": 375, "assignee": {"id": 1125}}, "organization": {"id": 118}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 22}, "assignee": {"id": 541}, "project": {"id": 301, "owner": {"id": 735}, "assignee": {"id": 891}}, "task": {"id": 329, "owner": {"id": 993}, "assignee": {"id": 1051}}, "job": {"id": 377, "assignee": {"id": 1135}}, "organization": {"id": 1225}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 28}, "assignee": {"id": 514}, "project": {"id": 365, "owner": {"id": 725}, "assignee": {"id": 857}}, "task": {"id": 324, "owner": {"id": 991}, "assignee": {"id": 1076}}, "job": {"id": 370, "assignee": {"id": 1114}}, "organization": {"id": 1279}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 78}, "assignee": {"id": 590}, "project": {"id": 328, "owner": {"id": 785}, "assignee": {"id": 801}}, "task": {"id": 303, "owner": {"id": 984}, "assignee": {"id": 1001}}, "job": {"id": 395, "assignee": {"id": 1186}}, "organization": {"id": 121}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 29}, "assignee": {"id": 514}, "project": {"id": 361, "owner": {"id": 754}, "assignee": {"id": 893}}, "task": {"id": 300, "owner": {"id": 913}, "assignee": {"id": 1060}}, "job": {"id": 328, "assignee": {"id": 1125}}, "organization": {"id": 164}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 40}, "assignee": {"id": 536}, "project": {"id": 328, "owner": {"id": 788}, "assignee": {"id": 851}}, "task": {"id": 390, "owner": {"id": 911}, "assignee": {"id": 1025}}, "job": {"id": 374, "assignee": {"id": 1142}}, "organization": {"id": 1211}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 3}, "assignee": {"id": 572}, "project": {"id": 337, "owner": {"id": 772}, "assignee": {"id": 866}}, "task": {"id": 383, "owner": {"id": 936}, "assignee": {"id": 1045}}, "job": {"id": 309, "assignee": {"id": 1110}}, "organization": {"id": 1273}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 621}, "assignee": {"id": 57}, "project": {"id": 347, "owner": {"id": 789}, "assignee": {"id": 803}}, "task": {"id": 350, "owner": {"id": 966}, "assignee": {"id": 1001}}, "job": {"id": 382, "assignee": {"id": 1185}}, "organization": {"id": 111}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 650}, "assignee": {"id": 24}, "project": {"id": 342, "owner": {"id": 732}, "assignee": {"id": 858}}, "task": {"id": 364, "owner": {"id": 923}, "assignee": {"id": 1008}}, "job": {"id": 393, "assignee": {"id": 1151}}, "organization": {"id": 151}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 631}, "assignee": {"id": 97}, "project": {"id": 362, "owner": {"id": 736}, "assignee": {"id": 824}}, "task": {"id": 332, "owner": {"id": 945}, "assignee": {"id": 1038}}, "job": {"id": 376, "assignee": {"id": 1126}}, "organization": {"id": 1236}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 698}, "assignee": {"id": 92}, "project": {"id": 358, "owner": {"id": 763}, "assignee": {"id": 886}}, "task": {"id": 345, "owner": {"id": 945}, "assignee": {"id": 1011}}, "job": {"id": 332, "assignee": {"id": 1118}}, "organization": {"id": 1282}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 693}, "assignee": {"id": 79}, "project": {"id": 331, "owner": {"id": 770}, "assignee": {"id": 897}}, "task": {"id": 344, "owner": {"id": 967}, "assignee": {"id": 1030}}, "job": {"id": 331, "assignee": {"id": 1159}}, "organization": {"id": 181}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 638}, "assignee": {"id": 50}, "project": {"id": 330, "owner": {"id": 786}, "assignee": {"id": 893}}, "task": {"id": 388, "owner": {"id": 985}, "assignee": {"id": 1071}}, "job": {"id": 302, "assignee": {"id": 1156}}, "organization": {"id": 153}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 650}, "assignee": {"id": 97}, "project": {"id": 320, "owner": {"id": 769}, "assignee": {"id": 871}}, "task": {"id": 336, "owner": {"id": 983}, "assignee": {"id": 1083}}, "job": {"id": 340, "assignee": {"id": 1119}}, "organization": {"id": 1229}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 643}, "assignee": {"id": 16}, "project": {"id": 379, "owner": {"id": 784}, "assignee": {"id": 848}}, "task": {"id": 320, "owner": {"id": 957}, "assignee": {"id": 1014}}, "job": {"id": 303, "assignee": {"id": 1118}}, "organization": {"id": 1270}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 669}, "assignee": {"id": 17}, "project": {"id": 313, "owner": {"id": 734}, "assignee": {"id": 800}}, "task": {"id": 338, "owner": {"id": 998}, "assignee": {"id": 1025}}, "job": {"id": 370, "assignee": {"id": 1176}}, "organization": {"id": 196}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 665}, "assignee": {"id": 14}, "project": {"id": 355, "owner": {"id": 732}, "assignee": {"id": 827}}, "task": {"id": 330, "owner": {"id": 964}, "assignee": {"id": 1012}}, "job": {"id": 358, "assignee": {"id": 1116}}, "organization": {"id": 140}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 654}, "assignee": {"id": 47}, "project": {"id": 305, "owner": {"id": 748}, "assignee": {"id": 858}}, "task": {"id": 307, "owner": {"id": 934}, "assignee": {"id": 1025}}, "job": {"id": 367, "assignee": {"id": 1172}}, "organization": {"id": 1200}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 672}, "assignee": {"id": 53}, "project": {"id": 360, "owner": {"id": 776}, "assignee": {"id": 842}}, "task": {"id": 319, "owner": {"id": 941}, "assignee": {"id": 1022}}, "job": {"id": 351, "assignee": {"id": 1100}}, "organization": {"id": 1258}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 641}, "assignee": {"id": 37}, "project": {"id": 398, "owner": {"id": 758}, "assignee": {"id": 811}}, "task": {"id": 370, "owner": {"id": 900}, "assignee": {"id": 1083}}, "job": {"id": 393, "assignee": {"id": 1103}}, "organization": {"id": 138}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 656}, "assignee": {"id": 49}, "project": {"id": 312, "owner": {"id": 795}, "assignee": {"id": 887}}, "task": {"id": 372, "owner": {"id": 922}, "assignee": {"id": 1087}}, "job": {"id": 364, "assignee": {"id": 1199}}, "organization": {"id": 157}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 666}, "assignee": {"id": 75}, "project": {"id": 366, "owner": {"id": 740}, "assignee": {"id": 823}}, "task": {"id": 358, "owner": {"id": 971}, "assignee": {"id": 1075}}, "job": {"id": 348, "assignee": {"id": 1197}}, "organization": {"id": 1209}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 676}, "assignee": {"id": 32}, "project": {"id": 399, "owner": {"id": 719}, "assignee": {"id": 864}}, "task": {"id": 327, "owner": {"id": 934}, "assignee": {"id": 1032}}, "job": {"id": 345, "assignee": {"id": 1151}}, "organization": {"id": 1268}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 639}, "assignee": {"id": 53}, "project": {"id": 329, "owner": {"id": 740}, "assignee": {"id": 891}}, "task": {"id": 319, "owner": {"id": 917}, "assignee": {"id": 1099}}, "job": {"id": 391, "assignee": {"id": 1119}}, "organization": {"id": 118}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 606}, "assignee": {"id": 4}, "project": {"id": 340, "owner": {"id": 717}, "assignee": {"id": 837}}, "task": {"id": 377, "owner": {"id": 919}, "assignee": {"id": 1031}}, "job": {"id": 340, "assignee": {"id": 1161}}, "organization": {"id": 100}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 654}, "assignee": {"id": 22}, "project": {"id": 398, "owner": {"id": 735}, "assignee": {"id": 888}}, "task": {"id": 397, "owner": {"id": 989}, "assignee": {"id": 1030}}, "job": {"id": 346, "assignee": {"id": 1182}}, "organization": {"id": 1213}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 632}, "assignee": {"id": 47}, "project": {"id": 333, "owner": {"id": 797}, "assignee": {"id": 867}}, "task": {"id": 396, "owner": {"id": 922}, "assignee": {"id": 1050}}, "job": {"id": 344, "assignee": {"id": 1100}}, "organization": {"id": 1270}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 647}, "assignee": {"id": 41}, "project": {"id": 338, "owner": {"id": 760}, "assignee": {"id": 860}}, "task": {"id": 383, "owner": {"id": 937}, "assignee": {"id": 1036}}, "job": {"id": 333, "assignee": {"id": 1174}}, "organization": {"id": 194}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 643}, "assignee": {"id": 17}, "project": {"id": 389, "owner": {"id": 721}, "assignee": {"id": 828}}, "task": {"id": 339, "owner": {"id": 949}, "assignee": {"id": 1018}}, "job": {"id": 319, "assignee": {"id": 1148}}, "organization": {"id": 123}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 679}, "assignee": {"id": 25}, "project": {"id": 316, "owner": {"id": 729}, "assignee": {"id": 822}}, "task": {"id": 366, "owner": {"id": 900}, "assignee": {"id": 1077}}, "job": {"id": 398, "assignee": {"id": 1146}}, "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": 73, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 679}, "assignee": {"id": 73}, "project": {"id": 392, "owner": {"id": 752}, "assignee": {"id": 891}}, "task": {"id": 311, "owner": {"id": 976}, "assignee": {"id": 1012}}, "job": {"id": 320, "assignee": {"id": 1162}}, "organization": {"id": 1284}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 666}, "assignee": {"id": 18}, "project": {"id": 372, "owner": {"id": 708}, "assignee": {"id": 841}}, "task": {"id": 359, "owner": {"id": 984}, "assignee": {"id": 1099}}, "job": {"id": 312, "assignee": {"id": 1199}}, "organization": {"id": 182}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 681}, "assignee": {"id": 3}, "project": {"id": 385, "owner": {"id": 764}, "assignee": {"id": 879}}, "task": {"id": 372, "owner": {"id": 901}, "assignee": {"id": 1091}}, "job": {"id": 301, "assignee": {"id": 1181}}, "organization": {"id": 141}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 621}, "assignee": {"id": 45}, "project": {"id": 303, "owner": {"id": 775}, "assignee": {"id": 893}}, "task": {"id": 374, "owner": {"id": 947}, "assignee": {"id": 1007}}, "job": {"id": 360, "assignee": {"id": 1187}}, "organization": {"id": 1236}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 682}, "assignee": {"id": 14}, "project": {"id": 307, "owner": {"id": 769}, "assignee": {"id": 870}}, "task": {"id": 386, "owner": {"id": 962}, "assignee": {"id": 1095}}, "job": {"id": 324, "assignee": {"id": 1179}}, "organization": {"id": 1262}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 617}, "assignee": {"id": 93}, "project": {"id": 339, "owner": {"id": 754}, "assignee": {"id": 846}}, "task": {"id": 310, "owner": {"id": 999}, "assignee": {"id": 1014}}, "job": {"id": 397, "assignee": {"id": 1146}}, "organization": {"id": 157}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 672}, "assignee": {"id": 15}, "project": {"id": 375, "owner": {"id": 754}, "assignee": {"id": 855}}, "task": {"id": 313, "owner": {"id": 932}, "assignee": {"id": 1082}}, "job": {"id": 337, "assignee": {"id": 1177}}, "organization": {"id": 133}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 606}, "assignee": {"id": 37}, "project": {"id": 361, "owner": {"id": 748}, "assignee": {"id": 868}}, "task": {"id": 379, "owner": {"id": 928}, "assignee": {"id": 1084}}, "job": {"id": 339, "assignee": {"id": 1168}}, "organization": {"id": 1238}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 613}, "assignee": {"id": 0}, "project": {"id": 375, "owner": {"id": 706}, "assignee": {"id": 839}}, "task": {"id": 351, "owner": {"id": 908}, "assignee": {"id": 1087}}, "job": {"id": 348, "assignee": {"id": 1147}}, "organization": {"id": 1281}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 652}, "assignee": {"id": 63}, "project": {"id": 314, "owner": {"id": 742}, "assignee": {"id": 895}}, "task": {"id": 379, "owner": {"id": 965}, "assignee": {"id": 1065}}, "job": {"id": 345, "assignee": {"id": 1150}}, "organization": {"id": 197}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 613}, "assignee": {"id": 54}, "project": {"id": 387, "owner": {"id": 751}, "assignee": {"id": 844}}, "task": {"id": 340, "owner": {"id": 977}, "assignee": {"id": 1036}}, "job": {"id": 326, "assignee": {"id": 1176}}, "organization": {"id": 146}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 666}, "assignee": {"id": 75}, "project": {"id": 317, "owner": {"id": 794}, "assignee": {"id": 818}}, "task": {"id": 336, "owner": {"id": 984}, "assignee": {"id": 1073}}, "job": {"id": 378, "assignee": {"id": 1146}}, "organization": {"id": 1296}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 635}, "assignee": {"id": 4}, "project": {"id": 349, "owner": {"id": 761}, "assignee": {"id": 883}}, "task": {"id": 349, "owner": {"id": 920}, "assignee": {"id": 1011}}, "job": {"id": 392, "assignee": {"id": 1140}}, "organization": {"id": 1226}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 645}, "assignee": {"id": 76}, "project": {"id": 398, "owner": {"id": 705}, "assignee": {"id": 888}}, "task": {"id": 349, "owner": {"id": 919}, "assignee": {"id": 1082}}, "job": {"id": 397, "assignee": {"id": 1199}}, "organization": {"id": 102}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 697}, "assignee": {"id": 30}, "project": {"id": 321, "owner": {"id": 724}, "assignee": {"id": 899}}, "task": {"id": 327, "owner": {"id": 982}, "assignee": {"id": 1050}}, "job": {"id": 328, "assignee": {"id": 1185}}, "organization": {"id": 182}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 648}, "assignee": {"id": 12}, "project": {"id": 383, "owner": {"id": 778}, "assignee": {"id": 836}}, "task": {"id": 384, "owner": {"id": 989}, "assignee": {"id": 1032}}, "job": {"id": 318, "assignee": {"id": 1127}}, "organization": {"id": 1270}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 666}, "assignee": {"id": 16}, "project": {"id": 353, "owner": {"id": 771}, "assignee": {"id": 805}}, "task": {"id": 329, "owner": {"id": 918}, "assignee": {"id": 1002}}, "job": {"id": 366, "assignee": {"id": 1138}}, "organization": {"id": 1206}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 697}, "assignee": {"id": 71}, "project": {"id": 332, "owner": {"id": 776}, "assignee": {"id": 809}}, "task": {"id": 338, "owner": {"id": 993}, "assignee": {"id": 1032}}, "job": {"id": 306, "assignee": {"id": 1151}}, "organization": {"id": 102}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 645}, "assignee": {"id": 56}, "project": {"id": 372, "owner": {"id": 737}, "assignee": {"id": 890}}, "task": {"id": 392, "owner": {"id": 991}, "assignee": {"id": 1054}}, "job": {"id": 393, "assignee": {"id": 1164}}, "organization": {"id": 190}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 639}, "assignee": {"id": 38}, "project": {"id": 347, "owner": {"id": 771}, "assignee": {"id": 801}}, "task": {"id": 313, "owner": {"id": 961}, "assignee": {"id": 1003}}, "job": {"id": 382, "assignee": {"id": 1171}}, "organization": {"id": 1297}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 643}, "assignee": {"id": 21}, "project": {"id": 317, "owner": {"id": 740}, "assignee": {"id": 840}}, "task": {"id": 379, "owner": {"id": 991}, "assignee": {"id": 1035}}, "job": {"id": 367, "assignee": {"id": 1187}}, "organization": {"id": 1269}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 658}, "assignee": {"id": 19}, "project": {"id": 345, "owner": {"id": 791}, "assignee": {"id": 864}}, "task": {"id": 375, "owner": {"id": 997}, "assignee": {"id": 1077}}, "job": {"id": 308, "assignee": {"id": 1144}}, "organization": {"id": 175}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 641}, "assignee": {"id": 52}, "project": {"id": 303, "owner": {"id": 785}, "assignee": {"id": 829}}, "task": {"id": 380, "owner": {"id": 920}, "assignee": {"id": 1012}}, "job": {"id": 303, "assignee": {"id": 1133}}, "organization": {"id": 185}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 689}, "assignee": {"id": 59}, "project": {"id": 322, "owner": {"id": 743}, "assignee": {"id": 820}}, "task": {"id": 370, "owner": {"id": 990}, "assignee": {"id": 1034}}, "job": {"id": 377, "assignee": {"id": 1198}}, "organization": {"id": 1265}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 681}, "assignee": {"id": 22}, "project": {"id": 328, "owner": {"id": 787}, "assignee": {"id": 863}}, "task": {"id": 384, "owner": {"id": 903}, "assignee": {"id": 1068}}, "job": {"id": 307, "assignee": {"id": 1110}}, "organization": {"id": 1219}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 630}, "assignee": {"id": 4}, "project": {"id": 366, "owner": {"id": 791}, "assignee": {"id": 868}}, "task": {"id": 364, "owner": {"id": 904}, "assignee": {"id": 1085}}, "job": {"id": 393, "assignee": {"id": 1170}}, "organization": {"id": 192}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 675}, "assignee": {"id": 49}, "project": {"id": 322, "owner": {"id": 776}, "assignee": {"id": 851}}, "task": {"id": 324, "owner": {"id": 907}, "assignee": {"id": 1095}}, "job": {"id": 315, "assignee": {"id": 1178}}, "organization": {"id": 172}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 681}, "assignee": {"id": 20}, "project": {"id": 319, "owner": {"id": 778}, "assignee": {"id": 808}}, "task": {"id": 326, "owner": {"id": 920}, "assignee": {"id": 1006}}, "job": {"id": 332, "assignee": {"id": 1111}}, "organization": {"id": 1256}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 673}, "assignee": {"id": 56}, "project": {"id": 379, "owner": {"id": 730}, "assignee": {"id": 823}}, "task": {"id": 357, "owner": {"id": 986}, "assignee": {"id": 1020}}, "job": {"id": 324, "assignee": {"id": 1151}}, "organization": {"id": 1288}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 647}, "assignee": {"id": 43}, "project": {"id": 384, "owner": {"id": 723}, "assignee": {"id": 836}}, "task": {"id": 314, "owner": {"id": 931}, "assignee": {"id": 1086}}, "job": {"id": 326, "assignee": {"id": 1120}}, "organization": {"id": 105}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 602}, "assignee": {"id": 8}, "project": {"id": 393, "owner": {"id": 795}, "assignee": {"id": 845}}, "task": {"id": 376, "owner": {"id": 911}, "assignee": {"id": 1003}}, "job": {"id": 357, "assignee": {"id": 1156}}, "organization": {"id": 115}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 670}, "assignee": {"id": 90}, "project": {"id": 303, "owner": {"id": 796}, "assignee": {"id": 848}}, "task": {"id": 394, "owner": {"id": 973}, "assignee": {"id": 1026}}, "job": {"id": 327, "assignee": {"id": 1142}}, "organization": {"id": 1238}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 660}, "assignee": {"id": 22}, "project": {"id": 388, "owner": {"id": 760}, "assignee": {"id": 814}}, "task": {"id": 346, "owner": {"id": 922}, "assignee": {"id": 1091}}, "job": {"id": 355, "assignee": {"id": 1106}}, "organization": {"id": 1238}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 696}, "assignee": {"id": 55}, "project": {"id": 375, "owner": {"id": 724}, "assignee": {"id": 804}}, "task": {"id": 349, "owner": {"id": 965}, "assignee": {"id": 1035}}, "job": {"id": 390, "assignee": {"id": 1181}}, "organization": {"id": 118}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 608}, "assignee": {"id": 75}, "project": {"id": 354, "owner": {"id": 745}, "assignee": {"id": 848}}, "task": {"id": 399, "owner": {"id": 942}, "assignee": {"id": 1032}}, "job": {"id": 398, "assignee": {"id": 1115}}, "organization": {"id": 139}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 624}, "assignee": {"id": 42}, "project": {"id": 316, "owner": {"id": 783}, "assignee": {"id": 837}}, "task": {"id": 351, "owner": {"id": 956}, "assignee": {"id": 1018}}, "job": {"id": 362, "assignee": {"id": 1198}}, "organization": {"id": 1208}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 610}, "assignee": {"id": 99}, "project": {"id": 358, "owner": {"id": 785}, "assignee": {"id": 883}}, "task": {"id": 334, "owner": {"id": 976}, "assignee": {"id": 1009}}, "job": {"id": 332, "assignee": {"id": 1142}}, "organization": {"id": 1269}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 666}, "assignee": {"id": 17}, "project": {"id": 304, "owner": {"id": 715}, "assignee": {"id": 825}}, "task": {"id": 397, "owner": {"id": 970}, "assignee": {"id": 1092}}, "job": {"id": 397, "assignee": {"id": 1127}}, "organization": {"id": 189}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 618}, "assignee": {"id": 77}, "project": {"id": 321, "owner": {"id": 767}, "assignee": {"id": 866}}, "task": {"id": 398, "owner": {"id": 910}, "assignee": {"id": 1012}}, "job": {"id": 302, "assignee": {"id": 1187}}, "organization": {"id": 161}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 635}, "assignee": {"id": 17}, "project": {"id": 399, "owner": {"id": 798}, "assignee": {"id": 881}}, "task": {"id": 350, "owner": {"id": 972}, "assignee": {"id": 1078}}, "job": {"id": 383, "assignee": {"id": 1103}}, "organization": {"id": 1266}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 672}, "assignee": {"id": 75}, "project": {"id": 388, "owner": {"id": 749}, "assignee": {"id": 897}}, "task": {"id": 360, "owner": {"id": 996}, "assignee": {"id": 1063}}, "job": {"id": 352, "assignee": {"id": 1197}}, "organization": {"id": 1246}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 677}, "assignee": {"id": 6}, "project": {"id": 365, "owner": {"id": 784}, "assignee": {"id": 812}}, "task": {"id": 310, "owner": {"id": 938}, "assignee": {"id": 1066}}, "job": {"id": 301, "assignee": {"id": 1198}}, "organization": {"id": 121}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 626}, "assignee": {"id": 56}, "project": {"id": 326, "owner": {"id": 724}, "assignee": {"id": 842}}, "task": {"id": 381, "owner": {"id": 992}, "assignee": {"id": 1041}}, "job": {"id": 374, "assignee": {"id": 1116}}, "organization": {"id": 164}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 614}, "assignee": {"id": 67}, "project": {"id": 371, "owner": {"id": 744}, "assignee": {"id": 823}}, "task": {"id": 387, "owner": {"id": 901}, "assignee": {"id": 1036}}, "job": {"id": 322, "assignee": {"id": 1173}}, "organization": {"id": 1216}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 681}, "assignee": {"id": 37}, "project": {"id": 397, "owner": {"id": 770}, "assignee": {"id": 823}}, "task": {"id": 378, "owner": {"id": 977}, "assignee": {"id": 1000}}, "job": {"id": 357, "assignee": {"id": 1136}}, "organization": {"id": 1227}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 630}, "assignee": {"id": 94}, "project": {"id": 370, "owner": {"id": 787}, "assignee": {"id": 892}}, "task": {"id": 342, "owner": {"id": 929}, "assignee": {"id": 1064}}, "job": {"id": 334, "assignee": {"id": 1146}}, "organization": {"id": 118}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 659}, "assignee": {"id": 46}, "project": {"id": 378, "owner": {"id": 738}, "assignee": {"id": 845}}, "task": {"id": 343, "owner": {"id": 975}, "assignee": {"id": 1075}}, "job": {"id": 388, "assignee": {"id": 1110}}, "organization": {"id": 157}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 629}, "assignee": {"id": 4}, "project": {"id": 381, "owner": {"id": 793}, "assignee": {"id": 869}}, "task": {"id": 340, "owner": {"id": 972}, "assignee": {"id": 1089}}, "job": {"id": 300, "assignee": {"id": 1189}}, "organization": {"id": 1255}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 609}, "assignee": {"id": 81}, "project": {"id": 355, "owner": {"id": 712}, "assignee": {"id": 891}}, "task": {"id": 351, "owner": {"id": 969}, "assignee": {"id": 1061}}, "job": {"id": 332, "assignee": {"id": 1123}}, "organization": {"id": 1234}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 621}, "assignee": {"id": 85}, "project": {"id": 343, "owner": {"id": 787}, "assignee": {"id": 850}}, "task": {"id": 366, "owner": {"id": 992}, "assignee": {"id": 1011}}, "job": {"id": 368, "assignee": {"id": 1101}}, "organization": {"id": 102}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 630}, "assignee": {"id": 64}, "project": {"id": 334, "owner": {"id": 707}, "assignee": {"id": 840}}, "task": {"id": 373, "owner": {"id": 905}, "assignee": {"id": 1025}}, "job": {"id": 392, "assignee": {"id": 1186}}, "organization": {"id": 186}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 608}, "assignee": {"id": 64}, "project": {"id": 391, "owner": {"id": 739}, "assignee": {"id": 877}}, "task": {"id": 362, "owner": {"id": 984}, "assignee": {"id": 1083}}, "job": {"id": 382, "assignee": {"id": 1180}}, "organization": {"id": 1226}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 605}, "assignee": {"id": 70}, "project": {"id": 320, "owner": {"id": 754}, "assignee": {"id": 833}}, "task": {"id": 300, "owner": {"id": 981}, "assignee": {"id": 1089}}, "job": {"id": 384, "assignee": {"id": 1109}}, "organization": {"id": 1214}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 651}, "assignee": {"id": 75}, "project": {"id": 359, "owner": {"id": 777}, "assignee": {"id": 843}}, "task": {"id": 390, "owner": {"id": 943}, "assignee": {"id": 1074}}, "job": {"id": 309, "assignee": {"id": 1140}}, "organization": {"id": 196}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 650}, "assignee": {"id": 61}, "project": {"id": 348, "owner": {"id": 744}, "assignee": {"id": 852}}, "task": {"id": 382, "owner": {"id": 940}, "assignee": {"id": 1005}}, "job": {"id": 311, "assignee": {"id": 1171}}, "organization": {"id": 143}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 616}, "assignee": {"id": 15}, "project": {"id": 337, "owner": {"id": 711}, "assignee": {"id": 894}}, "task": {"id": 313, "owner": {"id": 983}, "assignee": {"id": 1018}}, "job": {"id": 305, "assignee": {"id": 1192}}, "organization": {"id": 1230}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 664}, "assignee": {"id": 52}, "project": {"id": 306, "owner": {"id": 741}, "assignee": {"id": 892}}, "task": {"id": 377, "owner": {"id": 992}, "assignee": {"id": 1070}}, "job": {"id": 302, "assignee": {"id": 1114}}, "organization": {"id": 1278}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 657}, "assignee": {"id": 88}, "project": {"id": 380, "owner": {"id": 732}, "assignee": {"id": 870}}, "task": {"id": 387, "owner": {"id": 938}, "assignee": {"id": 1021}}, "job": {"id": 324, "assignee": {"id": 1132}}, "organization": {"id": 164}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 605}, "assignee": {"id": 85}, "project": {"id": 396, "owner": {"id": 739}, "assignee": {"id": 841}}, "task": {"id": 306, "owner": {"id": 967}, "assignee": {"id": 1094}}, "job": {"id": 331, "assignee": {"id": 1176}}, "organization": {"id": 114}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 690}, "assignee": {"id": 30}, "project": {"id": 384, "owner": {"id": 799}, "assignee": {"id": 843}}, "task": {"id": 311, "owner": {"id": 978}, "assignee": {"id": 1086}}, "job": {"id": 358, "assignee": {"id": 1194}}, "organization": {"id": 1279}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 661}, "assignee": {"id": 51}, "project": {"id": 380, "owner": {"id": 721}, "assignee": {"id": 879}}, "task": {"id": 385, "owner": {"id": 912}, "assignee": {"id": 1058}}, "job": {"id": 369, "assignee": {"id": 1139}}, "organization": {"id": 1222}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 649}, "assignee": {"id": 33}, "project": {"id": 308, "owner": {"id": 758}, "assignee": {"id": 822}}, "task": {"id": 377, "owner": {"id": 988}, "assignee": {"id": 1095}}, "job": {"id": 386, "assignee": {"id": 1168}}, "organization": {"id": 126}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 658}, "assignee": {"id": 9}, "project": {"id": 305, "owner": {"id": 787}, "assignee": {"id": 881}}, "task": {"id": 392, "owner": {"id": 920}, "assignee": {"id": 1006}}, "job": {"id": 388, "assignee": {"id": 1159}}, "organization": {"id": 160}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 610}, "assignee": {"id": 71}, "project": {"id": 339, "owner": {"id": 779}, "assignee": {"id": 834}}, "task": {"id": 327, "owner": {"id": 966}, "assignee": {"id": 1025}}, "job": {"id": 383, "assignee": {"id": 1126}}, "organization": {"id": 1264}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 610}, "assignee": {"id": 11}, "project": {"id": 349, "owner": {"id": 764}, "assignee": {"id": 891}}, "task": {"id": 311, "owner": {"id": 980}, "assignee": {"id": 1061}}, "job": {"id": 356, "assignee": {"id": 1111}}, "organization": {"id": 1220}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 646}, "assignee": {"id": 59}, "project": {"id": 384, "owner": {"id": 731}, "assignee": {"id": 830}}, "task": {"id": 381, "owner": {"id": 985}, "assignee": {"id": 1049}}, "job": {"id": 330, "assignee": {"id": 1127}}, "organization": {"id": 114}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 640}, "assignee": {"id": 8}, "project": {"id": 313, "owner": {"id": 706}, "assignee": {"id": 871}}, "task": {"id": 383, "owner": {"id": 948}, "assignee": {"id": 1072}}, "job": {"id": 342, "assignee": {"id": 1128}}, "organization": {"id": 125}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 666}, "assignee": {"id": 80}, "project": {"id": 344, "owner": {"id": 793}, "assignee": {"id": 860}}, "task": {"id": 361, "owner": {"id": 919}, "assignee": {"id": 1053}}, "job": {"id": 378, "assignee": {"id": 1129}}, "organization": {"id": 1267}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 638}, "assignee": {"id": 29}, "project": {"id": 392, "owner": {"id": 761}, "assignee": {"id": 857}}, "task": {"id": 309, "owner": {"id": 938}, "assignee": {"id": 1042}}, "job": {"id": 313, "assignee": {"id": 1169}}, "organization": {"id": 1232}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 677}, "assignee": {"id": 69}, "project": {"id": 374, "owner": {"id": 704}, "assignee": {"id": 895}}, "task": {"id": 380, "owner": {"id": 961}, "assignee": {"id": 1009}}, "job": {"id": 375, "assignee": {"id": 1114}}, "organization": {"id": 131}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 693}, "assignee": {"id": 86}, "project": {"id": 334, "owner": {"id": 774}, "assignee": {"id": 810}}, "task": {"id": 356, "owner": {"id": 937}, "assignee": {"id": 1057}}, "job": {"id": 346, "assignee": {"id": 1145}}, "organization": {"id": 191}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 674}, "assignee": {"id": 61}, "project": {"id": 391, "owner": {"id": 731}, "assignee": {"id": 842}}, "task": {"id": 300, "owner": {"id": 969}, "assignee": {"id": 1017}}, "job": {"id": 398, "assignee": {"id": 1175}}, "organization": {"id": 1207}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 625}, "assignee": {"id": 15}, "project": {"id": 309, "owner": {"id": 744}, "assignee": {"id": 876}}, "task": {"id": 324, "owner": {"id": 940}, "assignee": {"id": 1078}}, "job": {"id": 307, "assignee": {"id": 1111}}, "organization": {"id": 1213}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 669}, "assignee": {"id": 58}, "project": {"id": 380, "owner": {"id": 748}, "assignee": {"id": 872}}, "task": {"id": 365, "owner": {"id": 949}, "assignee": {"id": 1076}}, "job": {"id": 306, "assignee": {"id": 1122}}, "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": 66, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 687}, "assignee": {"id": 66}, "project": {"id": 341, "owner": {"id": 745}, "assignee": {"id": 865}}, "task": {"id": 332, "owner": {"id": 961}, "assignee": {"id": 1088}}, "job": {"id": 322, "assignee": {"id": 1132}}, "organization": {"id": 126}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 684}, "assignee": {"id": 13}, "project": {"id": 376, "owner": {"id": 728}, "assignee": {"id": 865}}, "task": {"id": 389, "owner": {"id": 954}, "assignee": {"id": 1092}}, "job": {"id": 388, "assignee": {"id": 1153}}, "organization": {"id": 1240}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 652}, "assignee": {"id": 8}, "project": {"id": 312, "owner": {"id": 757}, "assignee": {"id": 867}}, "task": {"id": 397, "owner": {"id": 919}, "assignee": {"id": 1085}}, "job": {"id": 300, "assignee": {"id": 1199}}, "organization": {"id": 1247}}} +} + +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": 188, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 631}, "assignee": {"id": 511}, "project": {"id": 341, "owner": {"id": 715}, "assignee": {"id": 841}}, "task": {"id": 357, "owner": {"id": 906}, "assignee": {"id": 1075}}, "job": {"id": 315, "assignee": {"id": 1154}}, "organization": {"id": 188}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 696}, "assignee": {"id": 549}, "project": {"id": 344, "owner": {"id": 783}, "assignee": {"id": 852}}, "task": {"id": 349, "owner": {"id": 956}, "assignee": {"id": 1045}}, "job": {"id": 300, "assignee": {"id": 1104}}, "organization": {"id": 147}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 650}, "assignee": {"id": 569}, "project": {"id": 379, "owner": {"id": 735}, "assignee": {"id": 865}}, "task": {"id": 393, "owner": {"id": 955}, "assignee": {"id": 1082}}, "job": {"id": 353, "assignee": {"id": 1178}}, "organization": {"id": 1243}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 670}, "assignee": {"id": 555}, "project": {"id": 394, "owner": {"id": 706}, "assignee": {"id": 832}}, "task": {"id": 351, "owner": {"id": 964}, "assignee": {"id": 1044}}, "job": {"id": 344, "assignee": {"id": 1175}}, "organization": {"id": 1263}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 635}, "assignee": {"id": 546}, "project": {"id": 386, "owner": {"id": 724}, "assignee": {"id": 835}}, "task": {"id": 305, "owner": {"id": 952}, "assignee": {"id": 1015}}, "job": {"id": 347, "assignee": {"id": 1195}}, "organization": {"id": 169}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 628}, "assignee": {"id": 570}, "project": {"id": 323, "owner": {"id": 726}, "assignee": {"id": 881}}, "task": {"id": 332, "owner": {"id": 917}, "assignee": {"id": 1041}}, "job": {"id": 370, "assignee": {"id": 1194}}, "organization": {"id": 116}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 625}, "assignee": {"id": 574}, "project": {"id": 352, "owner": {"id": 702}, "assignee": {"id": 884}}, "task": {"id": 399, "owner": {"id": 977}, "assignee": {"id": 1036}}, "job": {"id": 321, "assignee": {"id": 1153}}, "organization": {"id": 1226}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 620}, "assignee": {"id": 551}, "project": {"id": 386, "owner": {"id": 756}, "assignee": {"id": 877}}, "task": {"id": 317, "owner": {"id": 931}, "assignee": {"id": 1022}}, "job": {"id": 384, "assignee": {"id": 1166}}, "organization": {"id": 1298}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 666}, "assignee": {"id": 584}, "project": {"id": 342, "owner": {"id": 783}, "assignee": {"id": 845}}, "task": {"id": 318, "owner": {"id": 999}, "assignee": {"id": 1004}}, "job": {"id": 367, "assignee": {"id": 1129}}, "organization": {"id": 192}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 665}, "assignee": {"id": 509}, "project": {"id": 388, "owner": {"id": 707}, "assignee": {"id": 843}}, "task": {"id": 326, "owner": {"id": 977}, "assignee": {"id": 1064}}, "job": {"id": 306, "assignee": {"id": 1163}}, "organization": {"id": 158}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 671}, "assignee": {"id": 583}, "project": {"id": 364, "owner": {"id": 743}, "assignee": {"id": 808}}, "task": {"id": 351, "owner": {"id": 970}, "assignee": {"id": 1043}}, "job": {"id": 324, "assignee": {"id": 1142}}, "organization": {"id": 1255}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 653}, "assignee": {"id": 557}, "project": {"id": 377, "owner": {"id": 737}, "assignee": {"id": 813}}, "task": {"id": 369, "owner": {"id": 993}, "assignee": {"id": 1056}}, "job": {"id": 371, "assignee": {"id": 1166}}, "organization": {"id": 1240}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 610}, "assignee": {"id": 523}, "project": {"id": 354, "owner": {"id": 755}, "assignee": {"id": 835}}, "task": {"id": 317, "owner": {"id": 947}, "assignee": {"id": 1080}}, "job": {"id": 303, "assignee": {"id": 1107}}, "organization": {"id": 152}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 635}, "assignee": {"id": 599}, "project": {"id": 373, "owner": {"id": 798}, "assignee": {"id": 872}}, "task": {"id": 320, "owner": {"id": 941}, "assignee": {"id": 1022}}, "job": {"id": 318, "assignee": {"id": 1171}}, "organization": {"id": 103}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 607}, "assignee": {"id": 591}, "project": {"id": 385, "owner": {"id": 791}, "assignee": {"id": 856}}, "task": {"id": 394, "owner": {"id": 947}, "assignee": {"id": 1053}}, "job": {"id": 353, "assignee": {"id": 1151}}, "organization": {"id": 1216}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 616}, "assignee": {"id": 522}, "project": {"id": 394, "owner": {"id": 766}, "assignee": {"id": 899}}, "task": {"id": 343, "owner": {"id": 968}, "assignee": {"id": 1085}}, "job": {"id": 344, "assignee": {"id": 1187}}, "organization": {"id": 1202}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 644}, "assignee": {"id": 588}, "project": {"id": 398, "owner": {"id": 713}, "assignee": {"id": 863}}, "task": {"id": 382, "owner": {"id": 938}, "assignee": {"id": 1024}}, "job": {"id": 328, "assignee": {"id": 1108}}, "organization": {"id": 165}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 641}, "assignee": {"id": 557}, "project": {"id": 350, "owner": {"id": 720}, "assignee": {"id": 863}}, "task": {"id": 322, "owner": {"id": 957}, "assignee": {"id": 1095}}, "job": {"id": 353, "assignee": {"id": 1190}}, "organization": {"id": 181}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 619}, "assignee": {"id": 577}, "project": {"id": 373, "owner": {"id": 727}, "assignee": {"id": 842}}, "task": {"id": 343, "owner": {"id": 920}, "assignee": {"id": 1019}}, "job": {"id": 368, "assignee": {"id": 1136}}, "organization": {"id": 1216}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 647}, "assignee": {"id": 552}, "project": {"id": 393, "owner": {"id": 751}, "assignee": {"id": 808}}, "task": {"id": 373, "owner": {"id": 965}, "assignee": {"id": 1091}}, "job": {"id": 315, "assignee": {"id": 1119}}, "organization": {"id": 1299}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 612}, "assignee": {"id": 584}, "project": {"id": 378, "owner": {"id": 769}, "assignee": {"id": 897}}, "task": {"id": 357, "owner": {"id": 915}, "assignee": {"id": 1098}}, "job": {"id": 331, "assignee": {"id": 1198}}, "organization": {"id": 139}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 651}, "assignee": {"id": 556}, "project": {"id": 345, "owner": {"id": 793}, "assignee": {"id": 804}}, "task": {"id": 306, "owner": {"id": 908}, "assignee": {"id": 1026}}, "job": {"id": 380, "assignee": {"id": 1116}}, "organization": {"id": 167}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 688}, "assignee": {"id": 586}, "project": {"id": 391, "owner": {"id": 715}, "assignee": {"id": 811}}, "task": {"id": 366, "owner": {"id": 958}, "assignee": {"id": 1051}}, "job": {"id": 376, "assignee": {"id": 1160}}, "organization": {"id": 1282}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 673}, "assignee": {"id": 598}, "project": {"id": 336, "owner": {"id": 762}, "assignee": {"id": 809}}, "task": {"id": 380, "owner": {"id": 988}, "assignee": {"id": 1082}}, "job": {"id": 317, "assignee": {"id": 1152}}, "organization": {"id": 1209}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 684}, "assignee": {"id": 505}, "project": {"id": 327, "owner": {"id": 797}, "assignee": {"id": 853}}, "task": {"id": 337, "owner": {"id": 996}, "assignee": {"id": 1098}}, "job": {"id": 303, "assignee": {"id": 1199}}, "organization": {"id": 178}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 653}, "assignee": {"id": 506}, "project": {"id": 323, "owner": {"id": 788}, "assignee": {"id": 873}}, "task": {"id": 364, "owner": {"id": 986}, "assignee": {"id": 1080}}, "job": {"id": 390, "assignee": {"id": 1196}}, "organization": {"id": 165}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 615}, "assignee": {"id": 546}, "project": {"id": 393, "owner": {"id": 718}, "assignee": {"id": 858}}, "task": {"id": 334, "owner": {"id": 929}, "assignee": {"id": 1055}}, "job": {"id": 301, "assignee": {"id": 1106}}, "organization": {"id": 1238}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 654}, "assignee": {"id": 503}, "project": {"id": 337, "owner": {"id": 704}, "assignee": {"id": 843}}, "task": {"id": 308, "owner": {"id": 912}, "assignee": {"id": 1030}}, "job": {"id": 343, "assignee": {"id": 1109}}, "organization": {"id": 1280}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 626}, "assignee": {"id": 570}, "project": {"id": 323, "owner": {"id": 772}, "assignee": {"id": 860}}, "task": {"id": 341, "owner": {"id": 988}, "assignee": {"id": 1043}}, "job": {"id": 390, "assignee": {"id": 1146}}, "organization": {"id": 153}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 661}, "assignee": {"id": 542}, "project": {"id": 347, "owner": {"id": 780}, "assignee": {"id": 819}}, "task": {"id": 345, "owner": {"id": 954}, "assignee": {"id": 1051}}, "job": {"id": 371, "assignee": {"id": 1132}}, "organization": {"id": 112}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 613}, "assignee": {"id": 550}, "project": {"id": 395, "owner": {"id": 724}, "assignee": {"id": 827}}, "task": {"id": 361, "owner": {"id": 906}, "assignee": {"id": 1018}}, "job": {"id": 358, "assignee": {"id": 1145}}, "organization": {"id": 1229}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 645}, "assignee": {"id": 524}, "project": {"id": 313, "owner": {"id": 755}, "assignee": {"id": 876}}, "task": {"id": 353, "owner": {"id": 962}, "assignee": {"id": 1071}}, "job": {"id": 359, "assignee": {"id": 1115}}, "organization": {"id": 1292}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 641}, "assignee": {"id": 547}, "project": {"id": 304, "owner": {"id": 700}, "assignee": {"id": 831}}, "task": {"id": 319, "owner": {"id": 910}, "assignee": {"id": 1060}}, "job": {"id": 383, "assignee": {"id": 1140}}, "organization": {"id": 118}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 662}, "assignee": {"id": 545}, "project": {"id": 323, "owner": {"id": 749}, "assignee": {"id": 832}}, "task": {"id": 375, "owner": {"id": 935}, "assignee": {"id": 1071}}, "job": {"id": 319, "assignee": {"id": 1115}}, "organization": {"id": 189}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 691}, "assignee": {"id": 535}, "project": {"id": 352, "owner": {"id": 754}, "assignee": {"id": 893}}, "task": {"id": 361, "owner": {"id": 928}, "assignee": {"id": 1043}}, "job": {"id": 365, "assignee": {"id": 1134}}, "organization": {"id": 1222}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 600}, "assignee": {"id": 510}, "project": {"id": 361, "owner": {"id": 757}, "assignee": {"id": 898}}, "task": {"id": 383, "owner": {"id": 950}, "assignee": {"id": 1099}}, "job": {"id": 315, "assignee": {"id": 1125}}, "organization": {"id": 1289}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 698}, "assignee": {"id": 584}, "project": {"id": 361, "owner": {"id": 769}, "assignee": {"id": 833}}, "task": {"id": 302, "owner": {"id": 960}, "assignee": {"id": 1039}}, "job": {"id": 302, "assignee": {"id": 1161}}, "organization": {"id": 142}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 683}, "assignee": {"id": 576}, "project": {"id": 300, "owner": {"id": 791}, "assignee": {"id": 804}}, "task": {"id": 358, "owner": {"id": 963}, "assignee": {"id": 1047}}, "job": {"id": 331, "assignee": {"id": 1102}}, "organization": {"id": 177}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 685}, "assignee": {"id": 502}, "project": {"id": 309, "owner": {"id": 713}, "assignee": {"id": 812}}, "task": {"id": 306, "owner": {"id": 948}, "assignee": {"id": 1033}}, "job": {"id": 390, "assignee": {"id": 1145}}, "organization": {"id": 1262}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 671}, "assignee": {"id": 518}, "project": {"id": 390, "owner": {"id": 706}, "assignee": {"id": 864}}, "task": {"id": 300, "owner": {"id": 959}, "assignee": {"id": 1002}}, "job": {"id": 397, "assignee": {"id": 1175}}, "organization": {"id": 1246}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 646}, "assignee": {"id": 561}, "project": {"id": 341, "owner": {"id": 775}, "assignee": {"id": 897}}, "task": {"id": 392, "owner": {"id": 972}, "assignee": {"id": 1000}}, "job": {"id": 312, "assignee": {"id": 1198}}, "organization": {"id": 119}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 648}, "assignee": {"id": 512}, "project": {"id": 350, "owner": {"id": 742}, "assignee": {"id": 858}}, "task": {"id": 376, "owner": {"id": 984}, "assignee": {"id": 1047}}, "job": {"id": 300, "assignee": {"id": 1107}}, "organization": {"id": 132}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 637}, "assignee": {"id": 511}, "project": {"id": 346, "owner": {"id": 780}, "assignee": {"id": 862}}, "task": {"id": 328, "owner": {"id": 964}, "assignee": {"id": 1047}}, "job": {"id": 390, "assignee": {"id": 1140}}, "organization": {"id": 1216}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 662}, "assignee": {"id": 549}, "project": {"id": 318, "owner": {"id": 711}, "assignee": {"id": 806}}, "task": {"id": 385, "owner": {"id": 983}, "assignee": {"id": 1027}}, "job": {"id": 390, "assignee": {"id": 1113}}, "organization": {"id": 1240}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 698}, "assignee": {"id": 526}, "project": {"id": 392, "owner": {"id": 780}, "assignee": {"id": 856}}, "task": {"id": 367, "owner": {"id": 962}, "assignee": {"id": 1093}}, "job": {"id": 348, "assignee": {"id": 1198}}, "organization": {"id": 104}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 660}, "assignee": {"id": 537}, "project": {"id": 306, "owner": {"id": 764}, "assignee": {"id": 811}}, "task": {"id": 322, "owner": {"id": 999}, "assignee": {"id": 1036}}, "job": {"id": 355, "assignee": {"id": 1148}}, "organization": {"id": 194}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 699}, "assignee": {"id": 577}, "project": {"id": 373, "owner": {"id": 752}, "assignee": {"id": 802}}, "task": {"id": 326, "owner": {"id": 934}, "assignee": {"id": 1092}}, "job": {"id": 360, "assignee": {"id": 1109}}, "organization": {"id": 1256}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 664}, "assignee": {"id": 504}, "project": {"id": 385, "owner": {"id": 700}, "assignee": {"id": 877}}, "task": {"id": 315, "owner": {"id": 991}, "assignee": {"id": 1077}}, "job": {"id": 339, "assignee": {"id": 1108}}, "organization": {"id": 1254}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 679}, "assignee": {"id": 501}, "project": {"id": 398, "owner": {"id": 766}, "assignee": {"id": 864}}, "task": {"id": 379, "owner": {"id": 979}, "assignee": {"id": 1075}}, "job": {"id": 318, "assignee": {"id": 1158}}, "organization": {"id": 156}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 637}, "assignee": {"id": 559}, "project": {"id": 346, "owner": {"id": 774}, "assignee": {"id": 823}}, "task": {"id": 358, "owner": {"id": 922}, "assignee": {"id": 1048}}, "job": {"id": 375, "assignee": {"id": 1138}}, "organization": {"id": 103}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 610}, "assignee": {"id": 585}, "project": {"id": 315, "owner": {"id": 790}, "assignee": {"id": 866}}, "task": {"id": 385, "owner": {"id": 979}, "assignee": {"id": 1089}}, "job": {"id": 333, "assignee": {"id": 1129}}, "organization": {"id": 1288}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 640}, "assignee": {"id": 564}, "project": {"id": 313, "owner": {"id": 776}, "assignee": {"id": 871}}, "task": {"id": 376, "owner": {"id": 943}, "assignee": {"id": 1056}}, "job": {"id": 396, "assignee": {"id": 1186}}, "organization": {"id": 1261}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 661}, "assignee": {"id": 522}, "project": {"id": 391, "owner": {"id": 738}, "assignee": {"id": 829}}, "task": {"id": 344, "owner": {"id": 935}, "assignee": {"id": 1002}}, "job": {"id": 357, "assignee": {"id": 1142}}, "organization": {"id": 113}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 633}, "assignee": {"id": 535}, "project": {"id": 345, "owner": {"id": 794}, "assignee": {"id": 848}}, "task": {"id": 330, "owner": {"id": 920}, "assignee": {"id": 1076}}, "job": {"id": 377, "assignee": {"id": 1117}}, "organization": {"id": 157}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 636}, "assignee": {"id": 590}, "project": {"id": 347, "owner": {"id": 773}, "assignee": {"id": 846}}, "task": {"id": 390, "owner": {"id": 905}, "assignee": {"id": 1096}}, "job": {"id": 312, "assignee": {"id": 1148}}, "organization": {"id": 1234}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 684}, "assignee": {"id": 593}, "project": {"id": 303, "owner": {"id": 789}, "assignee": {"id": 829}}, "task": {"id": 352, "owner": {"id": 947}, "assignee": {"id": 1033}}, "job": {"id": 361, "assignee": {"id": 1124}}, "organization": {"id": 1218}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 619}, "assignee": {"id": 598}, "project": {"id": 342, "owner": {"id": 797}, "assignee": {"id": 821}}, "task": {"id": 352, "owner": {"id": 947}, "assignee": {"id": 1009}}, "job": {"id": 383, "assignee": {"id": 1121}}, "organization": {"id": 151}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 606}, "assignee": {"id": 517}, "project": {"id": 381, "owner": {"id": 755}, "assignee": {"id": 895}}, "task": {"id": 325, "owner": {"id": 928}, "assignee": {"id": 1025}}, "job": {"id": 333, "assignee": {"id": 1143}}, "organization": {"id": 150}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 600}, "assignee": {"id": 532}, "project": {"id": 382, "owner": {"id": 746}, "assignee": {"id": 848}}, "task": {"id": 316, "owner": {"id": 909}, "assignee": {"id": 1094}}, "job": {"id": 346, "assignee": {"id": 1149}}, "organization": {"id": 1265}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 651}, "assignee": {"id": 573}, "project": {"id": 349, "owner": {"id": 756}, "assignee": {"id": 812}}, "task": {"id": 342, "owner": {"id": 986}, "assignee": {"id": 1099}}, "job": {"id": 348, "assignee": {"id": 1114}}, "organization": {"id": 1212}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 654}, "assignee": {"id": 534}, "project": {"id": 325, "owner": {"id": 745}, "assignee": {"id": 818}}, "task": {"id": 348, "owner": {"id": 985}, "assignee": {"id": 1056}}, "job": {"id": 330, "assignee": {"id": 1131}}, "organization": {"id": 199}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 626}, "assignee": {"id": 539}, "project": {"id": 324, "owner": {"id": 774}, "assignee": {"id": 861}}, "task": {"id": 381, "owner": {"id": 936}, "assignee": {"id": 1047}}, "job": {"id": 319, "assignee": {"id": 1115}}, "organization": {"id": 168}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 646}, "assignee": {"id": 517}, "project": {"id": 321, "owner": {"id": 703}, "assignee": {"id": 886}}, "task": {"id": 376, "owner": {"id": 956}, "assignee": {"id": 1053}}, "job": {"id": 375, "assignee": {"id": 1143}}, "organization": {"id": 1204}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 604}, "assignee": {"id": 544}, "project": {"id": 347, "owner": {"id": 748}, "assignee": {"id": 884}}, "task": {"id": 391, "owner": {"id": 912}, "assignee": {"id": 1092}}, "job": {"id": 329, "assignee": {"id": 1100}}, "organization": {"id": 1278}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 629}, "assignee": {"id": 505}, "project": {"id": 354, "owner": {"id": 704}, "assignee": {"id": 849}}, "task": {"id": 366, "owner": {"id": 989}, "assignee": {"id": 1075}}, "job": {"id": 303, "assignee": {"id": 1183}}, "organization": {"id": 118}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 626}, "assignee": {"id": 502}, "project": {"id": 308, "owner": {"id": 730}, "assignee": {"id": 894}}, "task": {"id": 352, "owner": {"id": 913}, "assignee": {"id": 1034}}, "job": {"id": 361, "assignee": {"id": 1136}}, "organization": {"id": 121}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 664}, "assignee": {"id": 587}, "project": {"id": 364, "owner": {"id": 754}, "assignee": {"id": 803}}, "task": {"id": 325, "owner": {"id": 954}, "assignee": {"id": 1046}}, "job": {"id": 373, "assignee": {"id": 1142}}, "organization": {"id": 1213}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 615}, "assignee": {"id": 558}, "project": {"id": 348, "owner": {"id": 798}, "assignee": {"id": 824}}, "task": {"id": 371, "owner": {"id": 980}, "assignee": {"id": 1027}}, "job": {"id": 306, "assignee": {"id": 1100}}, "organization": {"id": 1243}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 628}, "assignee": {"id": 501}, "project": {"id": 374, "owner": {"id": 784}, "assignee": {"id": 885}}, "task": {"id": 353, "owner": {"id": 990}, "assignee": {"id": 1050}}, "job": {"id": 372, "assignee": {"id": 1193}}, "organization": {"id": 177}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 688}, "assignee": {"id": 537}, "project": {"id": 375, "owner": {"id": 704}, "assignee": {"id": 807}}, "task": {"id": 309, "owner": {"id": 996}, "assignee": {"id": 1089}}, "job": {"id": 319, "assignee": {"id": 1163}}, "organization": {"id": 177}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 613}, "assignee": {"id": 564}, "project": {"id": 318, "owner": {"id": 735}, "assignee": {"id": 816}}, "task": {"id": 398, "owner": {"id": 997}, "assignee": {"id": 1060}}, "job": {"id": 364, "assignee": {"id": 1118}}, "organization": {"id": 1256}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 622}, "assignee": {"id": 562}, "project": {"id": 362, "owner": {"id": 783}, "assignee": {"id": 846}}, "task": {"id": 354, "owner": {"id": 923}, "assignee": {"id": 1044}}, "job": {"id": 389, "assignee": {"id": 1154}}, "organization": {"id": 1297}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 688}, "assignee": {"id": 549}, "project": {"id": 387, "owner": {"id": 744}, "assignee": {"id": 833}}, "task": {"id": 327, "owner": {"id": 941}, "assignee": {"id": 1021}}, "job": {"id": 392, "assignee": {"id": 1197}}, "organization": {"id": 192}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 664}, "assignee": {"id": 534}, "project": {"id": 352, "owner": {"id": 701}, "assignee": {"id": 893}}, "task": {"id": 303, "owner": {"id": 926}, "assignee": {"id": 1061}}, "job": {"id": 393, "assignee": {"id": 1121}}, "organization": {"id": 103}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 618}, "assignee": {"id": 582}, "project": {"id": 350, "owner": {"id": 751}, "assignee": {"id": 898}}, "task": {"id": 323, "owner": {"id": 927}, "assignee": {"id": 1030}}, "job": {"id": 357, "assignee": {"id": 1147}}, "organization": {"id": 1273}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 653}, "assignee": {"id": 581}, "project": {"id": 397, "owner": {"id": 727}, "assignee": {"id": 813}}, "task": {"id": 357, "owner": {"id": 977}, "assignee": {"id": 1082}}, "job": {"id": 314, "assignee": {"id": 1101}}, "organization": {"id": 1239}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 656}, "assignee": {"id": 562}, "project": {"id": 318, "owner": {"id": 703}, "assignee": {"id": 813}}, "task": {"id": 335, "owner": {"id": 902}, "assignee": {"id": 1009}}, "job": {"id": 306, "assignee": {"id": 1169}}, "organization": {"id": 111}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 686}, "assignee": {"id": 558}, "project": {"id": 338, "owner": {"id": 772}, "assignee": {"id": 851}}, "task": {"id": 303, "owner": {"id": 902}, "assignee": {"id": 1017}}, "job": {"id": 358, "assignee": {"id": 1153}}, "organization": {"id": 127}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 684}, "assignee": {"id": 501}, "project": {"id": 386, "owner": {"id": 736}, "assignee": {"id": 875}}, "task": {"id": 332, "owner": {"id": 916}, "assignee": {"id": 1022}}, "job": {"id": 384, "assignee": {"id": 1180}}, "organization": {"id": 1271}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 664}, "assignee": {"id": 578}, "project": {"id": 384, "owner": {"id": 718}, "assignee": {"id": 888}}, "task": {"id": 316, "owner": {"id": 975}, "assignee": {"id": 1031}}, "job": {"id": 379, "assignee": {"id": 1157}}, "organization": {"id": 1216}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 682}, "assignee": {"id": 504}, "project": {"id": 333, "owner": {"id": 796}, "assignee": {"id": 873}}, "task": {"id": 325, "owner": {"id": 974}, "assignee": {"id": 1027}}, "job": {"id": 368, "assignee": {"id": 1131}}, "organization": {"id": 122}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 664}, "assignee": {"id": 563}, "project": {"id": 362, "owner": {"id": 767}, "assignee": {"id": 862}}, "task": {"id": 320, "owner": {"id": 986}, "assignee": {"id": 1054}}, "job": {"id": 332, "assignee": {"id": 1130}}, "organization": {"id": 137}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 600}, "assignee": {"id": 584}, "project": {"id": 306, "owner": {"id": 709}, "assignee": {"id": 821}}, "task": {"id": 307, "owner": {"id": 928}, "assignee": {"id": 1028}}, "job": {"id": 311, "assignee": {"id": 1174}}, "organization": {"id": 1283}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 608}, "assignee": {"id": 564}, "project": {"id": 327, "owner": {"id": 768}, "assignee": {"id": 881}}, "task": {"id": 382, "owner": {"id": 965}, "assignee": {"id": 1066}}, "job": {"id": 377, "assignee": {"id": 1180}}, "organization": {"id": 1253}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 660}, "assignee": {"id": 542}, "project": {"id": 370, "owner": {"id": 777}, "assignee": {"id": 880}}, "task": {"id": 354, "owner": {"id": 962}, "assignee": {"id": 1054}}, "job": {"id": 317, "assignee": {"id": 1147}}, "organization": {"id": 101}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 647}, "assignee": {"id": 568}, "project": {"id": 336, "owner": {"id": 706}, "assignee": {"id": 868}}, "task": {"id": 331, "owner": {"id": 947}, "assignee": {"id": 1042}}, "job": {"id": 306, "assignee": {"id": 1187}}, "organization": {"id": 175}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 694}, "assignee": {"id": 552}, "project": {"id": 356, "owner": {"id": 753}, "assignee": {"id": 898}}, "task": {"id": 395, "owner": {"id": 963}, "assignee": {"id": 1042}}, "job": {"id": 356, "assignee": {"id": 1169}}, "organization": {"id": 1208}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 650}, "assignee": {"id": 527}, "project": {"id": 355, "owner": {"id": 724}, "assignee": {"id": 823}}, "task": {"id": 305, "owner": {"id": 915}, "assignee": {"id": 1062}}, "job": {"id": 332, "assignee": {"id": 1181}}, "organization": {"id": 1205}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 684}, "assignee": {"id": 556}, "project": {"id": 327, "owner": {"id": 737}, "assignee": {"id": 817}}, "task": {"id": 314, "owner": {"id": 913}, "assignee": {"id": 1003}}, "job": {"id": 386, "assignee": {"id": 1150}}, "organization": {"id": 181}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 635}, "assignee": {"id": 554}, "project": {"id": 319, "owner": {"id": 719}, "assignee": {"id": 852}}, "task": {"id": 360, "owner": {"id": 914}, "assignee": {"id": 1012}}, "job": {"id": 362, "assignee": {"id": 1190}}, "organization": {"id": 129}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 658}, "assignee": {"id": 560}, "project": {"id": 324, "owner": {"id": 701}, "assignee": {"id": 855}}, "task": {"id": 355, "owner": {"id": 956}, "assignee": {"id": 1070}}, "job": {"id": 331, "assignee": {"id": 1149}}, "organization": {"id": 1213}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 664}, "assignee": {"id": 599}, "project": {"id": 310, "owner": {"id": 748}, "assignee": {"id": 808}}, "task": {"id": 379, "owner": {"id": 960}, "assignee": {"id": 1035}}, "job": {"id": 380, "assignee": {"id": 1102}}, "organization": {"id": 1249}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 678}, "assignee": {"id": 582}, "project": {"id": 318, "owner": {"id": 731}, "assignee": {"id": 869}}, "task": {"id": 322, "owner": {"id": 930}, "assignee": {"id": 1066}}, "job": {"id": 364, "assignee": {"id": 1188}}, "organization": {"id": 151}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 684}, "assignee": {"id": 517}, "project": {"id": 343, "owner": {"id": 707}, "assignee": {"id": 820}}, "task": {"id": 383, "owner": {"id": 966}, "assignee": {"id": 1038}}, "job": {"id": 388, "assignee": {"id": 1146}}, "organization": {"id": 134}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 694}, "assignee": {"id": 599}, "project": {"id": 314, "owner": {"id": 767}, "assignee": {"id": 851}}, "task": {"id": 355, "owner": {"id": 999}, "assignee": {"id": 1028}}, "job": {"id": 388, "assignee": {"id": 1146}}, "organization": {"id": 1284}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 692}, "assignee": {"id": 549}, "project": {"id": 385, "owner": {"id": 760}, "assignee": {"id": 826}}, "task": {"id": 399, "owner": {"id": 998}, "assignee": {"id": 1062}}, "job": {"id": 316, "assignee": {"id": 1175}}, "organization": {"id": 1236}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 665}, "assignee": {"id": 571}, "project": {"id": 323, "owner": {"id": 731}, "assignee": {"id": 869}}, "task": {"id": 319, "owner": {"id": 984}, "assignee": {"id": 1078}}, "job": {"id": 306, "assignee": {"id": 1130}}, "organization": {"id": 103}}} +} + +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": 115, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 622}, "assignee": {"id": 508}, "project": {"id": 378, "owner": {"id": 722}, "assignee": {"id": 878}}, "task": {"id": 372, "owner": {"id": 988}, "assignee": {"id": 1006}}, "job": {"id": 348, "assignee": {"id": 1191}}, "organization": {"id": 115}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 676}, "assignee": {"id": 522}, "project": {"id": 307, "owner": {"id": 758}, "assignee": {"id": 854}}, "task": {"id": 307, "owner": {"id": 964}, "assignee": {"id": 1000}}, "job": {"id": 311, "assignee": {"id": 1186}}, "organization": {"id": 1232}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 646}, "assignee": {"id": 561}, "project": {"id": 393, "owner": {"id": 792}, "assignee": {"id": 887}}, "task": {"id": 372, "owner": {"id": 973}, "assignee": {"id": 1007}}, "job": {"id": 318, "assignee": {"id": 1161}}, "organization": {"id": 1226}}} +} + +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": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 667}, "assignee": {"id": 504}, "project": {"id": 376, "owner": {"id": 52}, "assignee": {"id": 842}}, "task": {"id": 370, "owner": {"id": 913}, "assignee": {"id": 1026}}, "job": {"id": 357, "assignee": {"id": 1107}}, "organization": {"id": 1265}}} +} + +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": 98, "privilege": "business"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 672}, "assignee": {"id": 543}, "project": {"id": 391, "owner": {"id": 98}, "assignee": {"id": 839}}, "task": {"id": 334, "owner": {"id": 925}, "assignee": {"id": 1066}}, "job": {"id": 393, "assignee": {"id": 1174}}, "organization": {"id": 1298}}} +} + +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": 35, "privilege": "user"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 697}, "assignee": {"id": 563}, "project": {"id": 343, "owner": {"id": 35}, "assignee": {"id": 851}}, "task": {"id": 339, "owner": {"id": 949}, "assignee": {"id": 1003}}, "job": {"id": 397, "assignee": {"id": 1130}}, "organization": {"id": 1244}}} +} + +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": 27, "privilege": "worker"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 632}, "assignee": {"id": 524}, "project": {"id": 397, "owner": {"id": 27}, "assignee": {"id": 802}}, "task": {"id": 361, "owner": {"id": 925}, "assignee": {"id": 1067}}, "job": {"id": 384, "assignee": {"id": 1112}}, "organization": {"id": 1220}}} +} + +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": 24, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 681}, "assignee": {"id": 596}, "project": {"id": 306, "owner": {"id": 24}, "assignee": {"id": 846}}, "task": {"id": 389, "owner": {"id": 961}, "assignee": {"id": 1052}}, "job": {"id": 355, "assignee": {"id": 1110}}, "organization": {"id": 1280}}} +} + +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": 27, "privilege": "admin"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 600}, "assignee": {"id": 574}, "project": {"id": 326, "owner": {"id": 762}, "assignee": {"id": 27}}, "task": {"id": 386, "owner": {"id": 939}, "assignee": {"id": 1046}}, "job": {"id": 376, "assignee": {"id": 1102}}, "organization": {"id": 1262}}} +} + +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": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 600}, "assignee": {"id": 509}, "project": {"id": 340, "owner": {"id": 765}, "assignee": {"id": 79}}, "task": {"id": 336, "owner": {"id": 981}, "assignee": {"id": 1075}}, "job": {"id": 390, "assignee": {"id": 1197}}, "organization": {"id": 1284}}} +} + +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": 30, "privilege": "user"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 659}, "assignee": {"id": 572}, "project": {"id": 309, "owner": {"id": 760}, "assignee": {"id": 30}}, "task": {"id": 381, "owner": {"id": 921}, "assignee": {"id": 1097}}, "job": {"id": 358, "assignee": {"id": 1103}}, "organization": {"id": 1249}}} +} + +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": 66, "privilege": "worker"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 615}, "assignee": {"id": 544}, "project": {"id": 301, "owner": {"id": 793}, "assignee": {"id": 66}}, "task": {"id": 314, "owner": {"id": 936}, "assignee": {"id": 1036}}, "job": {"id": 342, "assignee": {"id": 1177}}, "organization": {"id": 1217}}} +} + +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": 10, "privilege": "none"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 618}, "assignee": {"id": 534}, "project": {"id": 343, "owner": {"id": 756}, "assignee": {"id": 10}}, "task": {"id": 380, "owner": {"id": 917}, "assignee": {"id": 1090}}, "job": {"id": 330, "assignee": {"id": 1179}}, "organization": {"id": 1274}}} +} + +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": 94, "privilege": "admin"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 692}, "assignee": {"id": 550}, "project": {"id": 383, "owner": {"id": 778}, "assignee": {"id": 812}}, "task": {"id": 318, "owner": {"id": 94}, "assignee": {"id": 1052}}, "job": {"id": 319, "assignee": {"id": 1130}}, "organization": {"id": 1216}}} +} + +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": 76, "privilege": "admin"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 623}, "assignee": {"id": 591}, "project": {"id": 328, "owner": {"id": 709}, "assignee": {"id": 884}}, "task": {"id": 377, "owner": {"id": 76}, "assignee": {"id": 1091}}, "job": {"id": 373, "assignee": {"id": 1146}}, "organization": {"id": 1279}}} +} + +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": 83, "privilege": "business"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 603}, "assignee": {"id": 574}, "project": {"id": 364, "owner": {"id": 708}, "assignee": {"id": 835}}, "task": {"id": 312, "owner": {"id": 83}, "assignee": {"id": 1023}}, "job": {"id": 365, "assignee": {"id": 1162}}, "organization": {"id": 1226}}} +} + +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": 15, "privilege": "business"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 676}, "assignee": {"id": 584}, "project": {"id": 334, "owner": {"id": 790}, "assignee": {"id": 883}}, "task": {"id": 327, "owner": {"id": 15}, "assignee": {"id": 1043}}, "job": {"id": 381, "assignee": {"id": 1172}}, "organization": {"id": 1219}}} +} + +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": 75, "privilege": "user"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 624}, "assignee": {"id": 532}, "project": {"id": 327, "owner": {"id": 734}, "assignee": {"id": 811}}, "task": {"id": 379, "owner": {"id": 75}, "assignee": {"id": 1024}}, "job": {"id": 397, "assignee": {"id": 1189}}, "organization": {"id": 1249}}} +} + +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": 89, "privilege": "user"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 672}, "assignee": {"id": 507}, "project": {"id": 394, "owner": {"id": 764}, "assignee": {"id": 849}}, "task": {"id": 318, "owner": {"id": 89}, "assignee": {"id": 1086}}, "job": {"id": 322, "assignee": {"id": 1199}}, "organization": {"id": 1228}}} +} + +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": 36, "privilege": "worker"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 617}, "assignee": {"id": 596}, "project": {"id": 358, "owner": {"id": 780}, "assignee": {"id": 863}}, "task": {"id": 350, "owner": {"id": 36}, "assignee": {"id": 1016}}, "job": {"id": 341, "assignee": {"id": 1190}}, "organization": {"id": 1252}}} +} + +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": 88, "privilege": "worker"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 659}, "assignee": {"id": 592}, "project": {"id": 307, "owner": {"id": 794}, "assignee": {"id": 863}}, "task": {"id": 355, "owner": {"id": 88}, "assignee": {"id": 1010}}, "job": {"id": 367, "assignee": {"id": 1121}}, "organization": {"id": 1282}}} +} + +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": 31, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 691}, "assignee": {"id": 594}, "project": {"id": 391, "owner": {"id": 713}, "assignee": {"id": 878}}, "task": {"id": 361, "owner": {"id": 31}, "assignee": {"id": 1089}}, "job": {"id": 378, "assignee": {"id": 1193}}, "organization": {"id": 1272}}} +} + +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": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 634}, "assignee": {"id": 547}, "project": {"id": 300, "owner": {"id": 709}, "assignee": {"id": 850}}, "task": {"id": 387, "owner": {"id": 38}, "assignee": {"id": 1024}}, "job": {"id": 314, "assignee": {"id": 1195}}, "organization": {"id": 1248}}} +} + +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": 95, "privilege": "admin"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 632}, "assignee": {"id": 560}, "project": {"id": 384, "owner": {"id": 736}, "assignee": {"id": 855}}, "task": {"id": 346, "owner": {"id": 906}, "assignee": {"id": 95}}, "job": {"id": 370, "assignee": {"id": 1197}}, "organization": {"id": 1296}}} +} + +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": 83, "privilege": "admin"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 622}, "assignee": {"id": 593}, "project": {"id": 384, "owner": {"id": 733}, "assignee": {"id": 897}}, "task": {"id": 376, "owner": {"id": 940}, "assignee": {"id": 83}}, "job": {"id": 303, "assignee": {"id": 1118}}, "organization": {"id": 1217}}} +} + +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": 2, "privilege": "business"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 623}, "assignee": {"id": 575}, "project": {"id": 320, "owner": {"id": 780}, "assignee": {"id": 892}}, "task": {"id": 354, "owner": {"id": 940}, "assignee": {"id": 2}}, "job": {"id": 391, "assignee": {"id": 1161}}, "organization": {"id": 1260}}} +} + +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": 5, "privilege": "business"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 699}, "assignee": {"id": 571}, "project": {"id": 332, "owner": {"id": 716}, "assignee": {"id": 834}}, "task": {"id": 399, "owner": {"id": 900}, "assignee": {"id": 5}}, "job": {"id": 316, "assignee": {"id": 1192}}, "organization": {"id": 1222}}} +} + +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": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 671}, "assignee": {"id": 546}, "project": {"id": 350, "owner": {"id": 793}, "assignee": {"id": 823}}, "task": {"id": 317, "owner": {"id": 994}, "assignee": {"id": 57}}, "job": {"id": 315, "assignee": {"id": 1163}}, "organization": {"id": 1230}}} +} + +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": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 643}, "assignee": {"id": 583}, "project": {"id": 308, "owner": {"id": 783}, "assignee": {"id": 835}}, "task": {"id": 375, "owner": {"id": 981}, "assignee": {"id": 48}}, "job": {"id": 372, "assignee": {"id": 1128}}, "organization": {"id": 1208}}} +} + +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": 99, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 677}, "assignee": {"id": 527}, "project": {"id": 399, "owner": {"id": 733}, "assignee": {"id": 889}}, "task": {"id": 325, "owner": {"id": 900}, "assignee": {"id": 99}}, "job": {"id": 362, "assignee": {"id": 1111}}, "organization": {"id": 1219}}} +} + +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": 6, "privilege": "worker"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 691}, "assignee": {"id": 549}, "project": {"id": 317, "owner": {"id": 731}, "assignee": {"id": 839}}, "task": {"id": 327, "owner": {"id": 902}, "assignee": {"id": 6}}, "job": {"id": 327, "assignee": {"id": 1150}}, "organization": {"id": 1245}}} +} + +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": 87, "privilege": "none"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 667}, "assignee": {"id": 559}, "project": {"id": 379, "owner": {"id": 756}, "assignee": {"id": 806}}, "task": {"id": 353, "owner": {"id": 947}, "assignee": {"id": 87}}, "job": {"id": 347, "assignee": {"id": 1137}}, "organization": {"id": 1234}}} +} + +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": 31, "privilege": "none"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 612}, "assignee": {"id": 579}, "project": {"id": 376, "owner": {"id": 702}, "assignee": {"id": 801}}, "task": {"id": 321, "owner": {"id": 907}, "assignee": {"id": 31}}, "job": {"id": 305, "assignee": {"id": 1158}}, "organization": {"id": 1273}}} +} + +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": 1, "privilege": "admin"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 648}, "assignee": {"id": 504}, "project": {"id": 365, "owner": {"id": 752}, "assignee": {"id": 856}}, "task": {"id": 341, "owner": {"id": 900}, "assignee": {"id": 1043}}, "job": {"id": 358, "assignee": {"id": 1}}, "organization": {"id": 1232}}} +} + +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": 74, "privilege": "admin"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 691}, "assignee": {"id": 528}, "project": {"id": 377, "owner": {"id": 781}, "assignee": {"id": 853}}, "task": {"id": 369, "owner": {"id": 996}, "assignee": {"id": 1083}}, "job": {"id": 345, "assignee": {"id": 74}}, "organization": {"id": 1284}}} +} + +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": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 644}, "assignee": {"id": 575}, "project": {"id": 389, "owner": {"id": 737}, "assignee": {"id": 884}}, "task": {"id": 327, "owner": {"id": 965}, "assignee": {"id": 1039}}, "job": {"id": 302, "assignee": {"id": 82}}, "organization": {"id": 1210}}} +} + +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": 54, "privilege": "business"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 617}, "assignee": {"id": 587}, "project": {"id": 375, "owner": {"id": 784}, "assignee": {"id": 807}}, "task": {"id": 379, "owner": {"id": 974}, "assignee": {"id": 1095}}, "job": {"id": 338, "assignee": {"id": 54}}, "organization": {"id": 1202}}} +} + +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": 92, "privilege": "user"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 614}, "assignee": {"id": 562}, "project": {"id": 371, "owner": {"id": 738}, "assignee": {"id": 821}}, "task": {"id": 304, "owner": {"id": 949}, "assignee": {"id": 1071}}, "job": {"id": 336, "assignee": {"id": 92}}, "organization": {"id": 1220}}} +} + +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": 45, "privilege": "user"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 657}, "assignee": {"id": 530}, "project": {"id": 319, "owner": {"id": 773}, "assignee": {"id": 856}}, "task": {"id": 396, "owner": {"id": 909}, "assignee": {"id": 1004}}, "job": {"id": 322, "assignee": {"id": 45}}, "organization": {"id": 1269}}} +} + +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": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 698}, "assignee": {"id": 523}, "project": {"id": 324, "owner": {"id": 769}, "assignee": {"id": 821}}, "task": {"id": 360, "owner": {"id": 925}, "assignee": {"id": 1020}}, "job": {"id": 373, "assignee": {"id": 56}}, "organization": {"id": 1259}}} +} + +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": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 625}, "assignee": {"id": 522}, "project": {"id": 356, "owner": {"id": 739}, "assignee": {"id": 873}}, "task": {"id": 334, "owner": {"id": 910}, "assignee": {"id": 1032}}, "job": {"id": 304, "assignee": {"id": 42}}, "organization": {"id": 1224}}} +} + +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": 67, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 685}, "assignee": {"id": 537}, "project": {"id": 324, "owner": {"id": 766}, "assignee": {"id": 811}}, "task": {"id": 305, "owner": {"id": 980}, "assignee": {"id": 1070}}, "job": {"id": 348, "assignee": {"id": 67}}, "organization": {"id": 1293}}} +} + +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": 1, "privilege": "none"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 648}, "assignee": {"id": 552}, "project": {"id": 365, "owner": {"id": 738}, "assignee": {"id": 891}}, "task": {"id": 350, "owner": {"id": 939}, "assignee": {"id": 1065}}, "job": {"id": 339, "assignee": {"id": 1}}, "organization": {"id": 1263}}} +} + +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": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 52}, "assignee": {"id": 560}, "project": {"id": 376, "owner": {"id": 790}, "assignee": {"id": 806}}, "task": {"id": 381, "owner": {"id": 977}, "assignee": {"id": 1030}}, "job": {"id": 319, "assignee": {"id": 1158}}, "organization": {"id": 1281}}} +} + +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": 60, "privilege": "admin"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 60}, "assignee": {"id": 569}, "project": {"id": 304, "owner": {"id": 789}, "assignee": {"id": 850}}, "task": {"id": 355, "owner": {"id": 979}, "assignee": {"id": 1081}}, "job": {"id": 331, "assignee": {"id": 1113}}, "organization": {"id": 1249}}} +} + +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": 84, "privilege": "business"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 84}, "assignee": {"id": 555}, "project": {"id": 399, "owner": {"id": 738}, "assignee": {"id": 891}}, "task": {"id": 317, "owner": {"id": 900}, "assignee": {"id": 1010}}, "job": {"id": 369, "assignee": {"id": 1122}}, "organization": {"id": 1290}}} +} + +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": 73, "privilege": "business"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 73}, "assignee": {"id": 560}, "project": {"id": 396, "owner": {"id": 744}, "assignee": {"id": 845}}, "task": {"id": 396, "owner": {"id": 966}, "assignee": {"id": 1087}}, "job": {"id": 376, "assignee": {"id": 1192}}, "organization": {"id": 1282}}} +} + +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": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 22}, "assignee": {"id": 515}, "project": {"id": 306, "owner": {"id": 743}, "assignee": {"id": 822}}, "task": {"id": 356, "owner": {"id": 996}, "assignee": {"id": 1031}}, "job": {"id": 368, "assignee": {"id": 1142}}, "organization": {"id": 1244}}} +} + +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": 82, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 82}, "assignee": {"id": 549}, "project": {"id": 316, "owner": {"id": 778}, "assignee": {"id": 851}}, "task": {"id": 316, "owner": {"id": 952}, "assignee": {"id": 1015}}, "job": {"id": 336, "assignee": {"id": 1133}}, "organization": {"id": 1258}}} +} + +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": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 62}, "assignee": {"id": 590}, "project": {"id": 393, "owner": {"id": 762}, "assignee": {"id": 825}}, "task": {"id": 386, "owner": {"id": 941}, "assignee": {"id": 1011}}, "job": {"id": 399, "assignee": {"id": 1172}}, "organization": {"id": 1202}}} +} + +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": 59, "privilege": "worker"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 59}, "assignee": {"id": 578}, "project": {"id": 380, "owner": {"id": 706}, "assignee": {"id": 855}}, "task": {"id": 384, "owner": {"id": 982}, "assignee": {"id": 1050}}, "job": {"id": 389, "assignee": {"id": 1179}}, "organization": {"id": 1231}}} +} + +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": 68, "privilege": "none"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 68}, "assignee": {"id": 531}, "project": {"id": 371, "owner": {"id": 733}, "assignee": {"id": 810}}, "task": {"id": 367, "owner": {"id": 980}, "assignee": {"id": 1088}}, "job": {"id": 304, "assignee": {"id": 1192}}, "organization": {"id": 1202}}} +} + +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": 4, "privilege": "none"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 4}, "assignee": {"id": 571}, "project": {"id": 312, "owner": {"id": 775}, "assignee": {"id": 899}}, "task": {"id": 350, "owner": {"id": 999}, "assignee": {"id": 1079}}, "job": {"id": 396, "assignee": {"id": 1121}}, "organization": {"id": 1285}}} +} + +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": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 696}, "assignee": {"id": 77}, "project": {"id": 391, "owner": {"id": 790}, "assignee": {"id": 831}}, "task": {"id": 329, "owner": {"id": 958}, "assignee": {"id": 1059}}, "job": {"id": 349, "assignee": {"id": 1116}}, "organization": {"id": 1262}}} +} + +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": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 647}, "assignee": {"id": 49}, "project": {"id": 355, "owner": {"id": 716}, "assignee": {"id": 861}}, "task": {"id": 312, "owner": {"id": 994}, "assignee": {"id": 1094}}, "job": {"id": 329, "assignee": {"id": 1186}}, "organization": {"id": 1239}}} +} + +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": 23, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 633}, "assignee": {"id": 23}, "project": {"id": 367, "owner": {"id": 768}, "assignee": {"id": 856}}, "task": {"id": 304, "owner": {"id": 939}, "assignee": {"id": 1003}}, "job": {"id": 379, "assignee": {"id": 1143}}, "organization": {"id": 1250}}} +} + +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": 37, "privilege": "business"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 689}, "assignee": {"id": 37}, "project": {"id": 357, "owner": {"id": 716}, "assignee": {"id": 884}}, "task": {"id": 396, "owner": {"id": 960}, "assignee": {"id": 1002}}, "job": {"id": 365, "assignee": {"id": 1189}}, "organization": {"id": 1280}}} +} + +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": 55, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 601}, "assignee": {"id": 55}, "project": {"id": 393, "owner": {"id": 740}, "assignee": {"id": 835}}, "task": {"id": 309, "owner": {"id": 920}, "assignee": {"id": 1087}}, "job": {"id": 368, "assignee": {"id": 1138}}, "organization": {"id": 1273}}} +} + +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": 0, "privilege": "user"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 649}, "assignee": {"id": 0}, "project": {"id": 385, "owner": {"id": 707}, "assignee": {"id": 887}}, "task": {"id": 387, "owner": {"id": 997}, "assignee": {"id": 1082}}, "job": {"id": 388, "assignee": {"id": 1100}}, "organization": {"id": 1241}}} +} + +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": 326, "owner": {"id": 633}, "assignee": {"id": 37}, "project": {"id": 309, "owner": {"id": 726}, "assignee": {"id": 825}}, "task": {"id": 345, "owner": {"id": 991}, "assignee": {"id": 1017}}, "job": {"id": 308, "assignee": {"id": 1179}}, "organization": {"id": 1283}}} +} + +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": 95, "privilege": "worker"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 659}, "assignee": {"id": 95}, "project": {"id": 307, "owner": {"id": 794}, "assignee": {"id": 847}}, "task": {"id": 343, "owner": {"id": 979}, "assignee": {"id": 1057}}, "job": {"id": 375, "assignee": {"id": 1160}}, "organization": {"id": 1284}}} +} + +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": 7, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 632}, "assignee": {"id": 7}, "project": {"id": 347, "owner": {"id": 774}, "assignee": {"id": 837}}, "task": {"id": 397, "owner": {"id": 935}, "assignee": {"id": 1022}}, "job": {"id": 367, "assignee": {"id": 1179}}, "organization": {"id": 1230}}} +} + +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": 3, "privilege": "none"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 627}, "assignee": {"id": 3}, "project": {"id": 381, "owner": {"id": 770}, "assignee": {"id": 819}}, "task": {"id": 319, "owner": {"id": 973}, "assignee": {"id": 1051}}, "job": {"id": 379, "assignee": {"id": 1171}}, "organization": {"id": 1278}}} +} + +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": 19, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 654}, "assignee": {"id": 522}, "project": {"id": 333, "owner": {"id": 717}, "assignee": {"id": 828}}, "task": {"id": 330, "owner": {"id": 968}, "assignee": {"id": 1025}}, "job": {"id": 341, "assignee": {"id": 1133}}, "organization": {"id": 1209}}} +} + +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": 63, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 677}, "assignee": {"id": 505}, "project": {"id": 372, "owner": {"id": 737}, "assignee": {"id": 848}}, "task": {"id": 354, "owner": {"id": 990}, "assignee": {"id": 1097}}, "job": {"id": 340, "assignee": {"id": 1165}}, "organization": {"id": 1245}}} +} + +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": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 625}, "assignee": {"id": 561}, "project": {"id": 307, "owner": {"id": 721}, "assignee": {"id": 846}}, "task": {"id": 320, "owner": {"id": 920}, "assignee": {"id": 1030}}, "job": {"id": 363, "assignee": {"id": 1198}}, "organization": {"id": 1244}}} +} + +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": 75, "privilege": "business"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 676}, "assignee": {"id": 534}, "project": {"id": 398, "owner": {"id": 748}, "assignee": {"id": 893}}, "task": {"id": 395, "owner": {"id": 990}, "assignee": {"id": 1094}}, "job": {"id": 385, "assignee": {"id": 1167}}, "organization": {"id": 1233}}} +} + +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": 93, "privilege": "user"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 640}, "assignee": {"id": 508}, "project": {"id": 365, "owner": {"id": 733}, "assignee": {"id": 829}}, "task": {"id": 374, "owner": {"id": 988}, "assignee": {"id": 1066}}, "job": {"id": 363, "assignee": {"id": 1115}}, "organization": {"id": 1240}}} +} + +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": 86, "privilege": "user"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 677}, "assignee": {"id": 579}, "project": {"id": 375, "owner": {"id": 726}, "assignee": {"id": 832}}, "task": {"id": 300, "owner": {"id": 938}, "assignee": {"id": 1091}}, "job": {"id": 346, "assignee": {"id": 1110}}, "organization": {"id": 1264}}} +} + +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": 23, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 691}, "assignee": {"id": 560}, "project": {"id": 328, "owner": {"id": 761}, "assignee": {"id": 885}}, "task": {"id": 334, "owner": {"id": 930}, "assignee": {"id": 1085}}, "job": {"id": 339, "assignee": {"id": 1107}}, "organization": {"id": 1249}}} +} + +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": 53, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 674}, "assignee": {"id": 591}, "project": {"id": 302, "owner": {"id": 792}, "assignee": {"id": 863}}, "task": {"id": 359, "owner": {"id": 950}, "assignee": {"id": 1001}}, "job": {"id": 399, "assignee": {"id": 1116}}, "organization": {"id": 1222}}} +} + +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": 20, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 673}, "assignee": {"id": 587}, "project": {"id": 347, "owner": {"id": 778}, "assignee": {"id": 821}}, "task": {"id": 340, "owner": {"id": 907}, "assignee": {"id": 1042}}, "job": {"id": 355, "assignee": {"id": 1142}}, "organization": {"id": 1215}}} +} + +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": 77, "privilege": "none"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 669}, "assignee": {"id": 593}, "project": {"id": 322, "owner": {"id": 719}, "assignee": {"id": 843}}, "task": {"id": 334, "owner": {"id": 962}, "assignee": {"id": 1043}}, "job": {"id": 329, "assignee": {"id": 1186}}, "organization": {"id": 1261}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 671}, "assignee": {"id": 577}, "project": {"id": 327, "owner": {"id": 86}, "assignee": {"id": 828}}, "task": {"id": 305, "owner": {"id": 970}, "assignee": {"id": 1011}}, "job": {"id": 386, "assignee": {"id": 1111}}, "organization": {"id": 187}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 677}, "assignee": {"id": 582}, "project": {"id": 344, "owner": {"id": 85}, "assignee": {"id": 810}}, "task": {"id": 336, "owner": {"id": 974}, "assignee": {"id": 1085}}, "job": {"id": 364, "assignee": {"id": 1152}}, "organization": {"id": 1203}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 644}, "assignee": {"id": 590}, "project": {"id": 377, "owner": {"id": 86}, "assignee": {"id": 884}}, "task": {"id": 321, "owner": {"id": 973}, "assignee": {"id": 1044}}, "job": {"id": 328, "assignee": {"id": 1139}}, "organization": {"id": 101}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 670}, "assignee": {"id": 599}, "project": {"id": 376, "owner": {"id": 16}, "assignee": {"id": 849}}, "task": {"id": 315, "owner": {"id": 968}, "assignee": {"id": 1046}}, "job": {"id": 339, "assignee": {"id": 1170}}, "organization": {"id": 1281}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 680}, "assignee": {"id": 580}, "project": {"id": 308, "owner": {"id": 98}, "assignee": {"id": 874}}, "task": {"id": 373, "owner": {"id": 997}, "assignee": {"id": 1036}}, "job": {"id": 330, "assignee": {"id": 1179}}, "organization": {"id": 127}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 632}, "assignee": {"id": 524}, "project": {"id": 348, "owner": {"id": 86}, "assignee": {"id": 844}}, "task": {"id": 305, "owner": {"id": 982}, "assignee": {"id": 1061}}, "job": {"id": 345, "assignee": {"id": 1162}}, "organization": {"id": 1254}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 621}, "assignee": {"id": 558}, "project": {"id": 333, "owner": {"id": 51}, "assignee": {"id": 876}}, "task": {"id": 333, "owner": {"id": 993}, "assignee": {"id": 1048}}, "job": {"id": 362, "assignee": {"id": 1132}}, "organization": {"id": 133}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 625}, "assignee": {"id": 596}, "project": {"id": 379, "owner": {"id": 87}, "assignee": {"id": 872}}, "task": {"id": 374, "owner": {"id": 955}, "assignee": {"id": 1088}}, "job": {"id": 323, "assignee": {"id": 1130}}, "organization": {"id": 1276}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 655}, "assignee": {"id": 522}, "project": {"id": 392, "owner": {"id": 56}, "assignee": {"id": 877}}, "task": {"id": 374, "owner": {"id": 944}, "assignee": {"id": 1054}}, "job": {"id": 396, "assignee": {"id": 1156}}, "organization": {"id": 125}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 631}, "assignee": {"id": 567}, "project": {"id": 382, "owner": {"id": 27}, "assignee": {"id": 860}}, "task": {"id": 395, "owner": {"id": 933}, "assignee": {"id": 1038}}, "job": {"id": 388, "assignee": {"id": 1187}}, "organization": {"id": 1273}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 675}, "assignee": {"id": 592}, "project": {"id": 353, "owner": {"id": 85}, "assignee": {"id": 819}}, "task": {"id": 352, "owner": {"id": 900}, "assignee": {"id": 1029}}, "job": {"id": 336, "assignee": {"id": 1169}}, "organization": {"id": 127}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 650}, "assignee": {"id": 513}, "project": {"id": 357, "owner": {"id": 11}, "assignee": {"id": 841}}, "task": {"id": 351, "owner": {"id": 908}, "assignee": {"id": 1069}}, "job": {"id": 370, "assignee": {"id": 1100}}, "organization": {"id": 1252}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 626}, "assignee": {"id": 597}, "project": {"id": 380, "owner": {"id": 84}, "assignee": {"id": 864}}, "task": {"id": 342, "owner": {"id": 940}, "assignee": {"id": 1064}}, "job": {"id": 368, "assignee": {"id": 1164}}, "organization": {"id": 194}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 638}, "assignee": {"id": 594}, "project": {"id": 362, "owner": {"id": 1}, "assignee": {"id": 883}}, "task": {"id": 343, "owner": {"id": 926}, "assignee": {"id": 1082}}, "job": {"id": 324, "assignee": {"id": 1142}}, "organization": {"id": 1256}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 624}, "assignee": {"id": 589}, "project": {"id": 366, "owner": {"id": 96}, "assignee": {"id": 828}}, "task": {"id": 331, "owner": {"id": 944}, "assignee": {"id": 1084}}, "job": {"id": 376, "assignee": {"id": 1170}}, "organization": {"id": 149}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 695}, "assignee": {"id": 571}, "project": {"id": 386, "owner": {"id": 97}, "assignee": {"id": 824}}, "task": {"id": 304, "owner": {"id": 998}, "assignee": {"id": 1079}}, "job": {"id": 340, "assignee": {"id": 1121}}, "organization": {"id": 1244}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 660}, "assignee": {"id": 588}, "project": {"id": 348, "owner": {"id": 28}, "assignee": {"id": 854}}, "task": {"id": 384, "owner": {"id": 950}, "assignee": {"id": 1051}}, "job": {"id": 304, "assignee": {"id": 1108}}, "organization": {"id": 173}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 608}, "assignee": {"id": 526}, "project": {"id": 311, "owner": {"id": 17}, "assignee": {"id": 829}}, "task": {"id": 325, "owner": {"id": 954}, "assignee": {"id": 1065}}, "job": {"id": 346, "assignee": {"id": 1111}}, "organization": {"id": 1213}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 650}, "assignee": {"id": 558}, "project": {"id": 305, "owner": {"id": 66}, "assignee": {"id": 867}}, "task": {"id": 395, "owner": {"id": 954}, "assignee": {"id": 1087}}, "job": {"id": 300, "assignee": {"id": 1135}}, "organization": {"id": 123}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 637}, "assignee": {"id": 572}, "project": {"id": 326, "owner": {"id": 19}, "assignee": {"id": 868}}, "task": {"id": 351, "owner": {"id": 952}, "assignee": {"id": 1075}}, "job": {"id": 361, "assignee": {"id": 1166}}, "organization": {"id": 1229}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 651}, "assignee": {"id": 531}, "project": {"id": 385, "owner": {"id": 94}, "assignee": {"id": 845}}, "task": {"id": 379, "owner": {"id": 956}, "assignee": {"id": 1026}}, "job": {"id": 380, "assignee": {"id": 1199}}, "organization": {"id": 137}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 613}, "assignee": {"id": 508}, "project": {"id": 324, "owner": {"id": 30}, "assignee": {"id": 829}}, "task": {"id": 328, "owner": {"id": 935}, "assignee": {"id": 1085}}, "job": {"id": 381, "assignee": {"id": 1180}}, "organization": {"id": 1248}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 624}, "assignee": {"id": 595}, "project": {"id": 366, "owner": {"id": 19}, "assignee": {"id": 849}}, "task": {"id": 359, "owner": {"id": 906}, "assignee": {"id": 1084}}, "job": {"id": 304, "assignee": {"id": 1172}}, "organization": {"id": 188}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 623}, "assignee": {"id": 560}, "project": {"id": 353, "owner": {"id": 83}, "assignee": {"id": 833}}, "task": {"id": 352, "owner": {"id": 936}, "assignee": {"id": 1063}}, "job": {"id": 358, "assignee": {"id": 1144}}, "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": 99, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 696}, "assignee": {"id": 524}, "project": {"id": 354, "owner": {"id": 99}, "assignee": {"id": 845}}, "task": {"id": 389, "owner": {"id": 985}, "assignee": {"id": 1086}}, "job": {"id": 352, "assignee": {"id": 1153}}, "organization": {"id": 176}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 647}, "assignee": {"id": 599}, "project": {"id": 366, "owner": {"id": 35}, "assignee": {"id": 830}}, "task": {"id": 391, "owner": {"id": 915}, "assignee": {"id": 1096}}, "job": {"id": 359, "assignee": {"id": 1137}}, "organization": {"id": 1289}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 683}, "assignee": {"id": 556}, "project": {"id": 342, "owner": {"id": 1}, "assignee": {"id": 863}}, "task": {"id": 316, "owner": {"id": 985}, "assignee": {"id": 1095}}, "job": {"id": 386, "assignee": {"id": 1106}}, "organization": {"id": 108}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 607}, "assignee": {"id": 556}, "project": {"id": 337, "owner": {"id": 49}, "assignee": {"id": 823}}, "task": {"id": 362, "owner": {"id": 961}, "assignee": {"id": 1050}}, "job": {"id": 340, "assignee": {"id": 1163}}, "organization": {"id": 1278}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 682}, "assignee": {"id": 509}, "project": {"id": 306, "owner": {"id": 22}, "assignee": {"id": 897}}, "task": {"id": 352, "owner": {"id": 937}, "assignee": {"id": 1048}}, "job": {"id": 395, "assignee": {"id": 1198}}, "organization": {"id": 183}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 683}, "assignee": {"id": 566}, "project": {"id": 340, "owner": {"id": 0}, "assignee": {"id": 863}}, "task": {"id": 301, "owner": {"id": 956}, "assignee": {"id": 1081}}, "job": {"id": 387, "assignee": {"id": 1189}}, "organization": {"id": 1203}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 662}, "assignee": {"id": 597}, "project": {"id": 308, "owner": {"id": 29}, "assignee": {"id": 894}}, "task": {"id": 373, "owner": {"id": 981}, "assignee": {"id": 1065}}, "job": {"id": 308, "assignee": {"id": 1164}}, "organization": {"id": 166}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 605}, "assignee": {"id": 595}, "project": {"id": 322, "owner": {"id": 8}, "assignee": {"id": 891}}, "task": {"id": 337, "owner": {"id": 905}, "assignee": {"id": 1076}}, "job": {"id": 334, "assignee": {"id": 1166}}, "organization": {"id": 1286}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 644}, "assignee": {"id": 530}, "project": {"id": 302, "owner": {"id": 40}, "assignee": {"id": 856}}, "task": {"id": 393, "owner": {"id": 982}, "assignee": {"id": 1043}}, "job": {"id": 347, "assignee": {"id": 1142}}, "organization": {"id": 148}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 685}, "assignee": {"id": 565}, "project": {"id": 375, "owner": {"id": 67}, "assignee": {"id": 847}}, "task": {"id": 378, "owner": {"id": 932}, "assignee": {"id": 1046}}, "job": {"id": 359, "assignee": {"id": 1194}}, "organization": {"id": 1221}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 665}, "assignee": {"id": 559}, "project": {"id": 333, "owner": {"id": 95}, "assignee": {"id": 839}}, "task": {"id": 334, "owner": {"id": 978}, "assignee": {"id": 1026}}, "job": {"id": 338, "assignee": {"id": 1125}}, "organization": {"id": 172}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 691}, "assignee": {"id": 543}, "project": {"id": 368, "owner": {"id": 54}, "assignee": {"id": 885}}, "task": {"id": 332, "owner": {"id": 938}, "assignee": {"id": 1001}}, "job": {"id": 341, "assignee": {"id": 1152}}, "organization": {"id": 1222}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 673}, "assignee": {"id": 562}, "project": {"id": 365, "owner": {"id": 24}, "assignee": {"id": 875}}, "task": {"id": 352, "owner": {"id": 930}, "assignee": {"id": 1046}}, "job": {"id": 395, "assignee": {"id": 1125}}, "organization": {"id": 176}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 678}, "assignee": {"id": 502}, "project": {"id": 372, "owner": {"id": 43}, "assignee": {"id": 865}}, "task": {"id": 302, "owner": {"id": 982}, "assignee": {"id": 1029}}, "job": {"id": 323, "assignee": {"id": 1140}}, "organization": {"id": 1273}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 687}, "assignee": {"id": 504}, "project": {"id": 305, "owner": {"id": 64}, "assignee": {"id": 844}}, "task": {"id": 353, "owner": {"id": 950}, "assignee": {"id": 1024}}, "job": {"id": 302, "assignee": {"id": 1197}}, "organization": {"id": 153}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 663}, "assignee": {"id": 504}, "project": {"id": 331, "owner": {"id": 47}, "assignee": {"id": 858}}, "task": {"id": 327, "owner": {"id": 922}, "assignee": {"id": 1058}}, "job": {"id": 384, "assignee": {"id": 1114}}, "organization": {"id": 1217}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 619}, "assignee": {"id": 516}, "project": {"id": 355, "owner": {"id": 54}, "assignee": {"id": 847}}, "task": {"id": 307, "owner": {"id": 928}, "assignee": {"id": 1045}}, "job": {"id": 317, "assignee": {"id": 1137}}, "organization": {"id": 143}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 687}, "assignee": {"id": 570}, "project": {"id": 315, "owner": {"id": 69}, "assignee": {"id": 805}}, "task": {"id": 399, "owner": {"id": 933}, "assignee": {"id": 1084}}, "job": {"id": 366, "assignee": {"id": 1128}}, "organization": {"id": 1203}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 685}, "assignee": {"id": 565}, "project": {"id": 364, "owner": {"id": 7}, "assignee": {"id": 883}}, "task": {"id": 323, "owner": {"id": 907}, "assignee": {"id": 1047}}, "job": {"id": 348, "assignee": {"id": 1139}}, "organization": {"id": 161}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 613}, "assignee": {"id": 503}, "project": {"id": 324, "owner": {"id": 0}, "assignee": {"id": 849}}, "task": {"id": 349, "owner": {"id": 949}, "assignee": {"id": 1058}}, "job": {"id": 387, "assignee": {"id": 1106}}, "organization": {"id": 1259}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 614}, "assignee": {"id": 583}, "project": {"id": 330, "owner": {"id": 27}, "assignee": {"id": 855}}, "task": {"id": 389, "owner": {"id": 925}, "assignee": {"id": 1028}}, "job": {"id": 319, "assignee": {"id": 1176}}, "organization": {"id": 100}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 613}, "assignee": {"id": 579}, "project": {"id": 325, "owner": {"id": 7}, "assignee": {"id": 859}}, "task": {"id": 315, "owner": {"id": 980}, "assignee": {"id": 1042}}, "job": {"id": 340, "assignee": {"id": 1160}}, "organization": {"id": 1230}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 620}, "assignee": {"id": 569}, "project": {"id": 393, "owner": {"id": 72}, "assignee": {"id": 863}}, "task": {"id": 337, "owner": {"id": 985}, "assignee": {"id": 1011}}, "job": {"id": 300, "assignee": {"id": 1110}}, "organization": {"id": 136}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 658}, "assignee": {"id": 563}, "project": {"id": 386, "owner": {"id": 91}, "assignee": {"id": 838}}, "task": {"id": 304, "owner": {"id": 956}, "assignee": {"id": 1052}}, "job": {"id": 328, "assignee": {"id": 1142}}, "organization": {"id": 1242}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 634}, "assignee": {"id": 524}, "project": {"id": 312, "owner": {"id": 1}, "assignee": {"id": 896}}, "task": {"id": 317, "owner": {"id": 937}, "assignee": {"id": 1023}}, "job": {"id": 329, "assignee": {"id": 1126}}, "organization": {"id": 166}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 636}, "assignee": {"id": 508}, "project": {"id": 317, "owner": {"id": 54}, "assignee": {"id": 856}}, "task": {"id": 381, "owner": {"id": 936}, "assignee": {"id": 1066}}, "job": {"id": 388, "assignee": {"id": 1190}}, "organization": {"id": 1239}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 649}, "assignee": {"id": 574}, "project": {"id": 326, "owner": {"id": 732}, "assignee": {"id": 91}}, "task": {"id": 302, "owner": {"id": 923}, "assignee": {"id": 1004}}, "job": {"id": 300, "assignee": {"id": 1111}}, "organization": {"id": 133}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 657}, "assignee": {"id": 561}, "project": {"id": 353, "owner": {"id": 741}, "assignee": {"id": 94}}, "task": {"id": 324, "owner": {"id": 921}, "assignee": {"id": 1084}}, "job": {"id": 304, "assignee": {"id": 1166}}, "organization": {"id": 1253}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 658}, "assignee": {"id": 586}, "project": {"id": 335, "owner": {"id": 778}, "assignee": {"id": 49}}, "task": {"id": 399, "owner": {"id": 990}, "assignee": {"id": 1067}}, "job": {"id": 344, "assignee": {"id": 1112}}, "organization": {"id": 125}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 642}, "assignee": {"id": 542}, "project": {"id": 396, "owner": {"id": 708}, "assignee": {"id": 54}}, "task": {"id": 344, "owner": {"id": 951}, "assignee": {"id": 1095}}, "job": {"id": 356, "assignee": {"id": 1125}}, "organization": {"id": 1293}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 669}, "assignee": {"id": 595}, "project": {"id": 351, "owner": {"id": 724}, "assignee": {"id": 89}}, "task": {"id": 382, "owner": {"id": 964}, "assignee": {"id": 1073}}, "job": {"id": 327, "assignee": {"id": 1174}}, "organization": {"id": 198}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 660}, "assignee": {"id": 576}, "project": {"id": 373, "owner": {"id": 701}, "assignee": {"id": 63}}, "task": {"id": 309, "owner": {"id": 952}, "assignee": {"id": 1038}}, "job": {"id": 323, "assignee": {"id": 1148}}, "organization": {"id": 1281}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 628}, "assignee": {"id": 592}, "project": {"id": 392, "owner": {"id": 731}, "assignee": {"id": 78}}, "task": {"id": 312, "owner": {"id": 972}, "assignee": {"id": 1049}}, "job": {"id": 330, "assignee": {"id": 1131}}, "organization": {"id": 135}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 693}, "assignee": {"id": 516}, "project": {"id": 376, "owner": {"id": 700}, "assignee": {"id": 2}}, "task": {"id": 322, "owner": {"id": 994}, "assignee": {"id": 1044}}, "job": {"id": 392, "assignee": {"id": 1151}}, "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": 1, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 693}, "assignee": {"id": 509}, "project": {"id": 327, "owner": {"id": 745}, "assignee": {"id": 1}}, "task": {"id": 333, "owner": {"id": 994}, "assignee": {"id": 1007}}, "job": {"id": 319, "assignee": {"id": 1127}}, "organization": {"id": 148}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 689}, "assignee": {"id": 513}, "project": {"id": 382, "owner": {"id": 726}, "assignee": {"id": 93}}, "task": {"id": 344, "owner": {"id": 927}, "assignee": {"id": 1089}}, "job": {"id": 354, "assignee": {"id": 1171}}, "organization": {"id": 1253}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 669}, "assignee": {"id": 589}, "project": {"id": 308, "owner": {"id": 744}, "assignee": {"id": 45}}, "task": {"id": 373, "owner": {"id": 924}, "assignee": {"id": 1003}}, "job": {"id": 312, "assignee": {"id": 1130}}, "organization": {"id": 116}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 617}, "assignee": {"id": 590}, "project": {"id": 370, "owner": {"id": 773}, "assignee": {"id": 97}}, "task": {"id": 339, "owner": {"id": 962}, "assignee": {"id": 1084}}, "job": {"id": 349, "assignee": {"id": 1141}}, "organization": {"id": 1271}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 643}, "assignee": {"id": 556}, "project": {"id": 370, "owner": {"id": 784}, "assignee": {"id": 7}}, "task": {"id": 357, "owner": {"id": 976}, "assignee": {"id": 1085}}, "job": {"id": 377, "assignee": {"id": 1131}}, "organization": {"id": 121}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 632}, "assignee": {"id": 544}, "project": {"id": 391, "owner": {"id": 716}, "assignee": {"id": 90}}, "task": {"id": 378, "owner": {"id": 930}, "assignee": {"id": 1039}}, "job": {"id": 375, "assignee": {"id": 1162}}, "organization": {"id": 1293}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 690}, "assignee": {"id": 586}, "project": {"id": 339, "owner": {"id": 772}, "assignee": {"id": 77}}, "task": {"id": 331, "owner": {"id": 918}, "assignee": {"id": 1053}}, "job": {"id": 362, "assignee": {"id": 1193}}, "organization": {"id": 127}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 698}, "assignee": {"id": 565}, "project": {"id": 363, "owner": {"id": 762}, "assignee": {"id": 21}}, "task": {"id": 370, "owner": {"id": 984}, "assignee": {"id": 1086}}, "job": {"id": 300, "assignee": {"id": 1134}}, "organization": {"id": 1200}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 647}, "assignee": {"id": 589}, "project": {"id": 301, "owner": {"id": 752}, "assignee": {"id": 68}}, "task": {"id": 357, "owner": {"id": 995}, "assignee": {"id": 1000}}, "job": {"id": 352, "assignee": {"id": 1107}}, "organization": {"id": 130}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 621}, "assignee": {"id": 530}, "project": {"id": 342, "owner": {"id": 706}, "assignee": {"id": 79}}, "task": {"id": 389, "owner": {"id": 965}, "assignee": {"id": 1057}}, "job": {"id": 311, "assignee": {"id": 1126}}, "organization": {"id": 1285}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 646}, "assignee": {"id": 517}, "project": {"id": 397, "owner": {"id": 754}, "assignee": {"id": 52}}, "task": {"id": 320, "owner": {"id": 927}, "assignee": {"id": 1087}}, "job": {"id": 350, "assignee": {"id": 1154}}, "organization": {"id": 129}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 653}, "assignee": {"id": 562}, "project": {"id": 321, "owner": {"id": 713}, "assignee": {"id": 41}}, "task": {"id": 344, "owner": {"id": 914}, "assignee": {"id": 1022}}, "job": {"id": 327, "assignee": {"id": 1186}}, "organization": {"id": 1270}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 627}, "assignee": {"id": 533}, "project": {"id": 357, "owner": {"id": 771}, "assignee": {"id": 19}}, "task": {"id": 381, "owner": {"id": 935}, "assignee": {"id": 1001}}, "job": {"id": 300, "assignee": {"id": 1104}}, "organization": {"id": 121}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 683}, "assignee": {"id": 537}, "project": {"id": 364, "owner": {"id": 718}, "assignee": {"id": 34}}, "task": {"id": 348, "owner": {"id": 992}, "assignee": {"id": 1006}}, "job": {"id": 307, "assignee": {"id": 1131}}, "organization": {"id": 1209}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 652}, "assignee": {"id": 559}, "project": {"id": 321, "owner": {"id": 764}, "assignee": {"id": 32}}, "task": {"id": 365, "owner": {"id": 935}, "assignee": {"id": 1033}}, "job": {"id": 370, "assignee": {"id": 1107}}, "organization": {"id": 159}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 686}, "assignee": {"id": 517}, "project": {"id": 326, "owner": {"id": 727}, "assignee": {"id": 71}}, "task": {"id": 343, "owner": {"id": 972}, "assignee": {"id": 1030}}, "job": {"id": 344, "assignee": {"id": 1163}}, "organization": {"id": 1292}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 639}, "assignee": {"id": 596}, "project": {"id": 396, "owner": {"id": 735}, "assignee": {"id": 0}}, "task": {"id": 326, "owner": {"id": 902}, "assignee": {"id": 1002}}, "job": {"id": 375, "assignee": {"id": 1125}}, "organization": {"id": 104}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 643}, "assignee": {"id": 587}, "project": {"id": 363, "owner": {"id": 758}, "assignee": {"id": 25}}, "task": {"id": 386, "owner": {"id": 942}, "assignee": {"id": 1094}}, "job": {"id": 375, "assignee": {"id": 1100}}, "organization": {"id": 1265}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 606}, "assignee": {"id": 586}, "project": {"id": 313, "owner": {"id": 753}, "assignee": {"id": 51}}, "task": {"id": 391, "owner": {"id": 949}, "assignee": {"id": 1030}}, "job": {"id": 353, "assignee": {"id": 1181}}, "organization": {"id": 189}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 614}, "assignee": {"id": 592}, "project": {"id": 391, "owner": {"id": 791}, "assignee": {"id": 47}}, "task": {"id": 383, "owner": {"id": 965}, "assignee": {"id": 1056}}, "job": {"id": 392, "assignee": {"id": 1142}}, "organization": {"id": 1295}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 687}, "assignee": {"id": 544}, "project": {"id": 337, "owner": {"id": 738}, "assignee": {"id": 31}}, "task": {"id": 340, "owner": {"id": 918}, "assignee": {"id": 1074}}, "job": {"id": 329, "assignee": {"id": 1193}}, "organization": {"id": 167}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 680}, "assignee": {"id": 566}, "project": {"id": 305, "owner": {"id": 779}, "assignee": {"id": 85}}, "task": {"id": 303, "owner": {"id": 907}, "assignee": {"id": 1037}}, "job": {"id": 343, "assignee": {"id": 1137}}, "organization": {"id": 1254}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 682}, "assignee": {"id": 534}, "project": {"id": 307, "owner": {"id": 751}, "assignee": {"id": 77}}, "task": {"id": 302, "owner": {"id": 920}, "assignee": {"id": 1031}}, "job": {"id": 326, "assignee": {"id": 1162}}, "organization": {"id": 126}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 666}, "assignee": {"id": 577}, "project": {"id": 302, "owner": {"id": 761}, "assignee": {"id": 22}}, "task": {"id": 389, "owner": {"id": 978}, "assignee": {"id": 1050}}, "job": {"id": 343, "assignee": {"id": 1181}}, "organization": {"id": 1202}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 656}, "assignee": {"id": 576}, "project": {"id": 393, "owner": {"id": 744}, "assignee": {"id": 47}}, "task": {"id": 395, "owner": {"id": 903}, "assignee": {"id": 1011}}, "job": {"id": 315, "assignee": {"id": 1188}}, "organization": {"id": 157}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 681}, "assignee": {"id": 566}, "project": {"id": 372, "owner": {"id": 729}, "assignee": {"id": 12}}, "task": {"id": 380, "owner": {"id": 965}, "assignee": {"id": 1070}}, "job": {"id": 390, "assignee": {"id": 1140}}, "organization": {"id": 1205}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 621}, "assignee": {"id": 582}, "project": {"id": 313, "owner": {"id": 749}, "assignee": {"id": 18}}, "task": {"id": 322, "owner": {"id": 977}, "assignee": {"id": 1067}}, "job": {"id": 369, "assignee": {"id": 1167}}, "organization": {"id": 131}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 657}, "assignee": {"id": 579}, "project": {"id": 392, "owner": {"id": 765}, "assignee": {"id": 85}}, "task": {"id": 387, "owner": {"id": 907}, "assignee": {"id": 1064}}, "job": {"id": 322, "assignee": {"id": 1111}}, "organization": {"id": 1254}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 651}, "assignee": {"id": 596}, "project": {"id": 374, "owner": {"id": 760}, "assignee": {"id": 91}}, "task": {"id": 342, "owner": {"id": 965}, "assignee": {"id": 1010}}, "job": {"id": 356, "assignee": {"id": 1158}}, "organization": {"id": 185}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 679}, "assignee": {"id": 562}, "project": {"id": 332, "owner": {"id": 781}, "assignee": {"id": 71}}, "task": {"id": 367, "owner": {"id": 973}, "assignee": {"id": 1034}}, "job": {"id": 318, "assignee": {"id": 1125}}, "organization": {"id": 1221}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 696}, "assignee": {"id": 503}, "project": {"id": 377, "owner": {"id": 725}, "assignee": {"id": 50}}, "task": {"id": 383, "owner": {"id": 977}, "assignee": {"id": 1044}}, "job": {"id": 389, "assignee": {"id": 1144}}, "organization": {"id": 136}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 642}, "assignee": {"id": 513}, "project": {"id": 328, "owner": {"id": 745}, "assignee": {"id": 64}}, "task": {"id": 375, "owner": {"id": 949}, "assignee": {"id": 1027}}, "job": {"id": 354, "assignee": {"id": 1114}}, "organization": {"id": 1270}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 668}, "assignee": {"id": 557}, "project": {"id": 309, "owner": {"id": 782}, "assignee": {"id": 72}}, "task": {"id": 322, "owner": {"id": 900}, "assignee": {"id": 1046}}, "job": {"id": 341, "assignee": {"id": 1180}}, "organization": {"id": 136}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 652}, "assignee": {"id": 518}, "project": {"id": 371, "owner": {"id": 710}, "assignee": {"id": 27}}, "task": {"id": 323, "owner": {"id": 916}, "assignee": {"id": 1038}}, "job": {"id": 313, "assignee": {"id": 1149}}, "organization": {"id": 1250}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 660}, "assignee": {"id": 541}, "project": {"id": 397, "owner": {"id": 746}, "assignee": {"id": 56}}, "task": {"id": 301, "owner": {"id": 908}, "assignee": {"id": 1099}}, "job": {"id": 318, "assignee": {"id": 1123}}, "organization": {"id": 193}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 687}, "assignee": {"id": 554}, "project": {"id": 303, "owner": {"id": 736}, "assignee": {"id": 54}}, "task": {"id": 399, "owner": {"id": 972}, "assignee": {"id": 1036}}, "job": {"id": 382, "assignee": {"id": 1152}}, "organization": {"id": 1265}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 675}, "assignee": {"id": 547}, "project": {"id": 334, "owner": {"id": 751}, "assignee": {"id": 7}}, "task": {"id": 312, "owner": {"id": 942}, "assignee": {"id": 1046}}, "job": {"id": 328, "assignee": {"id": 1153}}, "organization": {"id": 177}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 604}, "assignee": {"id": 591}, "project": {"id": 384, "owner": {"id": 791}, "assignee": {"id": 60}}, "task": {"id": 359, "owner": {"id": 960}, "assignee": {"id": 1076}}, "job": {"id": 337, "assignee": {"id": 1151}}, "organization": {"id": 1251}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 648}, "assignee": {"id": 585}, "project": {"id": 317, "owner": {"id": 741}, "assignee": {"id": 65}}, "task": {"id": 382, "owner": {"id": 987}, "assignee": {"id": 1058}}, "job": {"id": 352, "assignee": {"id": 1133}}, "organization": {"id": 161}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 642}, "assignee": {"id": 500}, "project": {"id": 364, "owner": {"id": 791}, "assignee": {"id": 61}}, "task": {"id": 393, "owner": {"id": 940}, "assignee": {"id": 1061}}, "job": {"id": 310, "assignee": {"id": 1160}}, "organization": {"id": 1271}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 648}, "assignee": {"id": 515}, "project": {"id": 395, "owner": {"id": 704}, "assignee": {"id": 63}}, "task": {"id": 307, "owner": {"id": 940}, "assignee": {"id": 1082}}, "job": {"id": 305, "assignee": {"id": 1176}}, "organization": {"id": 145}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 654}, "assignee": {"id": 543}, "project": {"id": 307, "owner": {"id": 787}, "assignee": {"id": 50}}, "task": {"id": 300, "owner": {"id": 984}, "assignee": {"id": 1081}}, "job": {"id": 399, "assignee": {"id": 1148}}, "organization": {"id": 1224}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 601}, "assignee": {"id": 564}, "project": {"id": 310, "owner": {"id": 741}, "assignee": {"id": 883}}, "task": {"id": 309, "owner": {"id": 46}, "assignee": {"id": 1090}}, "job": {"id": 398, "assignee": {"id": 1107}}, "organization": {"id": 113}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 633}, "assignee": {"id": 560}, "project": {"id": 350, "owner": {"id": 722}, "assignee": {"id": 856}}, "task": {"id": 362, "owner": {"id": 2}, "assignee": {"id": 1064}}, "job": {"id": 355, "assignee": {"id": 1131}}, "organization": {"id": 157}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 682}, "assignee": {"id": 549}, "project": {"id": 396, "owner": {"id": 733}, "assignee": {"id": 811}}, "task": {"id": 301, "owner": {"id": 48}, "assignee": {"id": 1031}}, "job": {"id": 320, "assignee": {"id": 1167}}, "organization": {"id": 1227}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 608}, "assignee": {"id": 581}, "project": {"id": 315, "owner": {"id": 738}, "assignee": {"id": 866}}, "task": {"id": 373, "owner": {"id": 39}, "assignee": {"id": 1042}}, "job": {"id": 367, "assignee": {"id": 1161}}, "organization": {"id": 1287}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 626}, "assignee": {"id": 579}, "project": {"id": 325, "owner": {"id": 715}, "assignee": {"id": 858}}, "task": {"id": 329, "owner": {"id": 94}, "assignee": {"id": 1090}}, "job": {"id": 334, "assignee": {"id": 1146}}, "organization": {"id": 176}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 621}, "assignee": {"id": 573}, "project": {"id": 330, "owner": {"id": 748}, "assignee": {"id": 859}}, "task": {"id": 355, "owner": {"id": 32}, "assignee": {"id": 1010}}, "job": {"id": 389, "assignee": {"id": 1145}}, "organization": {"id": 164}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 629}, "assignee": {"id": 570}, "project": {"id": 395, "owner": {"id": 777}, "assignee": {"id": 874}}, "task": {"id": 336, "owner": {"id": 71}, "assignee": {"id": 1059}}, "job": {"id": 332, "assignee": {"id": 1120}}, "organization": {"id": 1216}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 653}, "assignee": {"id": 537}, "project": {"id": 355, "owner": {"id": 712}, "assignee": {"id": 800}}, "task": {"id": 330, "owner": {"id": 1}, "assignee": {"id": 1027}}, "job": {"id": 322, "assignee": {"id": 1107}}, "organization": {"id": 1255}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 659}, "assignee": {"id": 542}, "project": {"id": 364, "owner": {"id": 703}, "assignee": {"id": 820}}, "task": {"id": 334, "owner": {"id": 41}, "assignee": {"id": 1043}}, "job": {"id": 397, "assignee": {"id": 1132}}, "organization": {"id": 134}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 633}, "assignee": {"id": 555}, "project": {"id": 342, "owner": {"id": 705}, "assignee": {"id": 873}}, "task": {"id": 373, "owner": {"id": 33}, "assignee": {"id": 1031}}, "job": {"id": 337, "assignee": {"id": 1103}}, "organization": {"id": 132}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 665}, "assignee": {"id": 537}, "project": {"id": 356, "owner": {"id": 751}, "assignee": {"id": 884}}, "task": {"id": 396, "owner": {"id": 8}, "assignee": {"id": 1000}}, "job": {"id": 363, "assignee": {"id": 1190}}, "organization": {"id": 1223}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 641}, "assignee": {"id": 549}, "project": {"id": 336, "owner": {"id": 741}, "assignee": {"id": 862}}, "task": {"id": 347, "owner": {"id": 81}, "assignee": {"id": 1016}}, "job": {"id": 365, "assignee": {"id": 1135}}, "organization": {"id": 1231}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 674}, "assignee": {"id": 530}, "project": {"id": 398, "owner": {"id": 724}, "assignee": {"id": 898}}, "task": {"id": 300, "owner": {"id": 15}, "assignee": {"id": 1040}}, "job": {"id": 303, "assignee": {"id": 1186}}, "organization": {"id": 164}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 670}, "assignee": {"id": 524}, "project": {"id": 364, "owner": {"id": 719}, "assignee": {"id": 861}}, "task": {"id": 337, "owner": {"id": 32}, "assignee": {"id": 1022}}, "job": {"id": 335, "assignee": {"id": 1166}}, "organization": {"id": 118}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 682}, "assignee": {"id": 569}, "project": {"id": 333, "owner": {"id": 733}, "assignee": {"id": 800}}, "task": {"id": 312, "owner": {"id": 50}, "assignee": {"id": 1095}}, "job": {"id": 363, "assignee": {"id": 1162}}, "organization": {"id": 1241}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 602}, "assignee": {"id": 573}, "project": {"id": 365, "owner": {"id": 733}, "assignee": {"id": 842}}, "task": {"id": 378, "owner": {"id": 25}, "assignee": {"id": 1079}}, "job": {"id": 321, "assignee": {"id": 1143}}, "organization": {"id": 1213}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 672}, "assignee": {"id": 559}, "project": {"id": 336, "owner": {"id": 746}, "assignee": {"id": 892}}, "task": {"id": 311, "owner": {"id": 33}, "assignee": {"id": 1083}}, "job": {"id": 321, "assignee": {"id": 1100}}, "organization": {"id": 165}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 631}, "assignee": {"id": 578}, "project": {"id": 336, "owner": {"id": 723}, "assignee": {"id": 805}}, "task": {"id": 333, "owner": {"id": 24}, "assignee": {"id": 1056}}, "job": {"id": 391, "assignee": {"id": 1194}}, "organization": {"id": 152}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 653}, "assignee": {"id": 527}, "project": {"id": 301, "owner": {"id": 704}, "assignee": {"id": 880}}, "task": {"id": 377, "owner": {"id": 35}, "assignee": {"id": 1058}}, "job": {"id": 345, "assignee": {"id": 1159}}, "organization": {"id": 1291}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 633}, "assignee": {"id": 558}, "project": {"id": 337, "owner": {"id": 719}, "assignee": {"id": 894}}, "task": {"id": 367, "owner": {"id": 70}, "assignee": {"id": 1045}}, "job": {"id": 396, "assignee": {"id": 1186}}, "organization": {"id": 1270}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 670}, "assignee": {"id": 530}, "project": {"id": 314, "owner": {"id": 777}, "assignee": {"id": 860}}, "task": {"id": 397, "owner": {"id": 30}, "assignee": {"id": 1072}}, "job": {"id": 394, "assignee": {"id": 1100}}, "organization": {"id": 134}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 630}, "assignee": {"id": 553}, "project": {"id": 301, "owner": {"id": 703}, "assignee": {"id": 807}}, "task": {"id": 324, "owner": {"id": 22}, "assignee": {"id": 1056}}, "job": {"id": 365, "assignee": {"id": 1123}}, "organization": {"id": 179}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 698}, "assignee": {"id": 508}, "project": {"id": 305, "owner": {"id": 786}, "assignee": {"id": 822}}, "task": {"id": 319, "owner": {"id": 10}, "assignee": {"id": 1068}}, "job": {"id": 394, "assignee": {"id": 1106}}, "organization": {"id": 1217}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 641}, "assignee": {"id": 529}, "project": {"id": 312, "owner": {"id": 786}, "assignee": {"id": 881}}, "task": {"id": 304, "owner": {"id": 8}, "assignee": {"id": 1033}}, "job": {"id": 306, "assignee": {"id": 1107}}, "organization": {"id": 1224}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 623}, "assignee": {"id": 552}, "project": {"id": 384, "owner": {"id": 775}, "assignee": {"id": 812}}, "task": {"id": 323, "owner": {"id": 59}, "assignee": {"id": 1076}}, "job": {"id": 305, "assignee": {"id": 1125}}, "organization": {"id": 115}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 605}, "assignee": {"id": 559}, "project": {"id": 381, "owner": {"id": 764}, "assignee": {"id": 896}}, "task": {"id": 399, "owner": {"id": 13}, "assignee": {"id": 1083}}, "job": {"id": 363, "assignee": {"id": 1163}}, "organization": {"id": 154}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 665}, "assignee": {"id": 582}, "project": {"id": 394, "owner": {"id": 751}, "assignee": {"id": 879}}, "task": {"id": 335, "owner": {"id": 95}, "assignee": {"id": 1073}}, "job": {"id": 337, "assignee": {"id": 1159}}, "organization": {"id": 1267}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 617}, "assignee": {"id": 573}, "project": {"id": 329, "owner": {"id": 742}, "assignee": {"id": 831}}, "task": {"id": 318, "owner": {"id": 3}, "assignee": {"id": 1094}}, "job": {"id": 343, "assignee": {"id": 1105}}, "organization": {"id": 1259}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 679}, "assignee": {"id": 531}, "project": {"id": 342, "owner": {"id": 778}, "assignee": {"id": 898}}, "task": {"id": 386, "owner": {"id": 64}, "assignee": {"id": 1070}}, "job": {"id": 367, "assignee": {"id": 1193}}, "organization": {"id": 131}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 642}, "assignee": {"id": 554}, "project": {"id": 328, "owner": {"id": 735}, "assignee": {"id": 896}}, "task": {"id": 301, "owner": {"id": 66}, "assignee": {"id": 1047}}, "job": {"id": 382, "assignee": {"id": 1170}}, "organization": {"id": 114}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 687}, "assignee": {"id": 550}, "project": {"id": 310, "owner": {"id": 781}, "assignee": {"id": 850}}, "task": {"id": 331, "owner": {"id": 38}, "assignee": {"id": 1064}}, "job": {"id": 355, "assignee": {"id": 1127}}, "organization": {"id": 1215}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 605}, "assignee": {"id": 530}, "project": {"id": 329, "owner": {"id": 796}, "assignee": {"id": 820}}, "task": {"id": 317, "owner": {"id": 20}, "assignee": {"id": 1032}}, "job": {"id": 386, "assignee": {"id": 1177}}, "organization": {"id": 1246}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 600}, "assignee": {"id": 542}, "project": {"id": 301, "owner": {"id": 718}, "assignee": {"id": 871}}, "task": {"id": 301, "owner": {"id": 87}, "assignee": {"id": 1079}}, "job": {"id": 339, "assignee": {"id": 1165}}, "organization": {"id": 140}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 601}, "assignee": {"id": 558}, "project": {"id": 363, "owner": {"id": 740}, "assignee": {"id": 855}}, "task": {"id": 321, "owner": {"id": 93}, "assignee": {"id": 1083}}, "job": {"id": 325, "assignee": {"id": 1156}}, "organization": {"id": 135}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 618}, "assignee": {"id": 514}, "project": {"id": 396, "owner": {"id": 728}, "assignee": {"id": 865}}, "task": {"id": 326, "owner": {"id": 90}, "assignee": {"id": 1072}}, "job": {"id": 387, "assignee": {"id": 1107}}, "organization": {"id": 1284}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 697}, "assignee": {"id": 508}, "project": {"id": 390, "owner": {"id": 780}, "assignee": {"id": 877}}, "task": {"id": 329, "owner": {"id": 89}, "assignee": {"id": 1008}}, "job": {"id": 304, "assignee": {"id": 1109}}, "organization": {"id": 1204}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 666}, "assignee": {"id": 502}, "project": {"id": 331, "owner": {"id": 796}, "assignee": {"id": 803}}, "task": {"id": 397, "owner": {"id": 29}, "assignee": {"id": 1017}}, "job": {"id": 318, "assignee": {"id": 1104}}, "organization": {"id": 186}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 600}, "assignee": {"id": 508}, "project": {"id": 329, "owner": {"id": 721}, "assignee": {"id": 834}}, "task": {"id": 362, "owner": {"id": 80}, "assignee": {"id": 1078}}, "job": {"id": 337, "assignee": {"id": 1145}}, "organization": {"id": 180}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 680}, "assignee": {"id": 524}, "project": {"id": 340, "owner": {"id": 700}, "assignee": {"id": 856}}, "task": {"id": 304, "owner": {"id": 65}, "assignee": {"id": 1017}}, "job": {"id": 324, "assignee": {"id": 1157}}, "organization": {"id": 1254}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 624}, "assignee": {"id": 548}, "project": {"id": 362, "owner": {"id": 712}, "assignee": {"id": 881}}, "task": {"id": 316, "owner": {"id": 37}, "assignee": {"id": 1094}}, "job": {"id": 393, "assignee": {"id": 1125}}, "organization": {"id": 1283}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 623}, "assignee": {"id": 554}, "project": {"id": 376, "owner": {"id": 798}, "assignee": {"id": 825}}, "task": {"id": 395, "owner": {"id": 11}, "assignee": {"id": 1013}}, "job": {"id": 399, "assignee": {"id": 1174}}, "organization": {"id": 165}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 638}, "assignee": {"id": 564}, "project": {"id": 385, "owner": {"id": 724}, "assignee": {"id": 858}}, "task": {"id": 395, "owner": {"id": 16}, "assignee": {"id": 1027}}, "job": {"id": 306, "assignee": {"id": 1111}}, "organization": {"id": 136}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 621}, "assignee": {"id": 544}, "project": {"id": 362, "owner": {"id": 792}, "assignee": {"id": 887}}, "task": {"id": 342, "owner": {"id": 99}, "assignee": {"id": 1057}}, "job": {"id": 336, "assignee": {"id": 1192}}, "organization": {"id": 1220}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 676}, "assignee": {"id": 504}, "project": {"id": 354, "owner": {"id": 753}, "assignee": {"id": 817}}, "task": {"id": 349, "owner": {"id": 63}, "assignee": {"id": 1096}}, "job": {"id": 397, "assignee": {"id": 1168}}, "organization": {"id": 1282}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 678}, "assignee": {"id": 537}, "project": {"id": 375, "owner": {"id": 704}, "assignee": {"id": 890}}, "task": {"id": 327, "owner": {"id": 96}, "assignee": {"id": 1008}}, "job": {"id": 310, "assignee": {"id": 1114}}, "organization": {"id": 138}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 676}, "assignee": {"id": 589}, "project": {"id": 361, "owner": {"id": 718}, "assignee": {"id": 891}}, "task": {"id": 361, "owner": {"id": 41}, "assignee": {"id": 1054}}, "job": {"id": 394, "assignee": {"id": 1127}}, "organization": {"id": 121}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 662}, "assignee": {"id": 557}, "project": {"id": 364, "owner": {"id": 727}, "assignee": {"id": 834}}, "task": {"id": 312, "owner": {"id": 47}, "assignee": {"id": 1098}}, "job": {"id": 354, "assignee": {"id": 1187}}, "organization": {"id": 1231}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 632}, "assignee": {"id": 533}, "project": {"id": 304, "owner": {"id": 734}, "assignee": {"id": 890}}, "task": {"id": 327, "owner": {"id": 42}, "assignee": {"id": 1023}}, "job": {"id": 350, "assignee": {"id": 1185}}, "organization": {"id": 1222}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 677}, "assignee": {"id": 544}, "project": {"id": 355, "owner": {"id": 705}, "assignee": {"id": 829}}, "task": {"id": 360, "owner": {"id": 92}, "assignee": {"id": 1072}}, "job": {"id": 397, "assignee": {"id": 1130}}, "organization": {"id": 133}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 649}, "assignee": {"id": 587}, "project": {"id": 395, "owner": {"id": 758}, "assignee": {"id": 871}}, "task": {"id": 305, "owner": {"id": 1}, "assignee": {"id": 1045}}, "job": {"id": 385, "assignee": {"id": 1155}}, "organization": {"id": 181}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 652}, "assignee": {"id": 563}, "project": {"id": 371, "owner": {"id": 708}, "assignee": {"id": 896}}, "task": {"id": 310, "owner": {"id": 26}, "assignee": {"id": 1049}}, "job": {"id": 399, "assignee": {"id": 1155}}, "organization": {"id": 1268}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 682}, "assignee": {"id": 581}, "project": {"id": 353, "owner": {"id": 712}, "assignee": {"id": 883}}, "task": {"id": 357, "owner": {"id": 79}, "assignee": {"id": 1046}}, "job": {"id": 329, "assignee": {"id": 1117}}, "organization": {"id": 1284}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 648}, "assignee": {"id": 573}, "project": {"id": 318, "owner": {"id": 712}, "assignee": {"id": 853}}, "task": {"id": 386, "owner": {"id": 1}, "assignee": {"id": 1031}}, "job": {"id": 320, "assignee": {"id": 1120}}, "organization": {"id": 197}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 674}, "assignee": {"id": 556}, "project": {"id": 397, "owner": {"id": 723}, "assignee": {"id": 835}}, "task": {"id": 386, "owner": {"id": 93}, "assignee": {"id": 1027}}, "job": {"id": 377, "assignee": {"id": 1183}}, "organization": {"id": 189}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 610}, "assignee": {"id": 591}, "project": {"id": 351, "owner": {"id": 701}, "assignee": {"id": 803}}, "task": {"id": 310, "owner": {"id": 1}, "assignee": {"id": 1026}}, "job": {"id": 395, "assignee": {"id": 1165}}, "organization": {"id": 1258}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 634}, "assignee": {"id": 561}, "project": {"id": 345, "owner": {"id": 781}, "assignee": {"id": 830}}, "task": {"id": 349, "owner": {"id": 42}, "assignee": {"id": 1080}}, "job": {"id": 308, "assignee": {"id": 1168}}, "organization": {"id": 1280}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 665}, "assignee": {"id": 580}, "project": {"id": 331, "owner": {"id": 714}, "assignee": {"id": 895}}, "task": {"id": 311, "owner": {"id": 28}, "assignee": {"id": 1073}}, "job": {"id": 314, "assignee": {"id": 1129}}, "organization": {"id": 176}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 654}, "assignee": {"id": 582}, "project": {"id": 396, "owner": {"id": 755}, "assignee": {"id": 889}}, "task": {"id": 371, "owner": {"id": 37}, "assignee": {"id": 1028}}, "job": {"id": 345, "assignee": {"id": 1190}}, "organization": {"id": 174}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 639}, "assignee": {"id": 599}, "project": {"id": 395, "owner": {"id": 741}, "assignee": {"id": 856}}, "task": {"id": 302, "owner": {"id": 83}, "assignee": {"id": 1058}}, "job": {"id": 371, "assignee": {"id": 1192}}, "organization": {"id": 1292}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 663}, "assignee": {"id": 565}, "project": {"id": 334, "owner": {"id": 785}, "assignee": {"id": 808}}, "task": {"id": 335, "owner": {"id": 65}, "assignee": {"id": 1031}}, "job": {"id": 379, "assignee": {"id": 1102}}, "organization": {"id": 1221}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 678}, "assignee": {"id": 564}, "project": {"id": 356, "owner": {"id": 771}, "assignee": {"id": 828}}, "task": {"id": 308, "owner": {"id": 30}, "assignee": {"id": 1041}}, "job": {"id": 312, "assignee": {"id": 1180}}, "organization": {"id": 154}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 600}, "assignee": {"id": 505}, "project": {"id": 360, "owner": {"id": 712}, "assignee": {"id": 836}}, "task": {"id": 334, "owner": {"id": 83}, "assignee": {"id": 1071}}, "job": {"id": 361, "assignee": {"id": 1157}}, "organization": {"id": 161}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 606}, "assignee": {"id": 594}, "project": {"id": 304, "owner": {"id": 715}, "assignee": {"id": 801}}, "task": {"id": 374, "owner": {"id": 43}, "assignee": {"id": 1067}}, "job": {"id": 363, "assignee": {"id": 1179}}, "organization": {"id": 1232}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 630}, "assignee": {"id": 547}, "project": {"id": 365, "owner": {"id": 724}, "assignee": {"id": 827}}, "task": {"id": 391, "owner": {"id": 94}, "assignee": {"id": 1064}}, "job": {"id": 339, "assignee": {"id": 1171}}, "organization": {"id": 1268}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 692}, "assignee": {"id": 569}, "project": {"id": 311, "owner": {"id": 779}, "assignee": {"id": 865}}, "task": {"id": 389, "owner": {"id": 31}, "assignee": {"id": 1087}}, "job": {"id": 324, "assignee": {"id": 1130}}, "organization": {"id": 113}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 610}, "assignee": {"id": 509}, "project": {"id": 355, "owner": {"id": 762}, "assignee": {"id": 807}}, "task": {"id": 395, "owner": {"id": 62}, "assignee": {"id": 1097}}, "job": {"id": 386, "assignee": {"id": 1112}}, "organization": {"id": 185}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 649}, "assignee": {"id": 507}, "project": {"id": 389, "owner": {"id": 794}, "assignee": {"id": 818}}, "task": {"id": 324, "owner": {"id": 48}, "assignee": {"id": 1083}}, "job": {"id": 367, "assignee": {"id": 1165}}, "organization": {"id": 1277}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 694}, "assignee": {"id": 550}, "project": {"id": 366, "owner": {"id": 771}, "assignee": {"id": 881}}, "task": {"id": 349, "owner": {"id": 90}, "assignee": {"id": 1091}}, "job": {"id": 365, "assignee": {"id": 1110}}, "organization": {"id": 1207}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 615}, "assignee": {"id": 596}, "project": {"id": 392, "owner": {"id": 796}, "assignee": {"id": 895}}, "task": {"id": 395, "owner": {"id": 95}, "assignee": {"id": 1014}}, "job": {"id": 305, "assignee": {"id": 1136}}, "organization": {"id": 141}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 684}, "assignee": {"id": 505}, "project": {"id": 376, "owner": {"id": 772}, "assignee": {"id": 822}}, "task": {"id": 384, "owner": {"id": 38}, "assignee": {"id": 1024}}, "job": {"id": 398, "assignee": {"id": 1153}}, "organization": {"id": 109}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 630}, "assignee": {"id": 598}, "project": {"id": 321, "owner": {"id": 742}, "assignee": {"id": 853}}, "task": {"id": 378, "owner": {"id": 99}, "assignee": {"id": 1063}}, "job": {"id": 340, "assignee": {"id": 1118}}, "organization": {"id": 1251}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 615}, "assignee": {"id": 501}, "project": {"id": 343, "owner": {"id": 705}, "assignee": {"id": 856}}, "task": {"id": 365, "owner": {"id": 98}, "assignee": {"id": 1007}}, "job": {"id": 303, "assignee": {"id": 1107}}, "organization": {"id": 1299}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 670}, "assignee": {"id": 521}, "project": {"id": 312, "owner": {"id": 726}, "assignee": {"id": 840}}, "task": {"id": 383, "owner": {"id": 42}, "assignee": {"id": 1093}}, "job": {"id": 353, "assignee": {"id": 1172}}, "organization": {"id": 190}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 643}, "assignee": {"id": 537}, "project": {"id": 334, "owner": {"id": 725}, "assignee": {"id": 884}}, "task": {"id": 311, "owner": {"id": 63}, "assignee": {"id": 1091}}, "job": {"id": 335, "assignee": {"id": 1115}}, "organization": {"id": 174}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 677}, "assignee": {"id": 543}, "project": {"id": 341, "owner": {"id": 700}, "assignee": {"id": 881}}, "task": {"id": 348, "owner": {"id": 97}, "assignee": {"id": 1037}}, "job": {"id": 354, "assignee": {"id": 1118}}, "organization": {"id": 1230}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 661}, "assignee": {"id": 529}, "project": {"id": 311, "owner": {"id": 745}, "assignee": {"id": 859}}, "task": {"id": 385, "owner": {"id": 14}, "assignee": {"id": 1058}}, "job": {"id": 365, "assignee": {"id": 1151}}, "organization": {"id": 1229}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 618}, "assignee": {"id": 521}, "project": {"id": 312, "owner": {"id": 745}, "assignee": {"id": 846}}, "task": {"id": 316, "owner": {"id": 68}, "assignee": {"id": 1031}}, "job": {"id": 356, "assignee": {"id": 1174}}, "organization": {"id": 186}}} +} + +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": 147, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 688}, "assignee": {"id": 515}, "project": {"id": 348, "owner": {"id": 704}, "assignee": {"id": 848}}, "task": {"id": 377, "owner": {"id": 32}, "assignee": {"id": 1004}}, "job": {"id": 351, "assignee": {"id": 1165}}, "organization": {"id": 147}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 634}, "assignee": {"id": 596}, "project": {"id": 306, "owner": {"id": 728}, "assignee": {"id": 851}}, "task": {"id": 389, "owner": {"id": 83}, "assignee": {"id": 1040}}, "job": {"id": 320, "assignee": {"id": 1129}}, "organization": {"id": 1239}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 666}, "assignee": {"id": 564}, "project": {"id": 311, "owner": {"id": 793}, "assignee": {"id": 833}}, "task": {"id": 316, "owner": {"id": 43}, "assignee": {"id": 1087}}, "job": {"id": 363, "assignee": {"id": 1153}}, "organization": {"id": 1260}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 653}, "assignee": {"id": 552}, "project": {"id": 317, "owner": {"id": 740}, "assignee": {"id": 896}}, "task": {"id": 376, "owner": {"id": 65}, "assignee": {"id": 1047}}, "job": {"id": 399, "assignee": {"id": 1181}}, "organization": {"id": 190}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 655}, "assignee": {"id": 520}, "project": {"id": 345, "owner": {"id": 778}, "assignee": {"id": 868}}, "task": {"id": 386, "owner": {"id": 89}, "assignee": {"id": 1000}}, "job": {"id": 375, "assignee": {"id": 1136}}, "organization": {"id": 145}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 674}, "assignee": {"id": 596}, "project": {"id": 386, "owner": {"id": 714}, "assignee": {"id": 807}}, "task": {"id": 378, "owner": {"id": 84}, "assignee": {"id": 1009}}, "job": {"id": 393, "assignee": {"id": 1167}}, "organization": {"id": 1253}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 611}, "assignee": {"id": 597}, "project": {"id": 338, "owner": {"id": 775}, "assignee": {"id": 884}}, "task": {"id": 314, "owner": {"id": 68}, "assignee": {"id": 1045}}, "job": {"id": 340, "assignee": {"id": 1170}}, "organization": {"id": 1279}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 644}, "assignee": {"id": 508}, "project": {"id": 300, "owner": {"id": 775}, "assignee": {"id": 836}}, "task": {"id": 312, "owner": {"id": 51}, "assignee": {"id": 1037}}, "job": {"id": 301, "assignee": {"id": 1154}}, "organization": {"id": 122}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 687}, "assignee": {"id": 568}, "project": {"id": 336, "owner": {"id": 734}, "assignee": {"id": 852}}, "task": {"id": 395, "owner": {"id": 41}, "assignee": {"id": 1040}}, "job": {"id": 328, "assignee": {"id": 1126}}, "organization": {"id": 118}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 653}, "assignee": {"id": 583}, "project": {"id": 305, "owner": {"id": 710}, "assignee": {"id": 852}}, "task": {"id": 313, "owner": {"id": 42}, "assignee": {"id": 1042}}, "job": {"id": 312, "assignee": {"id": 1179}}, "organization": {"id": 1262}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 631}, "assignee": {"id": 516}, "project": {"id": 310, "owner": {"id": 761}, "assignee": {"id": 885}}, "task": {"id": 315, "owner": {"id": 64}, "assignee": {"id": 1025}}, "job": {"id": 375, "assignee": {"id": 1151}}, "organization": {"id": 1232}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 634}, "assignee": {"id": 508}, "project": {"id": 310, "owner": {"id": 706}, "assignee": {"id": 878}}, "task": {"id": 347, "owner": {"id": 79}, "assignee": {"id": 1028}}, "job": {"id": 377, "assignee": {"id": 1171}}, "organization": {"id": 149}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 640}, "assignee": {"id": 515}, "project": {"id": 389, "owner": {"id": 712}, "assignee": {"id": 861}}, "task": {"id": 360, "owner": {"id": 2}, "assignee": {"id": 1065}}, "job": {"id": 369, "assignee": {"id": 1195}}, "organization": {"id": 138}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 666}, "assignee": {"id": 589}, "project": {"id": 350, "owner": {"id": 702}, "assignee": {"id": 815}}, "task": {"id": 351, "owner": {"id": 48}, "assignee": {"id": 1043}}, "job": {"id": 332, "assignee": {"id": 1175}}, "organization": {"id": 1229}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 663}, "assignee": {"id": 561}, "project": {"id": 353, "owner": {"id": 790}, "assignee": {"id": 872}}, "task": {"id": 313, "owner": {"id": 16}, "assignee": {"id": 1052}}, "job": {"id": 384, "assignee": {"id": 1158}}, "organization": {"id": 1223}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 679}, "assignee": {"id": 530}, "project": {"id": 354, "owner": {"id": 736}, "assignee": {"id": 883}}, "task": {"id": 326, "owner": {"id": 4}, "assignee": {"id": 1012}}, "job": {"id": 325, "assignee": {"id": 1153}}, "organization": {"id": 145}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 676}, "assignee": {"id": 581}, "project": {"id": 358, "owner": {"id": 708}, "assignee": {"id": 865}}, "task": {"id": 326, "owner": {"id": 86}, "assignee": {"id": 1081}}, "job": {"id": 375, "assignee": {"id": 1160}}, "organization": {"id": 178}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 621}, "assignee": {"id": 508}, "project": {"id": 397, "owner": {"id": 709}, "assignee": {"id": 833}}, "task": {"id": 321, "owner": {"id": 97}, "assignee": {"id": 1023}}, "job": {"id": 318, "assignee": {"id": 1160}}, "organization": {"id": 1227}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 663}, "assignee": {"id": 543}, "project": {"id": 379, "owner": {"id": 747}, "assignee": {"id": 830}}, "task": {"id": 392, "owner": {"id": 47}, "assignee": {"id": 1000}}, "job": {"id": 367, "assignee": {"id": 1141}}, "organization": {"id": 1262}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 670}, "assignee": {"id": 597}, "project": {"id": 375, "owner": {"id": 704}, "assignee": {"id": 837}}, "task": {"id": 356, "owner": {"id": 49}, "assignee": {"id": 1017}}, "job": {"id": 382, "assignee": {"id": 1176}}, "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": 25, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 616}, "assignee": {"id": 555}, "project": {"id": 357, "owner": {"id": 786}, "assignee": {"id": 874}}, "task": {"id": 314, "owner": {"id": 25}, "assignee": {"id": 1037}}, "job": {"id": 385, "assignee": {"id": 1191}}, "organization": {"id": 116}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 613}, "assignee": {"id": 522}, "project": {"id": 310, "owner": {"id": 718}, "assignee": {"id": 831}}, "task": {"id": 345, "owner": {"id": 0}, "assignee": {"id": 1083}}, "job": {"id": 316, "assignee": {"id": 1192}}, "organization": {"id": 1207}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 634}, "assignee": {"id": 545}, "project": {"id": 314, "owner": {"id": 757}, "assignee": {"id": 884}}, "task": {"id": 352, "owner": {"id": 92}, "assignee": {"id": 1058}}, "job": {"id": 353, "assignee": {"id": 1156}}, "organization": {"id": 1274}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 629}, "assignee": {"id": 517}, "project": {"id": 336, "owner": {"id": 736}, "assignee": {"id": 887}}, "task": {"id": 394, "owner": {"id": 964}, "assignee": {"id": 42}}, "job": {"id": 388, "assignee": {"id": 1143}}, "organization": {"id": 197}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 677}, "assignee": {"id": 580}, "project": {"id": 396, "owner": {"id": 753}, "assignee": {"id": 803}}, "task": {"id": 367, "owner": {"id": 940}, "assignee": {"id": 86}}, "job": {"id": 311, "assignee": {"id": 1161}}, "organization": {"id": 180}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 610}, "assignee": {"id": 573}, "project": {"id": 304, "owner": {"id": 770}, "assignee": {"id": 897}}, "task": {"id": 350, "owner": {"id": 973}, "assignee": {"id": 30}}, "job": {"id": 319, "assignee": {"id": 1179}}, "organization": {"id": 1252}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 606}, "assignee": {"id": 550}, "project": {"id": 382, "owner": {"id": 709}, "assignee": {"id": 823}}, "task": {"id": 370, "owner": {"id": 923}, "assignee": {"id": 28}}, "job": {"id": 360, "assignee": {"id": 1189}}, "organization": {"id": 1255}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 633}, "assignee": {"id": 583}, "project": {"id": 337, "owner": {"id": 757}, "assignee": {"id": 834}}, "task": {"id": 350, "owner": {"id": 902}, "assignee": {"id": 52}}, "job": {"id": 359, "assignee": {"id": 1171}}, "organization": {"id": 139}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 630}, "assignee": {"id": 591}, "project": {"id": 389, "owner": {"id": 761}, "assignee": {"id": 891}}, "task": {"id": 343, "owner": {"id": 937}, "assignee": {"id": 80}}, "job": {"id": 360, "assignee": {"id": 1115}}, "organization": {"id": 149}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 610}, "assignee": {"id": 537}, "project": {"id": 331, "owner": {"id": 728}, "assignee": {"id": 804}}, "task": {"id": 395, "owner": {"id": 973}, "assignee": {"id": 3}}, "job": {"id": 319, "assignee": {"id": 1197}}, "organization": {"id": 1222}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 631}, "assignee": {"id": 562}, "project": {"id": 339, "owner": {"id": 762}, "assignee": {"id": 832}}, "task": {"id": 399, "owner": {"id": 922}, "assignee": {"id": 20}}, "job": {"id": 385, "assignee": {"id": 1144}}, "organization": {"id": 1204}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 610}, "assignee": {"id": 515}, "project": {"id": 364, "owner": {"id": 714}, "assignee": {"id": 860}}, "task": {"id": 341, "owner": {"id": 993}, "assignee": {"id": 85}}, "job": {"id": 312, "assignee": {"id": 1186}}, "organization": {"id": 109}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 620}, "assignee": {"id": 564}, "project": {"id": 319, "owner": {"id": 753}, "assignee": {"id": 890}}, "task": {"id": 326, "owner": {"id": 976}, "assignee": {"id": 62}}, "job": {"id": 381, "assignee": {"id": 1185}}, "organization": {"id": 172}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 623}, "assignee": {"id": 544}, "project": {"id": 310, "owner": {"id": 743}, "assignee": {"id": 804}}, "task": {"id": 353, "owner": {"id": 921}, "assignee": {"id": 69}}, "job": {"id": 377, "assignee": {"id": 1189}}, "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": 55, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 622}, "assignee": {"id": 524}, "project": {"id": 381, "owner": {"id": 710}, "assignee": {"id": 811}}, "task": {"id": 329, "owner": {"id": 924}, "assignee": {"id": 55}}, "job": {"id": 371, "assignee": {"id": 1141}}, "organization": {"id": 1249}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 607}, "assignee": {"id": 509}, "project": {"id": 302, "owner": {"id": 729}, "assignee": {"id": 855}}, "task": {"id": 382, "owner": {"id": 982}, "assignee": {"id": 10}}, "job": {"id": 384, "assignee": {"id": 1118}}, "organization": {"id": 137}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 686}, "assignee": {"id": 528}, "project": {"id": 371, "owner": {"id": 762}, "assignee": {"id": 820}}, "task": {"id": 334, "owner": {"id": 986}, "assignee": {"id": 45}}, "job": {"id": 365, "assignee": {"id": 1155}}, "organization": {"id": 103}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 675}, "assignee": {"id": 523}, "project": {"id": 337, "owner": {"id": 755}, "assignee": {"id": 829}}, "task": {"id": 380, "owner": {"id": 937}, "assignee": {"id": 30}}, "job": {"id": 334, "assignee": {"id": 1194}}, "organization": {"id": 1269}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 604}, "assignee": {"id": 561}, "project": {"id": 324, "owner": {"id": 781}, "assignee": {"id": 878}}, "task": {"id": 381, "owner": {"id": 951}, "assignee": {"id": 29}}, "job": {"id": 317, "assignee": {"id": 1154}}, "organization": {"id": 1248}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 621}, "assignee": {"id": 504}, "project": {"id": 376, "owner": {"id": 717}, "assignee": {"id": 810}}, "task": {"id": 396, "owner": {"id": 903}, "assignee": {"id": 78}}, "job": {"id": 367, "assignee": {"id": 1142}}, "organization": {"id": 133}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 600}, "assignee": {"id": 509}, "project": {"id": 363, "owner": {"id": 762}, "assignee": {"id": 843}}, "task": {"id": 375, "owner": {"id": 923}, "assignee": {"id": 34}}, "job": {"id": 325, "assignee": {"id": 1171}}, "organization": {"id": 183}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 632}, "assignee": {"id": 545}, "project": {"id": 379, "owner": {"id": 781}, "assignee": {"id": 835}}, "task": {"id": 366, "owner": {"id": 922}, "assignee": {"id": 3}}, "job": {"id": 391, "assignee": {"id": 1143}}, "organization": {"id": 1237}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 604}, "assignee": {"id": 584}, "project": {"id": 304, "owner": {"id": 759}, "assignee": {"id": 869}}, "task": {"id": 350, "owner": {"id": 987}, "assignee": {"id": 65}}, "job": {"id": 390, "assignee": {"id": 1138}}, "organization": {"id": 1238}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 636}, "assignee": {"id": 516}, "project": {"id": 343, "owner": {"id": 794}, "assignee": {"id": 807}}, "task": {"id": 347, "owner": {"id": 927}, "assignee": {"id": 96}}, "job": {"id": 316, "assignee": {"id": 1181}}, "organization": {"id": 117}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 641}, "assignee": {"id": 537}, "project": {"id": 334, "owner": {"id": 797}, "assignee": {"id": 848}}, "task": {"id": 317, "owner": {"id": 952}, "assignee": {"id": 7}}, "job": {"id": 357, "assignee": {"id": 1160}}, "organization": {"id": 161}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 635}, "assignee": {"id": 504}, "project": {"id": 308, "owner": {"id": 791}, "assignee": {"id": 846}}, "task": {"id": 312, "owner": {"id": 957}, "assignee": {"id": 38}}, "job": {"id": 360, "assignee": {"id": 1168}}, "organization": {"id": 1269}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 691}, "assignee": {"id": 517}, "project": {"id": 310, "owner": {"id": 791}, "assignee": {"id": 815}}, "task": {"id": 351, "owner": {"id": 917}, "assignee": {"id": 30}}, "job": {"id": 333, "assignee": {"id": 1193}}, "organization": {"id": 1293}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 682}, "assignee": {"id": 595}, "project": {"id": 358, "owner": {"id": 701}, "assignee": {"id": 800}}, "task": {"id": 351, "owner": {"id": 999}, "assignee": {"id": 87}}, "job": {"id": 341, "assignee": {"id": 1174}}, "organization": {"id": 143}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 665}, "assignee": {"id": 546}, "project": {"id": 396, "owner": {"id": 727}, "assignee": {"id": 865}}, "task": {"id": 300, "owner": {"id": 930}, "assignee": {"id": 49}}, "job": {"id": 368, "assignee": {"id": 1146}}, "organization": {"id": 101}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 615}, "assignee": {"id": 501}, "project": {"id": 368, "owner": {"id": 705}, "assignee": {"id": 822}}, "task": {"id": 303, "owner": {"id": 971}, "assignee": {"id": 6}}, "job": {"id": 325, "assignee": {"id": 1102}}, "organization": {"id": 1288}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 629}, "assignee": {"id": 536}, "project": {"id": 365, "owner": {"id": 724}, "assignee": {"id": 807}}, "task": {"id": 317, "owner": {"id": 976}, "assignee": {"id": 79}}, "job": {"id": 316, "assignee": {"id": 1137}}, "organization": {"id": 1216}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 628}, "assignee": {"id": 561}, "project": {"id": 358, "owner": {"id": 783}, "assignee": {"id": 868}}, "task": {"id": 375, "owner": {"id": 987}, "assignee": {"id": 58}}, "job": {"id": 364, "assignee": {"id": 1177}}, "organization": {"id": 172}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 652}, "assignee": {"id": 524}, "project": {"id": 378, "owner": {"id": 780}, "assignee": {"id": 815}}, "task": {"id": 326, "owner": {"id": 981}, "assignee": {"id": 6}}, "job": {"id": 375, "assignee": {"id": 1171}}, "organization": {"id": 190}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 604}, "assignee": {"id": 541}, "project": {"id": 398, "owner": {"id": 771}, "assignee": {"id": 858}}, "task": {"id": 310, "owner": {"id": 953}, "assignee": {"id": 29}}, "job": {"id": 371, "assignee": {"id": 1151}}, "organization": {"id": 1289}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 626}, "assignee": {"id": 542}, "project": {"id": 368, "owner": {"id": 759}, "assignee": {"id": 810}}, "task": {"id": 398, "owner": {"id": 916}, "assignee": {"id": 50}}, "job": {"id": 355, "assignee": {"id": 1114}}, "organization": {"id": 1237}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 668}, "assignee": {"id": 530}, "project": {"id": 361, "owner": {"id": 763}, "assignee": {"id": 849}}, "task": {"id": 335, "owner": {"id": 965}, "assignee": {"id": 10}}, "job": {"id": 388, "assignee": {"id": 1102}}, "organization": {"id": 186}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 685}, "assignee": {"id": 588}, "project": {"id": 378, "owner": {"id": 773}, "assignee": {"id": 804}}, "task": {"id": 330, "owner": {"id": 945}, "assignee": {"id": 17}}, "job": {"id": 324, "assignee": {"id": 1147}}, "organization": {"id": 144}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 670}, "assignee": {"id": 515}, "project": {"id": 365, "owner": {"id": 725}, "assignee": {"id": 835}}, "task": {"id": 361, "owner": {"id": 941}, "assignee": {"id": 36}}, "job": {"id": 360, "assignee": {"id": 1195}}, "organization": {"id": 1265}}} +} + +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": 124, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 622}, "assignee": {"id": 515}, "project": {"id": 384, "owner": {"id": 758}, "assignee": {"id": 846}}, "task": {"id": 381, "owner": {"id": 964}, "assignee": {"id": 14}}, "job": {"id": 381, "assignee": {"id": 1118}}, "organization": {"id": 1273}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 608}, "assignee": {"id": 553}, "project": {"id": 330, "owner": {"id": 720}, "assignee": {"id": 890}}, "task": {"id": 344, "owner": {"id": 923}, "assignee": {"id": 75}}, "job": {"id": 323, "assignee": {"id": 1185}}, "organization": {"id": 116}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 665}, "assignee": {"id": 542}, "project": {"id": 315, "owner": {"id": 767}, "assignee": {"id": 833}}, "task": {"id": 397, "owner": {"id": 938}, "assignee": {"id": 67}}, "job": {"id": 307, "assignee": {"id": 1117}}, "organization": {"id": 145}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 643}, "assignee": {"id": 511}, "project": {"id": 340, "owner": {"id": 703}, "assignee": {"id": 896}}, "task": {"id": 301, "owner": {"id": 927}, "assignee": {"id": 86}}, "job": {"id": 327, "assignee": {"id": 1128}}, "organization": {"id": 1297}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 610}, "assignee": {"id": 532}, "project": {"id": 376, "owner": {"id": 775}, "assignee": {"id": 853}}, "task": {"id": 316, "owner": {"id": 970}, "assignee": {"id": 15}}, "job": {"id": 363, "assignee": {"id": 1115}}, "organization": {"id": 1291}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 601}, "assignee": {"id": 523}, "project": {"id": 368, "owner": {"id": 755}, "assignee": {"id": 818}}, "task": {"id": 303, "owner": {"id": 984}, "assignee": {"id": 22}}, "job": {"id": 374, "assignee": {"id": 1149}}, "organization": {"id": 152}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 691}, "assignee": {"id": 528}, "project": {"id": 377, "owner": {"id": 779}, "assignee": {"id": 881}}, "task": {"id": 377, "owner": {"id": 949}, "assignee": {"id": 94}}, "job": {"id": 367, "assignee": {"id": 1198}}, "organization": {"id": 148}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 665}, "assignee": {"id": 543}, "project": {"id": 374, "owner": {"id": 748}, "assignee": {"id": 857}}, "task": {"id": 383, "owner": {"id": 989}, "assignee": {"id": 80}}, "job": {"id": 308, "assignee": {"id": 1171}}, "organization": {"id": 1218}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 632}, "assignee": {"id": 594}, "project": {"id": 384, "owner": {"id": 753}, "assignee": {"id": 862}}, "task": {"id": 310, "owner": {"id": 918}, "assignee": {"id": 35}}, "job": {"id": 302, "assignee": {"id": 1184}}, "organization": {"id": 1226}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 613}, "assignee": {"id": 528}, "project": {"id": 368, "owner": {"id": 721}, "assignee": {"id": 874}}, "task": {"id": 338, "owner": {"id": 932}, "assignee": {"id": 74}}, "job": {"id": 362, "assignee": {"id": 1103}}, "organization": {"id": 166}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 607}, "assignee": {"id": 538}, "project": {"id": 381, "owner": {"id": 755}, "assignee": {"id": 848}}, "task": {"id": 333, "owner": {"id": 912}, "assignee": {"id": 57}}, "job": {"id": 353, "assignee": {"id": 1196}}, "organization": {"id": 156}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 681}, "assignee": {"id": 570}, "project": {"id": 338, "owner": {"id": 768}, "assignee": {"id": 897}}, "task": {"id": 328, "owner": {"id": 935}, "assignee": {"id": 4}}, "job": {"id": 389, "assignee": {"id": 1122}}, "organization": {"id": 1294}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 626}, "assignee": {"id": 531}, "project": {"id": 310, "owner": {"id": 706}, "assignee": {"id": 853}}, "task": {"id": 335, "owner": {"id": 973}, "assignee": {"id": 1}}, "job": {"id": 360, "assignee": {"id": 1173}}, "organization": {"id": 1297}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 634}, "assignee": {"id": 525}, "project": {"id": 381, "owner": {"id": 740}, "assignee": {"id": 857}}, "task": {"id": 382, "owner": {"id": 937}, "assignee": {"id": 40}}, "job": {"id": 328, "assignee": {"id": 1116}}, "organization": {"id": 150}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 667}, "assignee": {"id": 584}, "project": {"id": 387, "owner": {"id": 787}, "assignee": {"id": 861}}, "task": {"id": 390, "owner": {"id": 936}, "assignee": {"id": 99}}, "job": {"id": 302, "assignee": {"id": 1143}}, "organization": {"id": 159}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 615}, "assignee": {"id": 538}, "project": {"id": 357, "owner": {"id": 739}, "assignee": {"id": 862}}, "task": {"id": 342, "owner": {"id": 920}, "assignee": {"id": 68}}, "job": {"id": 383, "assignee": {"id": 1122}}, "organization": {"id": 1264}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 656}, "assignee": {"id": 565}, "project": {"id": 344, "owner": {"id": 787}, "assignee": {"id": 872}}, "task": {"id": 381, "owner": {"id": 932}, "assignee": {"id": 47}}, "job": {"id": 349, "assignee": {"id": 1189}}, "organization": {"id": 1250}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 698}, "assignee": {"id": 539}, "project": {"id": 375, "owner": {"id": 799}, "assignee": {"id": 899}}, "task": {"id": 315, "owner": {"id": 945}, "assignee": {"id": 40}}, "job": {"id": 347, "assignee": {"id": 1193}}, "organization": {"id": 136}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 649}, "assignee": {"id": 526}, "project": {"id": 391, "owner": {"id": 750}, "assignee": {"id": 893}}, "task": {"id": 373, "owner": {"id": 933}, "assignee": {"id": 71}}, "job": {"id": 343, "assignee": {"id": 1161}}, "organization": {"id": 152}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 689}, "assignee": {"id": 576}, "project": {"id": 369, "owner": {"id": 770}, "assignee": {"id": 806}}, "task": {"id": 387, "owner": {"id": 941}, "assignee": {"id": 28}}, "job": {"id": 365, "assignee": {"id": 1197}}, "organization": {"id": 1287}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 654}, "assignee": {"id": 557}, "project": {"id": 375, "owner": {"id": 793}, "assignee": {"id": 848}}, "task": {"id": 357, "owner": {"id": 983}, "assignee": {"id": 82}}, "job": {"id": 335, "assignee": {"id": 1180}}, "organization": {"id": 1283}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 601}, "assignee": {"id": 578}, "project": {"id": 309, "owner": {"id": 728}, "assignee": {"id": 825}}, "task": {"id": 328, "owner": {"id": 991}, "assignee": {"id": 49}}, "job": {"id": 390, "assignee": {"id": 1185}}, "organization": {"id": 101}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 630}, "assignee": {"id": 511}, "project": {"id": 354, "owner": {"id": 732}, "assignee": {"id": 806}}, "task": {"id": 360, "owner": {"id": 946}, "assignee": {"id": 78}}, "job": {"id": 389, "assignee": {"id": 1188}}, "organization": {"id": 161}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 633}, "assignee": {"id": 513}, "project": {"id": 328, "owner": {"id": 794}, "assignee": {"id": 801}}, "task": {"id": 388, "owner": {"id": 979}, "assignee": {"id": 30}}, "job": {"id": 339, "assignee": {"id": 1194}}, "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": 48, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 630}, "assignee": {"id": 538}, "project": {"id": 350, "owner": {"id": 710}, "assignee": {"id": 804}}, "task": {"id": 347, "owner": {"id": 908}, "assignee": {"id": 48}}, "job": {"id": 344, "assignee": {"id": 1179}}, "organization": {"id": 1204}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 682}, "assignee": {"id": 566}, "project": {"id": 354, "owner": {"id": 741}, "assignee": {"id": 846}}, "task": {"id": 304, "owner": {"id": 922}, "assignee": {"id": 64}}, "job": {"id": 399, "assignee": {"id": 1133}}, "organization": {"id": 136}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 616}, "assignee": {"id": 501}, "project": {"id": 370, "owner": {"id": 712}, "assignee": {"id": 868}}, "task": {"id": 308, "owner": {"id": 981}, "assignee": {"id": 94}}, "job": {"id": 398, "assignee": {"id": 1163}}, "organization": {"id": 105}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 660}, "assignee": {"id": 585}, "project": {"id": 356, "owner": {"id": 757}, "assignee": {"id": 863}}, "task": {"id": 341, "owner": {"id": 993}, "assignee": {"id": 44}}, "job": {"id": 379, "assignee": {"id": 1111}}, "organization": {"id": 1258}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 685}, "assignee": {"id": 587}, "project": {"id": 319, "owner": {"id": 752}, "assignee": {"id": 815}}, "task": {"id": 331, "owner": {"id": 993}, "assignee": {"id": 10}}, "job": {"id": 348, "assignee": {"id": 1147}}, "organization": {"id": 1270}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 663}, "assignee": {"id": 542}, "project": {"id": 373, "owner": {"id": 719}, "assignee": {"id": 824}}, "task": {"id": 376, "owner": {"id": 941}, "assignee": {"id": 66}}, "job": {"id": 391, "assignee": {"id": 1164}}, "organization": {"id": 119}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 684}, "assignee": {"id": 588}, "project": {"id": 316, "owner": {"id": 716}, "assignee": {"id": 817}}, "task": {"id": 371, "owner": {"id": 950}, "assignee": {"id": 4}}, "job": {"id": 350, "assignee": {"id": 1141}}, "organization": {"id": 165}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 658}, "assignee": {"id": 559}, "project": {"id": 386, "owner": {"id": 780}, "assignee": {"id": 867}}, "task": {"id": 306, "owner": {"id": 978}, "assignee": {"id": 58}}, "job": {"id": 304, "assignee": {"id": 1125}}, "organization": {"id": 1275}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 676}, "assignee": {"id": 522}, "project": {"id": 309, "owner": {"id": 766}, "assignee": {"id": 849}}, "task": {"id": 309, "owner": {"id": 924}, "assignee": {"id": 36}}, "job": {"id": 374, "assignee": {"id": 1107}}, "organization": {"id": 1287}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 657}, "assignee": {"id": 583}, "project": {"id": 334, "owner": {"id": 755}, "assignee": {"id": 846}}, "task": {"id": 376, "owner": {"id": 949}, "assignee": {"id": 60}}, "job": {"id": 314, "assignee": {"id": 1110}}, "organization": {"id": 124}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 638}, "assignee": {"id": 505}, "project": {"id": 364, "owner": {"id": 799}, "assignee": {"id": 890}}, "task": {"id": 301, "owner": {"id": 997}, "assignee": {"id": 72}}, "job": {"id": 357, "assignee": {"id": 1107}}, "organization": {"id": 159}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 640}, "assignee": {"id": 530}, "project": {"id": 377, "owner": {"id": 786}, "assignee": {"id": 809}}, "task": {"id": 337, "owner": {"id": 940}, "assignee": {"id": 33}}, "job": {"id": 317, "assignee": {"id": 1141}}, "organization": {"id": 1264}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 683}, "assignee": {"id": 567}, "project": {"id": 313, "owner": {"id": 777}, "assignee": {"id": 896}}, "task": {"id": 306, "owner": {"id": 972}, "assignee": {"id": 31}}, "job": {"id": 315, "assignee": {"id": 1173}}, "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": 34, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 635}, "assignee": {"id": 589}, "project": {"id": 301, "owner": {"id": 704}, "assignee": {"id": 868}}, "task": {"id": 391, "owner": {"id": 905}, "assignee": {"id": 34}}, "job": {"id": 397, "assignee": {"id": 1170}}, "organization": {"id": 145}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 602}, "assignee": {"id": 543}, "project": {"id": 387, "owner": {"id": 789}, "assignee": {"id": 834}}, "task": {"id": 322, "owner": {"id": 917}, "assignee": {"id": 67}}, "job": {"id": 383, "assignee": {"id": 1138}}, "organization": {"id": 170}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 623}, "assignee": {"id": 536}, "project": {"id": 359, "owner": {"id": 708}, "assignee": {"id": 820}}, "task": {"id": 396, "owner": {"id": 995}, "assignee": {"id": 1}}, "job": {"id": 324, "assignee": {"id": 1109}}, "organization": {"id": 1209}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 621}, "assignee": {"id": 578}, "project": {"id": 303, "owner": {"id": 750}, "assignee": {"id": 852}}, "task": {"id": 358, "owner": {"id": 962}, "assignee": {"id": 33}}, "job": {"id": 363, "assignee": {"id": 1154}}, "organization": {"id": 1255}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 645}, "assignee": {"id": 569}, "project": {"id": 315, "owner": {"id": 786}, "assignee": {"id": 842}}, "task": {"id": 334, "owner": {"id": 905}, "assignee": {"id": 58}}, "job": {"id": 306, "assignee": {"id": 1142}}, "organization": {"id": 133}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 698}, "assignee": {"id": 522}, "project": {"id": 393, "owner": {"id": 730}, "assignee": {"id": 838}}, "task": {"id": 348, "owner": {"id": 948}, "assignee": {"id": 53}}, "job": {"id": 348, "assignee": {"id": 1178}}, "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": 33, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 619}, "assignee": {"id": 529}, "project": {"id": 396, "owner": {"id": 736}, "assignee": {"id": 857}}, "task": {"id": 353, "owner": {"id": 974}, "assignee": {"id": 33}}, "job": {"id": 363, "assignee": {"id": 1185}}, "organization": {"id": 1243}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 668}, "assignee": {"id": 588}, "project": {"id": 393, "owner": {"id": 786}, "assignee": {"id": 865}}, "task": {"id": 368, "owner": {"id": 937}, "assignee": {"id": 64}}, "job": {"id": 392, "assignee": {"id": 1141}}, "organization": {"id": 1242}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 624}, "assignee": {"id": 532}, "project": {"id": 323, "owner": {"id": 720}, "assignee": {"id": 877}}, "task": {"id": 324, "owner": {"id": 906}, "assignee": {"id": 4}}, "job": {"id": 369, "assignee": {"id": 1134}}, "organization": {"id": 156}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 682}, "assignee": {"id": 590}, "project": {"id": 383, "owner": {"id": 783}, "assignee": {"id": 887}}, "task": {"id": 365, "owner": {"id": 983}, "assignee": {"id": 0}}, "job": {"id": 394, "assignee": {"id": 1195}}, "organization": {"id": 106}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 609}, "assignee": {"id": 536}, "project": {"id": 328, "owner": {"id": 773}, "assignee": {"id": 808}}, "task": {"id": 388, "owner": {"id": 960}, "assignee": {"id": 84}}, "job": {"id": 302, "assignee": {"id": 1124}}, "organization": {"id": 1270}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 661}, "assignee": {"id": 503}, "project": {"id": 304, "owner": {"id": 782}, "assignee": {"id": 893}}, "task": {"id": 364, "owner": {"id": 949}, "assignee": {"id": 7}}, "job": {"id": 360, "assignee": {"id": 1172}}, "organization": {"id": 1239}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 681}, "assignee": {"id": 548}, "project": {"id": 305, "owner": {"id": 732}, "assignee": {"id": 830}}, "task": {"id": 386, "owner": {"id": 941}, "assignee": {"id": 49}}, "job": {"id": 367, "assignee": {"id": 1103}}, "organization": {"id": 154}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 618}, "assignee": {"id": 531}, "project": {"id": 362, "owner": {"id": 713}, "assignee": {"id": 827}}, "task": {"id": 311, "owner": {"id": 994}, "assignee": {"id": 61}}, "job": {"id": 361, "assignee": {"id": 1113}}, "organization": {"id": 166}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 604}, "assignee": {"id": 503}, "project": {"id": 334, "owner": {"id": 770}, "assignee": {"id": 892}}, "task": {"id": 371, "owner": {"id": 948}, "assignee": {"id": 68}}, "job": {"id": 324, "assignee": {"id": 1147}}, "organization": {"id": 1280}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 620}, "assignee": {"id": 573}, "project": {"id": 364, "owner": {"id": 760}, "assignee": {"id": 859}}, "task": {"id": 373, "owner": {"id": 956}, "assignee": {"id": 57}}, "job": {"id": 324, "assignee": {"id": 1189}}, "organization": {"id": 1274}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 674}, "assignee": {"id": 582}, "project": {"id": 356, "owner": {"id": 796}, "assignee": {"id": 838}}, "task": {"id": 392, "owner": {"id": 987}, "assignee": {"id": 5}}, "job": {"id": 361, "assignee": {"id": 1164}}, "organization": {"id": 136}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 615}, "assignee": {"id": 587}, "project": {"id": 387, "owner": {"id": 702}, "assignee": {"id": 865}}, "task": {"id": 374, "owner": {"id": 966}, "assignee": {"id": 15}}, "job": {"id": 345, "assignee": {"id": 1123}}, "organization": {"id": 141}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 699}, "assignee": {"id": 559}, "project": {"id": 356, "owner": {"id": 771}, "assignee": {"id": 842}}, "task": {"id": 331, "owner": {"id": 987}, "assignee": {"id": 95}}, "job": {"id": 328, "assignee": {"id": 1187}}, "organization": {"id": 1245}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 632}, "assignee": {"id": 545}, "project": {"id": 379, "owner": {"id": 765}, "assignee": {"id": 849}}, "task": {"id": 329, "owner": {"id": 954}, "assignee": {"id": 84}}, "job": {"id": 370, "assignee": {"id": 1177}}, "organization": {"id": 1201}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 641}, "assignee": {"id": 539}, "project": {"id": 307, "owner": {"id": 748}, "assignee": {"id": 898}}, "task": {"id": 390, "owner": {"id": 980}, "assignee": {"id": 60}}, "job": {"id": 314, "assignee": {"id": 1150}}, "organization": {"id": 171}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 665}, "assignee": {"id": 519}, "project": {"id": 353, "owner": {"id": 772}, "assignee": {"id": 865}}, "task": {"id": 397, "owner": {"id": 919}, "assignee": {"id": 50}}, "job": {"id": 374, "assignee": {"id": 1145}}, "organization": {"id": 175}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 675}, "assignee": {"id": 580}, "project": {"id": 312, "owner": {"id": 783}, "assignee": {"id": 813}}, "task": {"id": 394, "owner": {"id": 960}, "assignee": {"id": 28}}, "job": {"id": 368, "assignee": {"id": 1132}}, "organization": {"id": 1278}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 670}, "assignee": {"id": 594}, "project": {"id": 315, "owner": {"id": 736}, "assignee": {"id": 855}}, "task": {"id": 352, "owner": {"id": 962}, "assignee": {"id": 75}}, "job": {"id": 324, "assignee": {"id": 1181}}, "organization": {"id": 1208}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 609}, "assignee": {"id": 511}, "project": {"id": 321, "owner": {"id": 766}, "assignee": {"id": 815}}, "task": {"id": 394, "owner": {"id": 926}, "assignee": {"id": 11}}, "job": {"id": 367, "assignee": {"id": 1194}}, "organization": {"id": 145}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 664}, "assignee": {"id": 533}, "project": {"id": 376, "owner": {"id": 762}, "assignee": {"id": 830}}, "task": {"id": 374, "owner": {"id": 985}, "assignee": {"id": 57}}, "job": {"id": 379, "assignee": {"id": 1154}}, "organization": {"id": 157}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 685}, "assignee": {"id": 535}, "project": {"id": 376, "owner": {"id": 784}, "assignee": {"id": 842}}, "task": {"id": 397, "owner": {"id": 921}, "assignee": {"id": 50}}, "job": {"id": 317, "assignee": {"id": 1120}}, "organization": {"id": 1218}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 615}, "assignee": {"id": 510}, "project": {"id": 306, "owner": {"id": 731}, "assignee": {"id": 898}}, "task": {"id": 320, "owner": {"id": 937}, "assignee": {"id": 83}}, "job": {"id": 359, "assignee": {"id": 1178}}, "organization": {"id": 1240}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 651}, "assignee": {"id": 587}, "project": {"id": 328, "owner": {"id": 758}, "assignee": {"id": 856}}, "task": {"id": 398, "owner": {"id": 927}, "assignee": {"id": 1020}}, "job": {"id": 303, "assignee": {"id": 27}}, "organization": {"id": 144}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 637}, "assignee": {"id": 559}, "project": {"id": 345, "owner": {"id": 708}, "assignee": {"id": 854}}, "task": {"id": 357, "owner": {"id": 984}, "assignee": {"id": 1087}}, "job": {"id": 395, "assignee": {"id": 86}}, "organization": {"id": 114}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 650}, "assignee": {"id": 514}, "project": {"id": 328, "owner": {"id": 708}, "assignee": {"id": 851}}, "task": {"id": 374, "owner": {"id": 910}, "assignee": {"id": 1033}}, "job": {"id": 335, "assignee": {"id": 21}}, "organization": {"id": 1290}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 640}, "assignee": {"id": 589}, "project": {"id": 308, "owner": {"id": 713}, "assignee": {"id": 849}}, "task": {"id": 354, "owner": {"id": 961}, "assignee": {"id": 1070}}, "job": {"id": 397, "assignee": {"id": 16}}, "organization": {"id": 1289}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 618}, "assignee": {"id": 511}, "project": {"id": 339, "owner": {"id": 745}, "assignee": {"id": 883}}, "task": {"id": 371, "owner": {"id": 938}, "assignee": {"id": 1030}}, "job": {"id": 374, "assignee": {"id": 71}}, "organization": {"id": 149}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 668}, "assignee": {"id": 591}, "project": {"id": 360, "owner": {"id": 700}, "assignee": {"id": 866}}, "task": {"id": 391, "owner": {"id": 999}, "assignee": {"id": 1044}}, "job": {"id": 377, "assignee": {"id": 81}}, "organization": {"id": 115}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 664}, "assignee": {"id": 562}, "project": {"id": 350, "owner": {"id": 742}, "assignee": {"id": 842}}, "task": {"id": 321, "owner": {"id": 961}, "assignee": {"id": 1018}}, "job": {"id": 356, "assignee": {"id": 43}}, "organization": {"id": 1282}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 625}, "assignee": {"id": 545}, "project": {"id": 384, "owner": {"id": 726}, "assignee": {"id": 876}}, "task": {"id": 323, "owner": {"id": 928}, "assignee": {"id": 1088}}, "job": {"id": 316, "assignee": {"id": 64}}, "organization": {"id": 1245}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 607}, "assignee": {"id": 569}, "project": {"id": 309, "owner": {"id": 703}, "assignee": {"id": 844}}, "task": {"id": 363, "owner": {"id": 973}, "assignee": {"id": 1070}}, "job": {"id": 370, "assignee": {"id": 45}}, "organization": {"id": 121}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 647}, "assignee": {"id": 591}, "project": {"id": 308, "owner": {"id": 742}, "assignee": {"id": 839}}, "task": {"id": 374, "owner": {"id": 933}, "assignee": {"id": 1091}}, "job": {"id": 341, "assignee": {"id": 93}}, "organization": {"id": 141}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 602}, "assignee": {"id": 558}, "project": {"id": 316, "owner": {"id": 778}, "assignee": {"id": 869}}, "task": {"id": 376, "owner": {"id": 953}, "assignee": {"id": 1086}}, "job": {"id": 303, "assignee": {"id": 40}}, "organization": {"id": 1246}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 659}, "assignee": {"id": 543}, "project": {"id": 319, "owner": {"id": 732}, "assignee": {"id": 878}}, "task": {"id": 300, "owner": {"id": 937}, "assignee": {"id": 1093}}, "job": {"id": 349, "assignee": {"id": 28}}, "organization": {"id": 1293}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 670}, "assignee": {"id": 571}, "project": {"id": 356, "owner": {"id": 730}, "assignee": {"id": 830}}, "task": {"id": 394, "owner": {"id": 939}, "assignee": {"id": 1068}}, "job": {"id": 347, "assignee": {"id": 80}}, "organization": {"id": 171}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 616}, "assignee": {"id": 579}, "project": {"id": 325, "owner": {"id": 760}, "assignee": {"id": 875}}, "task": {"id": 360, "owner": {"id": 904}, "assignee": {"id": 1096}}, "job": {"id": 316, "assignee": {"id": 25}}, "organization": {"id": 199}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 605}, "assignee": {"id": 581}, "project": {"id": 374, "owner": {"id": 706}, "assignee": {"id": 895}}, "task": {"id": 338, "owner": {"id": 991}, "assignee": {"id": 1090}}, "job": {"id": 370, "assignee": {"id": 62}}, "organization": {"id": 1227}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 639}, "assignee": {"id": 541}, "project": {"id": 322, "owner": {"id": 725}, "assignee": {"id": 844}}, "task": {"id": 334, "owner": {"id": 917}, "assignee": {"id": 1020}}, "job": {"id": 389, "assignee": {"id": 49}}, "organization": {"id": 1215}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 632}, "assignee": {"id": 552}, "project": {"id": 336, "owner": {"id": 739}, "assignee": {"id": 848}}, "task": {"id": 370, "owner": {"id": 932}, "assignee": {"id": 1050}}, "job": {"id": 384, "assignee": {"id": 90}}, "organization": {"id": 114}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 646}, "assignee": {"id": 525}, "project": {"id": 310, "owner": {"id": 777}, "assignee": {"id": 843}}, "task": {"id": 356, "owner": {"id": 946}, "assignee": {"id": 1019}}, "job": {"id": 309, "assignee": {"id": 39}}, "organization": {"id": 149}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 604}, "assignee": {"id": 515}, "project": {"id": 353, "owner": {"id": 702}, "assignee": {"id": 802}}, "task": {"id": 368, "owner": {"id": 942}, "assignee": {"id": 1001}}, "job": {"id": 303, "assignee": {"id": 49}}, "organization": {"id": 1229}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 684}, "assignee": {"id": 510}, "project": {"id": 315, "owner": {"id": 790}, "assignee": {"id": 862}}, "task": {"id": 363, "owner": {"id": 965}, "assignee": {"id": 1087}}, "job": {"id": 347, "assignee": {"id": 51}}, "organization": {"id": 1239}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 680}, "assignee": {"id": 556}, "project": {"id": 399, "owner": {"id": 733}, "assignee": {"id": 801}}, "task": {"id": 392, "owner": {"id": 932}, "assignee": {"id": 1051}}, "job": {"id": 387, "assignee": {"id": 44}}, "organization": {"id": 196}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 694}, "assignee": {"id": 531}, "project": {"id": 334, "owner": {"id": 711}, "assignee": {"id": 842}}, "task": {"id": 310, "owner": {"id": 979}, "assignee": {"id": 1051}}, "job": {"id": 376, "assignee": {"id": 11}}, "organization": {"id": 131}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 687}, "assignee": {"id": 517}, "project": {"id": 340, "owner": {"id": 781}, "assignee": {"id": 885}}, "task": {"id": 344, "owner": {"id": 925}, "assignee": {"id": 1015}}, "job": {"id": 337, "assignee": {"id": 92}}, "organization": {"id": 1270}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 612}, "assignee": {"id": 559}, "project": {"id": 340, "owner": {"id": 750}, "assignee": {"id": 813}}, "task": {"id": 359, "owner": {"id": 920}, "assignee": {"id": 1089}}, "job": {"id": 314, "assignee": {"id": 19}}, "organization": {"id": 1203}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 655}, "assignee": {"id": 552}, "project": {"id": 333, "owner": {"id": 748}, "assignee": {"id": 858}}, "task": {"id": 342, "owner": {"id": 939}, "assignee": {"id": 1014}}, "job": {"id": 340, "assignee": {"id": 99}}, "organization": {"id": 138}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 625}, "assignee": {"id": 552}, "project": {"id": 319, "owner": {"id": 765}, "assignee": {"id": 867}}, "task": {"id": 398, "owner": {"id": 984}, "assignee": {"id": 1063}}, "job": {"id": 344, "assignee": {"id": 94}}, "organization": {"id": 104}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 647}, "assignee": {"id": 570}, "project": {"id": 358, "owner": {"id": 790}, "assignee": {"id": 878}}, "task": {"id": 376, "owner": {"id": 960}, "assignee": {"id": 1078}}, "job": {"id": 305, "assignee": {"id": 24}}, "organization": {"id": 1287}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 643}, "assignee": {"id": 580}, "project": {"id": 376, "owner": {"id": 712}, "assignee": {"id": 803}}, "task": {"id": 318, "owner": {"id": 953}, "assignee": {"id": 1041}}, "job": {"id": 323, "assignee": {"id": 45}}, "organization": {"id": 1228}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 696}, "assignee": {"id": 523}, "project": {"id": 365, "owner": {"id": 712}, "assignee": {"id": 876}}, "task": {"id": 308, "owner": {"id": 934}, "assignee": {"id": 1042}}, "job": {"id": 372, "assignee": {"id": 2}}, "organization": {"id": 150}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 633}, "assignee": {"id": 577}, "project": {"id": 349, "owner": {"id": 786}, "assignee": {"id": 838}}, "task": {"id": 375, "owner": {"id": 949}, "assignee": {"id": 1040}}, "job": {"id": 306, "assignee": {"id": 17}}, "organization": {"id": 102}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 646}, "assignee": {"id": 520}, "project": {"id": 335, "owner": {"id": 738}, "assignee": {"id": 879}}, "task": {"id": 339, "owner": {"id": 925}, "assignee": {"id": 1096}}, "job": {"id": 309, "assignee": {"id": 18}}, "organization": {"id": 1277}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 677}, "assignee": {"id": 599}, "project": {"id": 394, "owner": {"id": 779}, "assignee": {"id": 862}}, "task": {"id": 347, "owner": {"id": 913}, "assignee": {"id": 1093}}, "job": {"id": 339, "assignee": {"id": 34}}, "organization": {"id": 1227}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 656}, "assignee": {"id": 510}, "project": {"id": 341, "owner": {"id": 797}, "assignee": {"id": 819}}, "task": {"id": 313, "owner": {"id": 985}, "assignee": {"id": 1082}}, "job": {"id": 343, "assignee": {"id": 96}}, "organization": {"id": 118}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 675}, "assignee": {"id": 549}, "project": {"id": 341, "owner": {"id": 784}, "assignee": {"id": 849}}, "task": {"id": 392, "owner": {"id": 935}, "assignee": {"id": 1020}}, "job": {"id": 302, "assignee": {"id": 42}}, "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": 14, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 621}, "assignee": {"id": 511}, "project": {"id": 345, "owner": {"id": 700}, "assignee": {"id": 876}}, "task": {"id": 341, "owner": {"id": 903}, "assignee": {"id": 1063}}, "job": {"id": 313, "assignee": {"id": 14}}, "organization": {"id": 1267}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 645}, "assignee": {"id": 533}, "project": {"id": 359, "owner": {"id": 756}, "assignee": {"id": 820}}, "task": {"id": 334, "owner": {"id": 986}, "assignee": {"id": 1026}}, "job": {"id": 348, "assignee": {"id": 68}}, "organization": {"id": 1244}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 688}, "assignee": {"id": 559}, "project": {"id": 305, "owner": {"id": 751}, "assignee": {"id": 838}}, "task": {"id": 387, "owner": {"id": 924}, "assignee": {"id": 1084}}, "job": {"id": 376, "assignee": {"id": 89}}, "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": 51, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 605}, "assignee": {"id": 544}, "project": {"id": 343, "owner": {"id": 788}, "assignee": {"id": 891}}, "task": {"id": 377, "owner": {"id": 944}, "assignee": {"id": 1076}}, "job": {"id": 380, "assignee": {"id": 51}}, "organization": {"id": 155}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 649}, "assignee": {"id": 512}, "project": {"id": 313, "owner": {"id": 750}, "assignee": {"id": 892}}, "task": {"id": 326, "owner": {"id": 952}, "assignee": {"id": 1026}}, "job": {"id": 324, "assignee": {"id": 10}}, "organization": {"id": 1263}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 657}, "assignee": {"id": 579}, "project": {"id": 329, "owner": {"id": 783}, "assignee": {"id": 857}}, "task": {"id": 357, "owner": {"id": 961}, "assignee": {"id": 1089}}, "job": {"id": 343, "assignee": {"id": 57}}, "organization": {"id": 1231}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 614}, "assignee": {"id": 577}, "project": {"id": 368, "owner": {"id": 771}, "assignee": {"id": 865}}, "task": {"id": 325, "owner": {"id": 979}, "assignee": {"id": 1008}}, "job": {"id": 331, "assignee": {"id": 81}}, "organization": {"id": 134}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 611}, "assignee": {"id": 579}, "project": {"id": 336, "owner": {"id": 728}, "assignee": {"id": 811}}, "task": {"id": 368, "owner": {"id": 948}, "assignee": {"id": 1080}}, "job": {"id": 387, "assignee": {"id": 7}}, "organization": {"id": 143}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 653}, "assignee": {"id": 562}, "project": {"id": 311, "owner": {"id": 783}, "assignee": {"id": 863}}, "task": {"id": 345, "owner": {"id": 982}, "assignee": {"id": 1077}}, "job": {"id": 347, "assignee": {"id": 83}}, "organization": {"id": 1281}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 610}, "assignee": {"id": 567}, "project": {"id": 347, "owner": {"id": 762}, "assignee": {"id": 829}}, "task": {"id": 360, "owner": {"id": 915}, "assignee": {"id": 1058}}, "job": {"id": 321, "assignee": {"id": 46}}, "organization": {"id": 1262}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 664}, "assignee": {"id": 589}, "project": {"id": 378, "owner": {"id": 796}, "assignee": {"id": 856}}, "task": {"id": 347, "owner": {"id": 968}, "assignee": {"id": 1030}}, "job": {"id": 368, "assignee": {"id": 50}}, "organization": {"id": 148}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 697}, "assignee": {"id": 514}, "project": {"id": 337, "owner": {"id": 794}, "assignee": {"id": 802}}, "task": {"id": 358, "owner": {"id": 936}, "assignee": {"id": 1056}}, "job": {"id": 302, "assignee": {"id": 24}}, "organization": {"id": 180}}} +} + +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": 142, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 688}, "assignee": {"id": 536}, "project": {"id": 314, "owner": {"id": 778}, "assignee": {"id": 879}}, "task": {"id": 396, "owner": {"id": 987}, "assignee": {"id": 1006}}, "job": {"id": 332, "assignee": {"id": 13}}, "organization": {"id": 1216}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 686}, "assignee": {"id": 577}, "project": {"id": 362, "owner": {"id": 725}, "assignee": {"id": 866}}, "task": {"id": 344, "owner": {"id": 988}, "assignee": {"id": 1010}}, "job": {"id": 321, "assignee": {"id": 2}}, "organization": {"id": 1208}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 618}, "assignee": {"id": 540}, "project": {"id": 319, "owner": {"id": 709}, "assignee": {"id": 807}}, "task": {"id": 397, "owner": {"id": 992}, "assignee": {"id": 1032}}, "job": {"id": 309, "assignee": {"id": 60}}, "organization": {"id": 189}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 674}, "assignee": {"id": 591}, "project": {"id": 347, "owner": {"id": 743}, "assignee": {"id": 835}}, "task": {"id": 370, "owner": {"id": 908}, "assignee": {"id": 1070}}, "job": {"id": 339, "assignee": {"id": 24}}, "organization": {"id": 154}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 601}, "assignee": {"id": 541}, "project": {"id": 342, "owner": {"id": 780}, "assignee": {"id": 836}}, "task": {"id": 346, "owner": {"id": 984}, "assignee": {"id": 1087}}, "job": {"id": 369, "assignee": {"id": 50}}, "organization": {"id": 1230}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 615}, "assignee": {"id": 583}, "project": {"id": 384, "owner": {"id": 783}, "assignee": {"id": 807}}, "task": {"id": 349, "owner": {"id": 935}, "assignee": {"id": 1013}}, "job": {"id": 330, "assignee": {"id": 76}}, "organization": {"id": 1206}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 646}, "assignee": {"id": 513}, "project": {"id": 346, "owner": {"id": 773}, "assignee": {"id": 810}}, "task": {"id": 327, "owner": {"id": 910}, "assignee": {"id": 1036}}, "job": {"id": 375, "assignee": {"id": 2}}, "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": 31, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 673}, "assignee": {"id": 535}, "project": {"id": 324, "owner": {"id": 742}, "assignee": {"id": 808}}, "task": {"id": 315, "owner": {"id": 930}, "assignee": {"id": 1098}}, "job": {"id": 394, "assignee": {"id": 31}}, "organization": {"id": 130}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 638}, "assignee": {"id": 517}, "project": {"id": 309, "owner": {"id": 743}, "assignee": {"id": 879}}, "task": {"id": 336, "owner": {"id": 990}, "assignee": {"id": 1001}}, "job": {"id": 388, "assignee": {"id": 26}}, "organization": {"id": 1257}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 633}, "assignee": {"id": 517}, "project": {"id": 338, "owner": {"id": 758}, "assignee": {"id": 865}}, "task": {"id": 301, "owner": {"id": 902}, "assignee": {"id": 1077}}, "job": {"id": 386, "assignee": {"id": 4}}, "organization": {"id": 1201}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 691}, "assignee": {"id": 587}, "project": {"id": 314, "owner": {"id": 753}, "assignee": {"id": 850}}, "task": {"id": 358, "owner": {"id": 960}, "assignee": {"id": 1092}}, "job": {"id": 356, "assignee": {"id": 8}}, "organization": {"id": 120}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 691}, "assignee": {"id": 520}, "project": {"id": 375, "owner": {"id": 725}, "assignee": {"id": 895}}, "task": {"id": 312, "owner": {"id": 969}, "assignee": {"id": 1041}}, "job": {"id": 396, "assignee": {"id": 31}}, "organization": {"id": 166}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 699}, "assignee": {"id": 531}, "project": {"id": 324, "owner": {"id": 705}, "assignee": {"id": 827}}, "task": {"id": 350, "owner": {"id": 918}, "assignee": {"id": 1076}}, "job": {"id": 330, "assignee": {"id": 25}}, "organization": {"id": 1205}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 685}, "assignee": {"id": 502}, "project": {"id": 320, "owner": {"id": 760}, "assignee": {"id": 814}}, "task": {"id": 398, "owner": {"id": 986}, "assignee": {"id": 1068}}, "job": {"id": 320, "assignee": {"id": 34}}, "organization": {"id": 1237}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 641}, "assignee": {"id": 562}, "project": {"id": 310, "owner": {"id": 742}, "assignee": {"id": 826}}, "task": {"id": 303, "owner": {"id": 922}, "assignee": {"id": 1062}}, "job": {"id": 348, "assignee": {"id": 64}}, "organization": {"id": 191}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 647}, "assignee": {"id": 551}, "project": {"id": 392, "owner": {"id": 755}, "assignee": {"id": 806}}, "task": {"id": 359, "owner": {"id": 975}, "assignee": {"id": 1028}}, "job": {"id": 308, "assignee": {"id": 72}}, "organization": {"id": 156}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 669}, "assignee": {"id": 557}, "project": {"id": 343, "owner": {"id": 796}, "assignee": {"id": 864}}, "task": {"id": 335, "owner": {"id": 920}, "assignee": {"id": 1096}}, "job": {"id": 340, "assignee": {"id": 0}}, "organization": {"id": 1228}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 657}, "assignee": {"id": 529}, "project": {"id": 330, "owner": {"id": 717}, "assignee": {"id": 819}}, "task": {"id": 370, "owner": {"id": 934}, "assignee": {"id": 1096}}, "job": {"id": 370, "assignee": {"id": 16}}, "organization": {"id": 1200}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 635}, "assignee": {"id": 571}, "project": {"id": 332, "owner": {"id": 772}, "assignee": {"id": 847}}, "task": {"id": 301, "owner": {"id": 934}, "assignee": {"id": 1071}}, "job": {"id": 378, "assignee": {"id": 82}}, "organization": {"id": 177}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 670}, "assignee": {"id": 545}, "project": {"id": 370, "owner": {"id": 736}, "assignee": {"id": 887}}, "task": {"id": 383, "owner": {"id": 922}, "assignee": {"id": 1001}}, "job": {"id": 379, "assignee": {"id": 24}}, "organization": {"id": 188}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 688}, "assignee": {"id": 509}, "project": {"id": 315, "owner": {"id": 760}, "assignee": {"id": 803}}, "task": {"id": 370, "owner": {"id": 924}, "assignee": {"id": 1086}}, "job": {"id": 391, "assignee": {"id": 70}}, "organization": {"id": 1214}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 624}, "assignee": {"id": 536}, "project": {"id": 342, "owner": {"id": 793}, "assignee": {"id": 857}}, "task": {"id": 379, "owner": {"id": 930}, "assignee": {"id": 1052}}, "job": {"id": 378, "assignee": {"id": 80}}, "organization": {"id": 1235}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 690}, "assignee": {"id": 564}, "project": {"id": 309, "owner": {"id": 717}, "assignee": {"id": 826}}, "task": {"id": 379, "owner": {"id": 973}, "assignee": {"id": 1008}}, "job": {"id": 332, "assignee": {"id": 97}}, "organization": {"id": 119}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 657}, "assignee": {"id": 567}, "project": {"id": 366, "owner": {"id": 760}, "assignee": {"id": 828}}, "task": {"id": 311, "owner": {"id": 958}, "assignee": {"id": 1084}}, "job": {"id": 345, "assignee": {"id": 9}}, "organization": {"id": 177}}} +} + +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": 102, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 620}, "assignee": {"id": 597}, "project": {"id": 326, "owner": {"id": 759}, "assignee": {"id": 843}}, "task": {"id": 347, "owner": {"id": 907}, "assignee": {"id": 1043}}, "job": {"id": 322, "assignee": {"id": 14}}, "organization": {"id": 1209}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 654}, "assignee": {"id": 510}, "project": {"id": 314, "owner": {"id": 710}, "assignee": {"id": 894}}, "task": {"id": 309, "owner": {"id": 975}, "assignee": {"id": 1001}}, "job": {"id": 370, "assignee": {"id": 49}}, "organization": {"id": 1290}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 670}, "assignee": {"id": 551}, "project": {"id": 344, "owner": {"id": 726}, "assignee": {"id": 826}}, "task": {"id": 379, "owner": {"id": 965}, "assignee": {"id": 1031}}, "job": {"id": 342, "assignee": {"id": 74}}, "organization": {"id": 189}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 643}, "assignee": {"id": 505}, "project": {"id": 336, "owner": {"id": 787}, "assignee": {"id": 836}}, "task": {"id": 364, "owner": {"id": 989}, "assignee": {"id": 1094}}, "job": {"id": 389, "assignee": {"id": 29}}, "organization": {"id": 186}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 627}, "assignee": {"id": 519}, "project": {"id": 373, "owner": {"id": 765}, "assignee": {"id": 848}}, "task": {"id": 335, "owner": {"id": 935}, "assignee": {"id": 1095}}, "job": {"id": 319, "assignee": {"id": 82}}, "organization": {"id": 1285}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 626}, "assignee": {"id": 589}, "project": {"id": 323, "owner": {"id": 732}, "assignee": {"id": 834}}, "task": {"id": 377, "owner": {"id": 964}, "assignee": {"id": 1098}}, "job": {"id": 376, "assignee": {"id": 55}}, "organization": {"id": 1264}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 661}, "assignee": {"id": 508}, "project": {"id": 355, "owner": {"id": 785}, "assignee": {"id": 879}}, "task": {"id": 330, "owner": {"id": 943}, "assignee": {"id": 1012}}, "job": {"id": 363, "assignee": {"id": 99}}, "organization": {"id": 176}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 667}, "assignee": {"id": 549}, "project": {"id": 386, "owner": {"id": 739}, "assignee": {"id": 821}}, "task": {"id": 334, "owner": {"id": 984}, "assignee": {"id": 1018}}, "job": {"id": 301, "assignee": {"id": 45}}, "organization": {"id": 180}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 699}, "assignee": {"id": 560}, "project": {"id": 319, "owner": {"id": 782}, "assignee": {"id": 851}}, "task": {"id": 316, "owner": {"id": 925}, "assignee": {"id": 1026}}, "job": {"id": 396, "assignee": {"id": 35}}, "organization": {"id": 1202}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 629}, "assignee": {"id": 590}, "project": {"id": 343, "owner": {"id": 729}, "assignee": {"id": 833}}, "task": {"id": 316, "owner": {"id": 976}, "assignee": {"id": 1007}}, "job": {"id": 310, "assignee": {"id": 46}}, "organization": {"id": 1260}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 637}, "assignee": {"id": 534}, "project": {"id": 320, "owner": {"id": 790}, "assignee": {"id": 891}}, "task": {"id": 338, "owner": {"id": 999}, "assignee": {"id": 1000}}, "job": {"id": 365, "assignee": {"id": 80}}, "organization": {"id": 185}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 675}, "assignee": {"id": 572}, "project": {"id": 302, "owner": {"id": 736}, "assignee": {"id": 813}}, "task": {"id": 374, "owner": {"id": 950}, "assignee": {"id": 1034}}, "job": {"id": 324, "assignee": {"id": 31}}, "organization": {"id": 111}}} +} + +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": 137, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 662}, "assignee": {"id": 579}, "project": {"id": 369, "owner": {"id": 792}, "assignee": {"id": 892}}, "task": {"id": 350, "owner": {"id": 972}, "assignee": {"id": 1010}}, "job": {"id": 347, "assignee": {"id": 50}}, "organization": {"id": 1252}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 666}, "assignee": {"id": 501}, "project": {"id": 369, "owner": {"id": 779}, "assignee": {"id": 833}}, "task": {"id": 330, "owner": {"id": 931}, "assignee": {"id": 1025}}, "job": {"id": 388, "assignee": {"id": 7}}, "organization": {"id": 1278}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 632}, "assignee": {"id": 567}, "project": {"id": 329, "owner": {"id": 785}, "assignee": {"id": 888}}, "task": {"id": 353, "owner": {"id": 992}, "assignee": {"id": 1069}}, "job": {"id": 344, "assignee": {"id": 1}}, "organization": {"id": 185}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 682}, "assignee": {"id": 593}, "project": {"id": 348, "owner": {"id": 705}, "assignee": {"id": 861}}, "task": {"id": 330, "owner": {"id": 970}, "assignee": {"id": 1033}}, "job": {"id": 344, "assignee": {"id": 17}}, "organization": {"id": 172}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 694}, "assignee": {"id": 554}, "project": {"id": 395, "owner": {"id": 796}, "assignee": {"id": 848}}, "task": {"id": 355, "owner": {"id": 935}, "assignee": {"id": 1093}}, "job": {"id": 318, "assignee": {"id": 10}}, "organization": {"id": 1225}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 620}, "assignee": {"id": 586}, "project": {"id": 368, "owner": {"id": 765}, "assignee": {"id": 839}}, "task": {"id": 379, "owner": {"id": 972}, "assignee": {"id": 1049}}, "job": {"id": 306, "assignee": {"id": 72}}, "organization": {"id": 1204}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 678}, "assignee": {"id": 568}, "project": {"id": 338, "owner": {"id": 703}, "assignee": {"id": 897}}, "task": {"id": 326, "owner": {"id": 914}, "assignee": {"id": 1036}}, "job": {"id": 346, "assignee": {"id": 93}}, "organization": {"id": 164}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 635}, "assignee": {"id": 503}, "project": {"id": 314, "owner": {"id": 767}, "assignee": {"id": 803}}, "task": {"id": 348, "owner": {"id": 933}, "assignee": {"id": 1033}}, "job": {"id": 361, "assignee": {"id": 28}}, "organization": {"id": 147}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 602}, "assignee": {"id": 501}, "project": {"id": 341, "owner": {"id": 713}, "assignee": {"id": 876}}, "task": {"id": 377, "owner": {"id": 969}, "assignee": {"id": 1055}}, "job": {"id": 332, "assignee": {"id": 19}}, "organization": {"id": 1264}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 627}, "assignee": {"id": 554}, "project": {"id": 359, "owner": {"id": 768}, "assignee": {"id": 840}}, "task": {"id": 328, "owner": {"id": 994}, "assignee": {"id": 1008}}, "job": {"id": 343, "assignee": {"id": 69}}, "organization": {"id": 1232}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 606}, "assignee": {"id": 522}, "project": {"id": 346, "owner": {"id": 771}, "assignee": {"id": 897}}, "task": {"id": 353, "owner": {"id": 980}, "assignee": {"id": 1090}}, "job": {"id": 303, "assignee": {"id": 40}}, "organization": {"id": 125}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 677}, "assignee": {"id": 527}, "project": {"id": 362, "owner": {"id": 765}, "assignee": {"id": 816}}, "task": {"id": 365, "owner": {"id": 947}, "assignee": {"id": 1022}}, "job": {"id": 354, "assignee": {"id": 35}}, "organization": {"id": 120}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 618}, "assignee": {"id": 513}, "project": {"id": 347, "owner": {"id": 728}, "assignee": {"id": 806}}, "task": {"id": 388, "owner": {"id": 984}, "assignee": {"id": 1006}}, "job": {"id": 302, "assignee": {"id": 94}}, "organization": {"id": 1241}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 687}, "assignee": {"id": 562}, "project": {"id": 388, "owner": {"id": 760}, "assignee": {"id": 838}}, "task": {"id": 343, "owner": {"id": 905}, "assignee": {"id": 1051}}, "job": {"id": 336, "assignee": {"id": 16}}, "organization": {"id": 1295}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 606}, "assignee": {"id": 599}, "project": {"id": 307, "owner": {"id": 795}, "assignee": {"id": 822}}, "task": {"id": 301, "owner": {"id": 943}, "assignee": {"id": 1011}}, "job": {"id": 336, "assignee": {"id": 12}}, "organization": {"id": 177}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 660}, "assignee": {"id": 571}, "project": {"id": 305, "owner": {"id": 734}, "assignee": {"id": 823}}, "task": {"id": 396, "owner": {"id": 928}, "assignee": {"id": 1058}}, "job": {"id": 355, "assignee": {"id": 70}}, "organization": {"id": 186}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 662}, "assignee": {"id": 513}, "project": {"id": 353, "owner": {"id": 766}, "assignee": {"id": 881}}, "task": {"id": 307, "owner": {"id": 951}, "assignee": {"id": 1062}}, "job": {"id": 311, "assignee": {"id": 9}}, "organization": {"id": 1219}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 658}, "assignee": {"id": 561}, "project": {"id": 331, "owner": {"id": 730}, "assignee": {"id": 845}}, "task": {"id": 331, "owner": {"id": 926}, "assignee": {"id": 1071}}, "job": {"id": 391, "assignee": {"id": 24}}, "organization": {"id": 1225}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 62}, "assignee": {"id": 578}, "project": {"id": 318, "owner": {"id": 753}, "assignee": {"id": 856}}, "task": {"id": 384, "owner": {"id": 969}, "assignee": {"id": 1010}}, "job": {"id": 327, "assignee": {"id": 1132}}, "organization": {"id": 126}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 68}, "assignee": {"id": 560}, "project": {"id": 337, "owner": {"id": 781}, "assignee": {"id": 868}}, "task": {"id": 342, "owner": {"id": 933}, "assignee": {"id": 1086}}, "job": {"id": 321, "assignee": {"id": 1141}}, "organization": {"id": 109}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 49}, "assignee": {"id": 509}, "project": {"id": 337, "owner": {"id": 786}, "assignee": {"id": 880}}, "task": {"id": 350, "owner": {"id": 909}, "assignee": {"id": 1005}}, "job": {"id": 340, "assignee": {"id": 1106}}, "organization": {"id": 1278}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 72}, "assignee": {"id": 501}, "project": {"id": 392, "owner": {"id": 707}, "assignee": {"id": 856}}, "task": {"id": 318, "owner": {"id": 992}, "assignee": {"id": 1065}}, "job": {"id": 315, "assignee": {"id": 1129}}, "organization": {"id": 1208}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 27}, "assignee": {"id": 545}, "project": {"id": 398, "owner": {"id": 707}, "assignee": {"id": 825}}, "task": {"id": 346, "owner": {"id": 977}, "assignee": {"id": 1049}}, "job": {"id": 348, "assignee": {"id": 1102}}, "organization": {"id": 169}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 11}, "assignee": {"id": 537}, "project": {"id": 325, "owner": {"id": 763}, "assignee": {"id": 899}}, "task": {"id": 309, "owner": {"id": 947}, "assignee": {"id": 1070}}, "job": {"id": 335, "assignee": {"id": 1191}}, "organization": {"id": 146}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 62}, "assignee": {"id": 596}, "project": {"id": 381, "owner": {"id": 725}, "assignee": {"id": 873}}, "task": {"id": 375, "owner": {"id": 946}, "assignee": {"id": 1038}}, "job": {"id": 316, "assignee": {"id": 1161}}, "organization": {"id": 1279}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 63}, "assignee": {"id": 568}, "project": {"id": 378, "owner": {"id": 792}, "assignee": {"id": 817}}, "task": {"id": 313, "owner": {"id": 907}, "assignee": {"id": 1064}}, "job": {"id": 373, "assignee": {"id": 1104}}, "organization": {"id": 1274}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 69}, "assignee": {"id": 567}, "project": {"id": 346, "owner": {"id": 737}, "assignee": {"id": 885}}, "task": {"id": 336, "owner": {"id": 913}, "assignee": {"id": 1043}}, "job": {"id": 307, "assignee": {"id": 1162}}, "organization": {"id": 101}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 55}, "assignee": {"id": 595}, "project": {"id": 308, "owner": {"id": 707}, "assignee": {"id": 862}}, "task": {"id": 333, "owner": {"id": 961}, "assignee": {"id": 1083}}, "job": {"id": 327, "assignee": {"id": 1109}}, "organization": {"id": 184}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 19}, "assignee": {"id": 593}, "project": {"id": 300, "owner": {"id": 720}, "assignee": {"id": 839}}, "task": {"id": 327, "owner": {"id": 926}, "assignee": {"id": 1047}}, "job": {"id": 327, "assignee": {"id": 1179}}, "organization": {"id": 1247}}} +} + +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": 121, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 94}, "assignee": {"id": 502}, "project": {"id": 343, "owner": {"id": 721}, "assignee": {"id": 847}}, "task": {"id": 315, "owner": {"id": 901}, "assignee": {"id": 1024}}, "job": {"id": 338, "assignee": {"id": 1121}}, "organization": {"id": 1255}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 4}, "assignee": {"id": 546}, "project": {"id": 373, "owner": {"id": 750}, "assignee": {"id": 881}}, "task": {"id": 390, "owner": {"id": 925}, "assignee": {"id": 1039}}, "job": {"id": 376, "assignee": {"id": 1151}}, "organization": {"id": 195}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 85}, "assignee": {"id": 548}, "project": {"id": 317, "owner": {"id": 782}, "assignee": {"id": 800}}, "task": {"id": 366, "owner": {"id": 980}, "assignee": {"id": 1018}}, "job": {"id": 391, "assignee": {"id": 1140}}, "organization": {"id": 190}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 21}, "assignee": {"id": 599}, "project": {"id": 345, "owner": {"id": 785}, "assignee": {"id": 801}}, "task": {"id": 343, "owner": {"id": 940}, "assignee": {"id": 1047}}, "job": {"id": 390, "assignee": {"id": 1100}}, "organization": {"id": 1209}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 10}, "assignee": {"id": 556}, "project": {"id": 379, "owner": {"id": 785}, "assignee": {"id": 842}}, "task": {"id": 339, "owner": {"id": 935}, "assignee": {"id": 1034}}, "job": {"id": 398, "assignee": {"id": 1105}}, "organization": {"id": 1200}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 36}, "assignee": {"id": 519}, "project": {"id": 328, "owner": {"id": 728}, "assignee": {"id": 879}}, "task": {"id": 397, "owner": {"id": 985}, "assignee": {"id": 1000}}, "job": {"id": 347, "assignee": {"id": 1100}}, "organization": {"id": 191}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 24}, "assignee": {"id": 542}, "project": {"id": 308, "owner": {"id": 752}, "assignee": {"id": 808}}, "task": {"id": 389, "owner": {"id": 967}, "assignee": {"id": 1047}}, "job": {"id": 337, "assignee": {"id": 1171}}, "organization": {"id": 112}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 10}, "assignee": {"id": 509}, "project": {"id": 339, "owner": {"id": 743}, "assignee": {"id": 858}}, "task": {"id": 350, "owner": {"id": 921}, "assignee": {"id": 1059}}, "job": {"id": 312, "assignee": {"id": 1103}}, "organization": {"id": 1227}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 16}, "assignee": {"id": 519}, "project": {"id": 372, "owner": {"id": 718}, "assignee": {"id": 899}}, "task": {"id": 308, "owner": {"id": 978}, "assignee": {"id": 1043}}, "job": {"id": 397, "assignee": {"id": 1146}}, "organization": {"id": 1219}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 62}, "assignee": {"id": 536}, "project": {"id": 341, "owner": {"id": 780}, "assignee": {"id": 855}}, "task": {"id": 301, "owner": {"id": 915}, "assignee": {"id": 1046}}, "job": {"id": 311, "assignee": {"id": 1187}}, "organization": {"id": 186}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 50}, "assignee": {"id": 544}, "project": {"id": 369, "owner": {"id": 785}, "assignee": {"id": 819}}, "task": {"id": 317, "owner": {"id": 903}, "assignee": {"id": 1055}}, "job": {"id": 368, "assignee": {"id": 1158}}, "organization": {"id": 194}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 68}, "assignee": {"id": 534}, "project": {"id": 340, "owner": {"id": 729}, "assignee": {"id": 881}}, "task": {"id": 352, "owner": {"id": 999}, "assignee": {"id": 1013}}, "job": {"id": 351, "assignee": {"id": 1176}}, "organization": {"id": 1291}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 88}, "assignee": {"id": 521}, "project": {"id": 391, "owner": {"id": 761}, "assignee": {"id": 808}}, "task": {"id": 377, "owner": {"id": 946}, "assignee": {"id": 1044}}, "job": {"id": 376, "assignee": {"id": 1122}}, "organization": {"id": 1292}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 36}, "assignee": {"id": 520}, "project": {"id": 338, "owner": {"id": 766}, "assignee": {"id": 861}}, "task": {"id": 368, "owner": {"id": 983}, "assignee": {"id": 1092}}, "job": {"id": 328, "assignee": {"id": 1125}}, "organization": {"id": 169}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 59}, "assignee": {"id": 549}, "project": {"id": 317, "owner": {"id": 744}, "assignee": {"id": 881}}, "task": {"id": 393, "owner": {"id": 953}, "assignee": {"id": 1025}}, "job": {"id": 324, "assignee": {"id": 1141}}, "organization": {"id": 107}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 13}, "assignee": {"id": 542}, "project": {"id": 378, "owner": {"id": 755}, "assignee": {"id": 822}}, "task": {"id": 396, "owner": {"id": 934}, "assignee": {"id": 1030}}, "job": {"id": 386, "assignee": {"id": 1175}}, "organization": {"id": 1288}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 66}, "assignee": {"id": 503}, "project": {"id": 377, "owner": {"id": 777}, "assignee": {"id": 885}}, "task": {"id": 307, "owner": {"id": 965}, "assignee": {"id": 1052}}, "job": {"id": 369, "assignee": {"id": 1107}}, "organization": {"id": 1274}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 26}, "assignee": {"id": 598}, "project": {"id": 365, "owner": {"id": 780}, "assignee": {"id": 816}}, "task": {"id": 363, "owner": {"id": 923}, "assignee": {"id": 1095}}, "job": {"id": 343, "assignee": {"id": 1183}}, "organization": {"id": 193}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 82}, "assignee": {"id": 530}, "project": {"id": 365, "owner": {"id": 722}, "assignee": {"id": 816}}, "task": {"id": 317, "owner": {"id": 921}, "assignee": {"id": 1083}}, "job": {"id": 399, "assignee": {"id": 1168}}, "organization": {"id": 125}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 82}, "assignee": {"id": 555}, "project": {"id": 325, "owner": {"id": 756}, "assignee": {"id": 837}}, "task": {"id": 321, "owner": {"id": 988}, "assignee": {"id": 1076}}, "job": {"id": 343, "assignee": {"id": 1138}}, "organization": {"id": 1211}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 68}, "assignee": {"id": 544}, "project": {"id": 382, "owner": {"id": 725}, "assignee": {"id": 833}}, "task": {"id": 328, "owner": {"id": 942}, "assignee": {"id": 1076}}, "job": {"id": 366, "assignee": {"id": 1151}}, "organization": {"id": 1234}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 19}, "assignee": {"id": 505}, "project": {"id": 323, "owner": {"id": 781}, "assignee": {"id": 877}}, "task": {"id": 398, "owner": {"id": 926}, "assignee": {"id": 1072}}, "job": {"id": 376, "assignee": {"id": 1119}}, "organization": {"id": 112}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 47}, "assignee": {"id": 500}, "project": {"id": 398, "owner": {"id": 713}, "assignee": {"id": 860}}, "task": {"id": 323, "owner": {"id": 910}, "assignee": {"id": 1058}}, "job": {"id": 336, "assignee": {"id": 1164}}, "organization": {"id": 130}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 85}, "assignee": {"id": 570}, "project": {"id": 371, "owner": {"id": 783}, "assignee": {"id": 807}}, "task": {"id": 338, "owner": {"id": 954}, "assignee": {"id": 1021}}, "job": {"id": 348, "assignee": {"id": 1159}}, "organization": {"id": 1274}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 26}, "assignee": {"id": 522}, "project": {"id": 397, "owner": {"id": 744}, "assignee": {"id": 826}}, "task": {"id": 329, "owner": {"id": 985}, "assignee": {"id": 1013}}, "job": {"id": 338, "assignee": {"id": 1165}}, "organization": {"id": 1296}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 89}, "assignee": {"id": 576}, "project": {"id": 350, "owner": {"id": 787}, "assignee": {"id": 828}}, "task": {"id": 359, "owner": {"id": 928}, "assignee": {"id": 1065}}, "job": {"id": 378, "assignee": {"id": 1172}}, "organization": {"id": 163}}} +} + +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": 152, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 62}, "assignee": {"id": 504}, "project": {"id": 391, "owner": {"id": 784}, "assignee": {"id": 885}}, "task": {"id": 389, "owner": {"id": 941}, "assignee": {"id": 1050}}, "job": {"id": 393, "assignee": {"id": 1112}}, "organization": {"id": 152}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 73}, "assignee": {"id": 547}, "project": {"id": 320, "owner": {"id": 787}, "assignee": {"id": 884}}, "task": {"id": 395, "owner": {"id": 974}, "assignee": {"id": 1044}}, "job": {"id": 335, "assignee": {"id": 1113}}, "organization": {"id": 1210}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 4}, "assignee": {"id": 587}, "project": {"id": 308, "owner": {"id": 733}, "assignee": {"id": 879}}, "task": {"id": 361, "owner": {"id": 940}, "assignee": {"id": 1032}}, "job": {"id": 308, "assignee": {"id": 1185}}, "organization": {"id": 1297}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 63}, "assignee": {"id": 582}, "project": {"id": 350, "owner": {"id": 719}, "assignee": {"id": 801}}, "task": {"id": 334, "owner": {"id": 965}, "assignee": {"id": 1093}}, "job": {"id": 366, "assignee": {"id": 1178}}, "organization": {"id": 171}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 64}, "assignee": {"id": 555}, "project": {"id": 309, "owner": {"id": 798}, "assignee": {"id": 858}}, "task": {"id": 380, "owner": {"id": 900}, "assignee": {"id": 1066}}, "job": {"id": 334, "assignee": {"id": 1127}}, "organization": {"id": 169}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 75}, "assignee": {"id": 568}, "project": {"id": 394, "owner": {"id": 763}, "assignee": {"id": 833}}, "task": {"id": 347, "owner": {"id": 998}, "assignee": {"id": 1037}}, "job": {"id": 340, "assignee": {"id": 1168}}, "organization": {"id": 1294}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 90}, "assignee": {"id": 527}, "project": {"id": 312, "owner": {"id": 738}, "assignee": {"id": 822}}, "task": {"id": 391, "owner": {"id": 942}, "assignee": {"id": 1058}}, "job": {"id": 366, "assignee": {"id": 1156}}, "organization": {"id": 1279}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 55}, "assignee": {"id": 504}, "project": {"id": 353, "owner": {"id": 764}, "assignee": {"id": 882}}, "task": {"id": 360, "owner": {"id": 991}, "assignee": {"id": 1053}}, "job": {"id": 324, "assignee": {"id": 1124}}, "organization": {"id": 158}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 36}, "assignee": {"id": 561}, "project": {"id": 392, "owner": {"id": 791}, "assignee": {"id": 835}}, "task": {"id": 392, "owner": {"id": 971}, "assignee": {"id": 1044}}, "job": {"id": 343, "assignee": {"id": 1188}}, "organization": {"id": 152}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 91}, "assignee": {"id": 508}, "project": {"id": 320, "owner": {"id": 738}, "assignee": {"id": 845}}, "task": {"id": 389, "owner": {"id": 978}, "assignee": {"id": 1001}}, "job": {"id": 353, "assignee": {"id": 1170}}, "organization": {"id": 1269}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 93}, "assignee": {"id": 594}, "project": {"id": 307, "owner": {"id": 764}, "assignee": {"id": 808}}, "task": {"id": 375, "owner": {"id": 968}, "assignee": {"id": 1076}}, "job": {"id": 300, "assignee": {"id": 1178}}, "organization": {"id": 1246}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 33}, "assignee": {"id": 520}, "project": {"id": 372, "owner": {"id": 751}, "assignee": {"id": 818}}, "task": {"id": 310, "owner": {"id": 983}, "assignee": {"id": 1096}}, "job": {"id": 311, "assignee": {"id": 1152}}, "organization": {"id": 105}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 46}, "assignee": {"id": 530}, "project": {"id": 302, "owner": {"id": 797}, "assignee": {"id": 899}}, "task": {"id": 335, "owner": {"id": 937}, "assignee": {"id": 1018}}, "job": {"id": 337, "assignee": {"id": 1108}}, "organization": {"id": 115}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 33}, "assignee": {"id": 537}, "project": {"id": 327, "owner": {"id": 718}, "assignee": {"id": 806}}, "task": {"id": 312, "owner": {"id": 911}, "assignee": {"id": 1017}}, "job": {"id": 374, "assignee": {"id": 1108}}, "organization": {"id": 1258}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 73}, "assignee": {"id": 514}, "project": {"id": 303, "owner": {"id": 779}, "assignee": {"id": 868}}, "task": {"id": 383, "owner": {"id": 966}, "assignee": {"id": 1063}}, "job": {"id": 349, "assignee": {"id": 1197}}, "organization": {"id": 1261}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 20}, "assignee": {"id": 569}, "project": {"id": 339, "owner": {"id": 779}, "assignee": {"id": 872}}, "task": {"id": 321, "owner": {"id": 914}, "assignee": {"id": 1092}}, "job": {"id": 383, "assignee": {"id": 1153}}, "organization": {"id": 121}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 0}, "assignee": {"id": 509}, "project": {"id": 311, "owner": {"id": 795}, "assignee": {"id": 892}}, "task": {"id": 305, "owner": {"id": 947}, "assignee": {"id": 1091}}, "job": {"id": 399, "assignee": {"id": 1179}}, "organization": {"id": 192}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 74}, "assignee": {"id": 579}, "project": {"id": 368, "owner": {"id": 726}, "assignee": {"id": 878}}, "task": {"id": 390, "owner": {"id": 999}, "assignee": {"id": 1023}}, "job": {"id": 395, "assignee": {"id": 1144}}, "organization": {"id": 1264}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 63}, "assignee": {"id": 513}, "project": {"id": 327, "owner": {"id": 788}, "assignee": {"id": 860}}, "task": {"id": 385, "owner": {"id": 947}, "assignee": {"id": 1091}}, "job": {"id": 369, "assignee": {"id": 1128}}, "organization": {"id": 1280}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 78}, "assignee": {"id": 537}, "project": {"id": 388, "owner": {"id": 760}, "assignee": {"id": 810}}, "task": {"id": 306, "owner": {"id": 925}, "assignee": {"id": 1043}}, "job": {"id": 367, "assignee": {"id": 1137}}, "organization": {"id": 162}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 57}, "assignee": {"id": 564}, "project": {"id": 355, "owner": {"id": 736}, "assignee": {"id": 871}}, "task": {"id": 392, "owner": {"id": 972}, "assignee": {"id": 1027}}, "job": {"id": 355, "assignee": {"id": 1159}}, "organization": {"id": 159}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 99}, "assignee": {"id": 543}, "project": {"id": 347, "owner": {"id": 743}, "assignee": {"id": 839}}, "task": {"id": 336, "owner": {"id": 997}, "assignee": {"id": 1070}}, "job": {"id": 358, "assignee": {"id": 1126}}, "organization": {"id": 1217}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 75}, "assignee": {"id": 549}, "project": {"id": 315, "owner": {"id": 717}, "assignee": {"id": 833}}, "task": {"id": 356, "owner": {"id": 958}, "assignee": {"id": 1004}}, "job": {"id": 369, "assignee": {"id": 1148}}, "organization": {"id": 1230}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 25}, "assignee": {"id": 511}, "project": {"id": 331, "owner": {"id": 723}, "assignee": {"id": 800}}, "task": {"id": 351, "owner": {"id": 974}, "assignee": {"id": 1088}}, "job": {"id": 359, "assignee": {"id": 1190}}, "organization": {"id": 148}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 21}, "assignee": {"id": 593}, "project": {"id": 318, "owner": {"id": 768}, "assignee": {"id": 851}}, "task": {"id": 383, "owner": {"id": 910}, "assignee": {"id": 1099}}, "job": {"id": 358, "assignee": {"id": 1191}}, "organization": {"id": 184}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 26}, "assignee": {"id": 506}, "project": {"id": 353, "owner": {"id": 742}, "assignee": {"id": 840}}, "task": {"id": 344, "owner": {"id": 943}, "assignee": {"id": 1066}}, "job": {"id": 300, "assignee": {"id": 1186}}, "organization": {"id": 1281}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 52}, "assignee": {"id": 509}, "project": {"id": 318, "owner": {"id": 756}, "assignee": {"id": 890}}, "task": {"id": 320, "owner": {"id": 955}, "assignee": {"id": 1031}}, "job": {"id": 347, "assignee": {"id": 1118}}, "organization": {"id": 1278}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 54}, "assignee": {"id": 586}, "project": {"id": 323, "owner": {"id": 768}, "assignee": {"id": 805}}, "task": {"id": 306, "owner": {"id": 990}, "assignee": {"id": 1070}}, "job": {"id": 361, "assignee": {"id": 1131}}, "organization": {"id": 131}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 76}, "assignee": {"id": 536}, "project": {"id": 352, "owner": {"id": 737}, "assignee": {"id": 891}}, "task": {"id": 339, "owner": {"id": 910}, "assignee": {"id": 1091}}, "job": {"id": 321, "assignee": {"id": 1141}}, "organization": {"id": 150}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 18}, "assignee": {"id": 531}, "project": {"id": 347, "owner": {"id": 705}, "assignee": {"id": 854}}, "task": {"id": 357, "owner": {"id": 939}, "assignee": {"id": 1039}}, "job": {"id": 361, "assignee": {"id": 1104}}, "organization": {"id": 1206}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 46}, "assignee": {"id": 531}, "project": {"id": 396, "owner": {"id": 700}, "assignee": {"id": 895}}, "task": {"id": 372, "owner": {"id": 964}, "assignee": {"id": 1002}}, "job": {"id": 337, "assignee": {"id": 1146}}, "organization": {"id": 1284}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 19}, "assignee": {"id": 508}, "project": {"id": 310, "owner": {"id": 741}, "assignee": {"id": 893}}, "task": {"id": 303, "owner": {"id": 979}, "assignee": {"id": 1064}}, "job": {"id": 322, "assignee": {"id": 1186}}, "organization": {"id": 100}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 63}, "assignee": {"id": 555}, "project": {"id": 378, "owner": {"id": 797}, "assignee": {"id": 801}}, "task": {"id": 384, "owner": {"id": 963}, "assignee": {"id": 1088}}, "job": {"id": 334, "assignee": {"id": 1157}}, "organization": {"id": 130}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 26}, "assignee": {"id": 550}, "project": {"id": 388, "owner": {"id": 740}, "assignee": {"id": 898}}, "task": {"id": 329, "owner": {"id": 921}, "assignee": {"id": 1021}}, "job": {"id": 387, "assignee": {"id": 1118}}, "organization": {"id": 1238}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 36}, "assignee": {"id": 520}, "project": {"id": 347, "owner": {"id": 745}, "assignee": {"id": 876}}, "task": {"id": 376, "owner": {"id": 969}, "assignee": {"id": 1086}}, "job": {"id": 362, "assignee": {"id": 1167}}, "organization": {"id": 1265}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 91}, "assignee": {"id": 578}, "project": {"id": 399, "owner": {"id": 707}, "assignee": {"id": 887}}, "task": {"id": 345, "owner": {"id": 973}, "assignee": {"id": 1055}}, "job": {"id": 309, "assignee": {"id": 1196}}, "organization": {"id": 153}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 73}, "assignee": {"id": 540}, "project": {"id": 325, "owner": {"id": 719}, "assignee": {"id": 851}}, "task": {"id": 337, "owner": {"id": 964}, "assignee": {"id": 1069}}, "job": {"id": 370, "assignee": {"id": 1110}}, "organization": {"id": 130}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 80}, "assignee": {"id": 546}, "project": {"id": 374, "owner": {"id": 729}, "assignee": {"id": 879}}, "task": {"id": 335, "owner": {"id": 938}, "assignee": {"id": 1046}}, "job": {"id": 375, "assignee": {"id": 1112}}, "organization": {"id": 1265}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 93}, "assignee": {"id": 544}, "project": {"id": 389, "owner": {"id": 738}, "assignee": {"id": 813}}, "task": {"id": 330, "owner": {"id": 901}, "assignee": {"id": 1089}}, "job": {"id": 380, "assignee": {"id": 1115}}, "organization": {"id": 1244}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 45}, "assignee": {"id": 515}, "project": {"id": 383, "owner": {"id": 732}, "assignee": {"id": 852}}, "task": {"id": 382, "owner": {"id": 978}, "assignee": {"id": 1079}}, "job": {"id": 309, "assignee": {"id": 1151}}, "organization": {"id": 107}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 13}, "assignee": {"id": 516}, "project": {"id": 372, "owner": {"id": 794}, "assignee": {"id": 804}}, "task": {"id": 331, "owner": {"id": 952}, "assignee": {"id": 1019}}, "job": {"id": 352, "assignee": {"id": 1149}}, "organization": {"id": 193}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 55}, "assignee": {"id": 501}, "project": {"id": 340, "owner": {"id": 727}, "assignee": {"id": 880}}, "task": {"id": 324, "owner": {"id": 943}, "assignee": {"id": 1071}}, "job": {"id": 358, "assignee": {"id": 1103}}, "organization": {"id": 1263}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 37}, "assignee": {"id": 584}, "project": {"id": 346, "owner": {"id": 776}, "assignee": {"id": 816}}, "task": {"id": 347, "owner": {"id": 905}, "assignee": {"id": 1037}}, "job": {"id": 336, "assignee": {"id": 1152}}, "organization": {"id": 1284}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 49}, "assignee": {"id": 565}, "project": {"id": 387, "owner": {"id": 729}, "assignee": {"id": 809}}, "task": {"id": 354, "owner": {"id": 959}, "assignee": {"id": 1085}}, "job": {"id": 314, "assignee": {"id": 1133}}, "organization": {"id": 192}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 6}, "assignee": {"id": 574}, "project": {"id": 336, "owner": {"id": 748}, "assignee": {"id": 866}}, "task": {"id": 348, "owner": {"id": 949}, "assignee": {"id": 1003}}, "job": {"id": 324, "assignee": {"id": 1112}}, "organization": {"id": 158}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 72}, "assignee": {"id": 558}, "project": {"id": 393, "owner": {"id": 796}, "assignee": {"id": 804}}, "task": {"id": 386, "owner": {"id": 937}, "assignee": {"id": 1075}}, "job": {"id": 314, "assignee": {"id": 1180}}, "organization": {"id": 1276}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 63}, "assignee": {"id": 581}, "project": {"id": 399, "owner": {"id": 785}, "assignee": {"id": 898}}, "task": {"id": 376, "owner": {"id": 961}, "assignee": {"id": 1034}}, "job": {"id": 374, "assignee": {"id": 1118}}, "organization": {"id": 1212}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 50}, "assignee": {"id": 517}, "project": {"id": 391, "owner": {"id": 735}, "assignee": {"id": 865}}, "task": {"id": 364, "owner": {"id": 914}, "assignee": {"id": 1007}}, "job": {"id": 331, "assignee": {"id": 1178}}, "organization": {"id": 178}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 50}, "assignee": {"id": 555}, "project": {"id": 315, "owner": {"id": 752}, "assignee": {"id": 832}}, "task": {"id": 362, "owner": {"id": 939}, "assignee": {"id": 1043}}, "job": {"id": 309, "assignee": {"id": 1143}}, "organization": {"id": 163}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 37}, "assignee": {"id": 550}, "project": {"id": 370, "owner": {"id": 705}, "assignee": {"id": 821}}, "task": {"id": 312, "owner": {"id": 973}, "assignee": {"id": 1008}}, "job": {"id": 398, "assignee": {"id": 1153}}, "organization": {"id": 1219}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 62}, "assignee": {"id": 525}, "project": {"id": 356, "owner": {"id": 756}, "assignee": {"id": 885}}, "task": {"id": 384, "owner": {"id": 956}, "assignee": {"id": 1039}}, "job": {"id": 350, "assignee": {"id": 1168}}, "organization": {"id": 1281}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 1}, "assignee": {"id": 574}, "project": {"id": 335, "owner": {"id": 779}, "assignee": {"id": 893}}, "task": {"id": 356, "owner": {"id": 932}, "assignee": {"id": 1014}}, "job": {"id": 338, "assignee": {"id": 1144}}, "organization": {"id": 101}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 22}, "assignee": {"id": 516}, "project": {"id": 382, "owner": {"id": 790}, "assignee": {"id": 801}}, "task": {"id": 303, "owner": {"id": 987}, "assignee": {"id": 1071}}, "job": {"id": 375, "assignee": {"id": 1109}}, "organization": {"id": 185}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 45}, "assignee": {"id": 516}, "project": {"id": 398, "owner": {"id": 740}, "assignee": {"id": 857}}, "task": {"id": 362, "owner": {"id": 951}, "assignee": {"id": 1047}}, "job": {"id": 317, "assignee": {"id": 1154}}, "organization": {"id": 1202}}} +} + +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": 198, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 30}, "assignee": {"id": 539}, "project": {"id": 313, "owner": {"id": 718}, "assignee": {"id": 813}}, "task": {"id": 312, "owner": {"id": 972}, "assignee": {"id": 1060}}, "job": {"id": 328, "assignee": {"id": 1195}}, "organization": {"id": 1224}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 76}, "assignee": {"id": 564}, "project": {"id": 363, "owner": {"id": 782}, "assignee": {"id": 816}}, "task": {"id": 345, "owner": {"id": 936}, "assignee": {"id": 1022}}, "job": {"id": 399, "assignee": {"id": 1173}}, "organization": {"id": 179}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 71}, "assignee": {"id": 542}, "project": {"id": 331, "owner": {"id": 752}, "assignee": {"id": 813}}, "task": {"id": 308, "owner": {"id": 930}, "assignee": {"id": 1029}}, "job": {"id": 334, "assignee": {"id": 1128}}, "organization": {"id": 130}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 18}, "assignee": {"id": 506}, "project": {"id": 303, "owner": {"id": 716}, "assignee": {"id": 805}}, "task": {"id": 348, "owner": {"id": 942}, "assignee": {"id": 1003}}, "job": {"id": 323, "assignee": {"id": 1173}}, "organization": {"id": 1238}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 90}, "assignee": {"id": 553}, "project": {"id": 321, "owner": {"id": 747}, "assignee": {"id": 856}}, "task": {"id": 398, "owner": {"id": 981}, "assignee": {"id": 1007}}, "job": {"id": 353, "assignee": {"id": 1120}}, "organization": {"id": 1297}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 80}, "assignee": {"id": 523}, "project": {"id": 379, "owner": {"id": 720}, "assignee": {"id": 839}}, "task": {"id": 397, "owner": {"id": 971}, "assignee": {"id": 1005}}, "job": {"id": 332, "assignee": {"id": 1181}}, "organization": {"id": 102}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 81}, "assignee": {"id": 569}, "project": {"id": 319, "owner": {"id": 742}, "assignee": {"id": 863}}, "task": {"id": 362, "owner": {"id": 905}, "assignee": {"id": 1071}}, "job": {"id": 323, "assignee": {"id": 1130}}, "organization": {"id": 154}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 8}, "assignee": {"id": 550}, "project": {"id": 392, "owner": {"id": 754}, "assignee": {"id": 893}}, "task": {"id": 333, "owner": {"id": 951}, "assignee": {"id": 1016}}, "job": {"id": 364, "assignee": {"id": 1156}}, "organization": {"id": 1223}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 83}, "assignee": {"id": 508}, "project": {"id": 391, "owner": {"id": 792}, "assignee": {"id": 861}}, "task": {"id": 347, "owner": {"id": 914}, "assignee": {"id": 1061}}, "job": {"id": 314, "assignee": {"id": 1119}}, "organization": {"id": 1227}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 665}, "assignee": {"id": 70}, "project": {"id": 398, "owner": {"id": 719}, "assignee": {"id": 891}}, "task": {"id": 366, "owner": {"id": 952}, "assignee": {"id": 1095}}, "job": {"id": 381, "assignee": {"id": 1123}}, "organization": {"id": 158}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 665}, "assignee": {"id": 50}, "project": {"id": 393, "owner": {"id": 715}, "assignee": {"id": 826}}, "task": {"id": 324, "owner": {"id": 921}, "assignee": {"id": 1013}}, "job": {"id": 306, "assignee": {"id": 1146}}, "organization": {"id": 119}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 612}, "assignee": {"id": 3}, "project": {"id": 357, "owner": {"id": 771}, "assignee": {"id": 831}}, "task": {"id": 308, "owner": {"id": 928}, "assignee": {"id": 1099}}, "job": {"id": 354, "assignee": {"id": 1149}}, "organization": {"id": 1231}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 670}, "assignee": {"id": 88}, "project": {"id": 369, "owner": {"id": 757}, "assignee": {"id": 806}}, "task": {"id": 368, "owner": {"id": 967}, "assignee": {"id": 1053}}, "job": {"id": 340, "assignee": {"id": 1149}}, "organization": {"id": 1259}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 616}, "assignee": {"id": 25}, "project": {"id": 313, "owner": {"id": 758}, "assignee": {"id": 893}}, "task": {"id": 303, "owner": {"id": 963}, "assignee": {"id": 1004}}, "job": {"id": 323, "assignee": {"id": 1113}}, "organization": {"id": 141}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 631}, "assignee": {"id": 69}, "project": {"id": 309, "owner": {"id": 738}, "assignee": {"id": 891}}, "task": {"id": 319, "owner": {"id": 973}, "assignee": {"id": 1032}}, "job": {"id": 326, "assignee": {"id": 1159}}, "organization": {"id": 170}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 637}, "assignee": {"id": 85}, "project": {"id": 397, "owner": {"id": 795}, "assignee": {"id": 878}}, "task": {"id": 318, "owner": {"id": 978}, "assignee": {"id": 1090}}, "job": {"id": 340, "assignee": {"id": 1158}}, "organization": {"id": 1237}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 604}, "assignee": {"id": 52}, "project": {"id": 313, "owner": {"id": 768}, "assignee": {"id": 856}}, "task": {"id": 375, "owner": {"id": 905}, "assignee": {"id": 1027}}, "job": {"id": 367, "assignee": {"id": 1121}}, "organization": {"id": 1285}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 657}, "assignee": {"id": 55}, "project": {"id": 343, "owner": {"id": 711}, "assignee": {"id": 888}}, "task": {"id": 370, "owner": {"id": 983}, "assignee": {"id": 1083}}, "job": {"id": 354, "assignee": {"id": 1126}}, "organization": {"id": 157}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 666}, "assignee": {"id": 52}, "project": {"id": 367, "owner": {"id": 729}, "assignee": {"id": 844}}, "task": {"id": 377, "owner": {"id": 980}, "assignee": {"id": 1098}}, "job": {"id": 316, "assignee": {"id": 1123}}, "organization": {"id": 162}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 651}, "assignee": {"id": 8}, "project": {"id": 303, "owner": {"id": 784}, "assignee": {"id": 811}}, "task": {"id": 305, "owner": {"id": 994}, "assignee": {"id": 1077}}, "job": {"id": 343, "assignee": {"id": 1170}}, "organization": {"id": 1231}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 639}, "assignee": {"id": 34}, "project": {"id": 306, "owner": {"id": 722}, "assignee": {"id": 892}}, "task": {"id": 377, "owner": {"id": 954}, "assignee": {"id": 1055}}, "job": {"id": 349, "assignee": {"id": 1182}}, "organization": {"id": 1248}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 666}, "assignee": {"id": 80}, "project": {"id": 319, "owner": {"id": 747}, "assignee": {"id": 896}}, "task": {"id": 319, "owner": {"id": 980}, "assignee": {"id": 1089}}, "job": {"id": 359, "assignee": {"id": 1181}}, "organization": {"id": 143}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 644}, "assignee": {"id": 15}, "project": {"id": 302, "owner": {"id": 753}, "assignee": {"id": 853}}, "task": {"id": 395, "owner": {"id": 995}, "assignee": {"id": 1026}}, "job": {"id": 343, "assignee": {"id": 1164}}, "organization": {"id": 157}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 628}, "assignee": {"id": 49}, "project": {"id": 300, "owner": {"id": 728}, "assignee": {"id": 848}}, "task": {"id": 301, "owner": {"id": 920}, "assignee": {"id": 1083}}, "job": {"id": 389, "assignee": {"id": 1119}}, "organization": {"id": 1248}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 692}, "assignee": {"id": 88}, "project": {"id": 378, "owner": {"id": 711}, "assignee": {"id": 853}}, "task": {"id": 321, "owner": {"id": 970}, "assignee": {"id": 1076}}, "job": {"id": 356, "assignee": {"id": 1134}}, "organization": {"id": 1262}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 602}, "assignee": {"id": 1}, "project": {"id": 309, "owner": {"id": 749}, "assignee": {"id": 862}}, "task": {"id": 395, "owner": {"id": 903}, "assignee": {"id": 1080}}, "job": {"id": 341, "assignee": {"id": 1142}}, "organization": {"id": 186}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 681}, "assignee": {"id": 38}, "project": {"id": 395, "owner": {"id": 710}, "assignee": {"id": 899}}, "task": {"id": 387, "owner": {"id": 932}, "assignee": {"id": 1014}}, "job": {"id": 351, "assignee": {"id": 1100}}, "organization": {"id": 161}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 615}, "assignee": {"id": 42}, "project": {"id": 335, "owner": {"id": 788}, "assignee": {"id": 857}}, "task": {"id": 380, "owner": {"id": 992}, "assignee": {"id": 1065}}, "job": {"id": 331, "assignee": {"id": 1150}}, "organization": {"id": 1234}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 619}, "assignee": {"id": 28}, "project": {"id": 342, "owner": {"id": 737}, "assignee": {"id": 879}}, "task": {"id": 325, "owner": {"id": 982}, "assignee": {"id": 1024}}, "job": {"id": 360, "assignee": {"id": 1142}}, "organization": {"id": 1263}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 643}, "assignee": {"id": 26}, "project": {"id": 320, "owner": {"id": 722}, "assignee": {"id": 814}}, "task": {"id": 340, "owner": {"id": 928}, "assignee": {"id": 1009}}, "job": {"id": 368, "assignee": {"id": 1148}}, "organization": {"id": 143}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 627}, "assignee": {"id": 67}, "project": {"id": 390, "owner": {"id": 790}, "assignee": {"id": 817}}, "task": {"id": 379, "owner": {"id": 900}, "assignee": {"id": 1019}}, "job": {"id": 385, "assignee": {"id": 1127}}, "organization": {"id": 126}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 667}, "assignee": {"id": 4}, "project": {"id": 329, "owner": {"id": 734}, "assignee": {"id": 841}}, "task": {"id": 339, "owner": {"id": 945}, "assignee": {"id": 1060}}, "job": {"id": 334, "assignee": {"id": 1128}}, "organization": {"id": 1291}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 687}, "assignee": {"id": 71}, "project": {"id": 380, "owner": {"id": 702}, "assignee": {"id": 857}}, "task": {"id": 310, "owner": {"id": 982}, "assignee": {"id": 1050}}, "job": {"id": 373, "assignee": {"id": 1127}}, "organization": {"id": 1244}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 605}, "assignee": {"id": 98}, "project": {"id": 395, "owner": {"id": 779}, "assignee": {"id": 806}}, "task": {"id": 371, "owner": {"id": 947}, "assignee": {"id": 1073}}, "job": {"id": 364, "assignee": {"id": 1139}}, "organization": {"id": 169}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 685}, "assignee": {"id": 90}, "project": {"id": 312, "owner": {"id": 702}, "assignee": {"id": 819}}, "task": {"id": 347, "owner": {"id": 952}, "assignee": {"id": 1072}}, "job": {"id": 356, "assignee": {"id": 1107}}, "organization": {"id": 199}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 698}, "assignee": {"id": 2}, "project": {"id": 325, "owner": {"id": 733}, "assignee": {"id": 872}}, "task": {"id": 318, "owner": {"id": 922}, "assignee": {"id": 1071}}, "job": {"id": 346, "assignee": {"id": 1193}}, "organization": {"id": 1258}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 692}, "assignee": {"id": 79}, "project": {"id": 393, "owner": {"id": 742}, "assignee": {"id": 833}}, "task": {"id": 308, "owner": {"id": 950}, "assignee": {"id": 1052}}, "job": {"id": 330, "assignee": {"id": 1175}}, "organization": {"id": 1206}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 686}, "assignee": {"id": 72}, "project": {"id": 310, "owner": {"id": 714}, "assignee": {"id": 827}}, "task": {"id": 308, "owner": {"id": 978}, "assignee": {"id": 1045}}, "job": {"id": 347, "assignee": {"id": 1121}}, "organization": {"id": 161}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 659}, "assignee": {"id": 63}, "project": {"id": 309, "owner": {"id": 715}, "assignee": {"id": 856}}, "task": {"id": 346, "owner": {"id": 939}, "assignee": {"id": 1027}}, "job": {"id": 397, "assignee": {"id": 1121}}, "organization": {"id": 167}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 612}, "assignee": {"id": 53}, "project": {"id": 337, "owner": {"id": 727}, "assignee": {"id": 829}}, "task": {"id": 371, "owner": {"id": 903}, "assignee": {"id": 1055}}, "job": {"id": 368, "assignee": {"id": 1168}}, "organization": {"id": 1262}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 628}, "assignee": {"id": 43}, "project": {"id": 303, "owner": {"id": 758}, "assignee": {"id": 851}}, "task": {"id": 375, "owner": {"id": 966}, "assignee": {"id": 1001}}, "job": {"id": 342, "assignee": {"id": 1140}}, "organization": {"id": 1274}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 698}, "assignee": {"id": 19}, "project": {"id": 334, "owner": {"id": 777}, "assignee": {"id": 865}}, "task": {"id": 365, "owner": {"id": 968}, "assignee": {"id": 1035}}, "job": {"id": 308, "assignee": {"id": 1142}}, "organization": {"id": 128}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 610}, "assignee": {"id": 19}, "project": {"id": 397, "owner": {"id": 770}, "assignee": {"id": 858}}, "task": {"id": 392, "owner": {"id": 975}, "assignee": {"id": 1086}}, "job": {"id": 338, "assignee": {"id": 1180}}, "organization": {"id": 189}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 655}, "assignee": {"id": 4}, "project": {"id": 350, "owner": {"id": 769}, "assignee": {"id": 868}}, "task": {"id": 378, "owner": {"id": 928}, "assignee": {"id": 1004}}, "job": {"id": 393, "assignee": {"id": 1104}}, "organization": {"id": 1200}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 670}, "assignee": {"id": 53}, "project": {"id": 392, "owner": {"id": 756}, "assignee": {"id": 858}}, "task": {"id": 345, "owner": {"id": 922}, "assignee": {"id": 1021}}, "job": {"id": 324, "assignee": {"id": 1100}}, "organization": {"id": 1265}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 694}, "assignee": {"id": 87}, "project": {"id": 303, "owner": {"id": 748}, "assignee": {"id": 879}}, "task": {"id": 325, "owner": {"id": 947}, "assignee": {"id": 1039}}, "job": {"id": 333, "assignee": {"id": 1185}}, "organization": {"id": 183}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 678}, "assignee": {"id": 49}, "project": {"id": 312, "owner": {"id": 793}, "assignee": {"id": 863}}, "task": {"id": 338, "owner": {"id": 979}, "assignee": {"id": 1029}}, "job": {"id": 399, "assignee": {"id": 1148}}, "organization": {"id": 101}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 625}, "assignee": {"id": 77}, "project": {"id": 394, "owner": {"id": 711}, "assignee": {"id": 829}}, "task": {"id": 302, "owner": {"id": 907}, "assignee": {"id": 1086}}, "job": {"id": 351, "assignee": {"id": 1103}}, "organization": {"id": 1228}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 664}, "assignee": {"id": 47}, "project": {"id": 300, "owner": {"id": 744}, "assignee": {"id": 852}}, "task": {"id": 323, "owner": {"id": 920}, "assignee": {"id": 1090}}, "job": {"id": 377, "assignee": {"id": 1106}}, "organization": {"id": 1273}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 661}, "assignee": {"id": 64}, "project": {"id": 373, "owner": {"id": 772}, "assignee": {"id": 809}}, "task": {"id": 366, "owner": {"id": 990}, "assignee": {"id": 1080}}, "job": {"id": 307, "assignee": {"id": 1173}}, "organization": {"id": 161}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 642}, "assignee": {"id": 46}, "project": {"id": 306, "owner": {"id": 781}, "assignee": {"id": 845}}, "task": {"id": 334, "owner": {"id": 944}, "assignee": {"id": 1000}}, "job": {"id": 333, "assignee": {"id": 1150}}, "organization": {"id": 115}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 625}, "assignee": {"id": 91}, "project": {"id": 312, "owner": {"id": 779}, "assignee": {"id": 831}}, "task": {"id": 310, "owner": {"id": 999}, "assignee": {"id": 1027}}, "job": {"id": 312, "assignee": {"id": 1107}}, "organization": {"id": 1297}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 695}, "assignee": {"id": 27}, "project": {"id": 309, "owner": {"id": 764}, "assignee": {"id": 829}}, "task": {"id": 307, "owner": {"id": 967}, "assignee": {"id": 1050}}, "job": {"id": 326, "assignee": {"id": 1179}}, "organization": {"id": 1218}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 678}, "assignee": {"id": 17}, "project": {"id": 395, "owner": {"id": 729}, "assignee": {"id": 806}}, "task": {"id": 371, "owner": {"id": 921}, "assignee": {"id": 1047}}, "job": {"id": 373, "assignee": {"id": 1130}}, "organization": {"id": 133}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 623}, "assignee": {"id": 53}, "project": {"id": 394, "owner": {"id": 793}, "assignee": {"id": 859}}, "task": {"id": 319, "owner": {"id": 941}, "assignee": {"id": 1035}}, "job": {"id": 381, "assignee": {"id": 1180}}, "organization": {"id": 165}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 661}, "assignee": {"id": 37}, "project": {"id": 373, "owner": {"id": 791}, "assignee": {"id": 860}}, "task": {"id": 321, "owner": {"id": 972}, "assignee": {"id": 1013}}, "job": {"id": 342, "assignee": {"id": 1193}}, "organization": {"id": 1252}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 612}, "assignee": {"id": 79}, "project": {"id": 363, "owner": {"id": 726}, "assignee": {"id": 834}}, "task": {"id": 393, "owner": {"id": 970}, "assignee": {"id": 1039}}, "job": {"id": 371, "assignee": {"id": 1140}}, "organization": {"id": 1295}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 655}, "assignee": {"id": 58}, "project": {"id": 328, "owner": {"id": 760}, "assignee": {"id": 814}}, "task": {"id": 338, "owner": {"id": 959}, "assignee": {"id": 1004}}, "job": {"id": 394, "assignee": {"id": 1100}}, "organization": {"id": 190}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 672}, "assignee": {"id": 71}, "project": {"id": 340, "owner": {"id": 710}, "assignee": {"id": 837}}, "task": {"id": 370, "owner": {"id": 934}, "assignee": {"id": 1088}}, "job": {"id": 312, "assignee": {"id": 1114}}, "organization": {"id": 139}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 603}, "assignee": {"id": 51}, "project": {"id": 389, "owner": {"id": 717}, "assignee": {"id": 889}}, "task": {"id": 350, "owner": {"id": 945}, "assignee": {"id": 1079}}, "job": {"id": 367, "assignee": {"id": 1187}}, "organization": {"id": 1202}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 654}, "assignee": {"id": 71}, "project": {"id": 392, "owner": {"id": 765}, "assignee": {"id": 806}}, "task": {"id": 303, "owner": {"id": 941}, "assignee": {"id": 1080}}, "job": {"id": 362, "assignee": {"id": 1196}}, "organization": {"id": 1248}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 630}, "assignee": {"id": 52}, "project": {"id": 308, "owner": {"id": 714}, "assignee": {"id": 876}}, "task": {"id": 362, "owner": {"id": 960}, "assignee": {"id": 1002}}, "job": {"id": 360, "assignee": {"id": 1163}}, "organization": {"id": 164}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 639}, "assignee": {"id": 12}, "project": {"id": 389, "owner": {"id": 746}, "assignee": {"id": 887}}, "task": {"id": 349, "owner": {"id": 902}, "assignee": {"id": 1038}}, "job": {"id": 348, "assignee": {"id": 1187}}, "organization": {"id": 177}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 626}, "assignee": {"id": 74}, "project": {"id": 322, "owner": {"id": 776}, "assignee": {"id": 866}}, "task": {"id": 375, "owner": {"id": 912}, "assignee": {"id": 1097}}, "job": {"id": 339, "assignee": {"id": 1150}}, "organization": {"id": 1298}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 676}, "assignee": {"id": 12}, "project": {"id": 383, "owner": {"id": 781}, "assignee": {"id": 820}}, "task": {"id": 372, "owner": {"id": 931}, "assignee": {"id": 1020}}, "job": {"id": 347, "assignee": {"id": 1187}}, "organization": {"id": 1296}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 665}, "assignee": {"id": 94}, "project": {"id": 373, "owner": {"id": 707}, "assignee": {"id": 880}}, "task": {"id": 389, "owner": {"id": 903}, "assignee": {"id": 1054}}, "job": {"id": 397, "assignee": {"id": 1151}}, "organization": {"id": 178}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 697}, "assignee": {"id": 61}, "project": {"id": 380, "owner": {"id": 741}, "assignee": {"id": 807}}, "task": {"id": 372, "owner": {"id": 955}, "assignee": {"id": 1063}}, "job": {"id": 350, "assignee": {"id": 1175}}, "organization": {"id": 101}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 617}, "assignee": {"id": 78}, "project": {"id": 313, "owner": {"id": 790}, "assignee": {"id": 881}}, "task": {"id": 313, "owner": {"id": 923}, "assignee": {"id": 1095}}, "job": {"id": 321, "assignee": {"id": 1160}}, "organization": {"id": 1236}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 644}, "assignee": {"id": 23}, "project": {"id": 342, "owner": {"id": 785}, "assignee": {"id": 852}}, "task": {"id": 373, "owner": {"id": 979}, "assignee": {"id": 1064}}, "job": {"id": 391, "assignee": {"id": 1117}}, "organization": {"id": 1249}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 681}, "assignee": {"id": 8}, "project": {"id": 396, "owner": {"id": 702}, "assignee": {"id": 861}}, "task": {"id": 323, "owner": {"id": 985}, "assignee": {"id": 1060}}, "job": {"id": 334, "assignee": {"id": 1144}}, "organization": {"id": 116}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 620}, "assignee": {"id": 88}, "project": {"id": 301, "owner": {"id": 748}, "assignee": {"id": 830}}, "task": {"id": 364, "owner": {"id": 909}, "assignee": {"id": 1012}}, "job": {"id": 337, "assignee": {"id": 1137}}, "organization": {"id": 175}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 638}, "assignee": {"id": 10}, "project": {"id": 361, "owner": {"id": 741}, "assignee": {"id": 836}}, "task": {"id": 321, "owner": {"id": 936}, "assignee": {"id": 1017}}, "job": {"id": 370, "assignee": {"id": 1136}}, "organization": {"id": 1241}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 637}, "assignee": {"id": 53}, "project": {"id": 322, "owner": {"id": 764}, "assignee": {"id": 812}}, "task": {"id": 324, "owner": {"id": 934}, "assignee": {"id": 1043}}, "job": {"id": 321, "assignee": {"id": 1166}}, "organization": {"id": 1205}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 632}, "assignee": {"id": 78}, "project": {"id": 379, "owner": {"id": 725}, "assignee": {"id": 807}}, "task": {"id": 354, "owner": {"id": 937}, "assignee": {"id": 1024}}, "job": {"id": 397, "assignee": {"id": 1157}}, "organization": {"id": 163}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 683}, "assignee": {"id": 73}, "project": {"id": 328, "owner": {"id": 773}, "assignee": {"id": 870}}, "task": {"id": 306, "owner": {"id": 976}, "assignee": {"id": 1039}}, "job": {"id": 366, "assignee": {"id": 1151}}, "organization": {"id": 178}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 687}, "assignee": {"id": 44}, "project": {"id": 368, "owner": {"id": 719}, "assignee": {"id": 894}}, "task": {"id": 336, "owner": {"id": 948}, "assignee": {"id": 1000}}, "job": {"id": 329, "assignee": {"id": 1191}}, "organization": {"id": 1222}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 636}, "assignee": {"id": 94}, "project": {"id": 366, "owner": {"id": 716}, "assignee": {"id": 827}}, "task": {"id": 382, "owner": {"id": 941}, "assignee": {"id": 1043}}, "job": {"id": 354, "assignee": {"id": 1131}}, "organization": {"id": 1243}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 652}, "assignee": {"id": 4}, "project": {"id": 393, "owner": {"id": 718}, "assignee": {"id": 890}}, "task": {"id": 380, "owner": {"id": 967}, "assignee": {"id": 1070}}, "job": {"id": 335, "assignee": {"id": 1124}}, "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": 32, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 656}, "assignee": {"id": 32}, "project": {"id": 395, "owner": {"id": 760}, "assignee": {"id": 813}}, "task": {"id": 388, "owner": {"id": 915}, "assignee": {"id": 1005}}, "job": {"id": 341, "assignee": {"id": 1108}}, "organization": {"id": 141}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 618}, "assignee": {"id": 51}, "project": {"id": 310, "owner": {"id": 782}, "assignee": {"id": 809}}, "task": {"id": 312, "owner": {"id": 981}, "assignee": {"id": 1044}}, "job": {"id": 399, "assignee": {"id": 1172}}, "organization": {"id": 1205}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 680}, "assignee": {"id": 68}, "project": {"id": 383, "owner": {"id": 767}, "assignee": {"id": 881}}, "task": {"id": 371, "owner": {"id": 901}, "assignee": {"id": 1033}}, "job": {"id": 396, "assignee": {"id": 1198}}, "organization": {"id": 1208}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 664}, "assignee": {"id": 46}, "project": {"id": 313, "owner": {"id": 724}, "assignee": {"id": 870}}, "task": {"id": 359, "owner": {"id": 902}, "assignee": {"id": 1038}}, "job": {"id": 312, "assignee": {"id": 1102}}, "organization": {"id": 152}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 659}, "assignee": {"id": 54}, "project": {"id": 319, "owner": {"id": 780}, "assignee": {"id": 821}}, "task": {"id": 300, "owner": {"id": 991}, "assignee": {"id": 1076}}, "job": {"id": 355, "assignee": {"id": 1116}}, "organization": {"id": 142}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 656}, "assignee": {"id": 46}, "project": {"id": 327, "owner": {"id": 730}, "assignee": {"id": 860}}, "task": {"id": 358, "owner": {"id": 992}, "assignee": {"id": 1095}}, "job": {"id": 316, "assignee": {"id": 1177}}, "organization": {"id": 1240}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 679}, "assignee": {"id": 47}, "project": {"id": 377, "owner": {"id": 756}, "assignee": {"id": 817}}, "task": {"id": 340, "owner": {"id": 981}, "assignee": {"id": 1071}}, "job": {"id": 395, "assignee": {"id": 1160}}, "organization": {"id": 1240}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 630}, "assignee": {"id": 5}, "project": {"id": 303, "owner": {"id": 709}, "assignee": {"id": 871}}, "task": {"id": 345, "owner": {"id": 902}, "assignee": {"id": 1042}}, "job": {"id": 390, "assignee": {"id": 1126}}, "organization": {"id": 159}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 647}, "assignee": {"id": 47}, "project": {"id": 347, "owner": {"id": 744}, "assignee": {"id": 822}}, "task": {"id": 365, "owner": {"id": 938}, "assignee": {"id": 1092}}, "job": {"id": 355, "assignee": {"id": 1158}}, "organization": {"id": 181}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 644}, "assignee": {"id": 35}, "project": {"id": 352, "owner": {"id": 746}, "assignee": {"id": 832}}, "task": {"id": 389, "owner": {"id": 940}, "assignee": {"id": 1034}}, "job": {"id": 345, "assignee": {"id": 1198}}, "organization": {"id": 1269}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 608}, "assignee": {"id": 50}, "project": {"id": 344, "owner": {"id": 718}, "assignee": {"id": 885}}, "task": {"id": 373, "owner": {"id": 911}, "assignee": {"id": 1047}}, "job": {"id": 306, "assignee": {"id": 1150}}, "organization": {"id": 1290}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 675}, "assignee": {"id": 64}, "project": {"id": 395, "owner": {"id": 782}, "assignee": {"id": 850}}, "task": {"id": 353, "owner": {"id": 993}, "assignee": {"id": 1089}}, "job": {"id": 376, "assignee": {"id": 1178}}, "organization": {"id": 116}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 691}, "assignee": {"id": 97}, "project": {"id": 359, "owner": {"id": 742}, "assignee": {"id": 838}}, "task": {"id": 331, "owner": {"id": 980}, "assignee": {"id": 1083}}, "job": {"id": 305, "assignee": {"id": 1182}}, "organization": {"id": 146}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 654}, "assignee": {"id": 64}, "project": {"id": 306, "owner": {"id": 747}, "assignee": {"id": 870}}, "task": {"id": 305, "owner": {"id": 911}, "assignee": {"id": 1024}}, "job": {"id": 373, "assignee": {"id": 1128}}, "organization": {"id": 1290}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 641}, "assignee": {"id": 30}, "project": {"id": 374, "owner": {"id": 704}, "assignee": {"id": 803}}, "task": {"id": 336, "owner": {"id": 914}, "assignee": {"id": 1006}}, "job": {"id": 393, "assignee": {"id": 1161}}, "organization": {"id": 1238}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 655}, "assignee": {"id": 85}, "project": {"id": 329, "owner": {"id": 721}, "assignee": {"id": 861}}, "task": {"id": 347, "owner": {"id": 999}, "assignee": {"id": 1080}}, "job": {"id": 365, "assignee": {"id": 1135}}, "organization": {"id": 149}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 604}, "assignee": {"id": 3}, "project": {"id": 305, "owner": {"id": 749}, "assignee": {"id": 862}}, "task": {"id": 335, "owner": {"id": 968}, "assignee": {"id": 1023}}, "job": {"id": 327, "assignee": {"id": 1120}}, "organization": {"id": 184}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 640}, "assignee": {"id": 62}, "project": {"id": 371, "owner": {"id": 778}, "assignee": {"id": 842}}, "task": {"id": 369, "owner": {"id": 975}, "assignee": {"id": 1055}}, "job": {"id": 323, "assignee": {"id": 1180}}, "organization": {"id": 1227}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 611}, "assignee": {"id": 92}, "project": {"id": 313, "owner": {"id": 783}, "assignee": {"id": 877}}, "task": {"id": 319, "owner": {"id": 902}, "assignee": {"id": 1037}}, "job": {"id": 345, "assignee": {"id": 1199}}, "organization": {"id": 1215}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 697}, "assignee": {"id": 73}, "project": {"id": 362, "owner": {"id": 702}, "assignee": {"id": 848}}, "task": {"id": 325, "owner": {"id": 934}, "assignee": {"id": 1004}}, "job": {"id": 391, "assignee": {"id": 1160}}, "organization": {"id": 183}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 605}, "assignee": {"id": 45}, "project": {"id": 322, "owner": {"id": 704}, "assignee": {"id": 865}}, "task": {"id": 395, "owner": {"id": 940}, "assignee": {"id": 1032}}, "job": {"id": 308, "assignee": {"id": 1126}}, "organization": {"id": 117}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 651}, "assignee": {"id": 36}, "project": {"id": 351, "owner": {"id": 704}, "assignee": {"id": 888}}, "task": {"id": 315, "owner": {"id": 919}, "assignee": {"id": 1096}}, "job": {"id": 382, "assignee": {"id": 1166}}, "organization": {"id": 1294}}} +} + +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": 189, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 687}, "assignee": {"id": 89}, "project": {"id": 384, "owner": {"id": 779}, "assignee": {"id": 867}}, "task": {"id": 306, "owner": {"id": 929}, "assignee": {"id": 1010}}, "job": {"id": 334, "assignee": {"id": 1149}}, "organization": {"id": 1223}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 613}, "assignee": {"id": 9}, "project": {"id": 338, "owner": {"id": 773}, "assignee": {"id": 830}}, "task": {"id": 388, "owner": {"id": 946}, "assignee": {"id": 1068}}, "job": {"id": 357, "assignee": {"id": 1108}}, "organization": {"id": 107}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 680}, "assignee": {"id": 90}, "project": {"id": 372, "owner": {"id": 745}, "assignee": {"id": 847}}, "task": {"id": 323, "owner": {"id": 957}, "assignee": {"id": 1068}}, "job": {"id": 316, "assignee": {"id": 1197}}, "organization": {"id": 180}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 678}, "assignee": {"id": 48}, "project": {"id": 347, "owner": {"id": 703}, "assignee": {"id": 847}}, "task": {"id": 362, "owner": {"id": 926}, "assignee": {"id": 1086}}, "job": {"id": 365, "assignee": {"id": 1197}}, "organization": {"id": 1281}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 691}, "assignee": {"id": 41}, "project": {"id": 312, "owner": {"id": 714}, "assignee": {"id": 822}}, "task": {"id": 341, "owner": {"id": 903}, "assignee": {"id": 1077}}, "job": {"id": 389, "assignee": {"id": 1171}}, "organization": {"id": 1244}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 632}, "assignee": {"id": 32}, "project": {"id": 364, "owner": {"id": 787}, "assignee": {"id": 844}}, "task": {"id": 307, "owner": {"id": 941}, "assignee": {"id": 1036}}, "job": {"id": 378, "assignee": {"id": 1183}}, "organization": {"id": 121}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 679}, "assignee": {"id": 99}, "project": {"id": 352, "owner": {"id": 779}, "assignee": {"id": 876}}, "task": {"id": 325, "owner": {"id": 960}, "assignee": {"id": 1093}}, "job": {"id": 390, "assignee": {"id": 1153}}, "organization": {"id": 171}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 678}, "assignee": {"id": 39}, "project": {"id": 389, "owner": {"id": 753}, "assignee": {"id": 835}}, "task": {"id": 301, "owner": {"id": 922}, "assignee": {"id": 1072}}, "job": {"id": 346, "assignee": {"id": 1126}}, "organization": {"id": 1241}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 656}, "assignee": {"id": 12}, "project": {"id": 301, "owner": {"id": 729}, "assignee": {"id": 874}}, "task": {"id": 304, "owner": {"id": 970}, "assignee": {"id": 1039}}, "job": {"id": 385, "assignee": {"id": 1111}}, "organization": {"id": 1208}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 632}, "assignee": {"id": 541}, "project": {"id": 331, "owner": {"id": 763}, "assignee": {"id": 837}}, "task": {"id": 323, "owner": {"id": 964}, "assignee": {"id": 1024}}, "job": {"id": 386, "assignee": {"id": 1112}}, "organization": {"id": 156}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 658}, "assignee": {"id": 520}, "project": {"id": 330, "owner": {"id": 797}, "assignee": {"id": 867}}, "task": {"id": 353, "owner": {"id": 956}, "assignee": {"id": 1074}}, "job": {"id": 393, "assignee": {"id": 1106}}, "organization": {"id": 181}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 699}, "assignee": {"id": 581}, "project": {"id": 353, "owner": {"id": 740}, "assignee": {"id": 814}}, "task": {"id": 386, "owner": {"id": 917}, "assignee": {"id": 1068}}, "job": {"id": 315, "assignee": {"id": 1118}}, "organization": {"id": 1264}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 617}, "assignee": {"id": 584}, "project": {"id": 384, "owner": {"id": 732}, "assignee": {"id": 800}}, "task": {"id": 310, "owner": {"id": 908}, "assignee": {"id": 1014}}, "job": {"id": 351, "assignee": {"id": 1197}}, "organization": {"id": 1294}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 644}, "assignee": {"id": 569}, "project": {"id": 305, "owner": {"id": 727}, "assignee": {"id": 845}}, "task": {"id": 379, "owner": {"id": 969}, "assignee": {"id": 1041}}, "job": {"id": 314, "assignee": {"id": 1157}}, "organization": {"id": 156}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 623}, "assignee": {"id": 584}, "project": {"id": 372, "owner": {"id": 773}, "assignee": {"id": 851}}, "task": {"id": 338, "owner": {"id": 921}, "assignee": {"id": 1053}}, "job": {"id": 349, "assignee": {"id": 1135}}, "organization": {"id": 147}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 673}, "assignee": {"id": 537}, "project": {"id": 359, "owner": {"id": 701}, "assignee": {"id": 837}}, "task": {"id": 334, "owner": {"id": 918}, "assignee": {"id": 1026}}, "job": {"id": 354, "assignee": {"id": 1164}}, "organization": {"id": 1259}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 676}, "assignee": {"id": 582}, "project": {"id": 330, "owner": {"id": 799}, "assignee": {"id": 866}}, "task": {"id": 357, "owner": {"id": 954}, "assignee": {"id": 1050}}, "job": {"id": 303, "assignee": {"id": 1129}}, "organization": {"id": 1279}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 653}, "assignee": {"id": 533}, "project": {"id": 384, "owner": {"id": 773}, "assignee": {"id": 895}}, "task": {"id": 396, "owner": {"id": 960}, "assignee": {"id": 1073}}, "job": {"id": 367, "assignee": {"id": 1181}}, "organization": {"id": 141}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 620}, "assignee": {"id": 506}, "project": {"id": 377, "owner": {"id": 761}, "assignee": {"id": 888}}, "task": {"id": 365, "owner": {"id": 981}, "assignee": {"id": 1079}}, "job": {"id": 302, "assignee": {"id": 1124}}, "organization": {"id": 171}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 671}, "assignee": {"id": 585}, "project": {"id": 314, "owner": {"id": 754}, "assignee": {"id": 830}}, "task": {"id": 306, "owner": {"id": 937}, "assignee": {"id": 1089}}, "job": {"id": 336, "assignee": {"id": 1146}}, "organization": {"id": 1204}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 629}, "assignee": {"id": 548}, "project": {"id": 320, "owner": {"id": 794}, "assignee": {"id": 841}}, "task": {"id": 399, "owner": {"id": 960}, "assignee": {"id": 1019}}, "job": {"id": 314, "assignee": {"id": 1187}}, "organization": {"id": 1257}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 608}, "assignee": {"id": 518}, "project": {"id": 308, "owner": {"id": 737}, "assignee": {"id": 895}}, "task": {"id": 366, "owner": {"id": 984}, "assignee": {"id": 1010}}, "job": {"id": 310, "assignee": {"id": 1166}}, "organization": {"id": 124}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 613}, "assignee": {"id": 522}, "project": {"id": 312, "owner": {"id": 739}, "assignee": {"id": 884}}, "task": {"id": 348, "owner": {"id": 936}, "assignee": {"id": 1019}}, "job": {"id": 323, "assignee": {"id": 1157}}, "organization": {"id": 197}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 642}, "assignee": {"id": 529}, "project": {"id": 394, "owner": {"id": 707}, "assignee": {"id": 847}}, "task": {"id": 324, "owner": {"id": 932}, "assignee": {"id": 1029}}, "job": {"id": 394, "assignee": {"id": 1183}}, "organization": {"id": 1271}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 614}, "assignee": {"id": 551}, "project": {"id": 359, "owner": {"id": 700}, "assignee": {"id": 837}}, "task": {"id": 387, "owner": {"id": 957}, "assignee": {"id": 1048}}, "job": {"id": 380, "assignee": {"id": 1141}}, "organization": {"id": 1275}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 640}, "assignee": {"id": 501}, "project": {"id": 317, "owner": {"id": 748}, "assignee": {"id": 828}}, "task": {"id": 380, "owner": {"id": 985}, "assignee": {"id": 1036}}, "job": {"id": 304, "assignee": {"id": 1189}}, "organization": {"id": 138}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 687}, "assignee": {"id": 565}, "project": {"id": 300, "owner": {"id": 798}, "assignee": {"id": 814}}, "task": {"id": 359, "owner": {"id": 920}, "assignee": {"id": 1091}}, "job": {"id": 366, "assignee": {"id": 1111}}, "organization": {"id": 128}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 669}, "assignee": {"id": 585}, "project": {"id": 375, "owner": {"id": 777}, "assignee": {"id": 803}}, "task": {"id": 313, "owner": {"id": 905}, "assignee": {"id": 1085}}, "job": {"id": 371, "assignee": {"id": 1166}}, "organization": {"id": 1279}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 614}, "assignee": {"id": 575}, "project": {"id": 360, "owner": {"id": 765}, "assignee": {"id": 812}}, "task": {"id": 393, "owner": {"id": 986}, "assignee": {"id": 1002}}, "job": {"id": 311, "assignee": {"id": 1125}}, "organization": {"id": 1280}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 603}, "assignee": {"id": 582}, "project": {"id": 349, "owner": {"id": 706}, "assignee": {"id": 844}}, "task": {"id": 310, "owner": {"id": 981}, "assignee": {"id": 1088}}, "job": {"id": 375, "assignee": {"id": 1152}}, "organization": {"id": 172}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 654}, "assignee": {"id": 546}, "project": {"id": 360, "owner": {"id": 700}, "assignee": {"id": 885}}, "task": {"id": 367, "owner": {"id": 968}, "assignee": {"id": 1054}}, "job": {"id": 345, "assignee": {"id": 1134}}, "organization": {"id": 102}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 604}, "assignee": {"id": 564}, "project": {"id": 332, "owner": {"id": 791}, "assignee": {"id": 803}}, "task": {"id": 326, "owner": {"id": 982}, "assignee": {"id": 1013}}, "job": {"id": 316, "assignee": {"id": 1138}}, "organization": {"id": 1258}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 602}, "assignee": {"id": 558}, "project": {"id": 385, "owner": {"id": 789}, "assignee": {"id": 823}}, "task": {"id": 397, "owner": {"id": 943}, "assignee": {"id": 1094}}, "job": {"id": 371, "assignee": {"id": 1123}}, "organization": {"id": 1266}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 668}, "assignee": {"id": 564}, "project": {"id": 323, "owner": {"id": 798}, "assignee": {"id": 892}}, "task": {"id": 393, "owner": {"id": 961}, "assignee": {"id": 1084}}, "job": {"id": 359, "assignee": {"id": 1166}}, "organization": {"id": 185}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 680}, "assignee": {"id": 582}, "project": {"id": 317, "owner": {"id": 776}, "assignee": {"id": 890}}, "task": {"id": 388, "owner": {"id": 970}, "assignee": {"id": 1057}}, "job": {"id": 301, "assignee": {"id": 1113}}, "organization": {"id": 162}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 624}, "assignee": {"id": 559}, "project": {"id": 395, "owner": {"id": 715}, "assignee": {"id": 823}}, "task": {"id": 315, "owner": {"id": 928}, "assignee": {"id": 1042}}, "job": {"id": 338, "assignee": {"id": 1110}}, "organization": {"id": 1298}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 675}, "assignee": {"id": 556}, "project": {"id": 392, "owner": {"id": 728}, "assignee": {"id": 841}}, "task": {"id": 332, "owner": {"id": 977}, "assignee": {"id": 1001}}, "job": {"id": 350, "assignee": {"id": 1198}}, "organization": {"id": 1247}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 683}, "assignee": {"id": 527}, "project": {"id": 339, "owner": {"id": 780}, "assignee": {"id": 806}}, "task": {"id": 338, "owner": {"id": 943}, "assignee": {"id": 1006}}, "job": {"id": 302, "assignee": {"id": 1187}}, "organization": {"id": 174}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 681}, "assignee": {"id": 577}, "project": {"id": 315, "owner": {"id": 796}, "assignee": {"id": 862}}, "task": {"id": 312, "owner": {"id": 917}, "assignee": {"id": 1017}}, "job": {"id": 307, "assignee": {"id": 1136}}, "organization": {"id": 178}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 609}, "assignee": {"id": 585}, "project": {"id": 310, "owner": {"id": 731}, "assignee": {"id": 824}}, "task": {"id": 396, "owner": {"id": 962}, "assignee": {"id": 1001}}, "job": {"id": 358, "assignee": {"id": 1148}}, "organization": {"id": 1294}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 641}, "assignee": {"id": 557}, "project": {"id": 336, "owner": {"id": 702}, "assignee": {"id": 844}}, "task": {"id": 340, "owner": {"id": 982}, "assignee": {"id": 1016}}, "job": {"id": 386, "assignee": {"id": 1157}}, "organization": {"id": 1229}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 670}, "assignee": {"id": 531}, "project": {"id": 373, "owner": {"id": 735}, "assignee": {"id": 828}}, "task": {"id": 363, "owner": {"id": 965}, "assignee": {"id": 1019}}, "job": {"id": 324, "assignee": {"id": 1171}}, "organization": {"id": 192}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 660}, "assignee": {"id": 540}, "project": {"id": 313, "owner": {"id": 772}, "assignee": {"id": 820}}, "task": {"id": 326, "owner": {"id": 915}, "assignee": {"id": 1005}}, "job": {"id": 342, "assignee": {"id": 1149}}, "organization": {"id": 107}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 668}, "assignee": {"id": 597}, "project": {"id": 332, "owner": {"id": 743}, "assignee": {"id": 819}}, "task": {"id": 336, "owner": {"id": 900}, "assignee": {"id": 1053}}, "job": {"id": 301, "assignee": {"id": 1183}}, "organization": {"id": 1228}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 636}, "assignee": {"id": 575}, "project": {"id": 358, "owner": {"id": 736}, "assignee": {"id": 883}}, "task": {"id": 325, "owner": {"id": 937}, "assignee": {"id": 1017}}, "job": {"id": 393, "assignee": {"id": 1185}}, "organization": {"id": 1228}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 653}, "assignee": {"id": 557}, "project": {"id": 391, "owner": {"id": 762}, "assignee": {"id": 857}}, "task": {"id": 320, "owner": {"id": 902}, "assignee": {"id": 1016}}, "job": {"id": 346, "assignee": {"id": 1105}}, "organization": {"id": 123}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 600}, "assignee": {"id": 573}, "project": {"id": 323, "owner": {"id": 735}, "assignee": {"id": 882}}, "task": {"id": 399, "owner": {"id": 936}, "assignee": {"id": 1087}}, "job": {"id": 306, "assignee": {"id": 1140}}, "organization": {"id": 104}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 630}, "assignee": {"id": 575}, "project": {"id": 388, "owner": {"id": 720}, "assignee": {"id": 883}}, "task": {"id": 340, "owner": {"id": 918}, "assignee": {"id": 1000}}, "job": {"id": 309, "assignee": {"id": 1169}}, "organization": {"id": 1201}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 688}, "assignee": {"id": 572}, "project": {"id": 381, "owner": {"id": 796}, "assignee": {"id": 817}}, "task": {"id": 379, "owner": {"id": 997}, "assignee": {"id": 1064}}, "job": {"id": 348, "assignee": {"id": 1178}}, "organization": {"id": 1243}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 667}, "assignee": {"id": 556}, "project": {"id": 343, "owner": {"id": 732}, "assignee": {"id": 889}}, "task": {"id": 367, "owner": {"id": 900}, "assignee": {"id": 1028}}, "job": {"id": 324, "assignee": {"id": 1193}}, "organization": {"id": 193}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 644}, "assignee": {"id": 549}, "project": {"id": 349, "owner": {"id": 783}, "assignee": {"id": 895}}, "task": {"id": 343, "owner": {"id": 919}, "assignee": {"id": 1022}}, "job": {"id": 397, "assignee": {"id": 1159}}, "organization": {"id": 185}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 641}, "assignee": {"id": 537}, "project": {"id": 396, "owner": {"id": 755}, "assignee": {"id": 891}}, "task": {"id": 330, "owner": {"id": 908}, "assignee": {"id": 1053}}, "job": {"id": 369, "assignee": {"id": 1144}}, "organization": {"id": 1210}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 672}, "assignee": {"id": 562}, "project": {"id": 361, "owner": {"id": 775}, "assignee": {"id": 823}}, "task": {"id": 303, "owner": {"id": 992}, "assignee": {"id": 1010}}, "job": {"id": 382, "assignee": {"id": 1121}}, "organization": {"id": 1226}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 636}, "assignee": {"id": 500}, "project": {"id": 335, "owner": {"id": 791}, "assignee": {"id": 855}}, "task": {"id": 380, "owner": {"id": 932}, "assignee": {"id": 1042}}, "job": {"id": 332, "assignee": {"id": 1127}}, "organization": {"id": 102}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 685}, "assignee": {"id": 528}, "project": {"id": 351, "owner": {"id": 724}, "assignee": {"id": 880}}, "task": {"id": 365, "owner": {"id": 947}, "assignee": {"id": 1072}}, "job": {"id": 384, "assignee": {"id": 1101}}, "organization": {"id": 198}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 638}, "assignee": {"id": 572}, "project": {"id": 313, "owner": {"id": 721}, "assignee": {"id": 882}}, "task": {"id": 337, "owner": {"id": 996}, "assignee": {"id": 1026}}, "job": {"id": 375, "assignee": {"id": 1110}}, "organization": {"id": 1221}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 665}, "assignee": {"id": 569}, "project": {"id": 312, "owner": {"id": 718}, "assignee": {"id": 863}}, "task": {"id": 301, "owner": {"id": 933}, "assignee": {"id": 1062}}, "job": {"id": 332, "assignee": {"id": 1125}}, "organization": {"id": 1267}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 697}, "assignee": {"id": 562}, "project": {"id": 317, "owner": {"id": 797}, "assignee": {"id": 860}}, "task": {"id": 324, "owner": {"id": 977}, "assignee": {"id": 1070}}, "job": {"id": 373, "assignee": {"id": 1150}}, "organization": {"id": 116}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 680}, "assignee": {"id": 512}, "project": {"id": 387, "owner": {"id": 768}, "assignee": {"id": 832}}, "task": {"id": 322, "owner": {"id": 911}, "assignee": {"id": 1004}}, "job": {"id": 378, "assignee": {"id": 1188}}, "organization": {"id": 136}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 659}, "assignee": {"id": 507}, "project": {"id": 312, "owner": {"id": 731}, "assignee": {"id": 848}}, "task": {"id": 362, "owner": {"id": 992}, "assignee": {"id": 1049}}, "job": {"id": 366, "assignee": {"id": 1182}}, "organization": {"id": 1280}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 692}, "assignee": {"id": 598}, "project": {"id": 328, "owner": {"id": 723}, "assignee": {"id": 817}}, "task": {"id": 380, "owner": {"id": 997}, "assignee": {"id": 1067}}, "job": {"id": 373, "assignee": {"id": 1116}}, "organization": {"id": 1260}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 671}, "assignee": {"id": 539}, "project": {"id": 358, "owner": {"id": 793}, "assignee": {"id": 821}}, "task": {"id": 352, "owner": {"id": 989}, "assignee": {"id": 1026}}, "job": {"id": 333, "assignee": {"id": 1118}}, "organization": {"id": 194}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 651}, "assignee": {"id": 525}, "project": {"id": 385, "owner": {"id": 748}, "assignee": {"id": 872}}, "task": {"id": 380, "owner": {"id": 953}, "assignee": {"id": 1015}}, "job": {"id": 363, "assignee": {"id": 1169}}, "organization": {"id": 190}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 695}, "assignee": {"id": 548}, "project": {"id": 337, "owner": {"id": 737}, "assignee": {"id": 882}}, "task": {"id": 369, "owner": {"id": 929}, "assignee": {"id": 1073}}, "job": {"id": 355, "assignee": {"id": 1124}}, "organization": {"id": 1214}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 691}, "assignee": {"id": 564}, "project": {"id": 331, "owner": {"id": 798}, "assignee": {"id": 804}}, "task": {"id": 304, "owner": {"id": 987}, "assignee": {"id": 1001}}, "job": {"id": 336, "assignee": {"id": 1162}}, "organization": {"id": 1281}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 611}, "assignee": {"id": 506}, "project": {"id": 330, "owner": {"id": 789}, "assignee": {"id": 807}}, "task": {"id": 364, "owner": {"id": 972}, "assignee": {"id": 1004}}, "job": {"id": 368, "assignee": {"id": 1136}}, "organization": {"id": 138}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 604}, "assignee": {"id": 519}, "project": {"id": 385, "owner": {"id": 727}, "assignee": {"id": 840}}, "task": {"id": 359, "owner": {"id": 938}, "assignee": {"id": 1071}}, "job": {"id": 345, "assignee": {"id": 1101}}, "organization": {"id": 133}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 608}, "assignee": {"id": 504}, "project": {"id": 385, "owner": {"id": 743}, "assignee": {"id": 847}}, "task": {"id": 332, "owner": {"id": 996}, "assignee": {"id": 1010}}, "job": {"id": 388, "assignee": {"id": 1135}}, "organization": {"id": 1280}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 665}, "assignee": {"id": 518}, "project": {"id": 381, "owner": {"id": 789}, "assignee": {"id": 887}}, "task": {"id": 367, "owner": {"id": 935}, "assignee": {"id": 1048}}, "job": {"id": 387, "assignee": {"id": 1157}}, "organization": {"id": 1255}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 648}, "assignee": {"id": 502}, "project": {"id": 358, "owner": {"id": 703}, "assignee": {"id": 837}}, "task": {"id": 364, "owner": {"id": 936}, "assignee": {"id": 1021}}, "job": {"id": 391, "assignee": {"id": 1144}}, "organization": {"id": 134}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 625}, "assignee": {"id": 563}, "project": {"id": 354, "owner": {"id": 784}, "assignee": {"id": 849}}, "task": {"id": 361, "owner": {"id": 995}, "assignee": {"id": 1046}}, "job": {"id": 310, "assignee": {"id": 1107}}, "organization": {"id": 194}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 626}, "assignee": {"id": 584}, "project": {"id": 368, "owner": {"id": 787}, "assignee": {"id": 868}}, "task": {"id": 364, "owner": {"id": 923}, "assignee": {"id": 1066}}, "job": {"id": 378, "assignee": {"id": 1135}}, "organization": {"id": 1259}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 613}, "assignee": {"id": 539}, "project": {"id": 341, "owner": {"id": 723}, "assignee": {"id": 800}}, "task": {"id": 311, "owner": {"id": 991}, "assignee": {"id": 1038}}, "job": {"id": 380, "assignee": {"id": 1115}}, "organization": {"id": 1205}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 675}, "assignee": {"id": 585}, "project": {"id": 325, "owner": {"id": 798}, "assignee": {"id": 862}}, "task": {"id": 302, "owner": {"id": 927}, "assignee": {"id": 1020}}, "job": {"id": 372, "assignee": {"id": 1185}}, "organization": {"id": 188}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 668}, "assignee": {"id": 596}, "project": {"id": 380, "owner": {"id": 765}, "assignee": {"id": 880}}, "task": {"id": 357, "owner": {"id": 922}, "assignee": {"id": 1085}}, "job": {"id": 310, "assignee": {"id": 1151}}, "organization": {"id": 165}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 625}, "assignee": {"id": 591}, "project": {"id": 354, "owner": {"id": 750}, "assignee": {"id": 815}}, "task": {"id": 327, "owner": {"id": 936}, "assignee": {"id": 1091}}, "job": {"id": 380, "assignee": {"id": 1111}}, "organization": {"id": 1200}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 601}, "assignee": {"id": 547}, "project": {"id": 375, "owner": {"id": 794}, "assignee": {"id": 882}}, "task": {"id": 379, "owner": {"id": 984}, "assignee": {"id": 1078}}, "job": {"id": 312, "assignee": {"id": 1117}}, "organization": {"id": 1259}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 647}, "assignee": {"id": 521}, "project": {"id": 302, "owner": {"id": 744}, "assignee": {"id": 890}}, "task": {"id": 384, "owner": {"id": 999}, "assignee": {"id": 1009}}, "job": {"id": 317, "assignee": {"id": 1101}}, "organization": {"id": 195}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 643}, "assignee": {"id": 561}, "project": {"id": 376, "owner": {"id": 760}, "assignee": {"id": 884}}, "task": {"id": 383, "owner": {"id": 950}, "assignee": {"id": 1048}}, "job": {"id": 399, "assignee": {"id": 1149}}, "organization": {"id": 123}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 680}, "assignee": {"id": 523}, "project": {"id": 335, "owner": {"id": 708}, "assignee": {"id": 879}}, "task": {"id": 354, "owner": {"id": 998}, "assignee": {"id": 1063}}, "job": {"id": 371, "assignee": {"id": 1126}}, "organization": {"id": 1243}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 612}, "assignee": {"id": 523}, "project": {"id": 394, "owner": {"id": 735}, "assignee": {"id": 897}}, "task": {"id": 398, "owner": {"id": 957}, "assignee": {"id": 1002}}, "job": {"id": 330, "assignee": {"id": 1161}}, "organization": {"id": 1289}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 621}, "assignee": {"id": 503}, "project": {"id": 316, "owner": {"id": 709}, "assignee": {"id": 812}}, "task": {"id": 360, "owner": {"id": 924}, "assignee": {"id": 1044}}, "job": {"id": 337, "assignee": {"id": 1179}}, "organization": {"id": 149}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 662}, "assignee": {"id": 557}, "project": {"id": 320, "owner": {"id": 798}, "assignee": {"id": 801}}, "task": {"id": 350, "owner": {"id": 951}, "assignee": {"id": 1014}}, "job": {"id": 358, "assignee": {"id": 1128}}, "organization": {"id": 195}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 613}, "assignee": {"id": 525}, "project": {"id": 359, "owner": {"id": 749}, "assignee": {"id": 841}}, "task": {"id": 357, "owner": {"id": 939}, "assignee": {"id": 1099}}, "job": {"id": 303, "assignee": {"id": 1110}}, "organization": {"id": 1206}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 622}, "assignee": {"id": 500}, "project": {"id": 372, "owner": {"id": 700}, "assignee": {"id": 839}}, "task": {"id": 346, "owner": {"id": 980}, "assignee": {"id": 1098}}, "job": {"id": 340, "assignee": {"id": 1121}}, "organization": {"id": 1239}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 637}, "assignee": {"id": 505}, "project": {"id": 341, "owner": {"id": 746}, "assignee": {"id": 803}}, "task": {"id": 380, "owner": {"id": 968}, "assignee": {"id": 1014}}, "job": {"id": 300, "assignee": {"id": 1176}}, "organization": {"id": 152}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 602}, "assignee": {"id": 564}, "project": {"id": 348, "owner": {"id": 750}, "assignee": {"id": 852}}, "task": {"id": 338, "owner": {"id": 967}, "assignee": {"id": 1002}}, "job": {"id": 348, "assignee": {"id": 1166}}, "organization": {"id": 121}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 667}, "assignee": {"id": 564}, "project": {"id": 335, "owner": {"id": 733}, "assignee": {"id": 891}}, "task": {"id": 393, "owner": {"id": 917}, "assignee": {"id": 1083}}, "job": {"id": 327, "assignee": {"id": 1131}}, "organization": {"id": 1284}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 611}, "assignee": {"id": 505}, "project": {"id": 313, "owner": {"id": 773}, "assignee": {"id": 869}}, "task": {"id": 305, "owner": {"id": 946}, "assignee": {"id": 1087}}, "job": {"id": 312, "assignee": {"id": 1187}}, "organization": {"id": 1213}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 673}, "assignee": {"id": 513}, "project": {"id": 350, "owner": {"id": 753}, "assignee": {"id": 840}}, "task": {"id": 353, "owner": {"id": 932}, "assignee": {"id": 1030}}, "job": {"id": 316, "assignee": {"id": 1101}}, "organization": {"id": 193}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 625}, "assignee": {"id": 512}, "project": {"id": 348, "owner": {"id": 790}, "assignee": {"id": 836}}, "task": {"id": 315, "owner": {"id": 968}, "assignee": {"id": 1031}}, "job": {"id": 300, "assignee": {"id": 1177}}, "organization": {"id": 149}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 655}, "assignee": {"id": 524}, "project": {"id": 300, "owner": {"id": 709}, "assignee": {"id": 872}}, "task": {"id": 364, "owner": {"id": 984}, "assignee": {"id": 1070}}, "job": {"id": 390, "assignee": {"id": 1101}}, "organization": {"id": 1234}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 651}, "assignee": {"id": 540}, "project": {"id": 361, "owner": {"id": 740}, "assignee": {"id": 890}}, "task": {"id": 324, "owner": {"id": 995}, "assignee": {"id": 1092}}, "job": {"id": 374, "assignee": {"id": 1124}}, "organization": {"id": 1260}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 653}, "assignee": {"id": 542}, "project": {"id": 309, "owner": {"id": 727}, "assignee": {"id": 853}}, "task": {"id": 372, "owner": {"id": 918}, "assignee": {"id": 1035}}, "job": {"id": 363, "assignee": {"id": 1199}}, "organization": {"id": 188}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 676}, "assignee": {"id": 532}, "project": {"id": 356, "owner": {"id": 768}, "assignee": {"id": 894}}, "task": {"id": 365, "owner": {"id": 916}, "assignee": {"id": 1072}}, "job": {"id": 344, "assignee": {"id": 1141}}, "organization": {"id": 145}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 679}, "assignee": {"id": 526}, "project": {"id": 325, "owner": {"id": 783}, "assignee": {"id": 889}}, "task": {"id": 369, "owner": {"id": 914}, "assignee": {"id": 1067}}, "job": {"id": 359, "assignee": {"id": 1156}}, "organization": {"id": 1250}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 672}, "assignee": {"id": 524}, "project": {"id": 335, "owner": {"id": 730}, "assignee": {"id": 897}}, "task": {"id": 335, "owner": {"id": 987}, "assignee": {"id": 1055}}, "job": {"id": 359, "assignee": {"id": 1119}}, "organization": {"id": 1245}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 614}, "assignee": {"id": 525}, "project": {"id": 301, "owner": {"id": 747}, "assignee": {"id": 833}}, "task": {"id": 383, "owner": {"id": 944}, "assignee": {"id": 1008}}, "job": {"id": 336, "assignee": {"id": 1183}}, "organization": {"id": 132}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 637}, "assignee": {"id": 551}, "project": {"id": 362, "owner": {"id": 794}, "assignee": {"id": 805}}, "task": {"id": 313, "owner": {"id": 927}, "assignee": {"id": 1073}}, "job": {"id": 383, "assignee": {"id": 1106}}, "organization": {"id": 166}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 618}, "assignee": {"id": 570}, "project": {"id": 320, "owner": {"id": 710}, "assignee": {"id": 829}}, "task": {"id": 333, "owner": {"id": 984}, "assignee": {"id": 1024}}, "job": {"id": 331, "assignee": {"id": 1158}}, "organization": {"id": 1234}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 696}, "assignee": {"id": 522}, "project": {"id": 304, "owner": {"id": 738}, "assignee": {"id": 860}}, "task": {"id": 353, "owner": {"id": 915}, "assignee": {"id": 1052}}, "job": {"id": 399, "assignee": {"id": 1170}}, "organization": {"id": 1260}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 640}, "assignee": {"id": 538}, "project": {"id": 380, "owner": {"id": 763}, "assignee": {"id": 851}}, "task": {"id": 398, "owner": {"id": 900}, "assignee": {"id": 1023}}, "job": {"id": 372, "assignee": {"id": 1105}}, "organization": {"id": 101}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 667}, "assignee": {"id": 508}, "project": {"id": 378, "owner": {"id": 744}, "assignee": {"id": 891}}, "task": {"id": 300, "owner": {"id": 972}, "assignee": {"id": 1065}}, "job": {"id": 386, "assignee": {"id": 1109}}, "organization": {"id": 190}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 622}, "assignee": {"id": 512}, "project": {"id": 345, "owner": {"id": 712}, "assignee": {"id": 844}}, "task": {"id": 361, "owner": {"id": 951}, "assignee": {"id": 1093}}, "job": {"id": 393, "assignee": {"id": 1177}}, "organization": {"id": 1264}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 653}, "assignee": {"id": 521}, "project": {"id": 348, "owner": {"id": 721}, "assignee": {"id": 877}}, "task": {"id": 375, "owner": {"id": 948}, "assignee": {"id": 1077}}, "job": {"id": 393, "assignee": {"id": 1155}}, "organization": {"id": 1268}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 671}, "assignee": {"id": 560}, "project": {"id": 375, "owner": {"id": 768}, "assignee": {"id": 835}}, "task": {"id": 338, "owner": {"id": 953}, "assignee": {"id": 1002}}, "job": {"id": 340, "assignee": {"id": 1139}}, "organization": {"id": 110}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 678}, "assignee": {"id": 553}, "project": {"id": 335, "owner": {"id": 775}, "assignee": {"id": 839}}, "task": {"id": 377, "owner": {"id": 934}, "assignee": {"id": 1098}}, "job": {"id": 368, "assignee": {"id": 1199}}, "organization": {"id": 181}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 601}, "assignee": {"id": 569}, "project": {"id": 354, "owner": {"id": 760}, "assignee": {"id": 842}}, "task": {"id": 398, "owner": {"id": 913}, "assignee": {"id": 1071}}, "job": {"id": 341, "assignee": {"id": 1164}}, "organization": {"id": 1230}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 688}, "assignee": {"id": 546}, "project": {"id": 315, "owner": {"id": 768}, "assignee": {"id": 883}}, "task": {"id": 347, "owner": {"id": 985}, "assignee": {"id": 1076}}, "job": {"id": 359, "assignee": {"id": 1128}}, "organization": {"id": 1278}}} +} + + + +# issues_test.gen.rego.py +# # Copyright (C) 2021 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# 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",,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",,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, Job: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, Job:assignee, Owner",,DELETE,/issues/{id},Worker,Worker \ No newline at end of file diff --git a/cvat/apps/iam/rules/jobs.csv b/cvat/apps/iam/rules/jobs.csv new file mode 100644 index 00000000..46b41ffc --- /dev/null +++ b/cvat/apps/iam/rules/jobs.csv @@ -0,0 +1,39 @@ +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 +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 +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/jobs.rego b/cvat/apps/iam/rules/jobs.rego new file mode 100644 index 00000000..5bedf366 --- /dev/null +++ b/cvat/apps/iam/rules/jobs.rego @@ -0,0 +1,206 @@ +package jobs +import data.utils +import data.organizations + +# input: { +# "scope": <"view"|"list"|"update:state"|"update:stage"|"update:assignee""delete"| +# "view:annotations"|"update:annotations"|"delete:annotations"|"view:data"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "id": , +# "assignee": { "id": }, +# "organization": { "id": } or null, +# "project": { +# "owner": { "id": }, +# "assignee": { "id": } +# } or null, +# "task": { +# "owner": { "id": }, +# "assignee": { "id": } +# } or null +# } +# } + +is_job_assignee { + input.resource.assignee.id == input.auth.user.id +} + +is_task_owner { + input.resource.task.owner.id == input.auth.user.id +} + +is_task_assignee { + input.resource.task.assignee.id == input.auth.user.id +} + +is_project_owner { + input.resource.project.owner.id == input.auth.user.id +} + +is_project_assignee { + input.resource.project.assignee.id == input.auth.user.id +} + +is_project_staff { + is_project_owner +} + +is_project_staff { + is_project_assignee +} + +is_task_staff { + is_project_staff +} + +is_task_staff { + is_task_owner +} + +is_task_staff { + is_task_assignee +} + +is_job_staff { + is_task_staff +} + +is_job_staff { + is_job_assignee +} + +default allow = false + +allow { + utils.is_admin +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_admin + utils.is_organization + qobject := [ + {"segment__task__organization": input.auth.organization.id}, + {"segment__task__project__organization": input.auth.organization.id}, "|" ] +} else = qobject { + utils.is_sandbox + user := input.auth.user + qobject := [ + {"assignee_id": user.id}, + {"segment__task__owner_id": user.id}, "|", + {"segment__task__assignee_id": user.id}, "|", + {"segment__task__project__owner_id": user.id}, "|", + {"segment__task__project__assignee_id": user.id}, "|"] +} else = qobject { + utils.is_organization + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) + qobject := [ + {"segment__task__organization": input.auth.organization.id}, + {"segment__task__project__organization": input.auth.organization.id}, "|"] +} else = qobject { + organizations.has_perm(organizations.WORKER) + user := input.auth.user + qobject := [ + {"assignee_id": user.id}, + {"segment__task__owner_id": user.id}, "|", + {"segment__task__assignee_id": user.id}, "|", + {"segment__task__project__owner_id": user.id}, "|", + {"segment__task__project__assignee_id": user.id}, "|", + {"segment__task__organization": input.auth.organization.id}, + {"segment__task__project__organization": input.auth.organization.id}, "|", "&"] +} + +allow { + { utils.VIEW, utils.VIEW_ANNOTATIONS, utils.VIEW_DATA }[input.scope] + utils.is_sandbox + is_job_staff +} + +allow { + { utils.VIEW, utils.VIEW_ANNOTATIONS, utils.VIEW_DATA }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.VIEW, utils.VIEW_ANNOTATIONS, utils.VIEW_DATA }[input.scope] + input.auth.organization.id == input.resource.organization.id + organizations.has_perm(organizations.WORKER) + is_job_staff +} + +allow { + { utils.UPDATE_STATE, utils.UPDATE_ANNOTATIONS, utils.DELETE_ANNOTATIONS, + utils.IMPORT_ANNOTATIONS }[input.scope] + utils.is_sandbox + utils.has_perm(utils.WORKER) + is_job_staff +} + +allow { + { utils.UPDATE_STATE, utils.UPDATE_ANNOTATIONS, utils.DELETE_ANNOTATIONS, + utils.IMPORT_ANNOTATIONS }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.UPDATE_STATE, utils.UPDATE_ANNOTATIONS, utils.DELETE_ANNOTATIONS, + utils.IMPORT_ANNOTATIONS }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + organizations.has_perm(organizations.WORKER) + is_job_staff +} + +allow { + { utils.UPDATE_STAGE, utils.UPDATE_ASSIGNEE }[input.scope] + utils.is_sandbox + utils.has_perm(utils.WORKER) + is_task_staff +} + +allow { + { utils.UPDATE_STAGE, utils.UPDATE_ASSIGNEE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.UPDATE_STAGE, utils.UPDATE_ASSIGNEE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + organizations.has_perm(organizations.WORKER) + is_task_staff +} diff --git a/cvat/apps/iam/rules/jobs_test.gen.rego b/cvat/apps/iam/rules/jobs_test.gen.rego new file mode 100644 index 00000000..b84f9027 --- /dev/null +++ b/cvat/apps/iam/rules/jobs_test.gen.rego @@ -0,0 +1,12129 @@ +package jobs + +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": 34, "privilege": "admin"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 591}, "organization": {"id": 623}, "project": {"id": 368, "owner": {"id": 34}, "assignee": {"id": 841}}, "task": {"id": 360, "owner": {"id": 918}, "assignee": {"id": 1002}}}} +} + +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": 8, "privilege": "business"}, "organization": null}, "resource": {"id": 319, "assignee": {"id": 539}, "organization": {"id": 617}, "project": {"id": 374, "owner": {"id": 8}, "assignee": {"id": 893}}, "task": {"id": 394, "owner": {"id": 974}, "assignee": {"id": 1085}}}} +} + +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": 78, "privilege": "user"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 552}, "organization": {"id": 609}, "project": {"id": 359, "owner": {"id": 78}, "assignee": {"id": 801}}, "task": {"id": 319, "owner": {"id": 980}, "assignee": {"id": 1019}}}} +} + +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": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 566}, "organization": {"id": 636}, "project": {"id": 393, "owner": {"id": 42}, "assignee": {"id": 891}}, "task": {"id": 386, "owner": {"id": 954}, "assignee": {"id": 1097}}}} +} + +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": 24, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "assignee": {"id": 521}, "organization": {"id": 608}, "project": {"id": 367, "owner": {"id": 24}, "assignee": {"id": 899}}, "task": {"id": 385, "owner": {"id": 909}, "assignee": {"id": 1008}}}} +} + +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": 18, "privilege": "admin"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 526}, "organization": {"id": 670}, "project": {"id": 342, "owner": {"id": 700}, "assignee": {"id": 18}}, "task": {"id": 355, "owner": {"id": 919}, "assignee": {"id": 1061}}}} +} + +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": 77, "privilege": "business"}, "organization": null}, "resource": {"id": 374, "assignee": {"id": 534}, "organization": {"id": 686}, "project": {"id": 338, "owner": {"id": 707}, "assignee": {"id": 77}}, "task": {"id": 372, "owner": {"id": 979}, "assignee": {"id": 1028}}}} +} + +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": 371, "assignee": {"id": 563}, "organization": {"id": 647}, "project": {"id": 363, "owner": {"id": 733}, "assignee": {"id": 72}}, "task": {"id": 362, "owner": {"id": 971}, "assignee": {"id": 1081}}}} +} + +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": 67, "privilege": "worker"}, "organization": null}, "resource": {"id": 363, "assignee": {"id": 586}, "organization": {"id": 617}, "project": {"id": 313, "owner": {"id": 727}, "assignee": {"id": 67}}, "task": {"id": 378, "owner": {"id": 986}, "assignee": {"id": 1037}}}} +} + +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": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 317, "assignee": {"id": 546}, "organization": {"id": 603}, "project": {"id": 392, "owner": {"id": 732}, "assignee": {"id": 22}}, "task": {"id": 368, "owner": {"id": 971}, "assignee": {"id": 1053}}}} +} + +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": 5, "privilege": "admin"}, "organization": null}, "resource": {"id": 358, "assignee": {"id": 510}, "organization": {"id": 681}, "project": {"id": 311, "owner": {"id": 793}, "assignee": {"id": 893}}, "task": {"id": 356, "owner": {"id": 5}, "assignee": {"id": 1012}}}} +} + +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": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 571}, "organization": {"id": 690}, "project": {"id": 356, "owner": {"id": 720}, "assignee": {"id": 887}}, "task": {"id": 317, "owner": {"id": 90}, "assignee": {"id": 1082}}}} +} + +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": 83, "privilege": "user"}, "organization": null}, "resource": {"id": 342, "assignee": {"id": 581}, "organization": {"id": 636}, "project": {"id": 373, "owner": {"id": 765}, "assignee": {"id": 863}}, "task": {"id": 368, "owner": {"id": 83}, "assignee": {"id": 1032}}}} +} + +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": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 559}, "organization": {"id": 676}, "project": {"id": 322, "owner": {"id": 765}, "assignee": {"id": 829}}, "task": {"id": 302, "owner": {"id": 12}, "assignee": {"id": 1098}}}} +} + +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": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 569}, "organization": {"id": 681}, "project": {"id": 386, "owner": {"id": 713}, "assignee": {"id": 805}}, "task": {"id": 391, "owner": {"id": 46}, "assignee": {"id": 1078}}}} +} + +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": 47, "privilege": "admin"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 529}, "organization": {"id": 623}, "project": {"id": 336, "owner": {"id": 765}, "assignee": {"id": 872}}, "task": {"id": 300, "owner": {"id": 965}, "assignee": {"id": 47}}}} +} + +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": 21, "privilege": "business"}, "organization": null}, "resource": {"id": 338, "assignee": {"id": 581}, "organization": {"id": 664}, "project": {"id": 389, "owner": {"id": 782}, "assignee": {"id": 855}}, "task": {"id": 349, "owner": {"id": 942}, "assignee": {"id": 21}}}} +} + +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": 14, "privilege": "user"}, "organization": null}, "resource": {"id": 313, "assignee": {"id": 553}, "organization": {"id": 676}, "project": {"id": 343, "owner": {"id": 738}, "assignee": {"id": 885}}, "task": {"id": 346, "owner": {"id": 981}, "assignee": {"id": 14}}}} +} + +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": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 311, "assignee": {"id": 538}, "organization": {"id": 699}, "project": {"id": 301, "owner": {"id": 712}, "assignee": {"id": 880}}, "task": {"id": 308, "owner": {"id": 947}, "assignee": {"id": 31}}}} +} + +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": 79, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 582}, "organization": {"id": 679}, "project": {"id": 390, "owner": {"id": 761}, "assignee": {"id": 872}}, "task": {"id": 380, "owner": {"id": 910}, "assignee": {"id": 79}}}} +} + +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": 86, "privilege": "admin"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 86}, "organization": {"id": 623}, "project": {"id": 342, "owner": {"id": 763}, "assignee": {"id": 819}}, "task": {"id": 349, "owner": {"id": 960}, "assignee": {"id": 1015}}}} +} + +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": 49, "privilege": "business"}, "organization": null}, "resource": {"id": 335, "assignee": {"id": 49}, "organization": {"id": 632}, "project": {"id": 353, "owner": {"id": 750}, "assignee": {"id": 828}}, "task": {"id": 308, "owner": {"id": 985}, "assignee": {"id": 1072}}}} +} + +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": 75, "privilege": "user"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 75}, "organization": {"id": 655}, "project": {"id": 345, "owner": {"id": 741}, "assignee": {"id": 827}}, "task": {"id": 376, "owner": {"id": 982}, "assignee": {"id": 1070}}}} +} + +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": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 311, "assignee": {"id": 41}, "organization": {"id": 681}, "project": {"id": 382, "owner": {"id": 721}, "assignee": {"id": 823}}, "task": {"id": 373, "owner": {"id": 980}, "assignee": {"id": 1039}}}} +} + +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": 70, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "assignee": {"id": 70}, "organization": {"id": 640}, "project": {"id": 369, "owner": {"id": 781}, "assignee": {"id": 839}}, "task": {"id": 398, "owner": {"id": 972}, "assignee": {"id": 1000}}}} +} + +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": 63, "privilege": "admin"}, "organization": null}, "resource": {"id": 331, "assignee": {"id": 524}, "organization": {"id": 665}, "project": {"id": 397, "owner": {"id": 748}, "assignee": {"id": 886}}, "task": {"id": 390, "owner": {"id": 985}, "assignee": {"id": 1076}}}} +} + +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": 81, "privilege": "business"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 538}, "organization": {"id": 643}, "project": {"id": 371, "owner": {"id": 751}, "assignee": {"id": 877}}, "task": {"id": 375, "owner": {"id": 972}, "assignee": {"id": 1073}}}} +} + +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": 23, "privilege": "user"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 529}, "organization": {"id": 672}, "project": {"id": 375, "owner": {"id": 716}, "assignee": {"id": 887}}, "task": {"id": 335, "owner": {"id": 995}, "assignee": {"id": 1012}}}} +} + +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": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 500}, "organization": {"id": 687}, "project": {"id": 353, "owner": {"id": 766}, "assignee": {"id": 893}}, "task": {"id": 315, "owner": {"id": 968}, "assignee": {"id": 1079}}}} +} + +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": 52, "privilege": "none"}, "organization": null}, "resource": {"id": 374, "assignee": {"id": 579}, "organization": {"id": 642}, "project": {"id": 393, "owner": {"id": 707}, "assignee": {"id": 815}}, "task": {"id": 342, "owner": {"id": 943}, "assignee": {"id": 1019}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 549}, "organization": {"id": 167}, "project": {"id": 372, "owner": {"id": 36}, "assignee": {"id": 807}}, "task": {"id": 373, "owner": {"id": 902}, "assignee": {"id": 1079}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 569}, "organization": {"id": 606}, "project": {"id": 399, "owner": {"id": 12}, "assignee": {"id": 860}}, "task": {"id": 364, "owner": {"id": 913}, "assignee": {"id": 1096}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 510}, "organization": {"id": 132}, "project": {"id": 366, "owner": {"id": 70}, "assignee": {"id": 843}}, "task": {"id": 354, "owner": {"id": 924}, "assignee": {"id": 1008}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 575}, "organization": {"id": 605}, "project": {"id": 304, "owner": {"id": 55}, "assignee": {"id": 850}}, "task": {"id": 334, "owner": {"id": 929}, "assignee": {"id": 1028}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 541}, "organization": {"id": 133}, "project": {"id": 305, "owner": {"id": 34}, "assignee": {"id": 858}}, "task": {"id": 349, "owner": {"id": 993}, "assignee": {"id": 1013}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 508}, "organization": {"id": 669}, "project": {"id": 332, "owner": {"id": 3}, "assignee": {"id": 837}}, "task": {"id": 357, "owner": {"id": 970}, "assignee": {"id": 1011}}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 579}, "organization": {"id": 115}, "project": {"id": 308, "owner": {"id": 99}, "assignee": {"id": 821}}, "task": {"id": 304, "owner": {"id": 946}, "assignee": {"id": 1012}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 592}, "organization": {"id": 661}, "project": {"id": 348, "owner": {"id": 34}, "assignee": {"id": 880}}, "task": {"id": 327, "owner": {"id": 964}, "assignee": {"id": 1014}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 570}, "organization": {"id": 170}, "project": {"id": 398, "owner": {"id": 30}, "assignee": {"id": 856}}, "task": {"id": 319, "owner": {"id": 915}, "assignee": {"id": 1018}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 513}, "organization": {"id": 637}, "project": {"id": 341, "owner": {"id": 38}, "assignee": {"id": 823}}, "task": {"id": 351, "owner": {"id": 969}, "assignee": {"id": 1022}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 571}, "organization": {"id": 160}, "project": {"id": 396, "owner": {"id": 57}, "assignee": {"id": 899}}, "task": {"id": 386, "owner": {"id": 989}, "assignee": {"id": 1022}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 504}, "organization": {"id": 630}, "project": {"id": 380, "owner": {"id": 14}, "assignee": {"id": 879}}, "task": {"id": 393, "owner": {"id": 972}, "assignee": {"id": 1089}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 594}, "organization": {"id": 166}, "project": {"id": 356, "owner": {"id": 33}, "assignee": {"id": 872}}, "task": {"id": 349, "owner": {"id": 917}, "assignee": {"id": 1084}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 560}, "organization": {"id": 637}, "project": {"id": 397, "owner": {"id": 23}, "assignee": {"id": 833}}, "task": {"id": 390, "owner": {"id": 996}, "assignee": {"id": 1038}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 579}, "organization": {"id": 107}, "project": {"id": 366, "owner": {"id": 67}, "assignee": {"id": 818}}, "task": {"id": 392, "owner": {"id": 953}, "assignee": {"id": 1082}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 507}, "organization": {"id": 681}, "project": {"id": 380, "owner": {"id": 95}, "assignee": {"id": 826}}, "task": {"id": 364, "owner": {"id": 921}, "assignee": {"id": 1024}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 510}, "organization": {"id": 144}, "project": {"id": 380, "owner": {"id": 91}, "assignee": {"id": 827}}, "task": {"id": 387, "owner": {"id": 978}, "assignee": {"id": 1093}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 310, "assignee": {"id": 573}, "organization": {"id": 653}, "project": {"id": 340, "owner": {"id": 6}, "assignee": {"id": 833}}, "task": {"id": 360, "owner": {"id": 900}, "assignee": {"id": 1048}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 565}, "organization": {"id": 110}, "project": {"id": 394, "owner": {"id": 42}, "assignee": {"id": 877}}, "task": {"id": 388, "owner": {"id": 921}, "assignee": {"id": 1003}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 513}, "organization": {"id": 635}, "project": {"id": 318, "owner": {"id": 38}, "assignee": {"id": 843}}, "task": {"id": 382, "owner": {"id": 988}, "assignee": {"id": 1001}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 543}, "organization": {"id": 146}, "project": {"id": 388, "owner": {"id": 65}, "assignee": {"id": 808}}, "task": {"id": 348, "owner": {"id": 918}, "assignee": {"id": 1092}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 507}, "organization": {"id": 611}, "project": {"id": 369, "owner": {"id": 19}, "assignee": {"id": 804}}, "task": {"id": 359, "owner": {"id": 959}, "assignee": {"id": 1068}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 521}, "organization": {"id": 171}, "project": {"id": 385, "owner": {"id": 65}, "assignee": {"id": 837}}, "task": {"id": 380, "owner": {"id": 920}, "assignee": {"id": 1062}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 577}, "organization": {"id": 641}, "project": {"id": 343, "owner": {"id": 66}, "assignee": {"id": 818}}, "task": {"id": 352, "owner": {"id": 942}, "assignee": {"id": 1004}}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 549}, "organization": {"id": 111}, "project": {"id": 348, "owner": {"id": 93}, "assignee": {"id": 873}}, "task": {"id": 365, "owner": {"id": 941}, "assignee": {"id": 1090}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 579}, "organization": {"id": 605}, "project": {"id": 350, "owner": {"id": 8}, "assignee": {"id": 876}}, "task": {"id": 368, "owner": {"id": 935}, "assignee": {"id": 1055}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 524}, "organization": {"id": 113}, "project": {"id": 341, "owner": {"id": 91}, "assignee": {"id": 803}}, "task": {"id": 313, "owner": {"id": 958}, "assignee": {"id": 1099}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 501}, "organization": {"id": 647}, "project": {"id": 305, "owner": {"id": 23}, "assignee": {"id": 834}}, "task": {"id": 335, "owner": {"id": 940}, "assignee": {"id": 1086}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 509}, "organization": {"id": 113}, "project": {"id": 381, "owner": {"id": 18}, "assignee": {"id": 809}}, "task": {"id": 368, "owner": {"id": 949}, "assignee": {"id": 1078}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 502}, "organization": {"id": 650}, "project": {"id": 315, "owner": {"id": 16}, "assignee": {"id": 836}}, "task": {"id": 372, "owner": {"id": 947}, "assignee": {"id": 1098}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 520}, "organization": {"id": 138}, "project": {"id": 399, "owner": {"id": 79}, "assignee": {"id": 888}}, "task": {"id": 335, "owner": {"id": 916}, "assignee": {"id": 1063}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 533}, "organization": {"id": 669}, "project": {"id": 302, "owner": {"id": 62}, "assignee": {"id": 898}}, "task": {"id": 395, "owner": {"id": 931}, "assignee": {"id": 1050}}}} +} + +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": 133, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 571}, "organization": {"id": 133}, "project": {"id": 388, "owner": {"id": 41}, "assignee": {"id": 832}}, "task": {"id": 343, "owner": {"id": 922}, "assignee": {"id": 1026}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 538}, "organization": {"id": 608}, "project": {"id": 386, "owner": {"id": 38}, "assignee": {"id": 843}}, "task": {"id": 322, "owner": {"id": 910}, "assignee": {"id": 1020}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 586}, "organization": {"id": 151}, "project": {"id": 333, "owner": {"id": 71}, "assignee": {"id": 893}}, "task": {"id": 332, "owner": {"id": 903}, "assignee": {"id": 1046}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 516}, "organization": {"id": 661}, "project": {"id": 348, "owner": {"id": 57}, "assignee": {"id": 815}}, "task": {"id": 307, "owner": {"id": 902}, "assignee": {"id": 1095}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 506}, "organization": {"id": 153}, "project": {"id": 367, "owner": {"id": 7}, "assignee": {"id": 868}}, "task": {"id": 370, "owner": {"id": 955}, "assignee": {"id": 1038}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 544}, "organization": {"id": 627}, "project": {"id": 312, "owner": {"id": 59}, "assignee": {"id": 866}}, "task": {"id": 382, "owner": {"id": 964}, "assignee": {"id": 1014}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 535}, "organization": {"id": 176}, "project": {"id": 333, "owner": {"id": 34}, "assignee": {"id": 830}}, "task": {"id": 379, "owner": {"id": 904}, "assignee": {"id": 1010}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 511}, "organization": {"id": 619}, "project": {"id": 331, "owner": {"id": 94}, "assignee": {"id": 838}}, "task": {"id": 351, "owner": {"id": 914}, "assignee": {"id": 1080}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 523}, "organization": {"id": 191}, "project": {"id": 330, "owner": {"id": 3}, "assignee": {"id": 898}}, "task": {"id": 393, "owner": {"id": 941}, "assignee": {"id": 1022}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 554}, "organization": {"id": 693}, "project": {"id": 319, "owner": {"id": 73}, "assignee": {"id": 814}}, "task": {"id": 341, "owner": {"id": 911}, "assignee": {"id": 1042}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 575}, "organization": {"id": 182}, "project": {"id": 389, "owner": {"id": 35}, "assignee": {"id": 840}}, "task": {"id": 363, "owner": {"id": 981}, "assignee": {"id": 1044}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 573}, "organization": {"id": 610}, "project": {"id": 312, "owner": {"id": 28}, "assignee": {"id": 870}}, "task": {"id": 389, "owner": {"id": 963}, "assignee": {"id": 1058}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 567}, "organization": {"id": 178}, "project": {"id": 328, "owner": {"id": 52}, "assignee": {"id": 898}}, "task": {"id": 368, "owner": {"id": 966}, "assignee": {"id": 1019}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 592}, "organization": {"id": 650}, "project": {"id": 378, "owner": {"id": 46}, "assignee": {"id": 815}}, "task": {"id": 326, "owner": {"id": 950}, "assignee": {"id": 1006}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 591}, "organization": {"id": 171}, "project": {"id": 357, "owner": {"id": 89}, "assignee": {"id": 873}}, "task": {"id": 310, "owner": {"id": 908}, "assignee": {"id": 1037}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 538}, "organization": {"id": 641}, "project": {"id": 346, "owner": {"id": 68}, "assignee": {"id": 846}}, "task": {"id": 327, "owner": {"id": 981}, "assignee": {"id": 1073}}}} +} + +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": 111, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 530}, "organization": {"id": 111}, "project": {"id": 367, "owner": {"id": 52}, "assignee": {"id": 821}}, "task": {"id": 335, "owner": {"id": 939}, "assignee": {"id": 1046}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 571}, "organization": {"id": 661}, "project": {"id": 311, "owner": {"id": 93}, "assignee": {"id": 874}}, "task": {"id": 301, "owner": {"id": 935}, "assignee": {"id": 1005}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 599}, "organization": {"id": 143}, "project": {"id": 381, "owner": {"id": 763}, "assignee": {"id": 60}}, "task": {"id": 322, "owner": {"id": 938}, "assignee": {"id": 1097}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 583}, "organization": {"id": 660}, "project": {"id": 364, "owner": {"id": 713}, "assignee": {"id": 97}}, "task": {"id": 336, "owner": {"id": 990}, "assignee": {"id": 1057}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 501}, "organization": {"id": 112}, "project": {"id": 349, "owner": {"id": 738}, "assignee": {"id": 45}}, "task": {"id": 390, "owner": {"id": 987}, "assignee": {"id": 1033}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 588}, "organization": {"id": 660}, "project": {"id": 311, "owner": {"id": 708}, "assignee": {"id": 90}}, "task": {"id": 347, "owner": {"id": 959}, "assignee": {"id": 1018}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 527}, "organization": {"id": 168}, "project": {"id": 344, "owner": {"id": 701}, "assignee": {"id": 23}}, "task": {"id": 310, "owner": {"id": 985}, "assignee": {"id": 1006}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 555}, "organization": {"id": 623}, "project": {"id": 397, "owner": {"id": 763}, "assignee": {"id": 60}}, "task": {"id": 333, "owner": {"id": 994}, "assignee": {"id": 1071}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 526}, "organization": {"id": 114}, "project": {"id": 359, "owner": {"id": 734}, "assignee": {"id": 81}}, "task": {"id": 360, "owner": {"id": 932}, "assignee": {"id": 1033}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 525}, "organization": {"id": 613}, "project": {"id": 332, "owner": {"id": 704}, "assignee": {"id": 60}}, "task": {"id": 334, "owner": {"id": 943}, "assignee": {"id": 1061}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 548}, "organization": {"id": 136}, "project": {"id": 376, "owner": {"id": 709}, "assignee": {"id": 88}}, "task": {"id": 312, "owner": {"id": 951}, "assignee": {"id": 1063}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 506}, "organization": {"id": 614}, "project": {"id": 384, "owner": {"id": 725}, "assignee": {"id": 23}}, "task": {"id": 381, "owner": {"id": 947}, "assignee": {"id": 1043}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 569}, "organization": {"id": 179}, "project": {"id": 348, "owner": {"id": 786}, "assignee": {"id": 74}}, "task": {"id": 302, "owner": {"id": 930}, "assignee": {"id": 1019}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 508}, "organization": {"id": 682}, "project": {"id": 307, "owner": {"id": 723}, "assignee": {"id": 81}}, "task": {"id": 364, "owner": {"id": 974}, "assignee": {"id": 1082}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 555}, "organization": {"id": 105}, "project": {"id": 369, "owner": {"id": 735}, "assignee": {"id": 29}}, "task": {"id": 362, "owner": {"id": 961}, "assignee": {"id": 1043}}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 503}, "organization": {"id": 601}, "project": {"id": 321, "owner": {"id": 753}, "assignee": {"id": 17}}, "task": {"id": 346, "owner": {"id": 968}, "assignee": {"id": 1053}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 524}, "organization": {"id": 154}, "project": {"id": 377, "owner": {"id": 720}, "assignee": {"id": 78}}, "task": {"id": 375, "owner": {"id": 959}, "assignee": {"id": 1065}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 527}, "organization": {"id": 682}, "project": {"id": 384, "owner": {"id": 719}, "assignee": {"id": 31}}, "task": {"id": 384, "owner": {"id": 976}, "assignee": {"id": 1068}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 569}, "organization": {"id": 103}, "project": {"id": 319, "owner": {"id": 754}, "assignee": {"id": 73}}, "task": {"id": 356, "owner": {"id": 985}, "assignee": {"id": 1086}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 506}, "organization": {"id": 644}, "project": {"id": 366, "owner": {"id": 796}, "assignee": {"id": 77}}, "task": {"id": 357, "owner": {"id": 924}, "assignee": {"id": 1020}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 559}, "organization": {"id": 146}, "project": {"id": 344, "owner": {"id": 799}, "assignee": {"id": 24}}, "task": {"id": 322, "owner": {"id": 943}, "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": 50, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 588}, "organization": {"id": 637}, "project": {"id": 325, "owner": {"id": 784}, "assignee": {"id": 50}}, "task": {"id": 301, "owner": {"id": 956}, "assignee": {"id": 1018}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 520}, "organization": {"id": 112}, "project": {"id": 339, "owner": {"id": 748}, "assignee": {"id": 21}}, "task": {"id": 348, "owner": {"id": 990}, "assignee": {"id": 1011}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 592}, "organization": {"id": 678}, "project": {"id": 304, "owner": {"id": 765}, "assignee": {"id": 5}}, "task": {"id": 378, "owner": {"id": 947}, "assignee": {"id": 1059}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 569}, "organization": {"id": 134}, "project": {"id": 324, "owner": {"id": 720}, "assignee": {"id": 20}}, "task": {"id": 386, "owner": {"id": 930}, "assignee": {"id": 1099}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 507}, "organization": {"id": 632}, "project": {"id": 334, "owner": {"id": 716}, "assignee": {"id": 73}}, "task": {"id": 399, "owner": {"id": 982}, "assignee": {"id": 1066}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 594}, "organization": {"id": 184}, "project": {"id": 357, "owner": {"id": 750}, "assignee": {"id": 34}}, "task": {"id": 314, "owner": {"id": 991}, "assignee": {"id": 1012}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 532}, "organization": {"id": 687}, "project": {"id": 309, "owner": {"id": 780}, "assignee": {"id": 50}}, "task": {"id": 343, "owner": {"id": 955}, "assignee": {"id": 1064}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 562}, "organization": {"id": 167}, "project": {"id": 318, "owner": {"id": 731}, "assignee": {"id": 43}}, "task": {"id": 333, "owner": {"id": 906}, "assignee": {"id": 1059}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 310, "assignee": {"id": 596}, "organization": {"id": 658}, "project": {"id": 351, "owner": {"id": 757}, "assignee": {"id": 36}}, "task": {"id": 333, "owner": {"id": 991}, "assignee": {"id": 1040}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 561}, "organization": {"id": 159}, "project": {"id": 341, "owner": {"id": 725}, "assignee": {"id": 97}}, "task": {"id": 317, "owner": {"id": 909}, "assignee": {"id": 1063}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 537}, "organization": {"id": 635}, "project": {"id": 333, "owner": {"id": 767}, "assignee": {"id": 37}}, "task": {"id": 306, "owner": {"id": 912}, "assignee": {"id": 1003}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 545}, "organization": {"id": 192}, "project": {"id": 326, "owner": {"id": 764}, "assignee": {"id": 92}}, "task": {"id": 382, "owner": {"id": 922}, "assignee": {"id": 1003}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 579}, "organization": {"id": 656}, "project": {"id": 372, "owner": {"id": 710}, "assignee": {"id": 89}}, "task": {"id": 367, "owner": {"id": 966}, "assignee": {"id": 1006}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 537}, "organization": {"id": 142}, "project": {"id": 319, "owner": {"id": 764}, "assignee": {"id": 95}}, "task": {"id": 348, "owner": {"id": 906}, "assignee": {"id": 1082}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 574}, "organization": {"id": 684}, "project": {"id": 355, "owner": {"id": 714}, "assignee": {"id": 68}}, "task": {"id": 338, "owner": {"id": 998}, "assignee": {"id": 1084}}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 566}, "organization": {"id": 102}, "project": {"id": 363, "owner": {"id": 757}, "assignee": {"id": 14}}, "task": {"id": 366, "owner": {"id": 978}, "assignee": {"id": 1038}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 530}, "organization": {"id": 660}, "project": {"id": 399, "owner": {"id": 702}, "assignee": {"id": 30}}, "task": {"id": 352, "owner": {"id": 961}, "assignee": {"id": 1044}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 557}, "organization": {"id": 145}, "project": {"id": 335, "owner": {"id": 706}, "assignee": {"id": 38}}, "task": {"id": 383, "owner": {"id": 958}, "assignee": {"id": 1008}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 516}, "organization": {"id": 616}, "project": {"id": 394, "owner": {"id": 786}, "assignee": {"id": 81}}, "task": {"id": 395, "owner": {"id": 950}, "assignee": {"id": 1073}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 597}, "organization": {"id": 154}, "project": {"id": 383, "owner": {"id": 705}, "assignee": {"id": 96}}, "task": {"id": 367, "owner": {"id": 967}, "assignee": {"id": 1080}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 510}, "organization": {"id": 638}, "project": {"id": 334, "owner": {"id": 766}, "assignee": {"id": 74}}, "task": {"id": 335, "owner": {"id": 931}, "assignee": {"id": 1078}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 519}, "organization": {"id": 168}, "project": {"id": 384, "owner": {"id": 743}, "assignee": {"id": 7}}, "task": {"id": 331, "owner": {"id": 927}, "assignee": {"id": 1089}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 526}, "organization": {"id": 653}, "project": {"id": 391, "owner": {"id": 734}, "assignee": {"id": 76}}, "task": {"id": 339, "owner": {"id": 918}, "assignee": {"id": 1042}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 562}, "organization": {"id": 183}, "project": {"id": 327, "owner": {"id": 740}, "assignee": {"id": 14}}, "task": {"id": 321, "owner": {"id": 947}, "assignee": {"id": 1060}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 551}, "organization": {"id": 631}, "project": {"id": 355, "owner": {"id": 725}, "assignee": {"id": 75}}, "task": {"id": 348, "owner": {"id": 957}, "assignee": {"id": 1016}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 543}, "organization": {"id": 151}, "project": {"id": 368, "owner": {"id": 776}, "assignee": {"id": 20}}, "task": {"id": 392, "owner": {"id": 905}, "assignee": {"id": 1079}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 563}, "organization": {"id": 691}, "project": {"id": 394, "owner": {"id": 759}, "assignee": {"id": 34}}, "task": {"id": 379, "owner": {"id": 968}, "assignee": {"id": 1085}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 549}, "organization": {"id": 187}, "project": {"id": 327, "owner": {"id": 749}, "assignee": {"id": 87}}, "task": {"id": 386, "owner": {"id": 963}, "assignee": {"id": 1021}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 535}, "organization": {"id": 601}, "project": {"id": 331, "owner": {"id": 735}, "assignee": {"id": 83}}, "task": {"id": 322, "owner": {"id": 902}, "assignee": {"id": 1083}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 544}, "organization": {"id": 168}, "project": {"id": 383, "owner": {"id": 743}, "assignee": {"id": 32}}, "task": {"id": 326, "owner": {"id": 954}, "assignee": {"id": 1004}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 513}, "organization": {"id": 643}, "project": {"id": 303, "owner": {"id": 725}, "assignee": {"id": 30}}, "task": {"id": 369, "owner": {"id": 903}, "assignee": {"id": 1093}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 537}, "organization": {"id": 171}, "project": {"id": 396, "owner": {"id": 793}, "assignee": {"id": 821}}, "task": {"id": 328, "owner": {"id": 47}, "assignee": {"id": 1027}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 536}, "organization": {"id": 626}, "project": {"id": 389, "owner": {"id": 773}, "assignee": {"id": 853}}, "task": {"id": 343, "owner": {"id": 34}, "assignee": {"id": 1084}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 570}, "organization": {"id": 113}, "project": {"id": 330, "owner": {"id": 790}, "assignee": {"id": 816}}, "task": {"id": 361, "owner": {"id": 47}, "assignee": {"id": 1017}}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 548}, "organization": {"id": 621}, "project": {"id": 336, "owner": {"id": 723}, "assignee": {"id": 850}}, "task": {"id": 399, "owner": {"id": 73}, "assignee": {"id": 1069}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 581}, "organization": {"id": 165}, "project": {"id": 354, "owner": {"id": 788}, "assignee": {"id": 807}}, "task": {"id": 327, "owner": {"id": 1}, "assignee": {"id": 1089}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 547}, "organization": {"id": 691}, "project": {"id": 335, "owner": {"id": 746}, "assignee": {"id": 845}}, "task": {"id": 363, "owner": {"id": 23}, "assignee": {"id": 1087}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 501}, "organization": {"id": 180}, "project": {"id": 301, "owner": {"id": 736}, "assignee": {"id": 857}}, "task": {"id": 386, "owner": {"id": 78}, "assignee": {"id": 1007}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 522}, "organization": {"id": 637}, "project": {"id": 373, "owner": {"id": 745}, "assignee": {"id": 815}}, "task": {"id": 346, "owner": {"id": 44}, "assignee": {"id": 1052}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 532}, "organization": {"id": 117}, "project": {"id": 310, "owner": {"id": 770}, "assignee": {"id": 823}}, "task": {"id": 301, "owner": {"id": 74}, "assignee": {"id": 1097}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 514}, "organization": {"id": 685}, "project": {"id": 399, "owner": {"id": 710}, "assignee": {"id": 806}}, "task": {"id": 381, "owner": {"id": 70}, "assignee": {"id": 1012}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 538}, "organization": {"id": 100}, "project": {"id": 310, "owner": {"id": 725}, "assignee": {"id": 848}}, "task": {"id": 335, "owner": {"id": 1}, "assignee": {"id": 1026}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 567}, "organization": {"id": 663}, "project": {"id": 386, "owner": {"id": 752}, "assignee": {"id": 899}}, "task": {"id": 376, "owner": {"id": 90}, "assignee": {"id": 1083}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 533}, "organization": {"id": 177}, "project": {"id": 366, "owner": {"id": 799}, "assignee": {"id": 847}}, "task": {"id": 391, "owner": {"id": 11}, "assignee": {"id": 1036}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 552}, "organization": {"id": 649}, "project": {"id": 374, "owner": {"id": 710}, "assignee": {"id": 853}}, "task": {"id": 326, "owner": {"id": 72}, "assignee": {"id": 1025}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 581}, "organization": {"id": 171}, "project": {"id": 340, "owner": {"id": 700}, "assignee": {"id": 824}}, "task": {"id": 325, "owner": {"id": 7}, "assignee": {"id": 1081}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 501}, "organization": {"id": 633}, "project": {"id": 326, "owner": {"id": 708}, "assignee": {"id": 892}}, "task": {"id": 338, "owner": {"id": 38}, "assignee": {"id": 1060}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 507}, "organization": {"id": 179}, "project": {"id": 358, "owner": {"id": 704}, "assignee": {"id": 863}}, "task": {"id": 397, "owner": {"id": 77}, "assignee": {"id": 1092}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 505}, "organization": {"id": 613}, "project": {"id": 377, "owner": {"id": 722}, "assignee": {"id": 847}}, "task": {"id": 362, "owner": {"id": 98}, "assignee": {"id": 1033}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 553}, "organization": {"id": 100}, "project": {"id": 354, "owner": {"id": 745}, "assignee": {"id": 851}}, "task": {"id": 325, "owner": {"id": 64}, "assignee": {"id": 1027}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 518}, "organization": {"id": 671}, "project": {"id": 325, "owner": {"id": 704}, "assignee": {"id": 890}}, "task": {"id": 345, "owner": {"id": 51}, "assignee": {"id": 1059}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 594}, "organization": {"id": 158}, "project": {"id": 364, "owner": {"id": 747}, "assignee": {"id": 820}}, "task": {"id": 333, "owner": {"id": 34}, "assignee": {"id": 1028}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 596}, "organization": {"id": 671}, "project": {"id": 330, "owner": {"id": 708}, "assignee": {"id": 843}}, "task": {"id": 356, "owner": {"id": 2}, "assignee": {"id": 1074}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 558}, "organization": {"id": 102}, "project": {"id": 363, "owner": {"id": 790}, "assignee": {"id": 881}}, "task": {"id": 370, "owner": {"id": 11}, "assignee": {"id": 1010}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 505}, "organization": {"id": 646}, "project": {"id": 353, "owner": {"id": 709}, "assignee": {"id": 841}}, "task": {"id": 352, "owner": {"id": 75}, "assignee": {"id": 1012}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 520}, "organization": {"id": 176}, "project": {"id": 307, "owner": {"id": 701}, "assignee": {"id": 863}}, "task": {"id": 368, "owner": {"id": 73}, "assignee": {"id": 1068}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 551}, "organization": {"id": 603}, "project": {"id": 396, "owner": {"id": 704}, "assignee": {"id": 897}}, "task": {"id": 357, "owner": {"id": 46}, "assignee": {"id": 1056}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 554}, "organization": {"id": 149}, "project": {"id": 319, "owner": {"id": 778}, "assignee": {"id": 857}}, "task": {"id": 357, "owner": {"id": 82}, "assignee": {"id": 1083}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 597}, "organization": {"id": 644}, "project": {"id": 353, "owner": {"id": 756}, "assignee": {"id": 848}}, "task": {"id": 387, "owner": {"id": 74}, "assignee": {"id": 1054}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 529}, "organization": {"id": 106}, "project": {"id": 314, "owner": {"id": 724}, "assignee": {"id": 827}}, "task": {"id": 337, "owner": {"id": 36}, "assignee": {"id": 1018}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 585}, "organization": {"id": 625}, "project": {"id": 325, "owner": {"id": 745}, "assignee": {"id": 850}}, "task": {"id": 313, "owner": {"id": 61}, "assignee": {"id": 1009}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 598}, "organization": {"id": 173}, "project": {"id": 318, "owner": {"id": 714}, "assignee": {"id": 845}}, "task": {"id": 389, "owner": {"id": 31}, "assignee": {"id": 1091}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 520}, "organization": {"id": 603}, "project": {"id": 379, "owner": {"id": 761}, "assignee": {"id": 880}}, "task": {"id": 319, "owner": {"id": 25}, "assignee": {"id": 1029}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 551}, "organization": {"id": 139}, "project": {"id": 312, "owner": {"id": 762}, "assignee": {"id": 857}}, "task": {"id": 391, "owner": {"id": 40}, "assignee": {"id": 1057}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 516}, "organization": {"id": 627}, "project": {"id": 353, "owner": {"id": 710}, "assignee": {"id": 883}}, "task": {"id": 365, "owner": {"id": 65}, "assignee": {"id": 1029}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 583}, "organization": {"id": 152}, "project": {"id": 314, "owner": {"id": 701}, "assignee": {"id": 888}}, "task": {"id": 390, "owner": {"id": 85}, "assignee": {"id": 1021}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 594}, "organization": {"id": 600}, "project": {"id": 339, "owner": {"id": 761}, "assignee": {"id": 898}}, "task": {"id": 346, "owner": {"id": 72}, "assignee": {"id": 1082}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 599}, "organization": {"id": 101}, "project": {"id": 336, "owner": {"id": 756}, "assignee": {"id": 854}}, "task": {"id": 354, "owner": {"id": 92}, "assignee": {"id": 1039}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 593}, "organization": {"id": 636}, "project": {"id": 370, "owner": {"id": 761}, "assignee": {"id": 818}}, "task": {"id": 344, "owner": {"id": 4}, "assignee": {"id": 1055}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 576}, "organization": {"id": 164}, "project": {"id": 345, "owner": {"id": 758}, "assignee": {"id": 880}}, "task": {"id": 380, "owner": {"id": 19}, "assignee": {"id": 1031}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 544}, "organization": {"id": 610}, "project": {"id": 368, "owner": {"id": 775}, "assignee": {"id": 802}}, "task": {"id": 304, "owner": {"id": 57}, "assignee": {"id": 1013}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 565}, "organization": {"id": 171}, "project": {"id": 320, "owner": {"id": 790}, "assignee": {"id": 811}}, "task": {"id": 314, "owner": {"id": 42}, "assignee": {"id": 1033}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 539}, "organization": {"id": 675}, "project": {"id": 384, "owner": {"id": 723}, "assignee": {"id": 891}}, "task": {"id": 332, "owner": {"id": 17}, "assignee": {"id": 1060}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 589}, "organization": {"id": 146}, "project": {"id": 302, "owner": {"id": 763}, "assignee": {"id": 845}}, "task": {"id": 370, "owner": {"id": 87}, "assignee": {"id": 1074}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 573}, "organization": {"id": 649}, "project": {"id": 348, "owner": {"id": 720}, "assignee": {"id": 841}}, "task": {"id": 330, "owner": {"id": 37}, "assignee": {"id": 1015}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 530}, "organization": {"id": 104}, "project": {"id": 342, "owner": {"id": 744}, "assignee": {"id": 814}}, "task": {"id": 307, "owner": {"id": 87}, "assignee": {"id": 1078}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 529}, "organization": {"id": 638}, "project": {"id": 314, "owner": {"id": 768}, "assignee": {"id": 875}}, "task": {"id": 374, "owner": {"id": 6}, "assignee": {"id": 1031}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 558}, "organization": {"id": 161}, "project": {"id": 330, "owner": {"id": 774}, "assignee": {"id": 817}}, "task": {"id": 356, "owner": {"id": 22}, "assignee": {"id": 1003}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 588}, "organization": {"id": 698}, "project": {"id": 364, "owner": {"id": 747}, "assignee": {"id": 864}}, "task": {"id": 389, "owner": {"id": 1}, "assignee": {"id": 1024}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 560}, "organization": {"id": 152}, "project": {"id": 327, "owner": {"id": 754}, "assignee": {"id": 806}}, "task": {"id": 306, "owner": {"id": 24}, "assignee": {"id": 1059}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 599}, "organization": {"id": 673}, "project": {"id": 388, "owner": {"id": 771}, "assignee": {"id": 891}}, "task": {"id": 328, "owner": {"id": 82}, "assignee": {"id": 1010}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 519}, "organization": {"id": 155}, "project": {"id": 360, "owner": {"id": 771}, "assignee": {"id": 864}}, "task": {"id": 396, "owner": {"id": 965}, "assignee": {"id": 1}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 513}, "organization": {"id": 641}, "project": {"id": 375, "owner": {"id": 789}, "assignee": {"id": 858}}, "task": {"id": 343, "owner": {"id": 923}, "assignee": {"id": 27}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 595}, "organization": {"id": 189}, "project": {"id": 327, "owner": {"id": 735}, "assignee": {"id": 819}}, "task": {"id": 353, "owner": {"id": 923}, "assignee": {"id": 61}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 598}, "organization": {"id": 688}, "project": {"id": 360, "owner": {"id": 750}, "assignee": {"id": 874}}, "task": {"id": 388, "owner": {"id": 956}, "assignee": {"id": 64}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 559}, "organization": {"id": 174}, "project": {"id": 397, "owner": {"id": 753}, "assignee": {"id": 844}}, "task": {"id": 353, "owner": {"id": 933}, "assignee": {"id": 46}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 555}, "organization": {"id": 603}, "project": {"id": 301, "owner": {"id": 702}, "assignee": {"id": 870}}, "task": {"id": 319, "owner": {"id": 969}, "assignee": {"id": 48}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 565}, "organization": {"id": 122}, "project": {"id": 333, "owner": {"id": 731}, "assignee": {"id": 873}}, "task": {"id": 396, "owner": {"id": 936}, "assignee": {"id": 27}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 539}, "organization": {"id": 682}, "project": {"id": 309, "owner": {"id": 777}, "assignee": {"id": 879}}, "task": {"id": 329, "owner": {"id": 919}, "assignee": {"id": 86}}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 501}, "organization": {"id": 169}, "project": {"id": 394, "owner": {"id": 777}, "assignee": {"id": 813}}, "task": {"id": 381, "owner": {"id": 969}, "assignee": {"id": 16}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 539}, "organization": {"id": 676}, "project": {"id": 380, "owner": {"id": 781}, "assignee": {"id": 866}}, "task": {"id": 341, "owner": {"id": 954}, "assignee": {"id": 25}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 511}, "organization": {"id": 188}, "project": {"id": 312, "owner": {"id": 741}, "assignee": {"id": 843}}, "task": {"id": 326, "owner": {"id": 904}, "assignee": {"id": 34}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 581}, "organization": {"id": 630}, "project": {"id": 302, "owner": {"id": 785}, "assignee": {"id": 800}}, "task": {"id": 358, "owner": {"id": 933}, "assignee": {"id": 60}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 571}, "organization": {"id": 130}, "project": {"id": 395, "owner": {"id": 771}, "assignee": {"id": 829}}, "task": {"id": 328, "owner": {"id": 910}, "assignee": {"id": 41}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 545}, "organization": {"id": 628}, "project": {"id": 391, "owner": {"id": 723}, "assignee": {"id": 855}}, "task": {"id": 312, "owner": {"id": 940}, "assignee": {"id": 9}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 501}, "organization": {"id": 164}, "project": {"id": 367, "owner": {"id": 753}, "assignee": {"id": 878}}, "task": {"id": 347, "owner": {"id": 994}, "assignee": {"id": 53}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 545}, "organization": {"id": 638}, "project": {"id": 393, "owner": {"id": 778}, "assignee": {"id": 840}}, "task": {"id": 341, "owner": {"id": 953}, "assignee": {"id": 63}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 519}, "organization": {"id": 151}, "project": {"id": 399, "owner": {"id": 774}, "assignee": {"id": 826}}, "task": {"id": 330, "owner": {"id": 926}, "assignee": {"id": 81}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 549}, "organization": {"id": 621}, "project": {"id": 310, "owner": {"id": 722}, "assignee": {"id": 810}}, "task": {"id": 368, "owner": {"id": 931}, "assignee": {"id": 68}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 582}, "organization": {"id": 192}, "project": {"id": 362, "owner": {"id": 794}, "assignee": {"id": 874}}, "task": {"id": 334, "owner": {"id": 988}, "assignee": {"id": 83}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 522}, "organization": {"id": 669}, "project": {"id": 357, "owner": {"id": 720}, "assignee": {"id": 859}}, "task": {"id": 312, "owner": {"id": 983}, "assignee": {"id": 50}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 559}, "organization": {"id": 112}, "project": {"id": 340, "owner": {"id": 763}, "assignee": {"id": 899}}, "task": {"id": 365, "owner": {"id": 914}, "assignee": {"id": 7}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 598}, "organization": {"id": 686}, "project": {"id": 392, "owner": {"id": 791}, "assignee": {"id": 845}}, "task": {"id": 360, "owner": {"id": 943}, "assignee": {"id": 64}}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 537}, "organization": {"id": 149}, "project": {"id": 398, "owner": {"id": 796}, "assignee": {"id": 852}}, "task": {"id": 337, "owner": {"id": 989}, "assignee": {"id": 93}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 598}, "organization": {"id": 658}, "project": {"id": 357, "owner": {"id": 719}, "assignee": {"id": 854}}, "task": {"id": 347, "owner": {"id": 923}, "assignee": {"id": 55}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 519}, "organization": {"id": 174}, "project": {"id": 313, "owner": {"id": 731}, "assignee": {"id": 839}}, "task": {"id": 347, "owner": {"id": 963}, "assignee": {"id": 81}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 534}, "organization": {"id": 656}, "project": {"id": 382, "owner": {"id": 734}, "assignee": {"id": 894}}, "task": {"id": 302, "owner": {"id": 919}, "assignee": {"id": 85}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 526}, "organization": {"id": 133}, "project": {"id": 375, "owner": {"id": 724}, "assignee": {"id": 845}}, "task": {"id": 309, "owner": {"id": 941}, "assignee": {"id": 4}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 512}, "organization": {"id": 672}, "project": {"id": 335, "owner": {"id": 702}, "assignee": {"id": 826}}, "task": {"id": 340, "owner": {"id": 900}, "assignee": {"id": 3}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 506}, "organization": {"id": 127}, "project": {"id": 338, "owner": {"id": 709}, "assignee": {"id": 850}}, "task": {"id": 386, "owner": {"id": 976}, "assignee": {"id": 28}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 551}, "organization": {"id": 682}, "project": {"id": 356, "owner": {"id": 754}, "assignee": {"id": 843}}, "task": {"id": 310, "owner": {"id": 962}, "assignee": {"id": 44}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 509}, "organization": {"id": 103}, "project": {"id": 321, "owner": {"id": 760}, "assignee": {"id": 828}}, "task": {"id": 380, "owner": {"id": 996}, "assignee": {"id": 94}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 583}, "organization": {"id": 660}, "project": {"id": 307, "owner": {"id": 739}, "assignee": {"id": 859}}, "task": {"id": 326, "owner": {"id": 956}, "assignee": {"id": 75}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 555}, "organization": {"id": 184}, "project": {"id": 329, "owner": {"id": 746}, "assignee": {"id": 859}}, "task": {"id": 388, "owner": {"id": 999}, "assignee": {"id": 45}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 585}, "organization": {"id": 645}, "project": {"id": 390, "owner": {"id": 702}, "assignee": {"id": 859}}, "task": {"id": 304, "owner": {"id": 981}, "assignee": {"id": 19}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 576}, "organization": {"id": 110}, "project": {"id": 373, "owner": {"id": 799}, "assignee": {"id": 862}}, "task": {"id": 399, "owner": {"id": 904}, "assignee": {"id": 61}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 523}, "organization": {"id": 667}, "project": {"id": 374, "owner": {"id": 746}, "assignee": {"id": 880}}, "task": {"id": 352, "owner": {"id": 901}, "assignee": {"id": 82}}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 555}, "organization": {"id": 105}, "project": {"id": 380, "owner": {"id": 775}, "assignee": {"id": 803}}, "task": {"id": 395, "owner": {"id": 966}, "assignee": {"id": 12}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 509}, "organization": {"id": 675}, "project": {"id": 390, "owner": {"id": 725}, "assignee": {"id": 842}}, "task": {"id": 318, "owner": {"id": 906}, "assignee": {"id": 35}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 538}, "organization": {"id": 174}, "project": {"id": 368, "owner": {"id": 726}, "assignee": {"id": 858}}, "task": {"id": 372, "owner": {"id": 969}, "assignee": {"id": 42}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 540}, "organization": {"id": 612}, "project": {"id": 371, "owner": {"id": 709}, "assignee": {"id": 801}}, "task": {"id": 360, "owner": {"id": 928}, "assignee": {"id": 35}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 502}, "organization": {"id": 181}, "project": {"id": 351, "owner": {"id": 709}, "assignee": {"id": 844}}, "task": {"id": 381, "owner": {"id": 974}, "assignee": {"id": 54}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 562}, "organization": {"id": 615}, "project": {"id": 353, "owner": {"id": 762}, "assignee": {"id": 879}}, "task": {"id": 348, "owner": {"id": 958}, "assignee": {"id": 57}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 558}, "organization": {"id": 179}, "project": {"id": 309, "owner": {"id": 767}, "assignee": {"id": 850}}, "task": {"id": 351, "owner": {"id": 901}, "assignee": {"id": 68}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 569}, "organization": {"id": 678}, "project": {"id": 301, "owner": {"id": 727}, "assignee": {"id": 891}}, "task": {"id": 334, "owner": {"id": 912}, "assignee": {"id": 85}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 593}, "organization": {"id": 152}, "project": {"id": 337, "owner": {"id": 774}, "assignee": {"id": 876}}, "task": {"id": 346, "owner": {"id": 928}, "assignee": {"id": 29}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 521}, "organization": {"id": 651}, "project": {"id": 304, "owner": {"id": 761}, "assignee": {"id": 802}}, "task": {"id": 380, "owner": {"id": 993}, "assignee": {"id": 70}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 575}, "organization": {"id": 191}, "project": {"id": 338, "owner": {"id": 717}, "assignee": {"id": 856}}, "task": {"id": 397, "owner": {"id": 960}, "assignee": {"id": 51}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 523}, "organization": {"id": 635}, "project": {"id": 325, "owner": {"id": 741}, "assignee": {"id": 840}}, "task": {"id": 309, "owner": {"id": 998}, "assignee": {"id": 5}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 576}, "organization": {"id": 131}, "project": {"id": 348, "owner": {"id": 761}, "assignee": {"id": 888}}, "task": {"id": 391, "owner": {"id": 987}, "assignee": {"id": 90}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 529}, "organization": {"id": 691}, "project": {"id": 390, "owner": {"id": 786}, "assignee": {"id": 818}}, "task": {"id": 395, "owner": {"id": 923}, "assignee": {"id": 18}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 92}, "organization": {"id": 138}, "project": {"id": 337, "owner": {"id": 784}, "assignee": {"id": 834}}, "task": {"id": 365, "owner": {"id": 939}, "assignee": {"id": 1040}}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 29}, "organization": {"id": 698}, "project": {"id": 331, "owner": {"id": 713}, "assignee": {"id": 808}}, "task": {"id": 373, "owner": {"id": 990}, "assignee": {"id": 1014}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 42}, "organization": {"id": 132}, "project": {"id": 318, "owner": {"id": 754}, "assignee": {"id": 862}}, "task": {"id": 379, "owner": {"id": 974}, "assignee": {"id": 1032}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 92}, "organization": {"id": 695}, "project": {"id": 339, "owner": {"id": 743}, "assignee": {"id": 845}}, "task": {"id": 369, "owner": {"id": 916}, "assignee": {"id": 1021}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 47}, "organization": {"id": 107}, "project": {"id": 376, "owner": {"id": 773}, "assignee": {"id": 895}}, "task": {"id": 327, "owner": {"id": 981}, "assignee": {"id": 1081}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 39}, "organization": {"id": 685}, "project": {"id": 385, "owner": {"id": 724}, "assignee": {"id": 815}}, "task": {"id": 375, "owner": {"id": 975}, "assignee": {"id": 1076}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 84}, "organization": {"id": 145}, "project": {"id": 318, "owner": {"id": 763}, "assignee": {"id": 830}}, "task": {"id": 323, "owner": {"id": 947}, "assignee": {"id": 1044}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 70}, "organization": {"id": 631}, "project": {"id": 397, "owner": {"id": 711}, "assignee": {"id": 894}}, "task": {"id": 366, "owner": {"id": 949}, "assignee": {"id": 1006}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 64}, "organization": {"id": 196}, "project": {"id": 399, "owner": {"id": 768}, "assignee": {"id": 811}}, "task": {"id": 330, "owner": {"id": 985}, "assignee": {"id": 1013}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 3}, "organization": {"id": 641}, "project": {"id": 303, "owner": {"id": 750}, "assignee": {"id": 816}}, "task": {"id": 342, "owner": {"id": 936}, "assignee": {"id": 1023}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 76}, "organization": {"id": 155}, "project": {"id": 329, "owner": {"id": 750}, "assignee": {"id": 806}}, "task": {"id": 384, "owner": {"id": 910}, "assignee": {"id": 1007}}}} +} + +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": 194, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 19}, "organization": {"id": 642}, "project": {"id": 312, "owner": {"id": 700}, "assignee": {"id": 885}}, "task": {"id": 301, "owner": {"id": 909}, "assignee": {"id": 1053}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 35}, "organization": {"id": 164}, "project": {"id": 337, "owner": {"id": 758}, "assignee": {"id": 893}}, "task": {"id": 381, "owner": {"id": 919}, "assignee": {"id": 1092}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 74}, "organization": {"id": 637}, "project": {"id": 325, "owner": {"id": 768}, "assignee": {"id": 804}}, "task": {"id": 316, "owner": {"id": 984}, "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": 75, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 75}, "organization": {"id": 156}, "project": {"id": 313, "owner": {"id": 729}, "assignee": {"id": 895}}, "task": {"id": 348, "owner": {"id": 907}, "assignee": {"id": 1089}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 38}, "organization": {"id": 608}, "project": {"id": 345, "owner": {"id": 739}, "assignee": {"id": 874}}, "task": {"id": 383, "owner": {"id": 994}, "assignee": {"id": 1073}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 308, "assignee": {"id": 26}, "organization": {"id": 186}, "project": {"id": 381, "owner": {"id": 733}, "assignee": {"id": 896}}, "task": {"id": 372, "owner": {"id": 921}, "assignee": {"id": 1056}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 78}, "organization": {"id": 696}, "project": {"id": 391, "owner": {"id": 702}, "assignee": {"id": 894}}, "task": {"id": 341, "owner": {"id": 948}, "assignee": {"id": 1077}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 53}, "organization": {"id": 104}, "project": {"id": 346, "owner": {"id": 757}, "assignee": {"id": 836}}, "task": {"id": 383, "owner": {"id": 934}, "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": 24, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 24}, "organization": {"id": 606}, "project": {"id": 300, "owner": {"id": 733}, "assignee": {"id": 886}}, "task": {"id": 394, "owner": {"id": 990}, "assignee": {"id": 1081}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 314, "assignee": {"id": 18}, "organization": {"id": 112}, "project": {"id": 319, "owner": {"id": 743}, "assignee": {"id": 811}}, "task": {"id": 334, "owner": {"id": 991}, "assignee": {"id": 1093}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 14}, "organization": {"id": 616}, "project": {"id": 356, "owner": {"id": 795}, "assignee": {"id": 885}}, "task": {"id": 345, "owner": {"id": 916}, "assignee": {"id": 1059}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 30}, "organization": {"id": 102}, "project": {"id": 370, "owner": {"id": 773}, "assignee": {"id": 864}}, "task": {"id": 393, "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": 16, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 16}, "organization": {"id": 680}, "project": {"id": 333, "owner": {"id": 782}, "assignee": {"id": 809}}, "task": {"id": 327, "owner": {"id": 909}, "assignee": {"id": 1063}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 61}, "organization": {"id": 147}, "project": {"id": 369, "owner": {"id": 734}, "assignee": {"id": 815}}, "task": {"id": 309, "owner": {"id": 935}, "assignee": {"id": 1034}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 85}, "organization": {"id": 652}, "project": {"id": 302, "owner": {"id": 762}, "assignee": {"id": 805}}, "task": {"id": 357, "owner": {"id": 919}, "assignee": {"id": 1013}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 0}, "organization": {"id": 153}, "project": {"id": 347, "owner": {"id": 720}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 942}, "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": 10, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 10}, "organization": {"id": 663}, "project": {"id": 386, "owner": {"id": 714}, "assignee": {"id": 851}}, "task": {"id": 398, "owner": {"id": 966}, "assignee": {"id": 1065}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 26}, "organization": {"id": 142}, "project": {"id": 383, "owner": {"id": 731}, "assignee": {"id": 821}}, "task": {"id": 329, "owner": {"id": 960}, "assignee": {"id": 1016}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 69}, "organization": {"id": 627}, "project": {"id": 383, "owner": {"id": 712}, "assignee": {"id": 809}}, "task": {"id": 332, "owner": {"id": 969}, "assignee": {"id": 1026}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 77}, "organization": {"id": 108}, "project": {"id": 345, "owner": {"id": 768}, "assignee": {"id": 894}}, "task": {"id": 340, "owner": {"id": 972}, "assignee": {"id": 1071}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 13}, "organization": {"id": 606}, "project": {"id": 382, "owner": {"id": 789}, "assignee": {"id": 853}}, "task": {"id": 345, "owner": {"id": 942}, "assignee": {"id": 1018}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 73}, "organization": {"id": 104}, "project": {"id": 388, "owner": {"id": 721}, "assignee": {"id": 827}}, "task": {"id": 343, "owner": {"id": 982}, "assignee": {"id": 1080}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 86}, "organization": {"id": 623}, "project": {"id": 378, "owner": {"id": 745}, "assignee": {"id": 819}}, "task": {"id": 315, "owner": {"id": 928}, "assignee": {"id": 1049}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 7}, "organization": {"id": 194}, "project": {"id": 300, "owner": {"id": 752}, "assignee": {"id": 891}}, "task": {"id": 327, "owner": {"id": 916}, "assignee": {"id": 1027}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 7}, "organization": {"id": 617}, "project": {"id": 398, "owner": {"id": 723}, "assignee": {"id": 853}}, "task": {"id": 300, "owner": {"id": 932}, "assignee": {"id": 1023}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 97}, "organization": {"id": 167}, "project": {"id": 397, "owner": {"id": 774}, "assignee": {"id": 828}}, "task": {"id": 337, "owner": {"id": 938}, "assignee": {"id": 1097}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 19}, "organization": {"id": 647}, "project": {"id": 387, "owner": {"id": 772}, "assignee": {"id": 868}}, "task": {"id": 310, "owner": {"id": 901}, "assignee": {"id": 1047}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 1}, "organization": {"id": 194}, "project": {"id": 334, "owner": {"id": 792}, "assignee": {"id": 814}}, "task": {"id": 343, "owner": {"id": 929}, "assignee": {"id": 1033}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 62}, "organization": {"id": 696}, "project": {"id": 332, "owner": {"id": 763}, "assignee": {"id": 860}}, "task": {"id": 343, "owner": {"id": 951}, "assignee": {"id": 1086}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 26}, "organization": {"id": 118}, "project": {"id": 339, "owner": {"id": 720}, "assignee": {"id": 842}}, "task": {"id": 363, "owner": {"id": 989}, "assignee": {"id": 1058}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 64}, "organization": {"id": 648}, "project": {"id": 380, "owner": {"id": 706}, "assignee": {"id": 859}}, "task": {"id": 397, "owner": {"id": 963}, "assignee": {"id": 1095}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 32}, "organization": {"id": 141}, "project": {"id": 393, "owner": {"id": 765}, "assignee": {"id": 831}}, "task": {"id": 306, "owner": {"id": 971}, "assignee": {"id": 1045}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 7}, "organization": {"id": 669}, "project": {"id": 358, "owner": {"id": 796}, "assignee": {"id": 837}}, "task": {"id": 328, "owner": {"id": 903}, "assignee": {"id": 1082}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 50}, "organization": {"id": 190}, "project": {"id": 346, "owner": {"id": 790}, "assignee": {"id": 865}}, "task": {"id": 326, "owner": {"id": 989}, "assignee": {"id": 1091}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 7}, "organization": {"id": 680}, "project": {"id": 368, "owner": {"id": 780}, "assignee": {"id": 841}}, "task": {"id": 324, "owner": {"id": 976}, "assignee": {"id": 1010}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 36}, "organization": {"id": 150}, "project": {"id": 336, "owner": {"id": 780}, "assignee": {"id": 819}}, "task": {"id": 328, "owner": {"id": 959}, "assignee": {"id": 1036}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 63}, "organization": {"id": 646}, "project": {"id": 324, "owner": {"id": 761}, "assignee": {"id": 893}}, "task": {"id": 358, "owner": {"id": 968}, "assignee": {"id": 1083}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 28}, "organization": {"id": 150}, "project": {"id": 306, "owner": {"id": 711}, "assignee": {"id": 895}}, "task": {"id": 371, "owner": {"id": 908}, "assignee": {"id": 1057}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 42}, "organization": {"id": 673}, "project": {"id": 337, "owner": {"id": 720}, "assignee": {"id": 878}}, "task": {"id": 332, "owner": {"id": 954}, "assignee": {"id": 1085}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 588}, "organization": {"id": 161}, "project": {"id": 384, "owner": {"id": 724}, "assignee": {"id": 823}}, "task": {"id": 358, "owner": {"id": 951}, "assignee": {"id": 1083}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 582}, "organization": {"id": 609}, "project": {"id": 389, "owner": {"id": 702}, "assignee": {"id": 803}}, "task": {"id": 392, "owner": {"id": 939}, "assignee": {"id": 1021}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 537}, "organization": {"id": 171}, "project": {"id": 302, "owner": {"id": 736}, "assignee": {"id": 818}}, "task": {"id": 304, "owner": {"id": 930}, "assignee": {"id": 1083}}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 549}, "organization": {"id": 628}, "project": {"id": 359, "owner": {"id": 780}, "assignee": {"id": 873}}, "task": {"id": 397, "owner": {"id": 927}, "assignee": {"id": 1007}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 527}, "organization": {"id": 168}, "project": {"id": 393, "owner": {"id": 779}, "assignee": {"id": 812}}, "task": {"id": 375, "owner": {"id": 948}, "assignee": {"id": 1033}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 566}, "organization": {"id": 623}, "project": {"id": 325, "owner": {"id": 769}, "assignee": {"id": 894}}, "task": {"id": 381, "owner": {"id": 940}, "assignee": {"id": 1067}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 527}, "organization": {"id": 190}, "project": {"id": 339, "owner": {"id": 728}, "assignee": {"id": 843}}, "task": {"id": 329, "owner": {"id": 916}, "assignee": {"id": 1092}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 558}, "organization": {"id": 688}, "project": {"id": 398, "owner": {"id": 764}, "assignee": {"id": 804}}, "task": {"id": 353, "owner": {"id": 934}, "assignee": {"id": 1084}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 554}, "organization": {"id": 186}, "project": {"id": 322, "owner": {"id": 770}, "assignee": {"id": 850}}, "task": {"id": 335, "owner": {"id": 954}, "assignee": {"id": 1073}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 501}, "organization": {"id": 644}, "project": {"id": 310, "owner": {"id": 752}, "assignee": {"id": 847}}, "task": {"id": 313, "owner": {"id": 933}, "assignee": {"id": 1068}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 570}, "organization": {"id": 196}, "project": {"id": 310, "owner": {"id": 799}, "assignee": {"id": 810}}, "task": {"id": 313, "owner": {"id": 959}, "assignee": {"id": 1008}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 567}, "organization": {"id": 691}, "project": {"id": 385, "owner": {"id": 763}, "assignee": {"id": 866}}, "task": {"id": 303, "owner": {"id": 969}, "assignee": {"id": 1024}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 525}, "organization": {"id": 140}, "project": {"id": 327, "owner": {"id": 721}, "assignee": {"id": 805}}, "task": {"id": 367, "owner": {"id": 950}, "assignee": {"id": 1076}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 562}, "organization": {"id": 655}, "project": {"id": 342, "owner": {"id": 783}, "assignee": {"id": 830}}, "task": {"id": 321, "owner": {"id": 905}, "assignee": {"id": 1023}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 537}, "organization": {"id": 142}, "project": {"id": 315, "owner": {"id": 739}, "assignee": {"id": 892}}, "task": {"id": 336, "owner": {"id": 926}, "assignee": {"id": 1006}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 576}, "organization": {"id": 643}, "project": {"id": 372, "owner": {"id": 728}, "assignee": {"id": 860}}, "task": {"id": 369, "owner": {"id": 944}, "assignee": {"id": 1038}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 566}, "organization": {"id": 198}, "project": {"id": 329, "owner": {"id": 759}, "assignee": {"id": 870}}, "task": {"id": 372, "owner": {"id": 967}, "assignee": {"id": 1092}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 575}, "organization": {"id": 686}, "project": {"id": 340, "owner": {"id": 723}, "assignee": {"id": 869}}, "task": {"id": 314, "owner": {"id": 945}, "assignee": {"id": 1089}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 531}, "organization": {"id": 152}, "project": {"id": 356, "owner": {"id": 709}, "assignee": {"id": 890}}, "task": {"id": 336, "owner": {"id": 914}, "assignee": {"id": 1015}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 523}, "organization": {"id": 648}, "project": {"id": 353, "owner": {"id": 799}, "assignee": {"id": 839}}, "task": {"id": 335, "owner": {"id": 983}, "assignee": {"id": 1064}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 528}, "organization": {"id": 107}, "project": {"id": 307, "owner": {"id": 701}, "assignee": {"id": 821}}, "task": {"id": 326, "owner": {"id": 940}, "assignee": {"id": 1061}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 570}, "organization": {"id": 646}, "project": {"id": 301, "owner": {"id": 780}, "assignee": {"id": 805}}, "task": {"id": 324, "owner": {"id": 962}, "assignee": {"id": 1028}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 572}, "organization": {"id": 140}, "project": {"id": 339, "owner": {"id": 764}, "assignee": {"id": 890}}, "task": {"id": 352, "owner": {"id": 993}, "assignee": {"id": 1032}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 534}, "organization": {"id": 625}, "project": {"id": 371, "owner": {"id": 757}, "assignee": {"id": 861}}, "task": {"id": 353, "owner": {"id": 961}, "assignee": {"id": 1028}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 576}, "organization": {"id": 149}, "project": {"id": 399, "owner": {"id": 711}, "assignee": {"id": 824}}, "task": {"id": 345, "owner": {"id": 987}, "assignee": {"id": 1070}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 561}, "organization": {"id": 660}, "project": {"id": 367, "owner": {"id": 739}, "assignee": {"id": 867}}, "task": {"id": 340, "owner": {"id": 969}, "assignee": {"id": 1081}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 524}, "organization": {"id": 112}, "project": {"id": 317, "owner": {"id": 750}, "assignee": {"id": 845}}, "task": {"id": 373, "owner": {"id": 924}, "assignee": {"id": 1076}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 559}, "organization": {"id": 620}, "project": {"id": 381, "owner": {"id": 753}, "assignee": {"id": 825}}, "task": {"id": 370, "owner": {"id": 915}, "assignee": {"id": 1079}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 563}, "organization": {"id": 148}, "project": {"id": 375, "owner": {"id": 733}, "assignee": {"id": 824}}, "task": {"id": 342, "owner": {"id": 909}, "assignee": {"id": 1049}}}} +} + +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": 176, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 593}, "organization": {"id": 685}, "project": {"id": 359, "owner": {"id": 773}, "assignee": {"id": 858}}, "task": {"id": 377, "owner": {"id": 967}, "assignee": {"id": 1075}}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 521}, "organization": {"id": 124}, "project": {"id": 340, "owner": {"id": 786}, "assignee": {"id": 876}}, "task": {"id": 331, "owner": {"id": 989}, "assignee": {"id": 1024}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 557}, "organization": {"id": 630}, "project": {"id": 306, "owner": {"id": 716}, "assignee": {"id": 815}}, "task": {"id": 360, "owner": {"id": 954}, "assignee": {"id": 1089}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 575}, "organization": {"id": 188}, "project": {"id": 396, "owner": {"id": 793}, "assignee": {"id": 847}}, "task": {"id": 360, "owner": {"id": 964}, "assignee": {"id": 1075}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 541}, "organization": {"id": 657}, "project": {"id": 316, "owner": {"id": 747}, "assignee": {"id": 883}}, "task": {"id": 398, "owner": {"id": 989}, "assignee": {"id": 1092}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 545}, "organization": {"id": 183}, "project": {"id": 395, "owner": {"id": 711}, "assignee": {"id": 865}}, "task": {"id": 311, "owner": {"id": 936}, "assignee": {"id": 1087}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 594}, "organization": {"id": 607}, "project": {"id": 313, "owner": {"id": 708}, "assignee": {"id": 849}}, "task": {"id": 362, "owner": {"id": 928}, "assignee": {"id": 1055}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 510}, "organization": {"id": 199}, "project": {"id": 383, "owner": {"id": 755}, "assignee": {"id": 894}}, "task": {"id": 340, "owner": {"id": 915}, "assignee": {"id": 1090}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 596}, "organization": {"id": 650}, "project": {"id": 317, "owner": {"id": 798}, "assignee": {"id": 894}}, "task": {"id": 373, "owner": {"id": 900}, "assignee": {"id": 1075}}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 595}, "organization": {"id": 132}, "project": {"id": 311, "owner": {"id": 745}, "assignee": {"id": 881}}, "task": {"id": 377, "owner": {"id": 979}, "assignee": {"id": 1033}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 546}, "organization": {"id": 683}, "project": {"id": 303, "owner": {"id": 735}, "assignee": {"id": 869}}, "task": {"id": 357, "owner": {"id": 916}, "assignee": {"id": 1093}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 555}, "organization": {"id": 108}, "project": {"id": 396, "owner": {"id": 725}, "assignee": {"id": 815}}, "task": {"id": 371, "owner": {"id": 920}, "assignee": {"id": 1072}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 549}, "organization": {"id": 681}, "project": {"id": 384, "owner": {"id": 712}, "assignee": {"id": 858}}, "task": {"id": 312, "owner": {"id": 933}, "assignee": {"id": 1086}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 566}, "organization": {"id": 160}, "project": {"id": 328, "owner": {"id": 702}, "assignee": {"id": 881}}, "task": {"id": 369, "owner": {"id": 918}, "assignee": {"id": 1090}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 572}, "organization": {"id": 639}, "project": {"id": 382, "owner": {"id": 744}, "assignee": {"id": 809}}, "task": {"id": 396, "owner": {"id": 928}, "assignee": {"id": 1059}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 523}, "organization": {"id": 184}, "project": {"id": 317, "owner": {"id": 733}, "assignee": {"id": 816}}, "task": {"id": 367, "owner": {"id": 912}, "assignee": {"id": 1050}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 515}, "organization": {"id": 658}, "project": {"id": 390, "owner": {"id": 790}, "assignee": {"id": 816}}, "task": {"id": 352, "owner": {"id": 976}, "assignee": {"id": 1042}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 521}, "organization": {"id": 168}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 860}}, "task": {"id": 348, "owner": {"id": 972}, "assignee": {"id": 1077}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 577}, "organization": {"id": 642}, "project": {"id": 320, "owner": {"id": 707}, "assignee": {"id": 880}}, "task": {"id": 300, "owner": {"id": 912}, "assignee": {"id": 1046}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 519}, "organization": {"id": 186}, "project": {"id": 320, "owner": {"id": 777}, "assignee": {"id": 811}}, "task": {"id": 373, "owner": {"id": 988}, "assignee": {"id": 1011}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 587}, "organization": {"id": 698}, "project": {"id": 365, "owner": {"id": 796}, "assignee": {"id": 878}}, "task": {"id": 345, "owner": {"id": 939}, "assignee": {"id": 1007}}}} +} + +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": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "assignee": {"id": 580}, "organization": {"id": 646}, "project": {"id": 376, "owner": {"id": 90}, "assignee": {"id": 845}}, "task": {"id": 346, "owner": {"id": 928}, "assignee": {"id": 1062}}}} +} + +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": 92, "privilege": "business"}, "organization": null}, "resource": {"id": 342, "assignee": {"id": 526}, "organization": {"id": 611}, "project": {"id": 313, "owner": {"id": 92}, "assignee": {"id": 859}}, "task": {"id": 319, "owner": {"id": 952}, "assignee": {"id": 1056}}}} +} + +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": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 317, "assignee": {"id": 588}, "organization": {"id": 689}, "project": {"id": 300, "owner": {"id": 38}, "assignee": {"id": 849}}, "task": {"id": 353, "owner": {"id": 927}, "assignee": {"id": 1003}}}} +} + +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": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 592}, "organization": {"id": 603}, "project": {"id": 352, "owner": {"id": 92}, "assignee": {"id": 812}}, "task": {"id": 359, "owner": {"id": 926}, "assignee": {"id": 1008}}}} +} + +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": 77, "privilege": "none"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 557}, "organization": {"id": 676}, "project": {"id": 330, "owner": {"id": 77}, "assignee": {"id": 880}}, "task": {"id": 315, "owner": {"id": 945}, "assignee": {"id": 1030}}}} +} + +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": 74, "privilege": "admin"}, "organization": null}, "resource": {"id": 305, "assignee": {"id": 596}, "organization": {"id": 627}, "project": {"id": 372, "owner": {"id": 785}, "assignee": {"id": 74}}, "task": {"id": 345, "owner": {"id": 981}, "assignee": {"id": 1054}}}} +} + +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": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 550}, "organization": {"id": 680}, "project": {"id": 393, "owner": {"id": 778}, "assignee": {"id": 32}}, "task": {"id": 399, "owner": {"id": 911}, "assignee": {"id": 1011}}}} +} + +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": 80, "privilege": "user"}, "organization": null}, "resource": {"id": 333, "assignee": {"id": 544}, "organization": {"id": 618}, "project": {"id": 371, "owner": {"id": 758}, "assignee": {"id": 80}}, "task": {"id": 387, "owner": {"id": 983}, "assignee": {"id": 1028}}}} +} + +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": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 346, "assignee": {"id": 531}, "organization": {"id": 698}, "project": {"id": 352, "owner": {"id": 756}, "assignee": {"id": 41}}, "task": {"id": 338, "owner": {"id": 994}, "assignee": {"id": 1001}}}} +} + +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": 5, "privilege": "none"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 521}, "organization": {"id": 635}, "project": {"id": 351, "owner": {"id": 734}, "assignee": {"id": 5}}, "task": {"id": 398, "owner": {"id": 948}, "assignee": {"id": 1052}}}} +} + +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": 72, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "assignee": {"id": 567}, "organization": {"id": 668}, "project": {"id": 386, "owner": {"id": 772}, "assignee": {"id": 850}}, "task": {"id": 323, "owner": {"id": 72}, "assignee": {"id": 1002}}}} +} + +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": 69, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 592}, "organization": {"id": 636}, "project": {"id": 366, "owner": {"id": 798}, "assignee": {"id": 810}}, "task": {"id": 303, "owner": {"id": 69}, "assignee": {"id": 1092}}}} +} + +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": 18, "privilege": "user"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 560}, "organization": {"id": 679}, "project": {"id": 377, "owner": {"id": 722}, "assignee": {"id": 891}}, "task": {"id": 303, "owner": {"id": 18}, "assignee": {"id": 1087}}}} +} + +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": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 396, "assignee": {"id": 562}, "organization": {"id": 630}, "project": {"id": 375, "owner": {"id": 778}, "assignee": {"id": 864}}, "task": {"id": 338, "owner": {"id": 12}, "assignee": {"id": 1052}}}} +} + +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": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 361, "assignee": {"id": 504}, "organization": {"id": 678}, "project": {"id": 367, "owner": {"id": 788}, "assignee": {"id": 857}}, "task": {"id": 382, "owner": {"id": 16}, "assignee": {"id": 1079}}}} +} + +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": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "assignee": {"id": 564}, "organization": {"id": 683}, "project": {"id": 312, "owner": {"id": 763}, "assignee": {"id": 852}}, "task": {"id": 333, "owner": {"id": 908}, "assignee": {"id": 44}}}} +} + +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": 60, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 507}, "organization": {"id": 612}, "project": {"id": 391, "owner": {"id": 740}, "assignee": {"id": 887}}, "task": {"id": 310, "owner": {"id": 928}, "assignee": {"id": 60}}}} +} + +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": 10, "privilege": "user"}, "organization": null}, "resource": {"id": 331, "assignee": {"id": 547}, "organization": {"id": 601}, "project": {"id": 346, "owner": {"id": 724}, "assignee": {"id": 823}}, "task": {"id": 321, "owner": {"id": 930}, "assignee": {"id": 10}}}} +} + +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": 15, "privilege": "worker"}, "organization": null}, "resource": {"id": 308, "assignee": {"id": 531}, "organization": {"id": 644}, "project": {"id": 355, "owner": {"id": 772}, "assignee": {"id": 842}}, "task": {"id": 308, "owner": {"id": 991}, "assignee": {"id": 15}}}} +} + +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": 82, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "assignee": {"id": 570}, "organization": {"id": 685}, "project": {"id": 393, "owner": {"id": 750}, "assignee": {"id": 819}}, "task": {"id": 345, "owner": {"id": 928}, "assignee": {"id": 82}}}} +} + +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": 84, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 84}, "organization": {"id": 644}, "project": {"id": 358, "owner": {"id": 708}, "assignee": {"id": 844}}, "task": {"id": 311, "owner": {"id": 985}, "assignee": {"id": 1043}}}} +} + +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": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 95}, "organization": {"id": 675}, "project": {"id": 345, "owner": {"id": 707}, "assignee": {"id": 871}}, "task": {"id": 395, "owner": {"id": 981}, "assignee": {"id": 1023}}}} +} + +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": 37, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 37}, "organization": {"id": 608}, "project": {"id": 327, "owner": {"id": 786}, "assignee": {"id": 806}}, "task": {"id": 376, "owner": {"id": 939}, "assignee": {"id": 1083}}}} +} + +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": 35, "privilege": "worker"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 35}, "organization": {"id": 644}, "project": {"id": 316, "owner": {"id": 743}, "assignee": {"id": 862}}, "task": {"id": 374, "owner": {"id": 981}, "assignee": {"id": 1027}}}} +} + +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": 62, "privilege": "none"}, "organization": null}, "resource": {"id": 310, "assignee": {"id": 62}, "organization": {"id": 644}, "project": {"id": 382, "owner": {"id": 772}, "assignee": {"id": 835}}, "task": {"id": 359, "owner": {"id": 922}, "assignee": {"id": 1067}}}} +} + +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": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "assignee": {"id": 554}, "organization": {"id": 673}, "project": {"id": 374, "owner": {"id": 723}, "assignee": {"id": 886}}, "task": {"id": 348, "owner": {"id": 976}, "assignee": {"id": 1065}}}} +} + +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": 71, "privilege": "business"}, "organization": null}, "resource": {"id": 365, "assignee": {"id": 565}, "organization": {"id": 694}, "project": {"id": 388, "owner": {"id": 704}, "assignee": {"id": 814}}, "task": {"id": 362, "owner": {"id": 928}, "assignee": {"id": 1048}}}} +} + +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": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 335, "assignee": {"id": 578}, "organization": {"id": 672}, "project": {"id": 334, "owner": {"id": 767}, "assignee": {"id": 896}}, "task": {"id": 344, "owner": {"id": 982}, "assignee": {"id": 1025}}}} +} + +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": 15, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 517}, "organization": {"id": 659}, "project": {"id": 309, "owner": {"id": 758}, "assignee": {"id": 842}}, "task": {"id": 361, "owner": {"id": 936}, "assignee": {"id": 1066}}}} +} + +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": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 331, "assignee": {"id": 592}, "organization": {"id": 681}, "project": {"id": 333, "owner": {"id": 757}, "assignee": {"id": 881}}, "task": {"id": 318, "owner": {"id": 941}, "assignee": {"id": 1064}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 506}, "organization": {"id": 185}, "project": {"id": 307, "owner": {"id": 54}, "assignee": {"id": 862}}, "task": {"id": 372, "owner": {"id": 998}, "assignee": {"id": 1073}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 513}, "organization": {"id": 601}, "project": {"id": 384, "owner": {"id": 81}, "assignee": {"id": 803}}, "task": {"id": 330, "owner": {"id": 927}, "assignee": {"id": 1019}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 571}, "organization": {"id": 196}, "project": {"id": 360, "owner": {"id": 78}, "assignee": {"id": 802}}, "task": {"id": 376, "owner": {"id": 953}, "assignee": {"id": 1062}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 598}, "organization": {"id": 608}, "project": {"id": 363, "owner": {"id": 60}, "assignee": {"id": 829}}, "task": {"id": 359, "owner": {"id": 995}, "assignee": {"id": 1095}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 565}, "organization": {"id": 133}, "project": {"id": 300, "owner": {"id": 17}, "assignee": {"id": 801}}, "task": {"id": 388, "owner": {"id": 903}, "assignee": {"id": 1066}}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 582}, "organization": {"id": 615}, "project": {"id": 383, "owner": {"id": 68}, "assignee": {"id": 830}}, "task": {"id": 367, "owner": {"id": 944}, "assignee": {"id": 1002}}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 552}, "organization": {"id": 112}, "project": {"id": 390, "owner": {"id": 83}, "assignee": {"id": 801}}, "task": {"id": 355, "owner": {"id": 958}, "assignee": {"id": 1009}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 598}, "organization": {"id": 643}, "project": {"id": 344, "owner": {"id": 66}, "assignee": {"id": 868}}, "task": {"id": 362, "owner": {"id": 987}, "assignee": {"id": 1012}}}} +} + +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": 133, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 512}, "organization": {"id": 133}, "project": {"id": 345, "owner": {"id": 67}, "assignee": {"id": 858}}, "task": {"id": 347, "owner": {"id": 923}, "assignee": {"id": 1027}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 532}, "organization": {"id": 642}, "project": {"id": 382, "owner": {"id": 72}, "assignee": {"id": 805}}, "task": {"id": 383, "owner": {"id": 992}, "assignee": {"id": 1090}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 519}, "organization": {"id": 130}, "project": {"id": 315, "owner": {"id": 49}, "assignee": {"id": 850}}, "task": {"id": 314, "owner": {"id": 944}, "assignee": {"id": 1041}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 508}, "organization": {"id": 690}, "project": {"id": 366, "owner": {"id": 56}, "assignee": {"id": 872}}, "task": {"id": 390, "owner": {"id": 992}, "assignee": {"id": 1013}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 529}, "organization": {"id": 121}, "project": {"id": 307, "owner": {"id": 65}, "assignee": {"id": 849}}, "task": {"id": 333, "owner": {"id": 962}, "assignee": {"id": 1071}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 567}, "organization": {"id": 646}, "project": {"id": 386, "owner": {"id": 2}, "assignee": {"id": 840}}, "task": {"id": 393, "owner": {"id": 923}, "assignee": {"id": 1037}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 552}, "organization": {"id": 160}, "project": {"id": 399, "owner": {"id": 68}, "assignee": {"id": 823}}, "task": {"id": 350, "owner": {"id": 975}, "assignee": {"id": 1090}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 545}, "organization": {"id": 624}, "project": {"id": 356, "owner": {"id": 84}, "assignee": {"id": 821}}, "task": {"id": 363, "owner": {"id": 926}, "assignee": {"id": 1047}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 502}, "organization": {"id": 112}, "project": {"id": 337, "owner": {"id": 47}, "assignee": {"id": 882}}, "task": {"id": 315, "owner": {"id": 930}, "assignee": {"id": 1039}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 593}, "organization": {"id": 637}, "project": {"id": 372, "owner": {"id": 73}, "assignee": {"id": 879}}, "task": {"id": 344, "owner": {"id": 967}, "assignee": {"id": 1005}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 570}, "organization": {"id": 175}, "project": {"id": 386, "owner": {"id": 98}, "assignee": {"id": 820}}, "task": {"id": 300, "owner": {"id": 964}, "assignee": {"id": 1090}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 551}, "organization": {"id": 672}, "project": {"id": 360, "owner": {"id": 36}, "assignee": {"id": 832}}, "task": {"id": 337, "owner": {"id": 934}, "assignee": {"id": 1061}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 593}, "organization": {"id": 104}, "project": {"id": 311, "owner": {"id": 52}, "assignee": {"id": 884}}, "task": {"id": 389, "owner": {"id": 992}, "assignee": {"id": 1074}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 534}, "organization": {"id": 670}, "project": {"id": 338, "owner": {"id": 38}, "assignee": {"id": 805}}, "task": {"id": 302, "owner": {"id": 988}, "assignee": {"id": 1036}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 567}, "organization": {"id": 122}, "project": {"id": 345, "owner": {"id": 46}, "assignee": {"id": 886}}, "task": {"id": 336, "owner": {"id": 972}, "assignee": {"id": 1034}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 514}, "organization": {"id": 686}, "project": {"id": 307, "owner": {"id": 5}, "assignee": {"id": 804}}, "task": {"id": 305, "owner": {"id": 909}, "assignee": {"id": 1048}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 555}, "organization": {"id": 192}, "project": {"id": 304, "owner": {"id": 76}, "assignee": {"id": 849}}, "task": {"id": 380, "owner": {"id": 955}, "assignee": {"id": 1071}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "assignee": {"id": 592}, "organization": {"id": 621}, "project": {"id": 336, "owner": {"id": 31}, "assignee": {"id": 872}}, "task": {"id": 340, "owner": {"id": 943}, "assignee": {"id": 1067}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 521}, "organization": {"id": 107}, "project": {"id": 304, "owner": {"id": 18}, "assignee": {"id": 871}}, "task": {"id": 338, "owner": {"id": 999}, "assignee": {"id": 1012}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 544}, "organization": {"id": 696}, "project": {"id": 332, "owner": {"id": 17}, "assignee": {"id": 896}}, "task": {"id": 349, "owner": {"id": 973}, "assignee": {"id": 1004}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 539}, "organization": {"id": 149}, "project": {"id": 387, "owner": {"id": 14}, "assignee": {"id": 869}}, "task": {"id": 325, "owner": {"id": 937}, "assignee": {"id": 1023}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 540}, "organization": {"id": 685}, "project": {"id": 399, "owner": {"id": 31}, "assignee": {"id": 809}}, "task": {"id": 368, "owner": {"id": 958}, "assignee": {"id": 1065}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 552}, "organization": {"id": 138}, "project": {"id": 371, "owner": {"id": 6}, "assignee": {"id": 870}}, "task": {"id": 366, "owner": {"id": 997}, "assignee": {"id": 1039}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 581}, "organization": {"id": 607}, "project": {"id": 335, "owner": {"id": 88}, "assignee": {"id": 843}}, "task": {"id": 330, "owner": {"id": 933}, "assignee": {"id": 1073}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 593}, "organization": {"id": 144}, "project": {"id": 306, "owner": {"id": 34}, "assignee": {"id": 805}}, "task": {"id": 315, "owner": {"id": 910}, "assignee": {"id": 1006}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 587}, "organization": {"id": 600}, "project": {"id": 313, "owner": {"id": 86}, "assignee": {"id": 827}}, "task": {"id": 327, "owner": {"id": 931}, "assignee": {"id": 1091}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 562}, "organization": {"id": 143}, "project": {"id": 305, "owner": {"id": 63}, "assignee": {"id": 846}}, "task": {"id": 301, "owner": {"id": 971}, "assignee": {"id": 1077}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 550}, "organization": {"id": 644}, "project": {"id": 342, "owner": {"id": 0}, "assignee": {"id": 802}}, "task": {"id": 338, "owner": {"id": 955}, "assignee": {"id": 1011}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 592}, "organization": {"id": 160}, "project": {"id": 324, "owner": {"id": 29}, "assignee": {"id": 854}}, "task": {"id": 371, "owner": {"id": 988}, "assignee": {"id": 1070}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 561}, "organization": {"id": 624}, "project": {"id": 375, "owner": {"id": 64}, "assignee": {"id": 813}}, "task": {"id": 336, "owner": {"id": 978}, "assignee": {"id": 1076}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 512}, "organization": {"id": 195}, "project": {"id": 344, "owner": {"id": 98}, "assignee": {"id": 866}}, "task": {"id": 334, "owner": {"id": 931}, "assignee": {"id": 1098}}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 571}, "organization": {"id": 625}, "project": {"id": 333, "owner": {"id": 14}, "assignee": {"id": 867}}, "task": {"id": 354, "owner": {"id": 922}, "assignee": {"id": 1000}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 538}, "organization": {"id": 155}, "project": {"id": 307, "owner": {"id": 10}, "assignee": {"id": 849}}, "task": {"id": 390, "owner": {"id": 933}, "assignee": {"id": 1093}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 511}, "organization": {"id": 675}, "project": {"id": 302, "owner": {"id": 43}, "assignee": {"id": 848}}, "task": {"id": 316, "owner": {"id": 906}, "assignee": {"id": 1052}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 539}, "organization": {"id": 121}, "project": {"id": 338, "owner": {"id": 88}, "assignee": {"id": 818}}, "task": {"id": 321, "owner": {"id": 982}, "assignee": {"id": 1022}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 586}, "organization": {"id": 606}, "project": {"id": 335, "owner": {"id": 62}, "assignee": {"id": 878}}, "task": {"id": 330, "owner": {"id": 997}, "assignee": {"id": 1089}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 523}, "organization": {"id": 106}, "project": {"id": 367, "owner": {"id": 32}, "assignee": {"id": 890}}, "task": {"id": 306, "owner": {"id": 935}, "assignee": {"id": 1063}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 551}, "organization": {"id": 668}, "project": {"id": 354, "owner": {"id": 62}, "assignee": {"id": 854}}, "task": {"id": 301, "owner": {"id": 902}, "assignee": {"id": 1033}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 577}, "organization": {"id": 199}, "project": {"id": 325, "owner": {"id": 4}, "assignee": {"id": 849}}, "task": {"id": 307, "owner": {"id": 976}, "assignee": {"id": 1007}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 544}, "organization": {"id": 690}, "project": {"id": 323, "owner": {"id": 56}, "assignee": {"id": 807}}, "task": {"id": 352, "owner": {"id": 933}, "assignee": {"id": 1005}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 581}, "organization": {"id": 169}, "project": {"id": 379, "owner": {"id": 22}, "assignee": {"id": 832}}, "task": {"id": 391, "owner": {"id": 930}, "assignee": {"id": 1086}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 579}, "organization": {"id": 691}, "project": {"id": 365, "owner": {"id": 76}, "assignee": {"id": 825}}, "task": {"id": 392, "owner": {"id": 969}, "assignee": {"id": 1020}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 554}, "organization": {"id": 169}, "project": {"id": 300, "owner": {"id": 772}, "assignee": {"id": 74}}, "task": {"id": 337, "owner": {"id": 945}, "assignee": {"id": 1009}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 527}, "organization": {"id": 643}, "project": {"id": 345, "owner": {"id": 795}, "assignee": {"id": 84}}, "task": {"id": 355, "owner": {"id": 991}, "assignee": {"id": 1026}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 510}, "organization": {"id": 191}, "project": {"id": 344, "owner": {"id": 728}, "assignee": {"id": 85}}, "task": {"id": 382, "owner": {"id": 932}, "assignee": {"id": 1096}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 578}, "organization": {"id": 612}, "project": {"id": 317, "owner": {"id": 775}, "assignee": {"id": 31}}, "task": {"id": 320, "owner": {"id": 940}, "assignee": {"id": 1076}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 561}, "organization": {"id": 186}, "project": {"id": 318, "owner": {"id": 718}, "assignee": {"id": 35}}, "task": {"id": 325, "owner": {"id": 986}, "assignee": {"id": 1053}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 599}, "organization": {"id": 667}, "project": {"id": 332, "owner": {"id": 766}, "assignee": {"id": 96}}, "task": {"id": 333, "owner": {"id": 970}, "assignee": {"id": 1086}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 506}, "organization": {"id": 173}, "project": {"id": 325, "owner": {"id": 775}, "assignee": {"id": 93}}, "task": {"id": 367, "owner": {"id": 982}, "assignee": {"id": 1025}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 582}, "organization": {"id": 627}, "project": {"id": 314, "owner": {"id": 732}, "assignee": {"id": 34}}, "task": {"id": 346, "owner": {"id": 986}, "assignee": {"id": 1041}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 511}, "organization": {"id": 108}, "project": {"id": 334, "owner": {"id": 744}, "assignee": {"id": 14}}, "task": {"id": 378, "owner": {"id": 905}, "assignee": {"id": 1063}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 517}, "organization": {"id": 665}, "project": {"id": 366, "owner": {"id": 781}, "assignee": {"id": 63}}, "task": {"id": 385, "owner": {"id": 906}, "assignee": {"id": 1086}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 557}, "organization": {"id": 158}, "project": {"id": 399, "owner": {"id": 794}, "assignee": {"id": 41}}, "task": {"id": 389, "owner": {"id": 921}, "assignee": {"id": 1068}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 521}, "organization": {"id": 678}, "project": {"id": 327, "owner": {"id": 770}, "assignee": {"id": 30}}, "task": {"id": 384, "owner": {"id": 982}, "assignee": {"id": 1008}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 583}, "organization": {"id": 185}, "project": {"id": 323, "owner": {"id": 777}, "assignee": {"id": 12}}, "task": {"id": 340, "owner": {"id": 996}, "assignee": {"id": 1060}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 582}, "organization": {"id": 635}, "project": {"id": 335, "owner": {"id": 793}, "assignee": {"id": 77}}, "task": {"id": 363, "owner": {"id": 936}, "assignee": {"id": 1015}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 511}, "organization": {"id": 120}, "project": {"id": 315, "owner": {"id": 746}, "assignee": {"id": 69}}, "task": {"id": 324, "owner": {"id": 998}, "assignee": {"id": 1035}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 576}, "organization": {"id": 616}, "project": {"id": 396, "owner": {"id": 777}, "assignee": {"id": 80}}, "task": {"id": 343, "owner": {"id": 970}, "assignee": {"id": 1092}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 509}, "organization": {"id": 193}, "project": {"id": 336, "owner": {"id": 781}, "assignee": {"id": 85}}, "task": {"id": 318, "owner": {"id": 932}, "assignee": {"id": 1053}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 506}, "organization": {"id": 632}, "project": {"id": 316, "owner": {"id": 796}, "assignee": {"id": 62}}, "task": {"id": 357, "owner": {"id": 971}, "assignee": {"id": 1077}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 590}, "organization": {"id": 166}, "project": {"id": 380, "owner": {"id": 753}, "assignee": {"id": 41}}, "task": {"id": 331, "owner": {"id": 921}, "assignee": {"id": 1036}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 565}, "organization": {"id": 651}, "project": {"id": 337, "owner": {"id": 760}, "assignee": {"id": 37}}, "task": {"id": 331, "owner": {"id": 908}, "assignee": {"id": 1013}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 569}, "organization": {"id": 143}, "project": {"id": 358, "owner": {"id": 762}, "assignee": {"id": 15}}, "task": {"id": 398, "owner": {"id": 936}, "assignee": {"id": 1064}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 570}, "organization": {"id": 659}, "project": {"id": 356, "owner": {"id": 781}, "assignee": {"id": 73}}, "task": {"id": 322, "owner": {"id": 917}, "assignee": {"id": 1022}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 553}, "organization": {"id": 158}, "project": {"id": 319, "owner": {"id": 748}, "assignee": {"id": 99}}, "task": {"id": 303, "owner": {"id": 908}, "assignee": {"id": 1075}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 568}, "organization": {"id": 653}, "project": {"id": 340, "owner": {"id": 735}, "assignee": {"id": 25}}, "task": {"id": 355, "owner": {"id": 924}, "assignee": {"id": 1018}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 534}, "organization": {"id": 156}, "project": {"id": 374, "owner": {"id": 745}, "assignee": {"id": 50}}, "task": {"id": 390, "owner": {"id": 904}, "assignee": {"id": 1092}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 501}, "organization": {"id": 685}, "project": {"id": 394, "owner": {"id": 758}, "assignee": {"id": 78}}, "task": {"id": 316, "owner": {"id": 988}, "assignee": {"id": 1040}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 501}, "organization": {"id": 174}, "project": {"id": 380, "owner": {"id": 715}, "assignee": {"id": 21}}, "task": {"id": 346, "owner": {"id": 924}, "assignee": {"id": 1022}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 581}, "organization": {"id": 698}, "project": {"id": 330, "owner": {"id": 783}, "assignee": {"id": 83}}, "task": {"id": 346, "owner": {"id": 931}, "assignee": {"id": 1098}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 553}, "organization": {"id": 166}, "project": {"id": 324, "owner": {"id": 774}, "assignee": {"id": 39}}, "task": {"id": 349, "owner": {"id": 990}, "assignee": {"id": 1078}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 500}, "organization": {"id": 697}, "project": {"id": 310, "owner": {"id": 737}, "assignee": {"id": 49}}, "task": {"id": 390, "owner": {"id": 957}, "assignee": {"id": 1099}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 505}, "organization": {"id": 182}, "project": {"id": 309, "owner": {"id": 789}, "assignee": {"id": 20}}, "task": {"id": 380, "owner": {"id": 950}, "assignee": {"id": 1044}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 581}, "organization": {"id": 671}, "project": {"id": 369, "owner": {"id": 763}, "assignee": {"id": 94}}, "task": {"id": 333, "owner": {"id": 972}, "assignee": {"id": 1049}}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 548}, "organization": {"id": 169}, "project": {"id": 302, "owner": {"id": 717}, "assignee": {"id": 14}}, "task": {"id": 310, "owner": {"id": 919}, "assignee": {"id": 1070}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 571}, "organization": {"id": 655}, "project": {"id": 396, "owner": {"id": 736}, "assignee": {"id": 98}}, "task": {"id": 334, "owner": {"id": 923}, "assignee": {"id": 1018}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 541}, "organization": {"id": 120}, "project": {"id": 354, "owner": {"id": 736}, "assignee": {"id": 93}}, "task": {"id": 304, "owner": {"id": 967}, "assignee": {"id": 1091}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 584}, "organization": {"id": 673}, "project": {"id": 322, "owner": {"id": 740}, "assignee": {"id": 54}}, "task": {"id": 304, "owner": {"id": 942}, "assignee": {"id": 1030}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 562}, "organization": {"id": 101}, "project": {"id": 358, "owner": {"id": 790}, "assignee": {"id": 34}}, "task": {"id": 382, "owner": {"id": 970}, "assignee": {"id": 1054}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 555}, "organization": {"id": 626}, "project": {"id": 307, "owner": {"id": 753}, "assignee": {"id": 66}}, "task": {"id": 382, "owner": {"id": 979}, "assignee": {"id": 1011}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 585}, "organization": {"id": 101}, "project": {"id": 398, "owner": {"id": 704}, "assignee": {"id": 49}}, "task": {"id": 345, "owner": {"id": 973}, "assignee": {"id": 1038}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 560}, "organization": {"id": 656}, "project": {"id": 327, "owner": {"id": 744}, "assignee": {"id": 22}}, "task": {"id": 326, "owner": {"id": 912}, "assignee": {"id": 1097}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 569}, "organization": {"id": 108}, "project": {"id": 377, "owner": {"id": 742}, "assignee": {"id": 21}}, "task": {"id": 371, "owner": {"id": 955}, "assignee": {"id": 1070}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 534}, "organization": {"id": 652}, "project": {"id": 339, "owner": {"id": 758}, "assignee": {"id": 73}}, "task": {"id": 355, "owner": {"id": 923}, "assignee": {"id": 1025}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 530}, "organization": {"id": 151}, "project": {"id": 360, "owner": {"id": 757}, "assignee": {"id": 81}}, "task": {"id": 392, "owner": {"id": 926}, "assignee": {"id": 1077}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 584}, "organization": {"id": 679}, "project": {"id": 396, "owner": {"id": 759}, "assignee": {"id": 52}}, "task": {"id": 390, "owner": {"id": 930}, "assignee": {"id": 1083}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 588}, "organization": {"id": 114}, "project": {"id": 312, "owner": {"id": 725}, "assignee": {"id": 70}}, "task": {"id": 391, "owner": {"id": 917}, "assignee": {"id": 1040}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 535}, "organization": {"id": 652}, "project": {"id": 301, "owner": {"id": 717}, "assignee": {"id": 65}}, "task": {"id": 397, "owner": {"id": 942}, "assignee": {"id": 1020}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 587}, "organization": {"id": 147}, "project": {"id": 319, "owner": {"id": 789}, "assignee": {"id": 11}}, "task": {"id": 394, "owner": {"id": 908}, "assignee": {"id": 1092}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 530}, "organization": {"id": 635}, "project": {"id": 306, "owner": {"id": 731}, "assignee": {"id": 35}}, "task": {"id": 351, "owner": {"id": 990}, "assignee": {"id": 1098}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 559}, "organization": {"id": 177}, "project": {"id": 353, "owner": {"id": 788}, "assignee": {"id": 3}}, "task": {"id": 321, "owner": {"id": 966}, "assignee": {"id": 1063}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 569}, "organization": {"id": 695}, "project": {"id": 347, "owner": {"id": 724}, "assignee": {"id": 16}}, "task": {"id": 324, "owner": {"id": 962}, "assignee": {"id": 1040}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 535}, "organization": {"id": 152}, "project": {"id": 375, "owner": {"id": 714}, "assignee": {"id": 877}}, "task": {"id": 311, "owner": {"id": 34}, "assignee": {"id": 1097}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 591}, "organization": {"id": 603}, "project": {"id": 351, "owner": {"id": 725}, "assignee": {"id": 832}}, "task": {"id": 362, "owner": {"id": 93}, "assignee": {"id": 1059}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 543}, "organization": {"id": 144}, "project": {"id": 325, "owner": {"id": 768}, "assignee": {"id": 850}}, "task": {"id": 369, "owner": {"id": 1}, "assignee": {"id": 1030}}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 587}, "organization": {"id": 687}, "project": {"id": 331, "owner": {"id": 767}, "assignee": {"id": 833}}, "task": {"id": 338, "owner": {"id": 29}, "assignee": {"id": 1076}}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 531}, "organization": {"id": 161}, "project": {"id": 376, "owner": {"id": 728}, "assignee": {"id": 827}}, "task": {"id": 376, "owner": {"id": 67}, "assignee": {"id": 1090}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 557}, "organization": {"id": 697}, "project": {"id": 379, "owner": {"id": 776}, "assignee": {"id": 835}}, "task": {"id": 384, "owner": {"id": 78}, "assignee": {"id": 1076}}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 501}, "organization": {"id": 172}, "project": {"id": 360, "owner": {"id": 726}, "assignee": {"id": 899}}, "task": {"id": 314, "owner": {"id": 83}, "assignee": {"id": 1044}}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 553}, "organization": {"id": 604}, "project": {"id": 344, "owner": {"id": 781}, "assignee": {"id": 835}}, "task": {"id": 380, "owner": {"id": 87}, "assignee": {"id": 1040}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 539}, "organization": {"id": 146}, "project": {"id": 329, "owner": {"id": 711}, "assignee": {"id": 874}}, "task": {"id": 320, "owner": {"id": 10}, "assignee": {"id": 1046}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 514}, "organization": {"id": 679}, "project": {"id": 387, "owner": {"id": 751}, "assignee": {"id": 841}}, "task": {"id": 376, "owner": {"id": 91}, "assignee": {"id": 1076}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 574}, "organization": {"id": 156}, "project": {"id": 373, "owner": {"id": 766}, "assignee": {"id": 819}}, "task": {"id": 364, "owner": {"id": 84}, "assignee": {"id": 1041}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 519}, "organization": {"id": 662}, "project": {"id": 385, "owner": {"id": 797}, "assignee": {"id": 891}}, "task": {"id": 364, "owner": {"id": 83}, "assignee": {"id": 1006}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 547}, "organization": {"id": 164}, "project": {"id": 342, "owner": {"id": 710}, "assignee": {"id": 859}}, "task": {"id": 334, "owner": {"id": 74}, "assignee": {"id": 1040}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 528}, "organization": {"id": 618}, "project": {"id": 326, "owner": {"id": 706}, "assignee": {"id": 834}}, "task": {"id": 312, "owner": {"id": 27}, "assignee": {"id": 1085}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 506}, "organization": {"id": 125}, "project": {"id": 380, "owner": {"id": 735}, "assignee": {"id": 851}}, "task": {"id": 333, "owner": {"id": 0}, "assignee": {"id": 1095}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 556}, "organization": {"id": 623}, "project": {"id": 305, "owner": {"id": 726}, "assignee": {"id": 850}}, "task": {"id": 315, "owner": {"id": 25}, "assignee": {"id": 1083}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 516}, "organization": {"id": 161}, "project": {"id": 360, "owner": {"id": 715}, "assignee": {"id": 820}}, "task": {"id": 338, "owner": {"id": 65}, "assignee": {"id": 1082}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 599}, "organization": {"id": 600}, "project": {"id": 301, "owner": {"id": 716}, "assignee": {"id": 878}}, "task": {"id": 361, "owner": {"id": 44}, "assignee": {"id": 1048}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 550}, "organization": {"id": 105}, "project": {"id": 375, "owner": {"id": 754}, "assignee": {"id": 844}}, "task": {"id": 312, "owner": {"id": 5}, "assignee": {"id": 1057}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 587}, "organization": {"id": 624}, "project": {"id": 392, "owner": {"id": 741}, "assignee": {"id": 819}}, "task": {"id": 399, "owner": {"id": 29}, "assignee": {"id": 1045}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 545}, "organization": {"id": 124}, "project": {"id": 392, "owner": {"id": 781}, "assignee": {"id": 842}}, "task": {"id": 366, "owner": {"id": 14}, "assignee": {"id": 1024}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 593}, "organization": {"id": 656}, "project": {"id": 332, "owner": {"id": 798}, "assignee": {"id": 883}}, "task": {"id": 373, "owner": {"id": 72}, "assignee": {"id": 1045}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 588}, "organization": {"id": 139}, "project": {"id": 358, "owner": {"id": 742}, "assignee": {"id": 831}}, "task": {"id": 359, "owner": {"id": 13}, "assignee": {"id": 1084}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 506}, "organization": {"id": 647}, "project": {"id": 331, "owner": {"id": 788}, "assignee": {"id": 857}}, "task": {"id": 328, "owner": {"id": 6}, "assignee": {"id": 1066}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 523}, "organization": {"id": 190}, "project": {"id": 303, "owner": {"id": 782}, "assignee": {"id": 887}}, "task": {"id": 300, "owner": {"id": 91}, "assignee": {"id": 1092}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 567}, "organization": {"id": 653}, "project": {"id": 352, "owner": {"id": 746}, "assignee": {"id": 822}}, "task": {"id": 339, "owner": {"id": 0}, "assignee": {"id": 1062}}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 533}, "organization": {"id": 142}, "project": {"id": 355, "owner": {"id": 758}, "assignee": {"id": 848}}, "task": {"id": 303, "owner": {"id": 59}, "assignee": {"id": 1012}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 576}, "organization": {"id": 680}, "project": {"id": 366, "owner": {"id": 720}, "assignee": {"id": 872}}, "task": {"id": 347, "owner": {"id": 68}, "assignee": {"id": 1080}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 521}, "organization": {"id": 144}, "project": {"id": 386, "owner": {"id": 764}, "assignee": {"id": 812}}, "task": {"id": 305, "owner": {"id": 38}, "assignee": {"id": 1071}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 509}, "organization": {"id": 669}, "project": {"id": 373, "owner": {"id": 746}, "assignee": {"id": 877}}, "task": {"id": 380, "owner": {"id": 3}, "assignee": {"id": 1099}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 548}, "organization": {"id": 101}, "project": {"id": 351, "owner": {"id": 779}, "assignee": {"id": 868}}, "task": {"id": 309, "owner": {"id": 2}, "assignee": {"id": 1066}}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 572}, "organization": {"id": 653}, "project": {"id": 313, "owner": {"id": 741}, "assignee": {"id": 898}}, "task": {"id": 376, "owner": {"id": 8}, "assignee": {"id": 1064}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 552}, "organization": {"id": 174}, "project": {"id": 339, "owner": {"id": 794}, "assignee": {"id": 816}}, "task": {"id": 328, "owner": {"id": 57}, "assignee": {"id": 1044}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 527}, "organization": {"id": 654}, "project": {"id": 392, "owner": {"id": 735}, "assignee": {"id": 864}}, "task": {"id": 390, "owner": {"id": 50}, "assignee": {"id": 1035}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 591}, "organization": {"id": 184}, "project": {"id": 327, "owner": {"id": 799}, "assignee": {"id": 899}}, "task": {"id": 390, "owner": {"id": 18}, "assignee": {"id": 1097}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 505}, "organization": {"id": 690}, "project": {"id": 306, "owner": {"id": 781}, "assignee": {"id": 802}}, "task": {"id": 301, "owner": {"id": 23}, "assignee": {"id": 1057}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 501}, "organization": {"id": 119}, "project": {"id": 344, "owner": {"id": 754}, "assignee": {"id": 876}}, "task": {"id": 356, "owner": {"id": 1}, "assignee": {"id": 1062}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 516}, "organization": {"id": 675}, "project": {"id": 371, "owner": {"id": 740}, "assignee": {"id": 875}}, "task": {"id": 344, "owner": {"id": 33}, "assignee": {"id": 1044}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 526}, "organization": {"id": 171}, "project": {"id": 326, "owner": {"id": 739}, "assignee": {"id": 811}}, "task": {"id": 345, "owner": {"id": 72}, "assignee": {"id": 1058}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 515}, "organization": {"id": 607}, "project": {"id": 326, "owner": {"id": 764}, "assignee": {"id": 822}}, "task": {"id": 377, "owner": {"id": 69}, "assignee": {"id": 1072}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 553}, "organization": {"id": 190}, "project": {"id": 303, "owner": {"id": 732}, "assignee": {"id": 861}}, "task": {"id": 313, "owner": {"id": 88}, "assignee": {"id": 1057}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 556}, "organization": {"id": 649}, "project": {"id": 344, "owner": {"id": 741}, "assignee": {"id": 835}}, "task": {"id": 380, "owner": {"id": 20}, "assignee": {"id": 1089}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 529}, "organization": {"id": 141}, "project": {"id": 301, "owner": {"id": 709}, "assignee": {"id": 838}}, "task": {"id": 365, "owner": {"id": 59}, "assignee": {"id": 1077}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 518}, "organization": {"id": 666}, "project": {"id": 340, "owner": {"id": 761}, "assignee": {"id": 824}}, "task": {"id": 366, "owner": {"id": 76}, "assignee": {"id": 1065}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 596}, "organization": {"id": 196}, "project": {"id": 358, "owner": {"id": 771}, "assignee": {"id": 812}}, "task": {"id": 369, "owner": {"id": 48}, "assignee": {"id": 1038}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 500}, "organization": {"id": 642}, "project": {"id": 307, "owner": {"id": 724}, "assignee": {"id": 806}}, "task": {"id": 398, "owner": {"id": 9}, "assignee": {"id": 1088}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 530}, "organization": {"id": 197}, "project": {"id": 391, "owner": {"id": 789}, "assignee": {"id": 806}}, "task": {"id": 324, "owner": {"id": 75}, "assignee": {"id": 1057}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 591}, "organization": {"id": 636}, "project": {"id": 327, "owner": {"id": 726}, "assignee": {"id": 883}}, "task": {"id": 391, "owner": {"id": 47}, "assignee": {"id": 1025}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 522}, "organization": {"id": 115}, "project": {"id": 308, "owner": {"id": 775}, "assignee": {"id": 825}}, "task": {"id": 322, "owner": {"id": 88}, "assignee": {"id": 1016}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 541}, "organization": {"id": 617}, "project": {"id": 365, "owner": {"id": 724}, "assignee": {"id": 818}}, "task": {"id": 385, "owner": {"id": 33}, "assignee": {"id": 1010}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 510}, "organization": {"id": 166}, "project": {"id": 319, "owner": {"id": 745}, "assignee": {"id": 847}}, "task": {"id": 349, "owner": {"id": 923}, "assignee": {"id": 8}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 571}, "organization": {"id": 632}, "project": {"id": 386, "owner": {"id": 750}, "assignee": {"id": 839}}, "task": {"id": 376, "owner": {"id": 978}, "assignee": {"id": 24}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 555}, "organization": {"id": 197}, "project": {"id": 317, "owner": {"id": 708}, "assignee": {"id": 866}}, "task": {"id": 321, "owner": {"id": 954}, "assignee": {"id": 23}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 537}, "organization": {"id": 645}, "project": {"id": 344, "owner": {"id": 705}, "assignee": {"id": 878}}, "task": {"id": 364, "owner": {"id": 937}, "assignee": {"id": 97}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 568}, "organization": {"id": 104}, "project": {"id": 309, "owner": {"id": 741}, "assignee": {"id": 885}}, "task": {"id": 322, "owner": {"id": 974}, "assignee": {"id": 58}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 530}, "organization": {"id": 669}, "project": {"id": 334, "owner": {"id": 738}, "assignee": {"id": 865}}, "task": {"id": 392, "owner": {"id": 989}, "assignee": {"id": 22}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 573}, "organization": {"id": 156}, "project": {"id": 343, "owner": {"id": 730}, "assignee": {"id": 838}}, "task": {"id": 377, "owner": {"id": 980}, "assignee": {"id": 74}}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 577}, "organization": {"id": 614}, "project": {"id": 334, "owner": {"id": 711}, "assignee": {"id": 831}}, "task": {"id": 359, "owner": {"id": 959}, "assignee": {"id": 29}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 528}, "organization": {"id": 116}, "project": {"id": 339, "owner": {"id": 728}, "assignee": {"id": 830}}, "task": {"id": 303, "owner": {"id": 948}, "assignee": {"id": 94}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 558}, "organization": {"id": 655}, "project": {"id": 384, "owner": {"id": 755}, "assignee": {"id": 825}}, "task": {"id": 322, "owner": {"id": 983}, "assignee": {"id": 4}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 525}, "organization": {"id": 188}, "project": {"id": 353, "owner": {"id": 727}, "assignee": {"id": 861}}, "task": {"id": 302, "owner": {"id": 948}, "assignee": {"id": 81}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 564}, "organization": {"id": 613}, "project": {"id": 346, "owner": {"id": 731}, "assignee": {"id": 892}}, "task": {"id": 342, "owner": {"id": 960}, "assignee": {"id": 94}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 599}, "organization": {"id": 188}, "project": {"id": 335, "owner": {"id": 738}, "assignee": {"id": 888}}, "task": {"id": 342, "owner": {"id": 922}, "assignee": {"id": 76}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 542}, "organization": {"id": 653}, "project": {"id": 367, "owner": {"id": 765}, "assignee": {"id": 805}}, "task": {"id": 361, "owner": {"id": 933}, "assignee": {"id": 25}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 506}, "organization": {"id": 154}, "project": {"id": 309, "owner": {"id": 791}, "assignee": {"id": 881}}, "task": {"id": 378, "owner": {"id": 966}, "assignee": {"id": 16}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 512}, "organization": {"id": 616}, "project": {"id": 327, "owner": {"id": 742}, "assignee": {"id": 800}}, "task": {"id": 398, "owner": {"id": 900}, "assignee": {"id": 30}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 519}, "organization": {"id": 164}, "project": {"id": 384, "owner": {"id": 721}, "assignee": {"id": 812}}, "task": {"id": 323, "owner": {"id": 934}, "assignee": {"id": 91}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 525}, "organization": {"id": 641}, "project": {"id": 339, "owner": {"id": 781}, "assignee": {"id": 803}}, "task": {"id": 328, "owner": {"id": 900}, "assignee": {"id": 23}}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 506}, "organization": {"id": 125}, "project": {"id": 387, "owner": {"id": 719}, "assignee": {"id": 851}}, "task": {"id": 307, "owner": {"id": 951}, "assignee": {"id": 43}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 380, "assignee": {"id": 522}, "organization": {"id": 684}, "project": {"id": 385, "owner": {"id": 791}, "assignee": {"id": 856}}, "task": {"id": 308, "owner": {"id": 990}, "assignee": {"id": 74}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 591}, "organization": {"id": 144}, "project": {"id": 312, "owner": {"id": 768}, "assignee": {"id": 868}}, "task": {"id": 341, "owner": {"id": 971}, "assignee": {"id": 67}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 511}, "organization": {"id": 646}, "project": {"id": 323, "owner": {"id": 709}, "assignee": {"id": 848}}, "task": {"id": 371, "owner": {"id": 934}, "assignee": {"id": 76}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 557}, "organization": {"id": 116}, "project": {"id": 354, "owner": {"id": 708}, "assignee": {"id": 818}}, "task": {"id": 346, "owner": {"id": 907}, "assignee": {"id": 52}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 544}, "organization": {"id": 621}, "project": {"id": 378, "owner": {"id": 785}, "assignee": {"id": 890}}, "task": {"id": 348, "owner": {"id": 915}, "assignee": {"id": 46}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 558}, "organization": {"id": 182}, "project": {"id": 346, "owner": {"id": 705}, "assignee": {"id": 843}}, "task": {"id": 340, "owner": {"id": 975}, "assignee": {"id": 91}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 574}, "organization": {"id": 653}, "project": {"id": 350, "owner": {"id": 748}, "assignee": {"id": 833}}, "task": {"id": 333, "owner": {"id": 986}, "assignee": {"id": 41}}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 533}, "organization": {"id": 197}, "project": {"id": 304, "owner": {"id": 706}, "assignee": {"id": 803}}, "task": {"id": 359, "owner": {"id": 980}, "assignee": {"id": 98}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 544}, "organization": {"id": 610}, "project": {"id": 338, "owner": {"id": 790}, "assignee": {"id": 849}}, "task": {"id": 396, "owner": {"id": 991}, "assignee": {"id": 56}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 511}, "organization": {"id": 119}, "project": {"id": 379, "owner": {"id": 771}, "assignee": {"id": 864}}, "task": {"id": 397, "owner": {"id": 963}, "assignee": {"id": 67}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 589}, "organization": {"id": 624}, "project": {"id": 394, "owner": {"id": 766}, "assignee": {"id": 826}}, "task": {"id": 359, "owner": {"id": 917}, "assignee": {"id": 74}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 574}, "organization": {"id": 126}, "project": {"id": 343, "owner": {"id": 795}, "assignee": {"id": 873}}, "task": {"id": 367, "owner": {"id": 959}, "assignee": {"id": 10}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 573}, "organization": {"id": 633}, "project": {"id": 350, "owner": {"id": 799}, "assignee": {"id": 891}}, "task": {"id": 339, "owner": {"id": 987}, "assignee": {"id": 39}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 525}, "organization": {"id": 195}, "project": {"id": 320, "owner": {"id": 715}, "assignee": {"id": 890}}, "task": {"id": 383, "owner": {"id": 975}, "assignee": {"id": 13}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 567}, "organization": {"id": 604}, "project": {"id": 381, "owner": {"id": 750}, "assignee": {"id": 889}}, "task": {"id": 392, "owner": {"id": 908}, "assignee": {"id": 88}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 560}, "organization": {"id": 116}, "project": {"id": 385, "owner": {"id": 766}, "assignee": {"id": 861}}, "task": {"id": 385, "owner": {"id": 913}, "assignee": {"id": 69}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 501}, "organization": {"id": 656}, "project": {"id": 314, "owner": {"id": 768}, "assignee": {"id": 831}}, "task": {"id": 315, "owner": {"id": 906}, "assignee": {"id": 84}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 559}, "organization": {"id": 168}, "project": {"id": 379, "owner": {"id": 769}, "assignee": {"id": 800}}, "task": {"id": 352, "owner": {"id": 986}, "assignee": {"id": 90}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 525}, "organization": {"id": 673}, "project": {"id": 371, "owner": {"id": 788}, "assignee": {"id": 816}}, "task": {"id": 368, "owner": {"id": 968}, "assignee": {"id": 10}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 536}, "organization": {"id": 154}, "project": {"id": 386, "owner": {"id": 712}, "assignee": {"id": 837}}, "task": {"id": 354, "owner": {"id": 980}, "assignee": {"id": 88}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 506}, "organization": {"id": 612}, "project": {"id": 305, "owner": {"id": 709}, "assignee": {"id": 803}}, "task": {"id": 357, "owner": {"id": 927}, "assignee": {"id": 65}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 579}, "organization": {"id": 138}, "project": {"id": 388, "owner": {"id": 768}, "assignee": {"id": 858}}, "task": {"id": 376, "owner": {"id": 913}, "assignee": {"id": 10}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 544}, "organization": {"id": 651}, "project": {"id": 324, "owner": {"id": 790}, "assignee": {"id": 831}}, "task": {"id": 359, "owner": {"id": 911}, "assignee": {"id": 26}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 529}, "organization": {"id": 124}, "project": {"id": 385, "owner": {"id": 719}, "assignee": {"id": 849}}, "task": {"id": 391, "owner": {"id": 969}, "assignee": {"id": 60}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 555}, "organization": {"id": 621}, "project": {"id": 366, "owner": {"id": 749}, "assignee": {"id": 891}}, "task": {"id": 399, "owner": {"id": 949}, "assignee": {"id": 25}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 567}, "organization": {"id": 123}, "project": {"id": 355, "owner": {"id": 736}, "assignee": {"id": 870}}, "task": {"id": 383, "owner": {"id": 942}, "assignee": {"id": 87}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 524}, "organization": {"id": 694}, "project": {"id": 357, "owner": {"id": 798}, "assignee": {"id": 833}}, "task": {"id": 376, "owner": {"id": 952}, "assignee": {"id": 28}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 534}, "organization": {"id": 136}, "project": {"id": 348, "owner": {"id": 753}, "assignee": {"id": 899}}, "task": {"id": 399, "owner": {"id": 948}, "assignee": {"id": 29}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 576}, "organization": {"id": 627}, "project": {"id": 326, "owner": {"id": 707}, "assignee": {"id": 843}}, "task": {"id": 357, "owner": {"id": 900}, "assignee": {"id": 38}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 515}, "organization": {"id": 148}, "project": {"id": 382, "owner": {"id": 773}, "assignee": {"id": 848}}, "task": {"id": 362, "owner": {"id": 924}, "assignee": {"id": 75}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 511}, "organization": {"id": 637}, "project": {"id": 398, "owner": {"id": 763}, "assignee": {"id": 802}}, "task": {"id": 364, "owner": {"id": 973}, "assignee": {"id": 35}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 13}, "organization": {"id": 129}, "project": {"id": 347, "owner": {"id": 710}, "assignee": {"id": 801}}, "task": {"id": 360, "owner": {"id": 984}, "assignee": {"id": 1072}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 24}, "organization": {"id": 637}, "project": {"id": 364, "owner": {"id": 780}, "assignee": {"id": 810}}, "task": {"id": 330, "owner": {"id": 920}, "assignee": {"id": 1073}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 18}, "organization": {"id": 172}, "project": {"id": 354, "owner": {"id": 780}, "assignee": {"id": 865}}, "task": {"id": 346, "owner": {"id": 978}, "assignee": {"id": 1000}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 15}, "organization": {"id": 649}, "project": {"id": 353, "owner": {"id": 790}, "assignee": {"id": 857}}, "task": {"id": 379, "owner": {"id": 969}, "assignee": {"id": 1097}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 63}, "organization": {"id": 161}, "project": {"id": 382, "owner": {"id": 723}, "assignee": {"id": 879}}, "task": {"id": 387, "owner": {"id": 969}, "assignee": {"id": 1099}}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 28}, "organization": {"id": 698}, "project": {"id": 324, "owner": {"id": 782}, "assignee": {"id": 864}}, "task": {"id": 391, "owner": {"id": 926}, "assignee": {"id": 1042}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 4}, "organization": {"id": 186}, "project": {"id": 341, "owner": {"id": 748}, "assignee": {"id": 850}}, "task": {"id": 389, "owner": {"id": 917}, "assignee": {"id": 1016}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 57}, "organization": {"id": 684}, "project": {"id": 391, "owner": {"id": 766}, "assignee": {"id": 843}}, "task": {"id": 354, "owner": {"id": 990}, "assignee": {"id": 1079}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 98}, "organization": {"id": 187}, "project": {"id": 347, "owner": {"id": 768}, "assignee": {"id": 824}}, "task": {"id": 307, "owner": {"id": 948}, "assignee": {"id": 1004}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 93}, "organization": {"id": 673}, "project": {"id": 389, "owner": {"id": 772}, "assignee": {"id": 858}}, "task": {"id": 362, "owner": {"id": 938}, "assignee": {"id": 1043}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 65}, "organization": {"id": 158}, "project": {"id": 348, "owner": {"id": 743}, "assignee": {"id": 863}}, "task": {"id": 343, "owner": {"id": 939}, "assignee": {"id": 1022}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 33}, "organization": {"id": 624}, "project": {"id": 350, "owner": {"id": 773}, "assignee": {"id": 880}}, "task": {"id": 318, "owner": {"id": 970}, "assignee": {"id": 1037}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 29}, "organization": {"id": 130}, "project": {"id": 313, "owner": {"id": 731}, "assignee": {"id": 828}}, "task": {"id": 331, "owner": {"id": 938}, "assignee": {"id": 1012}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 82}, "organization": {"id": 621}, "project": {"id": 350, "owner": {"id": 715}, "assignee": {"id": 881}}, "task": {"id": 313, "owner": {"id": 908}, "assignee": {"id": 1023}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 15}, "organization": {"id": 115}, "project": {"id": 369, "owner": {"id": 718}, "assignee": {"id": 852}}, "task": {"id": 320, "owner": {"id": 978}, "assignee": {"id": 1049}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 72}, "organization": {"id": 600}, "project": {"id": 306, "owner": {"id": 732}, "assignee": {"id": 800}}, "task": {"id": 360, "owner": {"id": 992}, "assignee": {"id": 1072}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 85}, "organization": {"id": 128}, "project": {"id": 375, "owner": {"id": 799}, "assignee": {"id": 858}}, "task": {"id": 305, "owner": {"id": 985}, "assignee": {"id": 1018}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 27}, "organization": {"id": 696}, "project": {"id": 385, "owner": {"id": 727}, "assignee": {"id": 821}}, "task": {"id": 306, "owner": {"id": 943}, "assignee": {"id": 1038}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 47}, "organization": {"id": 195}, "project": {"id": 350, "owner": {"id": 716}, "assignee": {"id": 872}}, "task": {"id": 354, "owner": {"id": 991}, "assignee": {"id": 1052}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 58}, "organization": {"id": 618}, "project": {"id": 375, "owner": {"id": 717}, "assignee": {"id": 874}}, "task": {"id": 381, "owner": {"id": 921}, "assignee": {"id": 1038}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 9}, "organization": {"id": 106}, "project": {"id": 384, "owner": {"id": 712}, "assignee": {"id": 888}}, "task": {"id": 331, "owner": {"id": 929}, "assignee": {"id": 1097}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 83}, "organization": {"id": 687}, "project": {"id": 358, "owner": {"id": 732}, "assignee": {"id": 856}}, "task": {"id": 347, "owner": {"id": 977}, "assignee": {"id": 1017}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 10}, "organization": {"id": 151}, "project": {"id": 340, "owner": {"id": 787}, "assignee": {"id": 848}}, "task": {"id": 331, "owner": {"id": 938}, "assignee": {"id": 1065}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 86}, "organization": {"id": 668}, "project": {"id": 313, "owner": {"id": 756}, "assignee": {"id": 885}}, "task": {"id": 302, "owner": {"id": 913}, "assignee": {"id": 1087}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 65}, "organization": {"id": 150}, "project": {"id": 331, "owner": {"id": 798}, "assignee": {"id": 894}}, "task": {"id": 394, "owner": {"id": 996}, "assignee": {"id": 1042}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 95}, "organization": {"id": 656}, "project": {"id": 333, "owner": {"id": 747}, "assignee": {"id": 896}}, "task": {"id": 369, "owner": {"id": 939}, "assignee": {"id": 1091}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 95}, "organization": {"id": 108}, "project": {"id": 322, "owner": {"id": 751}, "assignee": {"id": 863}}, "task": {"id": 333, "owner": {"id": 978}, "assignee": {"id": 1035}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 14}, "organization": {"id": 649}, "project": {"id": 371, "owner": {"id": 791}, "assignee": {"id": 884}}, "task": {"id": 387, "owner": {"id": 939}, "assignee": {"id": 1068}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 33}, "organization": {"id": 127}, "project": {"id": 356, "owner": {"id": 720}, "assignee": {"id": 850}}, "task": {"id": 324, "owner": {"id": 981}, "assignee": {"id": 1044}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 4}, "organization": {"id": 636}, "project": {"id": 388, "owner": {"id": 711}, "assignee": {"id": 835}}, "task": {"id": 323, "owner": {"id": 968}, "assignee": {"id": 1026}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 87}, "organization": {"id": 177}, "project": {"id": 313, "owner": {"id": 729}, "assignee": {"id": 803}}, "task": {"id": 370, "owner": {"id": 977}, "assignee": {"id": 1009}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 55}, "organization": {"id": 650}, "project": {"id": 329, "owner": {"id": 792}, "assignee": {"id": 851}}, "task": {"id": 335, "owner": {"id": 958}, "assignee": {"id": 1061}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 21}, "organization": {"id": 189}, "project": {"id": 363, "owner": {"id": 726}, "assignee": {"id": 844}}, "task": {"id": 383, "owner": {"id": 943}, "assignee": {"id": 1070}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 1}, "organization": {"id": 645}, "project": {"id": 387, "owner": {"id": 794}, "assignee": {"id": 805}}, "task": {"id": 390, "owner": {"id": 978}, "assignee": {"id": 1025}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 28}, "organization": {"id": 125}, "project": {"id": 344, "owner": {"id": 768}, "assignee": {"id": 884}}, "task": {"id": 312, "owner": {"id": 900}, "assignee": {"id": 1071}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 63}, "organization": {"id": 619}, "project": {"id": 396, "owner": {"id": 791}, "assignee": {"id": 866}}, "task": {"id": 367, "owner": {"id": 941}, "assignee": {"id": 1004}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 80}, "organization": {"id": 111}, "project": {"id": 312, "owner": {"id": 741}, "assignee": {"id": 869}}, "task": {"id": 315, "owner": {"id": 954}, "assignee": {"id": 1072}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 54}, "organization": {"id": 601}, "project": {"id": 374, "owner": {"id": 710}, "assignee": {"id": 827}}, "task": {"id": 387, "owner": {"id": 945}, "assignee": {"id": 1005}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 63}, "organization": {"id": 151}, "project": {"id": 346, "owner": {"id": 709}, "assignee": {"id": 802}}, "task": {"id": 317, "owner": {"id": 952}, "assignee": {"id": 1082}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 18}, "organization": {"id": 613}, "project": {"id": 389, "owner": {"id": 735}, "assignee": {"id": 852}}, "task": {"id": 355, "owner": {"id": 944}, "assignee": {"id": 1042}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 314, "assignee": {"id": 98}, "organization": {"id": 143}, "project": {"id": 351, "owner": {"id": 736}, "assignee": {"id": 809}}, "task": {"id": 358, "owner": {"id": 942}, "assignee": {"id": 1056}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 71}, "organization": {"id": 697}, "project": {"id": 377, "owner": {"id": 749}, "assignee": {"id": 808}}, "task": {"id": 382, "owner": {"id": 928}, "assignee": {"id": 1078}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 25}, "organization": {"id": 133}, "project": {"id": 334, "owner": {"id": 709}, "assignee": {"id": 895}}, "task": {"id": 333, "owner": {"id": 936}, "assignee": {"id": 1057}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 22}, "organization": {"id": 628}, "project": {"id": 304, "owner": {"id": 781}, "assignee": {"id": 833}}, "task": {"id": 328, "owner": {"id": 929}, "assignee": {"id": 1074}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 54}, "organization": {"id": 157}, "project": {"id": 351, "owner": {"id": 720}, "assignee": {"id": 868}}, "task": {"id": 304, "owner": {"id": 932}, "assignee": {"id": 1063}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 10}, "organization": {"id": 632}, "project": {"id": 353, "owner": {"id": 731}, "assignee": {"id": 848}}, "task": {"id": 309, "owner": {"id": 978}, "assignee": {"id": 1068}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 98}, "organization": {"id": 175}, "project": {"id": 313, "owner": {"id": 759}, "assignee": {"id": 884}}, "task": {"id": 374, "owner": {"id": 900}, "assignee": {"id": 1024}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 382, "assignee": {"id": 3}, "organization": {"id": 634}, "project": {"id": 364, "owner": {"id": 711}, "assignee": {"id": 807}}, "task": {"id": 369, "owner": {"id": 963}, "assignee": {"id": 1088}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 22}, "organization": {"id": 191}, "project": {"id": 363, "owner": {"id": 786}, "assignee": {"id": 845}}, "task": {"id": 362, "owner": {"id": 902}, "assignee": {"id": 1095}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 56}, "organization": {"id": 695}, "project": {"id": 359, "owner": {"id": 707}, "assignee": {"id": 801}}, "task": {"id": 303, "owner": {"id": 945}, "assignee": {"id": 1095}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 579}, "organization": {"id": 189}, "project": {"id": 360, "owner": {"id": 708}, "assignee": {"id": 810}}, "task": {"id": 312, "owner": {"id": 972}, "assignee": {"id": 1064}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 548}, "organization": {"id": 606}, "project": {"id": 388, "owner": {"id": 771}, "assignee": {"id": 822}}, "task": {"id": 307, "owner": {"id": 902}, "assignee": {"id": 1079}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 574}, "organization": {"id": 143}, "project": {"id": 373, "owner": {"id": 715}, "assignee": {"id": 880}}, "task": {"id": 300, "owner": {"id": 950}, "assignee": {"id": 1035}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 552}, "organization": {"id": 631}, "project": {"id": 393, "owner": {"id": 720}, "assignee": {"id": 823}}, "task": {"id": 354, "owner": {"id": 944}, "assignee": {"id": 1075}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 541}, "organization": {"id": 103}, "project": {"id": 350, "owner": {"id": 743}, "assignee": {"id": 852}}, "task": {"id": 334, "owner": {"id": 916}, "assignee": {"id": 1019}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 523}, "organization": {"id": 646}, "project": {"id": 341, "owner": {"id": 730}, "assignee": {"id": 848}}, "task": {"id": 369, "owner": {"id": 981}, "assignee": {"id": 1081}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 537}, "organization": {"id": 160}, "project": {"id": 381, "owner": {"id": 798}, "assignee": {"id": 841}}, "task": {"id": 303, "owner": {"id": 927}, "assignee": {"id": 1067}}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 521}, "organization": {"id": 683}, "project": {"id": 313, "owner": {"id": 711}, "assignee": {"id": 892}}, "task": {"id": 321, "owner": {"id": 936}, "assignee": {"id": 1017}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 589}, "organization": {"id": 163}, "project": {"id": 331, "owner": {"id": 733}, "assignee": {"id": 852}}, "task": {"id": 328, "owner": {"id": 992}, "assignee": {"id": 1084}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 598}, "organization": {"id": 689}, "project": {"id": 372, "owner": {"id": 745}, "assignee": {"id": 804}}, "task": {"id": 371, "owner": {"id": 959}, "assignee": {"id": 1091}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 571}, "organization": {"id": 114}, "project": {"id": 344, "owner": {"id": 766}, "assignee": {"id": 837}}, "task": {"id": 382, "owner": {"id": 994}, "assignee": {"id": 1081}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 507}, "organization": {"id": 678}, "project": {"id": 322, "owner": {"id": 715}, "assignee": {"id": 838}}, "task": {"id": 386, "owner": {"id": 919}, "assignee": {"id": 1096}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 536}, "organization": {"id": 188}, "project": {"id": 310, "owner": {"id": 789}, "assignee": {"id": 810}}, "task": {"id": 310, "owner": {"id": 956}, "assignee": {"id": 1003}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 540}, "organization": {"id": 666}, "project": {"id": 367, "owner": {"id": 700}, "assignee": {"id": 843}}, "task": {"id": 325, "owner": {"id": 974}, "assignee": {"id": 1098}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 592}, "organization": {"id": 186}, "project": {"id": 334, "owner": {"id": 782}, "assignee": {"id": 801}}, "task": {"id": 323, "owner": {"id": 993}, "assignee": {"id": 1055}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 506}, "organization": {"id": 670}, "project": {"id": 326, "owner": {"id": 720}, "assignee": {"id": 858}}, "task": {"id": 384, "owner": {"id": 953}, "assignee": {"id": 1063}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 551}, "organization": {"id": 195}, "project": {"id": 341, "owner": {"id": 788}, "assignee": {"id": 884}}, "task": {"id": 345, "owner": {"id": 937}, "assignee": {"id": 1084}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 532}, "organization": {"id": 615}, "project": {"id": 315, "owner": {"id": 763}, "assignee": {"id": 881}}, "task": {"id": 342, "owner": {"id": 928}, "assignee": {"id": 1057}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 540}, "organization": {"id": 145}, "project": {"id": 354, "owner": {"id": 716}, "assignee": {"id": 846}}, "task": {"id": 341, "owner": {"id": 938}, "assignee": {"id": 1099}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 544}, "organization": {"id": 630}, "project": {"id": 331, "owner": {"id": 789}, "assignee": {"id": 823}}, "task": {"id": 330, "owner": {"id": 946}, "assignee": {"id": 1093}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 523}, "organization": {"id": 121}, "project": {"id": 319, "owner": {"id": 750}, "assignee": {"id": 805}}, "task": {"id": 389, "owner": {"id": 907}, "assignee": {"id": 1098}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 550}, "organization": {"id": 648}, "project": {"id": 368, "owner": {"id": 787}, "assignee": {"id": 884}}, "task": {"id": 306, "owner": {"id": 969}, "assignee": {"id": 1023}}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 507}, "organization": {"id": 192}, "project": {"id": 369, "owner": {"id": 735}, "assignee": {"id": 874}}, "task": {"id": 348, "owner": {"id": 947}, "assignee": {"id": 1007}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 509}, "organization": {"id": 604}, "project": {"id": 398, "owner": {"id": 721}, "assignee": {"id": 871}}, "task": {"id": 381, "owner": {"id": 988}, "assignee": {"id": 1026}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 509}, "organization": {"id": 119}, "project": {"id": 378, "owner": {"id": 731}, "assignee": {"id": 848}}, "task": {"id": 315, "owner": {"id": 974}, "assignee": {"id": 1099}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 580}, "organization": {"id": 638}, "project": {"id": 320, "owner": {"id": 769}, "assignee": {"id": 898}}, "task": {"id": 335, "owner": {"id": 907}, "assignee": {"id": 1057}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 552}, "organization": {"id": 180}, "project": {"id": 376, "owner": {"id": 703}, "assignee": {"id": 800}}, "task": {"id": 307, "owner": {"id": 980}, "assignee": {"id": 1072}}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 533}, "organization": {"id": 606}, "project": {"id": 391, "owner": {"id": 788}, "assignee": {"id": 883}}, "task": {"id": 350, "owner": {"id": 915}, "assignee": {"id": 1084}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 591}, "organization": {"id": 114}, "project": {"id": 395, "owner": {"id": 715}, "assignee": {"id": 808}}, "task": {"id": 395, "owner": {"id": 975}, "assignee": {"id": 1021}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 578}, "organization": {"id": 604}, "project": {"id": 395, "owner": {"id": 798}, "assignee": {"id": 801}}, "task": {"id": 349, "owner": {"id": 944}, "assignee": {"id": 1030}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 555}, "organization": {"id": 122}, "project": {"id": 395, "owner": {"id": 714}, "assignee": {"id": 888}}, "task": {"id": 306, "owner": {"id": 994}, "assignee": {"id": 1035}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 548}, "organization": {"id": 634}, "project": {"id": 365, "owner": {"id": 762}, "assignee": {"id": 869}}, "task": {"id": 322, "owner": {"id": 986}, "assignee": {"id": 1021}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 552}, "organization": {"id": 116}, "project": {"id": 379, "owner": {"id": 755}, "assignee": {"id": 819}}, "task": {"id": 317, "owner": {"id": 973}, "assignee": {"id": 1034}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 561}, "organization": {"id": 613}, "project": {"id": 314, "owner": {"id": 762}, "assignee": {"id": 885}}, "task": {"id": 323, "owner": {"id": 964}, "assignee": {"id": 1035}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 562}, "organization": {"id": 115}, "project": {"id": 335, "owner": {"id": 774}, "assignee": {"id": 829}}, "task": {"id": 356, "owner": {"id": 907}, "assignee": {"id": 1087}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 586}, "organization": {"id": 680}, "project": {"id": 332, "owner": {"id": 701}, "assignee": {"id": 875}}, "task": {"id": 338, "owner": {"id": 964}, "assignee": {"id": 1055}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 581}, "organization": {"id": 178}, "project": {"id": 312, "owner": {"id": 742}, "assignee": {"id": 813}}, "task": {"id": 317, "owner": {"id": 981}, "assignee": {"id": 1083}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 536}, "organization": {"id": 674}, "project": {"id": 367, "owner": {"id": 704}, "assignee": {"id": 868}}, "task": {"id": 337, "owner": {"id": 988}, "assignee": {"id": 1077}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 534}, "organization": {"id": 133}, "project": {"id": 387, "owner": {"id": 724}, "assignee": {"id": 887}}, "task": {"id": 383, "owner": {"id": 996}, "assignee": {"id": 1060}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 564}, "organization": {"id": 668}, "project": {"id": 399, "owner": {"id": 763}, "assignee": {"id": 863}}, "task": {"id": 367, "owner": {"id": 997}, "assignee": {"id": 1023}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 519}, "organization": {"id": 167}, "project": {"id": 355, "owner": {"id": 711}, "assignee": {"id": 801}}, "task": {"id": 318, "owner": {"id": 983}, "assignee": {"id": 1024}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 541}, "organization": {"id": 664}, "project": {"id": 359, "owner": {"id": 734}, "assignee": {"id": 877}}, "task": {"id": 386, "owner": {"id": 994}, "assignee": {"id": 1027}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 563}, "organization": {"id": 131}, "project": {"id": 384, "owner": {"id": 718}, "assignee": {"id": 835}}, "task": {"id": 383, "owner": {"id": 906}, "assignee": {"id": 1083}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 509}, "organization": {"id": 623}, "project": {"id": 374, "owner": {"id": 792}, "assignee": {"id": 867}}, "task": {"id": 386, "owner": {"id": 941}, "assignee": {"id": 1006}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 572}, "organization": {"id": 182}, "project": {"id": 308, "owner": {"id": 773}, "assignee": {"id": 813}}, "task": {"id": 355, "owner": {"id": 972}, "assignee": {"id": 1007}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 596}, "organization": {"id": 699}, "project": {"id": 326, "owner": {"id": 700}, "assignee": {"id": 866}}, "task": {"id": 326, "owner": {"id": 982}, "assignee": {"id": 1068}}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 310, "assignee": {"id": 522}, "organization": {"id": 130}, "project": {"id": 383, "owner": {"id": 751}, "assignee": {"id": 804}}, "task": {"id": 349, "owner": {"id": 983}, "assignee": {"id": 1054}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 575}, "organization": {"id": 656}, "project": {"id": 334, "owner": {"id": 734}, "assignee": {"id": 869}}, "task": {"id": 352, "owner": {"id": 948}, "assignee": {"id": 1006}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 570}, "organization": {"id": 156}, "project": {"id": 323, "owner": {"id": 715}, "assignee": {"id": 858}}, "task": {"id": 394, "owner": {"id": 978}, "assignee": {"id": 1067}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 505}, "organization": {"id": 640}, "project": {"id": 341, "owner": {"id": 748}, "assignee": {"id": 870}}, "task": {"id": 355, "owner": {"id": 925}, "assignee": {"id": 1025}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 504}, "organization": {"id": 631}, "project": {"id": 342, "owner": {"id": 58}, "assignee": {"id": 841}}, "task": {"id": 346, "owner": {"id": 945}, "assignee": {"id": 1039}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 519}, "organization": {"id": 641}, "project": {"id": 332, "owner": {"id": 64}, "assignee": {"id": 883}}, "task": {"id": 316, "owner": {"id": 908}, "assignee": {"id": 1049}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 523}, "organization": {"id": 690}, "project": {"id": 374, "owner": {"id": 48}, "assignee": {"id": 869}}, "task": {"id": 323, "owner": {"id": 967}, "assignee": {"id": 1070}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 565}, "organization": {"id": 627}, "project": {"id": 340, "owner": {"id": 79}, "assignee": {"id": 839}}, "task": {"id": 332, "owner": {"id": 975}, "assignee": {"id": 1027}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 586}, "organization": {"id": 627}, "project": {"id": 305, "owner": {"id": 62}, "assignee": {"id": 861}}, "task": {"id": 311, "owner": {"id": 975}, "assignee": {"id": 1044}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 500}, "organization": {"id": 678}, "project": {"id": 352, "owner": {"id": 728}, "assignee": {"id": 49}}, "task": {"id": 338, "owner": {"id": 932}, "assignee": {"id": 1085}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 539}, "organization": {"id": 695}, "project": {"id": 359, "owner": {"id": 761}, "assignee": {"id": 32}}, "task": {"id": 319, "owner": {"id": 938}, "assignee": {"id": 1018}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": null}, "resource": {"id": 361, "assignee": {"id": 554}, "organization": {"id": 672}, "project": {"id": 380, "owner": {"id": 757}, "assignee": {"id": 10}}, "task": {"id": 327, "owner": {"id": 998}, "assignee": {"id": 1009}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 525}, "organization": {"id": 698}, "project": {"id": 325, "owner": {"id": 727}, "assignee": {"id": 69}}, "task": {"id": 338, "owner": {"id": 921}, "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": 82, "privilege": "none"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 545}, "organization": {"id": 653}, "project": {"id": 384, "owner": {"id": 797}, "assignee": {"id": 82}}, "task": {"id": 311, "owner": {"id": 940}, "assignee": {"id": 1005}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": null}, "resource": {"id": 331, "assignee": {"id": 569}, "organization": {"id": 615}, "project": {"id": 369, "owner": {"id": 791}, "assignee": {"id": 803}}, "task": {"id": 377, "owner": {"id": 25}, "assignee": {"id": 1033}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 564}, "organization": {"id": 643}, "project": {"id": 380, "owner": {"id": 701}, "assignee": {"id": 881}}, "task": {"id": 336, "owner": {"id": 46}, "assignee": {"id": 1021}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 329, "assignee": {"id": 506}, "organization": {"id": 688}, "project": {"id": 343, "owner": {"id": 773}, "assignee": {"id": 810}}, "task": {"id": 356, "owner": {"id": 76}, "assignee": {"id": 1051}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": null}, "resource": {"id": 368, "assignee": {"id": 575}, "organization": {"id": 638}, "project": {"id": 300, "owner": {"id": 750}, "assignee": {"id": 859}}, "task": {"id": 327, "owner": {"id": 33}, "assignee": {"id": 1072}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "assignee": {"id": 528}, "organization": {"id": 645}, "project": {"id": 332, "owner": {"id": 789}, "assignee": {"id": 821}}, "task": {"id": 362, "owner": {"id": 35}, "assignee": {"id": 1084}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 526}, "organization": {"id": 603}, "project": {"id": 328, "owner": {"id": 743}, "assignee": {"id": 857}}, "task": {"id": 324, "owner": {"id": 948}, "assignee": {"id": 90}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": null}, "resource": {"id": 395, "assignee": {"id": 510}, "organization": {"id": 691}, "project": {"id": 344, "owner": {"id": 758}, "assignee": {"id": 804}}, "task": {"id": 331, "owner": {"id": 955}, "assignee": {"id": 86}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": null}, "resource": {"id": 341, "assignee": {"id": 585}, "organization": {"id": 605}, "project": {"id": 353, "owner": {"id": 716}, "assignee": {"id": 821}}, "task": {"id": 358, "owner": {"id": 915}, "assignee": {"id": 83}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 386, "assignee": {"id": 574}, "organization": {"id": 643}, "project": {"id": 306, "owner": {"id": 725}, "assignee": {"id": 881}}, "task": {"id": 392, "owner": {"id": 955}, "assignee": {"id": 62}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"id": 363, "assignee": {"id": 527}, "organization": {"id": 648}, "project": {"id": 303, "owner": {"id": 763}, "assignee": {"id": 856}}, "task": {"id": 398, "owner": {"id": 989}, "assignee": {"id": 76}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 78}, "organization": {"id": 621}, "project": {"id": 366, "owner": {"id": 771}, "assignee": {"id": 814}}, "task": {"id": 395, "owner": {"id": 950}, "assignee": {"id": 1092}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 18}, "organization": {"id": 622}, "project": {"id": 370, "owner": {"id": 732}, "assignee": {"id": 874}}, "task": {"id": 370, "owner": {"id": 951}, "assignee": {"id": 1078}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 84}, "organization": {"id": 692}, "project": {"id": 316, "owner": {"id": 778}, "assignee": {"id": 812}}, "task": {"id": 364, "owner": {"id": 931}, "assignee": {"id": 1070}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": null}, "resource": {"id": 374, "assignee": {"id": 67}, "organization": {"id": 651}, "project": {"id": 336, "owner": {"id": 724}, "assignee": {"id": 843}}, "task": {"id": 326, "owner": {"id": 961}, "assignee": {"id": 1005}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": null}, "resource": {"id": 341, "assignee": {"id": 95}, "organization": {"id": 646}, "project": {"id": 313, "owner": {"id": 765}, "assignee": {"id": 816}}, "task": {"id": 336, "owner": {"id": 922}, "assignee": {"id": 1006}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 542}, "organization": {"id": 670}, "project": {"id": 305, "owner": {"id": 727}, "assignee": {"id": 839}}, "task": {"id": 359, "owner": {"id": 967}, "assignee": {"id": 1025}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 358, "assignee": {"id": 550}, "organization": {"id": 611}, "project": {"id": 352, "owner": {"id": 700}, "assignee": {"id": 890}}, "task": {"id": 377, "owner": {"id": 952}, "assignee": {"id": 1079}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "assignee": {"id": 564}, "organization": {"id": 621}, "project": {"id": 347, "owner": {"id": 714}, "assignee": {"id": 861}}, "task": {"id": 349, "owner": {"id": 971}, "assignee": {"id": 1052}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 389, "assignee": {"id": 590}, "organization": {"id": 603}, "project": {"id": 309, "owner": {"id": 786}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 912}, "assignee": {"id": 1007}}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 512}, "organization": {"id": 686}, "project": {"id": 394, "owner": {"id": 715}, "assignee": {"id": 854}}, "task": {"id": 370, "owner": {"id": 922}, "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": 52, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 582}, "organization": {"id": 183}, "project": {"id": 311, "owner": {"id": 52}, "assignee": {"id": 856}}, "task": {"id": 302, "owner": {"id": 991}, "assignee": {"id": 1048}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 528}, "organization": {"id": 645}, "project": {"id": 377, "owner": {"id": 33}, "assignee": {"id": 867}}, "task": {"id": 338, "owner": {"id": 989}, "assignee": {"id": 1003}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 535}, "organization": {"id": 152}, "project": {"id": 370, "owner": {"id": 66}, "assignee": {"id": 829}}, "task": {"id": 318, "owner": {"id": 954}, "assignee": {"id": 1079}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 507}, "organization": {"id": 616}, "project": {"id": 336, "owner": {"id": 91}, "assignee": {"id": 829}}, "task": {"id": 356, "owner": {"id": 970}, "assignee": {"id": 1060}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 593}, "organization": {"id": 163}, "project": {"id": 303, "owner": {"id": 10}, "assignee": {"id": 897}}, "task": {"id": 320, "owner": {"id": 918}, "assignee": {"id": 1061}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 521}, "organization": {"id": 617}, "project": {"id": 360, "owner": {"id": 81}, "assignee": {"id": 809}}, "task": {"id": 356, "owner": {"id": 995}, "assignee": {"id": 1006}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 599}, "organization": {"id": 161}, "project": {"id": 356, "owner": {"id": 14}, "assignee": {"id": 839}}, "task": {"id": 371, "owner": {"id": 909}, "assignee": {"id": 1004}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 536}, "organization": {"id": 661}, "project": {"id": 335, "owner": {"id": 33}, "assignee": {"id": 888}}, "task": {"id": 359, "owner": {"id": 958}, "assignee": {"id": 1012}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 593}, "organization": {"id": 193}, "project": {"id": 364, "owner": {"id": 0}, "assignee": {"id": 833}}, "task": {"id": 353, "owner": {"id": 912}, "assignee": {"id": 1016}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 500}, "organization": {"id": 638}, "project": {"id": 368, "owner": {"id": 26}, "assignee": {"id": 896}}, "task": {"id": 348, "owner": {"id": 955}, "assignee": {"id": 1092}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 385, "assignee": {"id": 552}, "organization": {"id": 140}, "project": {"id": 305, "owner": {"id": 63}, "assignee": {"id": 819}}, "task": {"id": 318, "owner": {"id": 977}, "assignee": {"id": 1075}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 510}, "organization": {"id": 658}, "project": {"id": 322, "owner": {"id": 1}, "assignee": {"id": 804}}, "task": {"id": 390, "owner": {"id": 980}, "assignee": {"id": 1002}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 580}, "organization": {"id": 138}, "project": {"id": 392, "owner": {"id": 56}, "assignee": {"id": 899}}, "task": {"id": 399, "owner": {"id": 900}, "assignee": {"id": 1043}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 574}, "organization": {"id": 682}, "project": {"id": 366, "owner": {"id": 77}, "assignee": {"id": 899}}, "task": {"id": 397, "owner": {"id": 944}, "assignee": {"id": 1088}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 597}, "organization": {"id": 197}, "project": {"id": 307, "owner": {"id": 24}, "assignee": {"id": 823}}, "task": {"id": 349, "owner": {"id": 999}, "assignee": {"id": 1081}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 518}, "organization": {"id": 638}, "project": {"id": 334, "owner": {"id": 81}, "assignee": {"id": 848}}, "task": {"id": 360, "owner": {"id": 960}, "assignee": {"id": 1015}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 548}, "organization": {"id": 131}, "project": {"id": 304, "owner": {"id": 83}, "assignee": {"id": 856}}, "task": {"id": 354, "owner": {"id": 966}, "assignee": {"id": 1065}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 585}, "organization": {"id": 608}, "project": {"id": 384, "owner": {"id": 2}, "assignee": {"id": 808}}, "task": {"id": 314, "owner": {"id": 947}, "assignee": {"id": 1082}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 575}, "organization": {"id": 161}, "project": {"id": 359, "owner": {"id": 65}, "assignee": {"id": 889}}, "task": {"id": 349, "owner": {"id": 927}, "assignee": {"id": 1029}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 539}, "organization": {"id": 692}, "project": {"id": 384, "owner": {"id": 50}, "assignee": {"id": 873}}, "task": {"id": 340, "owner": {"id": 931}, "assignee": {"id": 1019}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 555}, "organization": {"id": 108}, "project": {"id": 315, "owner": {"id": 69}, "assignee": {"id": 821}}, "task": {"id": 301, "owner": {"id": 988}, "assignee": {"id": 1003}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 567}, "organization": {"id": 661}, "project": {"id": 353, "owner": {"id": 51}, "assignee": {"id": 887}}, "task": {"id": 314, "owner": {"id": 919}, "assignee": {"id": 1069}}}} +} + +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": 103, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 558}, "organization": {"id": 103}, "project": {"id": 396, "owner": {"id": 0}, "assignee": {"id": 819}}, "task": {"id": 310, "owner": {"id": 913}, "assignee": {"id": 1066}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 521}, "organization": {"id": 633}, "project": {"id": 344, "owner": {"id": 9}, "assignee": {"id": 837}}, "task": {"id": 309, "owner": {"id": 992}, "assignee": {"id": 1000}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 507}, "organization": {"id": 164}, "project": {"id": 309, "owner": {"id": 83}, "assignee": {"id": 883}}, "task": {"id": 335, "owner": {"id": 901}, "assignee": {"id": 1026}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 518}, "organization": {"id": 639}, "project": {"id": 314, "owner": {"id": 18}, "assignee": {"id": 821}}, "task": {"id": 337, "owner": {"id": 983}, "assignee": {"id": 1078}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 592}, "organization": {"id": 158}, "project": {"id": 353, "owner": {"id": 61}, "assignee": {"id": 819}}, "task": {"id": 306, "owner": {"id": 958}, "assignee": {"id": 1000}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 562}, "organization": {"id": 696}, "project": {"id": 377, "owner": {"id": 83}, "assignee": {"id": 806}}, "task": {"id": 353, "owner": {"id": 984}, "assignee": {"id": 1048}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 587}, "organization": {"id": 119}, "project": {"id": 339, "owner": {"id": 36}, "assignee": {"id": 806}}, "task": {"id": 350, "owner": {"id": 953}, "assignee": {"id": 1063}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 506}, "organization": {"id": 643}, "project": {"id": 313, "owner": {"id": 87}, "assignee": {"id": 834}}, "task": {"id": 394, "owner": {"id": 901}, "assignee": {"id": 1070}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 505}, "organization": {"id": 161}, "project": {"id": 343, "owner": {"id": 21}, "assignee": {"id": 837}}, "task": {"id": 329, "owner": {"id": 981}, "assignee": {"id": 1041}}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 553}, "organization": {"id": 672}, "project": {"id": 309, "owner": {"id": 51}, "assignee": {"id": 895}}, "task": {"id": 357, "owner": {"id": 981}, "assignee": {"id": 1074}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 521}, "organization": {"id": 183}, "project": {"id": 398, "owner": {"id": 26}, "assignee": {"id": 857}}, "task": {"id": 327, "owner": {"id": 953}, "assignee": {"id": 1023}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 512}, "organization": {"id": 623}, "project": {"id": 383, "owner": {"id": 45}, "assignee": {"id": 854}}, "task": {"id": 371, "owner": {"id": 933}, "assignee": {"id": 1016}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 584}, "organization": {"id": 196}, "project": {"id": 301, "owner": {"id": 17}, "assignee": {"id": 888}}, "task": {"id": 347, "owner": {"id": 948}, "assignee": {"id": 1076}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 522}, "organization": {"id": 656}, "project": {"id": 390, "owner": {"id": 4}, "assignee": {"id": 843}}, "task": {"id": 324, "owner": {"id": 993}, "assignee": {"id": 1067}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 545}, "organization": {"id": 165}, "project": {"id": 332, "owner": {"id": 91}, "assignee": {"id": 862}}, "task": {"id": 358, "owner": {"id": 908}, "assignee": {"id": 1040}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 507}, "organization": {"id": 610}, "project": {"id": 352, "owner": {"id": 97}, "assignee": {"id": 866}}, "task": {"id": 339, "owner": {"id": 918}, "assignee": {"id": 1040}}}} +} + +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": 167, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 596}, "organization": {"id": 167}, "project": {"id": 306, "owner": {"id": 72}, "assignee": {"id": 839}}, "task": {"id": 318, "owner": {"id": 984}, "assignee": {"id": 1076}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 562}, "organization": {"id": 641}, "project": {"id": 394, "owner": {"id": 86}, "assignee": {"id": 897}}, "task": {"id": 390, "owner": {"id": 995}, "assignee": {"id": 1028}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 534}, "organization": {"id": 134}, "project": {"id": 345, "owner": {"id": 41}, "assignee": {"id": 888}}, "task": {"id": 386, "owner": {"id": 975}, "assignee": {"id": 1044}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 535}, "organization": {"id": 672}, "project": {"id": 313, "owner": {"id": 15}, "assignee": {"id": 848}}, "task": {"id": 313, "owner": {"id": 956}, "assignee": {"id": 1042}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 594}, "organization": {"id": 142}, "project": {"id": 389, "owner": {"id": 93}, "assignee": {"id": 851}}, "task": {"id": 337, "owner": {"id": 938}, "assignee": {"id": 1005}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 575}, "organization": {"id": 651}, "project": {"id": 320, "owner": {"id": 33}, "assignee": {"id": 853}}, "task": {"id": 322, "owner": {"id": 949}, "assignee": {"id": 1024}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 559}, "organization": {"id": 144}, "project": {"id": 395, "owner": {"id": 64}, "assignee": {"id": 816}}, "task": {"id": 341, "owner": {"id": 997}, "assignee": {"id": 1099}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 516}, "organization": {"id": 611}, "project": {"id": 363, "owner": {"id": 61}, "assignee": {"id": 847}}, "task": {"id": 356, "owner": {"id": 926}, "assignee": {"id": 1044}}}} +} + +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": 197, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 570}, "organization": {"id": 197}, "project": {"id": 393, "owner": {"id": 13}, "assignee": {"id": 820}}, "task": {"id": 320, "owner": {"id": 981}, "assignee": {"id": 1083}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 563}, "organization": {"id": 621}, "project": {"id": 357, "owner": {"id": 28}, "assignee": {"id": 894}}, "task": {"id": 307, "owner": {"id": 953}, "assignee": {"id": 1055}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 544}, "organization": {"id": 119}, "project": {"id": 326, "owner": {"id": 55}, "assignee": {"id": 897}}, "task": {"id": 314, "owner": {"id": 944}, "assignee": {"id": 1091}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 537}, "organization": {"id": 629}, "project": {"id": 378, "owner": {"id": 44}, "assignee": {"id": 834}}, "task": {"id": 391, "owner": {"id": 932}, "assignee": {"id": 1031}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 588}, "organization": {"id": 165}, "project": {"id": 326, "owner": {"id": 790}, "assignee": {"id": 55}}, "task": {"id": 309, "owner": {"id": 974}, "assignee": {"id": 1092}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 538}, "organization": {"id": 604}, "project": {"id": 334, "owner": {"id": 783}, "assignee": {"id": 44}}, "task": {"id": 317, "owner": {"id": 910}, "assignee": {"id": 1099}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 584}, "organization": {"id": 112}, "project": {"id": 390, "owner": {"id": 772}, "assignee": {"id": 94}}, "task": {"id": 319, "owner": {"id": 907}, "assignee": {"id": 1093}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 545}, "organization": {"id": 686}, "project": {"id": 310, "owner": {"id": 765}, "assignee": {"id": 51}}, "task": {"id": 377, "owner": {"id": 966}, "assignee": {"id": 1044}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 576}, "organization": {"id": 188}, "project": {"id": 338, "owner": {"id": 770}, "assignee": {"id": 67}}, "task": {"id": 384, "owner": {"id": 968}, "assignee": {"id": 1049}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 593}, "organization": {"id": 626}, "project": {"id": 387, "owner": {"id": 783}, "assignee": {"id": 4}}, "task": {"id": 381, "owner": {"id": 953}, "assignee": {"id": 1023}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 558}, "organization": {"id": 128}, "project": {"id": 359, "owner": {"id": 738}, "assignee": {"id": 93}}, "task": {"id": 396, "owner": {"id": 938}, "assignee": {"id": 1090}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 590}, "organization": {"id": 699}, "project": {"id": 389, "owner": {"id": 762}, "assignee": {"id": 45}}, "task": {"id": 370, "owner": {"id": 934}, "assignee": {"id": 1026}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 581}, "organization": {"id": 149}, "project": {"id": 319, "owner": {"id": 773}, "assignee": {"id": 91}}, "task": {"id": 372, "owner": {"id": 955}, "assignee": {"id": 1076}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 599}, "organization": {"id": 660}, "project": {"id": 378, "owner": {"id": 787}, "assignee": {"id": 75}}, "task": {"id": 305, "owner": {"id": 995}, "assignee": {"id": 1011}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 563}, "organization": {"id": 112}, "project": {"id": 378, "owner": {"id": 719}, "assignee": {"id": 65}}, "task": {"id": 345, "owner": {"id": 958}, "assignee": {"id": 1093}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 577}, "organization": {"id": 664}, "project": {"id": 329, "owner": {"id": 736}, "assignee": {"id": 92}}, "task": {"id": 368, "owner": {"id": 914}, "assignee": {"id": 1083}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 534}, "organization": {"id": 194}, "project": {"id": 351, "owner": {"id": 792}, "assignee": {"id": 60}}, "task": {"id": 335, "owner": {"id": 992}, "assignee": {"id": 1066}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 591}, "organization": {"id": 602}, "project": {"id": 375, "owner": {"id": 733}, "assignee": {"id": 33}}, "task": {"id": 322, "owner": {"id": 909}, "assignee": {"id": 1013}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 503}, "organization": {"id": 121}, "project": {"id": 317, "owner": {"id": 791}, "assignee": {"id": 21}}, "task": {"id": 345, "owner": {"id": 967}, "assignee": {"id": 1070}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 574}, "organization": {"id": 614}, "project": {"id": 318, "owner": {"id": 740}, "assignee": {"id": 57}}, "task": {"id": 305, "owner": {"id": 992}, "assignee": {"id": 1015}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 523}, "organization": {"id": 196}, "project": {"id": 351, "owner": {"id": 710}, "assignee": {"id": 41}}, "task": {"id": 346, "owner": {"id": 909}, "assignee": {"id": 1060}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 523}, "organization": {"id": 655}, "project": {"id": 330, "owner": {"id": 785}, "assignee": {"id": 92}}, "task": {"id": 330, "owner": {"id": 900}, "assignee": {"id": 1059}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 536}, "organization": {"id": 168}, "project": {"id": 342, "owner": {"id": 742}, "assignee": {"id": 91}}, "task": {"id": 310, "owner": {"id": 986}, "assignee": {"id": 1056}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 536}, "organization": {"id": 628}, "project": {"id": 395, "owner": {"id": 761}, "assignee": {"id": 64}}, "task": {"id": 332, "owner": {"id": 950}, "assignee": {"id": 1066}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 509}, "organization": {"id": 154}, "project": {"id": 360, "owner": {"id": 750}, "assignee": {"id": 11}}, "task": {"id": 305, "owner": {"id": 942}, "assignee": {"id": 1000}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 516}, "organization": {"id": 682}, "project": {"id": 320, "owner": {"id": 798}, "assignee": {"id": 30}}, "task": {"id": 359, "owner": {"id": 946}, "assignee": {"id": 1003}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 563}, "organization": {"id": 165}, "project": {"id": 396, "owner": {"id": 710}, "assignee": {"id": 47}}, "task": {"id": 322, "owner": {"id": 997}, "assignee": {"id": 1081}}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 518}, "organization": {"id": 648}, "project": {"id": 315, "owner": {"id": 733}, "assignee": {"id": 90}}, "task": {"id": 328, "owner": {"id": 965}, "assignee": {"id": 1057}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 554}, "organization": {"id": 102}, "project": {"id": 393, "owner": {"id": 782}, "assignee": {"id": 17}}, "task": {"id": 301, "owner": {"id": 938}, "assignee": {"id": 1094}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 540}, "organization": {"id": 617}, "project": {"id": 318, "owner": {"id": 772}, "assignee": {"id": 87}}, "task": {"id": 399, "owner": {"id": 901}, "assignee": {"id": 1095}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 531}, "organization": {"id": 177}, "project": {"id": 381, "owner": {"id": 790}, "assignee": {"id": 42}}, "task": {"id": 340, "owner": {"id": 949}, "assignee": {"id": 1069}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 530}, "organization": {"id": 695}, "project": {"id": 355, "owner": {"id": 707}, "assignee": {"id": 4}}, "task": {"id": 375, "owner": {"id": 984}, "assignee": {"id": 1004}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 510}, "organization": {"id": 199}, "project": {"id": 300, "owner": {"id": 778}, "assignee": {"id": 68}}, "task": {"id": 365, "owner": {"id": 950}, "assignee": {"id": 1077}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 528}, "organization": {"id": 662}, "project": {"id": 386, "owner": {"id": 775}, "assignee": {"id": 82}}, "task": {"id": 318, "owner": {"id": 965}, "assignee": {"id": 1099}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 546}, "organization": {"id": 135}, "project": {"id": 307, "owner": {"id": 765}, "assignee": {"id": 61}}, "task": {"id": 369, "owner": {"id": 922}, "assignee": {"id": 1001}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 557}, "organization": {"id": 659}, "project": {"id": 361, "owner": {"id": 764}, "assignee": {"id": 52}}, "task": {"id": 398, "owner": {"id": 944}, "assignee": {"id": 1072}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 592}, "organization": {"id": 137}, "project": {"id": 303, "owner": {"id": 753}, "assignee": {"id": 31}}, "task": {"id": 373, "owner": {"id": 978}, "assignee": {"id": 1029}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 570}, "organization": {"id": 676}, "project": {"id": 386, "owner": {"id": 766}, "assignee": {"id": 79}}, "task": {"id": 339, "owner": {"id": 983}, "assignee": {"id": 1052}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 585}, "organization": {"id": 172}, "project": {"id": 340, "owner": {"id": 752}, "assignee": {"id": 74}}, "task": {"id": 367, "owner": {"id": 946}, "assignee": {"id": 1034}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 521}, "organization": {"id": 644}, "project": {"id": 390, "owner": {"id": 748}, "assignee": {"id": 88}}, "task": {"id": 356, "owner": {"id": 946}, "assignee": {"id": 1078}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 578}, "organization": {"id": 116}, "project": {"id": 321, "owner": {"id": 708}, "assignee": {"id": 45}}, "task": {"id": 383, "owner": {"id": 971}, "assignee": {"id": 1003}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 533}, "organization": {"id": 671}, "project": {"id": 332, "owner": {"id": 781}, "assignee": {"id": 33}}, "task": {"id": 394, "owner": {"id": 981}, "assignee": {"id": 1013}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 588}, "organization": {"id": 198}, "project": {"id": 392, "owner": {"id": 729}, "assignee": {"id": 0}}, "task": {"id": 308, "owner": {"id": 943}, "assignee": {"id": 1093}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 566}, "organization": {"id": 651}, "project": {"id": 398, "owner": {"id": 764}, "assignee": {"id": 95}}, "task": {"id": 303, "owner": {"id": 908}, "assignee": {"id": 1042}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 502}, "organization": {"id": 181}, "project": {"id": 332, "owner": {"id": 737}, "assignee": {"id": 42}}, "task": {"id": 366, "owner": {"id": 934}, "assignee": {"id": 1032}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 576}, "organization": {"id": 674}, "project": {"id": 353, "owner": {"id": 764}, "assignee": {"id": 56}}, "task": {"id": 341, "owner": {"id": 907}, "assignee": {"id": 1061}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 513}, "organization": {"id": 152}, "project": {"id": 382, "owner": {"id": 714}, "assignee": {"id": 27}}, "task": {"id": 379, "owner": {"id": 906}, "assignee": {"id": 1018}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 578}, "organization": {"id": 631}, "project": {"id": 386, "owner": {"id": 715}, "assignee": {"id": 18}}, "task": {"id": 329, "owner": {"id": 925}, "assignee": {"id": 1025}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 587}, "organization": {"id": 196}, "project": {"id": 326, "owner": {"id": 714}, "assignee": {"id": 79}}, "task": {"id": 383, "owner": {"id": 933}, "assignee": {"id": 1075}}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 535}, "organization": {"id": 623}, "project": {"id": 350, "owner": {"id": 740}, "assignee": {"id": 66}}, "task": {"id": 369, "owner": {"id": 931}, "assignee": {"id": 1057}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 531}, "organization": {"id": 138}, "project": {"id": 313, "owner": {"id": 719}, "assignee": {"id": 49}}, "task": {"id": 354, "owner": {"id": 989}, "assignee": {"id": 1017}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 500}, "organization": {"id": 656}, "project": {"id": 343, "owner": {"id": 770}, "assignee": {"id": 95}}, "task": {"id": 376, "owner": {"id": 933}, "assignee": {"id": 1056}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 545}, "organization": {"id": 147}, "project": {"id": 337, "owner": {"id": 761}, "assignee": {"id": 49}}, "task": {"id": 334, "owner": {"id": 912}, "assignee": {"id": 1050}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 566}, "organization": {"id": 663}, "project": {"id": 320, "owner": {"id": 793}, "assignee": {"id": 59}}, "task": {"id": 325, "owner": {"id": 996}, "assignee": {"id": 1036}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 579}, "organization": {"id": 161}, "project": {"id": 305, "owner": {"id": 700}, "assignee": {"id": 820}}, "task": {"id": 350, "owner": {"id": 64}, "assignee": {"id": 1005}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 540}, "organization": {"id": 698}, "project": {"id": 308, "owner": {"id": 712}, "assignee": {"id": 844}}, "task": {"id": 317, "owner": {"id": 41}, "assignee": {"id": 1046}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 565}, "organization": {"id": 165}, "project": {"id": 327, "owner": {"id": 786}, "assignee": {"id": 826}}, "task": {"id": 339, "owner": {"id": 95}, "assignee": {"id": 1090}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 588}, "organization": {"id": 600}, "project": {"id": 394, "owner": {"id": 745}, "assignee": {"id": 854}}, "task": {"id": 318, "owner": {"id": 86}, "assignee": {"id": 1084}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 531}, "organization": {"id": 113}, "project": {"id": 304, "owner": {"id": 711}, "assignee": {"id": 887}}, "task": {"id": 363, "owner": {"id": 16}, "assignee": {"id": 1005}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 544}, "organization": {"id": 600}, "project": {"id": 335, "owner": {"id": 798}, "assignee": {"id": 863}}, "task": {"id": 330, "owner": {"id": 57}, "assignee": {"id": 1098}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 537}, "organization": {"id": 139}, "project": {"id": 311, "owner": {"id": 793}, "assignee": {"id": 868}}, "task": {"id": 352, "owner": {"id": 78}, "assignee": {"id": 1006}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 524}, "organization": {"id": 616}, "project": {"id": 377, "owner": {"id": 750}, "assignee": {"id": 847}}, "task": {"id": 300, "owner": {"id": 45}, "assignee": {"id": 1071}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 343, "assignee": {"id": 576}, "organization": {"id": 150}, "project": {"id": 376, "owner": {"id": 745}, "assignee": {"id": 850}}, "task": {"id": 368, "owner": {"id": 27}, "assignee": {"id": 1027}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 531}, "organization": {"id": 654}, "project": {"id": 344, "owner": {"id": 748}, "assignee": {"id": 839}}, "task": {"id": 337, "owner": {"id": 60}, "assignee": {"id": 1045}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 536}, "organization": {"id": 190}, "project": {"id": 396, "owner": {"id": 772}, "assignee": {"id": 843}}, "task": {"id": 370, "owner": {"id": 70}, "assignee": {"id": 1043}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 524}, "organization": {"id": 679}, "project": {"id": 376, "owner": {"id": 705}, "assignee": {"id": 860}}, "task": {"id": 324, "owner": {"id": 54}, "assignee": {"id": 1034}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 533}, "organization": {"id": 173}, "project": {"id": 371, "owner": {"id": 702}, "assignee": {"id": 808}}, "task": {"id": 337, "owner": {"id": 79}, "assignee": {"id": 1064}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 533}, "organization": {"id": 648}, "project": {"id": 340, "owner": {"id": 713}, "assignee": {"id": 877}}, "task": {"id": 399, "owner": {"id": 84}, "assignee": {"id": 1083}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 531}, "organization": {"id": 130}, "project": {"id": 353, "owner": {"id": 745}, "assignee": {"id": 865}}, "task": {"id": 314, "owner": {"id": 11}, "assignee": {"id": 1086}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 529}, "organization": {"id": 601}, "project": {"id": 382, "owner": {"id": 783}, "assignee": {"id": 831}}, "task": {"id": 377, "owner": {"id": 21}, "assignee": {"id": 1060}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 511}, "organization": {"id": 133}, "project": {"id": 393, "owner": {"id": 703}, "assignee": {"id": 853}}, "task": {"id": 318, "owner": {"id": 72}, "assignee": {"id": 1001}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 560}, "organization": {"id": 616}, "project": {"id": 368, "owner": {"id": 714}, "assignee": {"id": 869}}, "task": {"id": 352, "owner": {"id": 14}, "assignee": {"id": 1053}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 589}, "organization": {"id": 107}, "project": {"id": 317, "owner": {"id": 716}, "assignee": {"id": 857}}, "task": {"id": 369, "owner": {"id": 13}, "assignee": {"id": 1092}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 500}, "organization": {"id": 668}, "project": {"id": 373, "owner": {"id": 719}, "assignee": {"id": 877}}, "task": {"id": 331, "owner": {"id": 16}, "assignee": {"id": 1072}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 545}, "organization": {"id": 117}, "project": {"id": 369, "owner": {"id": 759}, "assignee": {"id": 831}}, "task": {"id": 321, "owner": {"id": 26}, "assignee": {"id": 1015}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 594}, "organization": {"id": 676}, "project": {"id": 362, "owner": {"id": 787}, "assignee": {"id": 810}}, "task": {"id": 377, "owner": {"id": 87}, "assignee": {"id": 1059}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 553}, "organization": {"id": 101}, "project": {"id": 386, "owner": {"id": 711}, "assignee": {"id": 852}}, "task": {"id": 368, "owner": {"id": 18}, "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": 53, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 530}, "organization": {"id": 671}, "project": {"id": 305, "owner": {"id": 702}, "assignee": {"id": 888}}, "task": {"id": 395, "owner": {"id": 53}, "assignee": {"id": 1077}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 533}, "organization": {"id": 160}, "project": {"id": 311, "owner": {"id": 753}, "assignee": {"id": 830}}, "task": {"id": 344, "owner": {"id": 33}, "assignee": {"id": 1083}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 524}, "organization": {"id": 611}, "project": {"id": 392, "owner": {"id": 751}, "assignee": {"id": 854}}, "task": {"id": 327, "owner": {"id": 91}, "assignee": {"id": 1088}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 598}, "organization": {"id": 111}, "project": {"id": 359, "owner": {"id": 776}, "assignee": {"id": 851}}, "task": {"id": 378, "owner": {"id": 94}, "assignee": {"id": 1083}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 590}, "organization": {"id": 600}, "project": {"id": 327, "owner": {"id": 798}, "assignee": {"id": 821}}, "task": {"id": 328, "owner": {"id": 4}, "assignee": {"id": 1068}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 513}, "organization": {"id": 123}, "project": {"id": 376, "owner": {"id": 737}, "assignee": {"id": 831}}, "task": {"id": 348, "owner": {"id": 52}, "assignee": {"id": 1015}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 541}, "organization": {"id": 684}, "project": {"id": 354, "owner": {"id": 773}, "assignee": {"id": 805}}, "task": {"id": 330, "owner": {"id": 74}, "assignee": {"id": 1063}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 521}, "organization": {"id": 176}, "project": {"id": 388, "owner": {"id": 771}, "assignee": {"id": 816}}, "task": {"id": 346, "owner": {"id": 9}, "assignee": {"id": 1072}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 581}, "organization": {"id": 603}, "project": {"id": 361, "owner": {"id": 752}, "assignee": {"id": 813}}, "task": {"id": 361, "owner": {"id": 87}, "assignee": {"id": 1048}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 511}, "organization": {"id": 194}, "project": {"id": 341, "owner": {"id": 733}, "assignee": {"id": 892}}, "task": {"id": 387, "owner": {"id": 3}, "assignee": {"id": 1020}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 517}, "organization": {"id": 654}, "project": {"id": 357, "owner": {"id": 784}, "assignee": {"id": 884}}, "task": {"id": 379, "owner": {"id": 88}, "assignee": {"id": 1074}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 565}, "organization": {"id": 100}, "project": {"id": 306, "owner": {"id": 745}, "assignee": {"id": 823}}, "task": {"id": 309, "owner": {"id": 92}, "assignee": {"id": 1097}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 555}, "organization": {"id": 654}, "project": {"id": 304, "owner": {"id": 791}, "assignee": {"id": 852}}, "task": {"id": 369, "owner": {"id": 46}, "assignee": {"id": 1020}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 524}, "organization": {"id": 166}, "project": {"id": 368, "owner": {"id": 772}, "assignee": {"id": 899}}, "task": {"id": 375, "owner": {"id": 55}, "assignee": {"id": 1094}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 526}, "organization": {"id": 692}, "project": {"id": 391, "owner": {"id": 775}, "assignee": {"id": 823}}, "task": {"id": 348, "owner": {"id": 60}, "assignee": {"id": 1017}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 514}, "organization": {"id": 103}, "project": {"id": 313, "owner": {"id": 779}, "assignee": {"id": 881}}, "task": {"id": 317, "owner": {"id": 89}, "assignee": {"id": 1015}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 554}, "organization": {"id": 699}, "project": {"id": 341, "owner": {"id": 748}, "assignee": {"id": 835}}, "task": {"id": 324, "owner": {"id": 88}, "assignee": {"id": 1088}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 526}, "organization": {"id": 101}, "project": {"id": 399, "owner": {"id": 705}, "assignee": {"id": 864}}, "task": {"id": 325, "owner": {"id": 66}, "assignee": {"id": 1082}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 565}, "organization": {"id": 652}, "project": {"id": 326, "owner": {"id": 707}, "assignee": {"id": 893}}, "task": {"id": 323, "owner": {"id": 91}, "assignee": {"id": 1089}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 552}, "organization": {"id": 135}, "project": {"id": 348, "owner": {"id": 756}, "assignee": {"id": 893}}, "task": {"id": 363, "owner": {"id": 66}, "assignee": {"id": 1080}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 575}, "organization": {"id": 684}, "project": {"id": 372, "owner": {"id": 744}, "assignee": {"id": 869}}, "task": {"id": 388, "owner": {"id": 87}, "assignee": {"id": 1081}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 537}, "organization": {"id": 171}, "project": {"id": 355, "owner": {"id": 764}, "assignee": {"id": 861}}, "task": {"id": 354, "owner": {"id": 77}, "assignee": {"id": 1050}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 508}, "organization": {"id": 675}, "project": {"id": 369, "owner": {"id": 765}, "assignee": {"id": 856}}, "task": {"id": 328, "owner": {"id": 25}, "assignee": {"id": 1000}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 593}, "organization": {"id": 144}, "project": {"id": 389, "owner": {"id": 723}, "assignee": {"id": 843}}, "task": {"id": 394, "owner": {"id": 17}, "assignee": {"id": 1068}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 386, "assignee": {"id": 516}, "organization": {"id": 644}, "project": {"id": 380, "owner": {"id": 781}, "assignee": {"id": 802}}, "task": {"id": 393, "owner": {"id": 36}, "assignee": {"id": 1033}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 577}, "organization": {"id": 146}, "project": {"id": 341, "owner": {"id": 744}, "assignee": {"id": 855}}, "task": {"id": 374, "owner": {"id": 97}, "assignee": {"id": 1056}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 566}, "organization": {"id": 659}, "project": {"id": 345, "owner": {"id": 729}, "assignee": {"id": 802}}, "task": {"id": 375, "owner": {"id": 42}, "assignee": {"id": 1089}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 553}, "organization": {"id": 183}, "project": {"id": 326, "owner": {"id": 737}, "assignee": {"id": 809}}, "task": {"id": 344, "owner": {"id": 970}, "assignee": {"id": 60}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 529}, "organization": {"id": 633}, "project": {"id": 304, "owner": {"id": 718}, "assignee": {"id": 826}}, "task": {"id": 384, "owner": {"id": 961}, "assignee": {"id": 23}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 586}, "organization": {"id": 132}, "project": {"id": 312, "owner": {"id": 780}, "assignee": {"id": 865}}, "task": {"id": 360, "owner": {"id": 960}, "assignee": {"id": 6}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 567}, "organization": {"id": 617}, "project": {"id": 364, "owner": {"id": 723}, "assignee": {"id": 841}}, "task": {"id": 380, "owner": {"id": 985}, "assignee": {"id": 30}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 532}, "organization": {"id": 118}, "project": {"id": 397, "owner": {"id": 743}, "assignee": {"id": 893}}, "task": {"id": 398, "owner": {"id": 934}, "assignee": {"id": 40}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 524}, "organization": {"id": 693}, "project": {"id": 348, "owner": {"id": 776}, "assignee": {"id": 813}}, "task": {"id": 348, "owner": {"id": 959}, "assignee": {"id": 39}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 559}, "organization": {"id": 170}, "project": {"id": 373, "owner": {"id": 772}, "assignee": {"id": 830}}, "task": {"id": 371, "owner": {"id": 997}, "assignee": {"id": 98}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 544}, "organization": {"id": 603}, "project": {"id": 358, "owner": {"id": 709}, "assignee": {"id": 834}}, "task": {"id": 395, "owner": {"id": 966}, "assignee": {"id": 76}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 579}, "organization": {"id": 149}, "project": {"id": 394, "owner": {"id": 748}, "assignee": {"id": 837}}, "task": {"id": 309, "owner": {"id": 907}, "assignee": {"id": 5}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 595}, "organization": {"id": 628}, "project": {"id": 307, "owner": {"id": 727}, "assignee": {"id": 891}}, "task": {"id": 318, "owner": {"id": 903}, "assignee": {"id": 12}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 570}, "organization": {"id": 196}, "project": {"id": 306, "owner": {"id": 738}, "assignee": {"id": 816}}, "task": {"id": 339, "owner": {"id": 928}, "assignee": {"id": 43}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 561}, "organization": {"id": 644}, "project": {"id": 338, "owner": {"id": 705}, "assignee": {"id": 851}}, "task": {"id": 346, "owner": {"id": 915}, "assignee": {"id": 55}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 501}, "organization": {"id": 153}, "project": {"id": 354, "owner": {"id": 784}, "assignee": {"id": 882}}, "task": {"id": 337, "owner": {"id": 932}, "assignee": {"id": 81}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 536}, "organization": {"id": 649}, "project": {"id": 346, "owner": {"id": 766}, "assignee": {"id": 886}}, "task": {"id": 349, "owner": {"id": 945}, "assignee": {"id": 41}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 522}, "organization": {"id": 168}, "project": {"id": 351, "owner": {"id": 794}, "assignee": {"id": 864}}, "task": {"id": 358, "owner": {"id": 954}, "assignee": {"id": 0}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 544}, "organization": {"id": 669}, "project": {"id": 313, "owner": {"id": 740}, "assignee": {"id": 892}}, "task": {"id": 395, "owner": {"id": 990}, "assignee": {"id": 51}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 514}, "organization": {"id": 115}, "project": {"id": 346, "owner": {"id": 799}, "assignee": {"id": 819}}, "task": {"id": 392, "owner": {"id": 972}, "assignee": {"id": 93}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 530}, "organization": {"id": 635}, "project": {"id": 380, "owner": {"id": 718}, "assignee": {"id": 899}}, "task": {"id": 393, "owner": {"id": 981}, "assignee": {"id": 23}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 550}, "organization": {"id": 137}, "project": {"id": 395, "owner": {"id": 712}, "assignee": {"id": 846}}, "task": {"id": 307, "owner": {"id": 963}, "assignee": {"id": 81}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 585}, "organization": {"id": 600}, "project": {"id": 376, "owner": {"id": 705}, "assignee": {"id": 836}}, "task": {"id": 353, "owner": {"id": 987}, "assignee": {"id": 37}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 552}, "organization": {"id": 183}, "project": {"id": 383, "owner": {"id": 796}, "assignee": {"id": 816}}, "task": {"id": 392, "owner": {"id": 978}, "assignee": {"id": 32}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 561}, "organization": {"id": 650}, "project": {"id": 334, "owner": {"id": 704}, "assignee": {"id": 897}}, "task": {"id": 361, "owner": {"id": 968}, "assignee": {"id": 46}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 576}, "organization": {"id": 134}, "project": {"id": 324, "owner": {"id": 786}, "assignee": {"id": 887}}, "task": {"id": 389, "owner": {"id": 995}, "assignee": {"id": 20}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 596}, "organization": {"id": 621}, "project": {"id": 316, "owner": {"id": 765}, "assignee": {"id": 828}}, "task": {"id": 333, "owner": {"id": 904}, "assignee": {"id": 22}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 582}, "organization": {"id": 123}, "project": {"id": 385, "owner": {"id": 722}, "assignee": {"id": 818}}, "task": {"id": 389, "owner": {"id": 911}, "assignee": {"id": 54}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 589}, "organization": {"id": 657}, "project": {"id": 366, "owner": {"id": 792}, "assignee": {"id": 850}}, "task": {"id": 392, "owner": {"id": 953}, "assignee": {"id": 37}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 596}, "organization": {"id": 144}, "project": {"id": 335, "owner": {"id": 701}, "assignee": {"id": 868}}, "task": {"id": 362, "owner": {"id": 996}, "assignee": {"id": 20}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 596}, "organization": {"id": 676}, "project": {"id": 384, "owner": {"id": 783}, "assignee": {"id": 819}}, "task": {"id": 366, "owner": {"id": 987}, "assignee": {"id": 61}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 594}, "organization": {"id": 179}, "project": {"id": 388, "owner": {"id": 707}, "assignee": {"id": 846}}, "task": {"id": 319, "owner": {"id": 950}, "assignee": {"id": 75}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 575}, "organization": {"id": 671}, "project": {"id": 304, "owner": {"id": 774}, "assignee": {"id": 815}}, "task": {"id": 327, "owner": {"id": 997}, "assignee": {"id": 55}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 369, "assignee": {"id": 593}, "organization": {"id": 194}, "project": {"id": 360, "owner": {"id": 749}, "assignee": {"id": 878}}, "task": {"id": 320, "owner": {"id": 956}, "assignee": {"id": 47}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 595}, "organization": {"id": 600}, "project": {"id": 310, "owner": {"id": 781}, "assignee": {"id": 887}}, "task": {"id": 373, "owner": {"id": 980}, "assignee": {"id": 70}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 518}, "organization": {"id": 135}, "project": {"id": 366, "owner": {"id": 797}, "assignee": {"id": 881}}, "task": {"id": 377, "owner": {"id": 974}, "assignee": {"id": 62}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 521}, "organization": {"id": 632}, "project": {"id": 374, "owner": {"id": 777}, "assignee": {"id": 814}}, "task": {"id": 305, "owner": {"id": 903}, "assignee": {"id": 47}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "assignee": {"id": 540}, "organization": {"id": 141}, "project": {"id": 392, "owner": {"id": 787}, "assignee": {"id": 865}}, "task": {"id": 351, "owner": {"id": 937}, "assignee": {"id": 69}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 590}, "organization": {"id": 621}, "project": {"id": 311, "owner": {"id": 759}, "assignee": {"id": 838}}, "task": {"id": 307, "owner": {"id": 989}, "assignee": {"id": 5}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 542}, "organization": {"id": 100}, "project": {"id": 326, "owner": {"id": 703}, "assignee": {"id": 844}}, "task": {"id": 346, "owner": {"id": 932}, "assignee": {"id": 13}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 549}, "organization": {"id": 635}, "project": {"id": 397, "owner": {"id": 741}, "assignee": {"id": 802}}, "task": {"id": 334, "owner": {"id": 985}, "assignee": {"id": 43}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 525}, "organization": {"id": 165}, "project": {"id": 373, "owner": {"id": 784}, "assignee": {"id": 859}}, "task": {"id": 399, "owner": {"id": 954}, "assignee": {"id": 11}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 593}, "organization": {"id": 698}, "project": {"id": 380, "owner": {"id": 768}, "assignee": {"id": 842}}, "task": {"id": 395, "owner": {"id": 974}, "assignee": {"id": 84}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 564}, "organization": {"id": 177}, "project": {"id": 391, "owner": {"id": 776}, "assignee": {"id": 804}}, "task": {"id": 330, "owner": {"id": 990}, "assignee": {"id": 87}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 526}, "organization": {"id": 653}, "project": {"id": 360, "owner": {"id": 721}, "assignee": {"id": 811}}, "task": {"id": 369, "owner": {"id": 978}, "assignee": {"id": 8}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 517}, "organization": {"id": 162}, "project": {"id": 327, "owner": {"id": 712}, "assignee": {"id": 896}}, "task": {"id": 378, "owner": {"id": 981}, "assignee": {"id": 47}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 587}, "organization": {"id": 673}, "project": {"id": 319, "owner": {"id": 725}, "assignee": {"id": 873}}, "task": {"id": 331, "owner": {"id": 908}, "assignee": {"id": 53}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 525}, "organization": {"id": 169}, "project": {"id": 321, "owner": {"id": 760}, "assignee": {"id": 859}}, "task": {"id": 352, "owner": {"id": 953}, "assignee": {"id": 52}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 574}, "organization": {"id": 640}, "project": {"id": 323, "owner": {"id": 716}, "assignee": {"id": 865}}, "task": {"id": 348, "owner": {"id": 976}, "assignee": {"id": 27}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 542}, "organization": {"id": 128}, "project": {"id": 316, "owner": {"id": 709}, "assignee": {"id": 896}}, "task": {"id": 339, "owner": {"id": 932}, "assignee": {"id": 23}}}} +} + +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": 129, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 516}, "organization": {"id": 622}, "project": {"id": 388, "owner": {"id": 705}, "assignee": {"id": 831}}, "task": {"id": 322, "owner": {"id": 921}, "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": 0, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 543}, "organization": {"id": 152}, "project": {"id": 398, "owner": {"id": 728}, "assignee": {"id": 878}}, "task": {"id": 349, "owner": {"id": 913}, "assignee": {"id": 0}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 536}, "organization": {"id": 622}, "project": {"id": 397, "owner": {"id": 708}, "assignee": {"id": 847}}, "task": {"id": 352, "owner": {"id": 974}, "assignee": {"id": 76}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 15}, "organization": {"id": 198}, "project": {"id": 353, "owner": {"id": 763}, "assignee": {"id": 823}}, "task": {"id": 394, "owner": {"id": 991}, "assignee": {"id": 1056}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 78}, "organization": {"id": 606}, "project": {"id": 334, "owner": {"id": 731}, "assignee": {"id": 890}}, "task": {"id": 376, "owner": {"id": 942}, "assignee": {"id": 1051}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 71}, "organization": {"id": 117}, "project": {"id": 308, "owner": {"id": 702}, "assignee": {"id": 870}}, "task": {"id": 309, "owner": {"id": 963}, "assignee": {"id": 1003}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 74}, "organization": {"id": 654}, "project": {"id": 314, "owner": {"id": 715}, "assignee": {"id": 845}}, "task": {"id": 389, "owner": {"id": 978}, "assignee": {"id": 1013}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 93}, "organization": {"id": 105}, "project": {"id": 306, "owner": {"id": 724}, "assignee": {"id": 859}}, "task": {"id": 325, "owner": {"id": 987}, "assignee": {"id": 1048}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 55}, "organization": {"id": 694}, "project": {"id": 341, "owner": {"id": 771}, "assignee": {"id": 840}}, "task": {"id": 358, "owner": {"id": 996}, "assignee": {"id": 1004}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 19}, "organization": {"id": 183}, "project": {"id": 345, "owner": {"id": 743}, "assignee": {"id": 873}}, "task": {"id": 389, "owner": {"id": 978}, "assignee": {"id": 1048}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 81}, "organization": {"id": 648}, "project": {"id": 398, "owner": {"id": 774}, "assignee": {"id": 816}}, "task": {"id": 323, "owner": {"id": 910}, "assignee": {"id": 1065}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 6}, "organization": {"id": 133}, "project": {"id": 329, "owner": {"id": 769}, "assignee": {"id": 860}}, "task": {"id": 379, "owner": {"id": 910}, "assignee": {"id": 1046}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 85}, "organization": {"id": 679}, "project": {"id": 344, "owner": {"id": 739}, "assignee": {"id": 898}}, "task": {"id": 353, "owner": {"id": 908}, "assignee": {"id": 1015}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 49}, "organization": {"id": 105}, "project": {"id": 385, "owner": {"id": 715}, "assignee": {"id": 888}}, "task": {"id": 381, "owner": {"id": 929}, "assignee": {"id": 1041}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 69}, "organization": {"id": 602}, "project": {"id": 314, "owner": {"id": 734}, "assignee": {"id": 899}}, "task": {"id": 325, "owner": {"id": 996}, "assignee": {"id": 1085}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 64}, "organization": {"id": 135}, "project": {"id": 311, "owner": {"id": 719}, "assignee": {"id": 845}}, "task": {"id": 354, "owner": {"id": 901}, "assignee": {"id": 1063}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 76}, "organization": {"id": 690}, "project": {"id": 324, "owner": {"id": 738}, "assignee": {"id": 824}}, "task": {"id": 383, "owner": {"id": 988}, "assignee": {"id": 1061}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 23}, "organization": {"id": 115}, "project": {"id": 397, "owner": {"id": 784}, "assignee": {"id": 850}}, "task": {"id": 365, "owner": {"id": 924}, "assignee": {"id": 1079}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 84}, "organization": {"id": 673}, "project": {"id": 385, "owner": {"id": 723}, "assignee": {"id": 873}}, "task": {"id": 393, "owner": {"id": 991}, "assignee": {"id": 1025}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 4}, "organization": {"id": 129}, "project": {"id": 391, "owner": {"id": 776}, "assignee": {"id": 855}}, "task": {"id": 397, "owner": {"id": 925}, "assignee": {"id": 1023}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 2}, "organization": {"id": 665}, "project": {"id": 303, "owner": {"id": 737}, "assignee": {"id": 835}}, "task": {"id": 358, "owner": {"id": 912}, "assignee": {"id": 1035}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 78}, "organization": {"id": 165}, "project": {"id": 397, "owner": {"id": 702}, "assignee": {"id": 824}}, "task": {"id": 310, "owner": {"id": 969}, "assignee": {"id": 1018}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 43}, "organization": {"id": 669}, "project": {"id": 336, "owner": {"id": 747}, "assignee": {"id": 850}}, "task": {"id": 373, "owner": {"id": 935}, "assignee": {"id": 1020}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 24}, "organization": {"id": 182}, "project": {"id": 365, "owner": {"id": 707}, "assignee": {"id": 866}}, "task": {"id": 388, "owner": {"id": 944}, "assignee": {"id": 1046}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 10}, "organization": {"id": 684}, "project": {"id": 338, "owner": {"id": 720}, "assignee": {"id": 818}}, "task": {"id": 361, "owner": {"id": 987}, "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": 17, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 17}, "organization": {"id": 144}, "project": {"id": 353, "owner": {"id": 747}, "assignee": {"id": 861}}, "task": {"id": 308, "owner": {"id": 952}, "assignee": {"id": 1085}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 56}, "organization": {"id": 628}, "project": {"id": 319, "owner": {"id": 717}, "assignee": {"id": 838}}, "task": {"id": 310, "owner": {"id": 951}, "assignee": {"id": 1067}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 9}, "organization": {"id": 111}, "project": {"id": 339, "owner": {"id": 713}, "assignee": {"id": 832}}, "task": {"id": 397, "owner": {"id": 920}, "assignee": {"id": 1056}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 70}, "organization": {"id": 677}, "project": {"id": 336, "owner": {"id": 758}, "assignee": {"id": 890}}, "task": {"id": 328, "owner": {"id": 961}, "assignee": {"id": 1027}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 6}, "organization": {"id": 100}, "project": {"id": 357, "owner": {"id": 763}, "assignee": {"id": 858}}, "task": {"id": 358, "owner": {"id": 994}, "assignee": {"id": 1002}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 76}, "organization": {"id": 604}, "project": {"id": 394, "owner": {"id": 767}, "assignee": {"id": 836}}, "task": {"id": 344, "owner": {"id": 908}, "assignee": {"id": 1065}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 2}, "organization": {"id": 104}, "project": {"id": 311, "owner": {"id": 700}, "assignee": {"id": 811}}, "task": {"id": 369, "owner": {"id": 971}, "assignee": {"id": 1070}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 343, "assignee": {"id": 54}, "organization": {"id": 608}, "project": {"id": 369, "owner": {"id": 731}, "assignee": {"id": 860}}, "task": {"id": 374, "owner": {"id": 960}, "assignee": {"id": 1000}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 63}, "organization": {"id": 143}, "project": {"id": 372, "owner": {"id": 705}, "assignee": {"id": 883}}, "task": {"id": 398, "owner": {"id": 925}, "assignee": {"id": 1004}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 7}, "organization": {"id": 645}, "project": {"id": 385, "owner": {"id": 758}, "assignee": {"id": 836}}, "task": {"id": 349, "owner": {"id": 914}, "assignee": {"id": 1013}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 83}, "organization": {"id": 180}, "project": {"id": 302, "owner": {"id": 789}, "assignee": {"id": 882}}, "task": {"id": 307, "owner": {"id": 947}, "assignee": {"id": 1033}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 53}, "organization": {"id": 619}, "project": {"id": 362, "owner": {"id": 773}, "assignee": {"id": 896}}, "task": {"id": 386, "owner": {"id": 996}, "assignee": {"id": 1056}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 73}, "organization": {"id": 104}, "project": {"id": 382, "owner": {"id": 760}, "assignee": {"id": 842}}, "task": {"id": 351, "owner": {"id": 945}, "assignee": {"id": 1042}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 86}, "organization": {"id": 669}, "project": {"id": 371, "owner": {"id": 715}, "assignee": {"id": 801}}, "task": {"id": 321, "owner": {"id": 925}, "assignee": {"id": 1037}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 26}, "organization": {"id": 199}, "project": {"id": 363, "owner": {"id": 744}, "assignee": {"id": 854}}, "task": {"id": 322, "owner": {"id": 900}, "assignee": {"id": 1017}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 86}, "organization": {"id": 640}, "project": {"id": 300, "owner": {"id": 761}, "assignee": {"id": 884}}, "task": {"id": 396, "owner": {"id": 934}, "assignee": {"id": 1099}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 80}, "organization": {"id": 156}, "project": {"id": 323, "owner": {"id": 709}, "assignee": {"id": 868}}, "task": {"id": 398, "owner": {"id": 947}, "assignee": {"id": 1003}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 12}, "organization": {"id": 656}, "project": {"id": 398, "owner": {"id": 777}, "assignee": {"id": 885}}, "task": {"id": 392, "owner": {"id": 983}, "assignee": {"id": 1005}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 97}, "organization": {"id": 154}, "project": {"id": 393, "owner": {"id": 764}, "assignee": {"id": 819}}, "task": {"id": 314, "owner": {"id": 916}, "assignee": {"id": 1089}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 34}, "organization": {"id": 694}, "project": {"id": 325, "owner": {"id": 723}, "assignee": {"id": 810}}, "task": {"id": 390, "owner": {"id": 902}, "assignee": {"id": 1085}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 3}, "organization": {"id": 108}, "project": {"id": 314, "owner": {"id": 734}, "assignee": {"id": 848}}, "task": {"id": 335, "owner": {"id": 975}, "assignee": {"id": 1058}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 69}, "organization": {"id": 684}, "project": {"id": 358, "owner": {"id": 743}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 953}, "assignee": {"id": 1081}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 37}, "organization": {"id": 177}, "project": {"id": 390, "owner": {"id": 759}, "assignee": {"id": 802}}, "task": {"id": 332, "owner": {"id": 995}, "assignee": {"id": 1072}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 46}, "organization": {"id": 641}, "project": {"id": 399, "owner": {"id": 778}, "assignee": {"id": 850}}, "task": {"id": 347, "owner": {"id": 903}, "assignee": {"id": 1088}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 60}, "organization": {"id": 176}, "project": {"id": 376, "owner": {"id": 738}, "assignee": {"id": 867}}, "task": {"id": 389, "owner": {"id": 902}, "assignee": {"id": 1031}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 71}, "organization": {"id": 618}, "project": {"id": 310, "owner": {"id": 722}, "assignee": {"id": 836}}, "task": {"id": 344, "owner": {"id": 909}, "assignee": {"id": 1028}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 87}, "organization": {"id": 158}, "project": {"id": 301, "owner": {"id": 739}, "assignee": {"id": 824}}, "task": {"id": 343, "owner": {"id": 955}, "assignee": {"id": 1033}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 75}, "organization": {"id": 662}, "project": {"id": 392, "owner": {"id": 767}, "assignee": {"id": 830}}, "task": {"id": 368, "owner": {"id": 934}, "assignee": {"id": 1066}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 550}, "organization": {"id": 184}, "project": {"id": 366, "owner": {"id": 759}, "assignee": {"id": 808}}, "task": {"id": 356, "owner": {"id": 904}, "assignee": {"id": 1052}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 536}, "organization": {"id": 644}, "project": {"id": 356, "owner": {"id": 787}, "assignee": {"id": 861}}, "task": {"id": 316, "owner": {"id": 912}, "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": 24, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 508}, "organization": {"id": 136}, "project": {"id": 344, "owner": {"id": 709}, "assignee": {"id": 815}}, "task": {"id": 380, "owner": {"id": 995}, "assignee": {"id": 1020}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 518}, "organization": {"id": 681}, "project": {"id": 388, "owner": {"id": 757}, "assignee": {"id": 847}}, "task": {"id": 314, "owner": {"id": 913}, "assignee": {"id": 1006}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 575}, "organization": {"id": 112}, "project": {"id": 372, "owner": {"id": 742}, "assignee": {"id": 818}}, "task": {"id": 379, "owner": {"id": 964}, "assignee": {"id": 1045}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 580}, "organization": {"id": 609}, "project": {"id": 342, "owner": {"id": 714}, "assignee": {"id": 815}}, "task": {"id": 348, "owner": {"id": 996}, "assignee": {"id": 1086}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 581}, "organization": {"id": 194}, "project": {"id": 327, "owner": {"id": 700}, "assignee": {"id": 813}}, "task": {"id": 311, "owner": {"id": 916}, "assignee": {"id": 1033}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 554}, "organization": {"id": 686}, "project": {"id": 318, "owner": {"id": 719}, "assignee": {"id": 817}}, "task": {"id": 340, "owner": {"id": 925}, "assignee": {"id": 1014}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 552}, "organization": {"id": 104}, "project": {"id": 306, "owner": {"id": 759}, "assignee": {"id": 885}}, "task": {"id": 392, "owner": {"id": 918}, "assignee": {"id": 1077}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 585}, "organization": {"id": 635}, "project": {"id": 337, "owner": {"id": 782}, "assignee": {"id": 873}}, "task": {"id": 376, "owner": {"id": 908}, "assignee": {"id": 1037}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 514}, "organization": {"id": 166}, "project": {"id": 343, "owner": {"id": 701}, "assignee": {"id": 840}}, "task": {"id": 313, "owner": {"id": 959}, "assignee": {"id": 1031}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 512}, "organization": {"id": 674}, "project": {"id": 373, "owner": {"id": 767}, "assignee": {"id": 884}}, "task": {"id": 383, "owner": {"id": 950}, "assignee": {"id": 1003}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 593}, "organization": {"id": 165}, "project": {"id": 327, "owner": {"id": 799}, "assignee": {"id": 854}}, "task": {"id": 353, "owner": {"id": 944}, "assignee": {"id": 1036}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 595}, "organization": {"id": 676}, "project": {"id": 326, "owner": {"id": 701}, "assignee": {"id": 879}}, "task": {"id": 397, "owner": {"id": 940}, "assignee": {"id": 1059}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 560}, "organization": {"id": 113}, "project": {"id": 335, "owner": {"id": 753}, "assignee": {"id": 801}}, "task": {"id": 354, "owner": {"id": 957}, "assignee": {"id": 1008}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 562}, "organization": {"id": 693}, "project": {"id": 381, "owner": {"id": 717}, "assignee": {"id": 855}}, "task": {"id": 346, "owner": {"id": 938}, "assignee": {"id": 1095}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 576}, "organization": {"id": 145}, "project": {"id": 340, "owner": {"id": 721}, "assignee": {"id": 864}}, "task": {"id": 358, "owner": {"id": 951}, "assignee": {"id": 1045}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 595}, "organization": {"id": 693}, "project": {"id": 322, "owner": {"id": 798}, "assignee": {"id": 856}}, "task": {"id": 314, "owner": {"id": 969}, "assignee": {"id": 1039}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 596}, "organization": {"id": 126}, "project": {"id": 300, "owner": {"id": 791}, "assignee": {"id": 873}}, "task": {"id": 324, "owner": {"id": 926}, "assignee": {"id": 1049}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 569}, "organization": {"id": 692}, "project": {"id": 306, "owner": {"id": 706}, "assignee": {"id": 835}}, "task": {"id": 309, "owner": {"id": 962}, "assignee": {"id": 1005}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 505}, "organization": {"id": 148}, "project": {"id": 333, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 356, "owner": {"id": 941}, "assignee": {"id": 1021}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 557}, "organization": {"id": 661}, "project": {"id": 387, "owner": {"id": 738}, "assignee": {"id": 856}}, "task": {"id": 377, "owner": {"id": 901}, "assignee": {"id": 1014}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 557}, "organization": {"id": 175}, "project": {"id": 337, "owner": {"id": 724}, "assignee": {"id": 877}}, "task": {"id": 398, "owner": {"id": 922}, "assignee": {"id": 1037}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 585}, "organization": {"id": 643}, "project": {"id": 326, "owner": {"id": 767}, "assignee": {"id": 812}}, "task": {"id": 383, "owner": {"id": 957}, "assignee": {"id": 1055}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 568}, "organization": {"id": 198}, "project": {"id": 302, "owner": {"id": 708}, "assignee": {"id": 801}}, "task": {"id": 358, "owner": {"id": 943}, "assignee": {"id": 1022}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 587}, "organization": {"id": 677}, "project": {"id": 397, "owner": {"id": 768}, "assignee": {"id": 895}}, "task": {"id": 328, "owner": {"id": 987}, "assignee": {"id": 1016}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 535}, "organization": {"id": 188}, "project": {"id": 304, "owner": {"id": 709}, "assignee": {"id": 835}}, "task": {"id": 351, "owner": {"id": 937}, "assignee": {"id": 1061}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 379, "assignee": {"id": 519}, "organization": {"id": 656}, "project": {"id": 317, "owner": {"id": 781}, "assignee": {"id": 883}}, "task": {"id": 306, "owner": {"id": 944}, "assignee": {"id": 1056}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 523}, "organization": {"id": 105}, "project": {"id": 375, "owner": {"id": 700}, "assignee": {"id": 810}}, "task": {"id": 345, "owner": {"id": 903}, "assignee": {"id": 1064}}}} +} + +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": 171, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 539}, "organization": {"id": 665}, "project": {"id": 352, "owner": {"id": 708}, "assignee": {"id": 878}}, "task": {"id": 343, "owner": {"id": 964}, "assignee": {"id": 1034}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 577}, "organization": {"id": 163}, "project": {"id": 302, "owner": {"id": 792}, "assignee": {"id": 857}}, "task": {"id": 370, "owner": {"id": 908}, "assignee": {"id": 1062}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 557}, "organization": {"id": 634}, "project": {"id": 369, "owner": {"id": 715}, "assignee": {"id": 818}}, "task": {"id": 372, "owner": {"id": 930}, "assignee": {"id": 1088}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 574}, "organization": {"id": 120}, "project": {"id": 367, "owner": {"id": 774}, "assignee": {"id": 857}}, "task": {"id": 360, "owner": {"id": 933}, "assignee": {"id": 1063}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 533}, "organization": {"id": 652}, "project": {"id": 364, "owner": {"id": 756}, "assignee": {"id": 850}}, "task": {"id": 356, "owner": {"id": 970}, "assignee": {"id": 1063}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 505}, "organization": {"id": 161}, "project": {"id": 338, "owner": {"id": 745}, "assignee": {"id": 808}}, "task": {"id": 307, "owner": {"id": 990}, "assignee": {"id": 1030}}}} +} + +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": 176, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 588}, "organization": {"id": 600}, "project": {"id": 353, "owner": {"id": 721}, "assignee": {"id": 826}}, "task": {"id": 300, "owner": {"id": 935}, "assignee": {"id": 1023}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 583}, "organization": {"id": 153}, "project": {"id": 379, "owner": {"id": 772}, "assignee": {"id": 815}}, "task": {"id": 323, "owner": {"id": 948}, "assignee": {"id": 1062}}}} +} + +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": 160, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 563}, "organization": {"id": 696}, "project": {"id": 370, "owner": {"id": 754}, "assignee": {"id": 863}}, "task": {"id": 304, "owner": {"id": 930}, "assignee": {"id": 1035}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 533}, "organization": {"id": 191}, "project": {"id": 387, "owner": {"id": 702}, "assignee": {"id": 827}}, "task": {"id": 382, "owner": {"id": 984}, "assignee": {"id": 1010}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 550}, "organization": {"id": 640}, "project": {"id": 347, "owner": {"id": 785}, "assignee": {"id": 816}}, "task": {"id": 355, "owner": {"id": 915}, "assignee": {"id": 1032}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 547}, "organization": {"id": 143}, "project": {"id": 324, "owner": {"id": 774}, "assignee": {"id": 873}}, "task": {"id": 352, "owner": {"id": 947}, "assignee": {"id": 1055}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 560}, "organization": {"id": 681}, "project": {"id": 312, "owner": {"id": 711}, "assignee": {"id": 829}}, "task": {"id": 373, "owner": {"id": 951}, "assignee": {"id": 1014}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 514}, "organization": {"id": 178}, "project": {"id": 330, "owner": {"id": 710}, "assignee": {"id": 867}}, "task": {"id": 354, "owner": {"id": 935}, "assignee": {"id": 1042}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 589}, "organization": {"id": 680}, "project": {"id": 345, "owner": {"id": 751}, "assignee": {"id": 891}}, "task": {"id": 301, "owner": {"id": 992}, "assignee": {"id": 1056}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 562}, "organization": {"id": 128}, "project": {"id": 313, "owner": {"id": 722}, "assignee": {"id": 869}}, "task": {"id": 315, "owner": {"id": 947}, "assignee": {"id": 1002}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 555}, "organization": {"id": 613}, "project": {"id": 399, "owner": {"id": 745}, "assignee": {"id": 894}}, "task": {"id": 352, "owner": {"id": 995}, "assignee": {"id": 1095}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 504}, "organization": {"id": 115}, "project": {"id": 316, "owner": {"id": 754}, "assignee": {"id": 832}}, "task": {"id": 392, "owner": {"id": 997}, "assignee": {"id": 1037}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 561}, "organization": {"id": 662}, "project": {"id": 366, "owner": {"id": 758}, "assignee": {"id": 862}}, "task": {"id": 330, "owner": {"id": 914}, "assignee": {"id": 1028}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 343, "assignee": {"id": 543}, "organization": {"id": 191}, "project": {"id": 311, "owner": {"id": 729}, "assignee": {"id": 893}}, "task": {"id": 358, "owner": {"id": 982}, "assignee": {"id": 1086}}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { + not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 507}, "organization": {"id": 653}, "project": {"id": 339, "owner": {"id": 726}, "assignee": {"id": 862}}, "task": {"id": 313, "owner": {"id": 999}, "assignee": {"id": 1026}}}} +} + +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": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 382, "assignee": {"id": 534}, "organization": {"id": 647}, "project": {"id": 327, "owner": {"id": 44}, "assignee": {"id": 894}}, "task": {"id": 303, "owner": {"id": 955}, "assignee": {"id": 1083}}}} +} + +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": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 396, "assignee": {"id": 565}, "organization": {"id": 684}, "project": {"id": 383, "owner": {"id": 11}, "assignee": {"id": 835}}, "task": {"id": 319, "owner": {"id": 970}, "assignee": {"id": 1040}}}} +} + +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": 69, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 517}, "organization": {"id": 636}, "project": {"id": 302, "owner": {"id": 69}, "assignee": {"id": 811}}, "task": {"id": 308, "owner": {"id": 904}, "assignee": {"id": 1042}}}} +} + +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": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "assignee": {"id": 593}, "organization": {"id": 690}, "project": {"id": 382, "owner": {"id": 92}, "assignee": {"id": 803}}, "task": {"id": 368, "owner": {"id": 948}, "assignee": {"id": 1097}}}} +} + +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": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "assignee": {"id": 525}, "organization": {"id": 699}, "project": {"id": 300, "owner": {"id": 58}, "assignee": {"id": 866}}, "task": {"id": 317, "owner": {"id": 941}, "assignee": {"id": 1085}}}} +} + +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": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 552}, "organization": {"id": 634}, "project": {"id": 348, "owner": {"id": 793}, "assignee": {"id": 77}}, "task": {"id": 357, "owner": {"id": 939}, "assignee": {"id": 1059}}}} +} + +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": 27, "privilege": "business"}, "organization": null}, "resource": {"id": 300, "assignee": {"id": 585}, "organization": {"id": 689}, "project": {"id": 346, "owner": {"id": 781}, "assignee": {"id": 27}}, "task": {"id": 359, "owner": {"id": 940}, "assignee": {"id": 1062}}}} +} + +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": 91, "privilege": "user"}, "organization": null}, "resource": {"id": 359, "assignee": {"id": 575}, "organization": {"id": 679}, "project": {"id": 376, "owner": {"id": 710}, "assignee": {"id": 91}}, "task": {"id": 352, "owner": {"id": 910}, "assignee": {"id": 1088}}}} +} + +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": 48, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "assignee": {"id": 528}, "organization": {"id": 686}, "project": {"id": 328, "owner": {"id": 748}, "assignee": {"id": 48}}, "task": {"id": 302, "owner": {"id": 981}, "assignee": {"id": 1045}}}} +} + +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": 19, "privilege": "none"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 507}, "organization": {"id": 628}, "project": {"id": 369, "owner": {"id": 758}, "assignee": {"id": 19}}, "task": {"id": 383, "owner": {"id": 963}, "assignee": {"id": 1005}}}} +} + +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": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 517}, "organization": {"id": 687}, "project": {"id": 372, "owner": {"id": 705}, "assignee": {"id": 891}}, "task": {"id": 335, "owner": {"id": 39}, "assignee": {"id": 1074}}}} +} + +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": 5, "privilege": "business"}, "organization": null}, "resource": {"id": 315, "assignee": {"id": 510}, "organization": {"id": 614}, "project": {"id": 323, "owner": {"id": 706}, "assignee": {"id": 888}}, "task": {"id": 350, "owner": {"id": 5}, "assignee": {"id": 1098}}}} +} + +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": 59, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 539}, "organization": {"id": 673}, "project": {"id": 366, "owner": {"id": 770}, "assignee": {"id": 809}}, "task": {"id": 310, "owner": {"id": 59}, "assignee": {"id": 1056}}}} +} + +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": 55, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 526}, "organization": {"id": 619}, "project": {"id": 338, "owner": {"id": 708}, "assignee": {"id": 854}}, "task": {"id": 391, "owner": {"id": 55}, "assignee": {"id": 1001}}}} +} + +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": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 549}, "organization": {"id": 616}, "project": {"id": 390, "owner": {"id": 747}, "assignee": {"id": 804}}, "task": {"id": 383, "owner": {"id": 22}, "assignee": {"id": 1007}}}} +} + +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": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 308, "assignee": {"id": 515}, "organization": {"id": 649}, "project": {"id": 379, "owner": {"id": 703}, "assignee": {"id": 805}}, "task": {"id": 331, "owner": {"id": 912}, "assignee": {"id": 31}}}} +} + +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": 1, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 508}, "organization": {"id": 679}, "project": {"id": 361, "owner": {"id": 763}, "assignee": {"id": 885}}, "task": {"id": 301, "owner": {"id": 966}, "assignee": {"id": 1}}}} +} + +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": 51, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 519}, "organization": {"id": 686}, "project": {"id": 392, "owner": {"id": 788}, "assignee": {"id": 863}}, "task": {"id": 361, "owner": {"id": 994}, "assignee": {"id": 51}}}} +} + +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": 32, "privilege": "worker"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 554}, "organization": {"id": 684}, "project": {"id": 361, "owner": {"id": 775}, "assignee": {"id": 868}}, "task": {"id": 354, "owner": {"id": 950}, "assignee": {"id": 32}}}} +} + +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": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 577}, "organization": {"id": 649}, "project": {"id": 309, "owner": {"id": 703}, "assignee": {"id": 801}}, "task": {"id": 389, "owner": {"id": 920}, "assignee": {"id": 46}}}} +} + +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": 87, "privilege": "admin"}, "organization": null}, "resource": {"id": 357, "assignee": {"id": 87}, "organization": {"id": 628}, "project": {"id": 383, "owner": {"id": 790}, "assignee": {"id": 856}}, "task": {"id": 326, "owner": {"id": 943}, "assignee": {"id": 1046}}}} +} + +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": 34, "privilege": "business"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 34}, "organization": {"id": 634}, "project": {"id": 322, "owner": {"id": 791}, "assignee": {"id": 880}}, "task": {"id": 332, "owner": {"id": 945}, "assignee": {"id": 1066}}}} +} + +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": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 76}, "organization": {"id": 629}, "project": {"id": 314, "owner": {"id": 712}, "assignee": {"id": 829}}, "task": {"id": 318, "owner": {"id": 924}, "assignee": {"id": 1056}}}} +} + +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": 81, "privilege": "worker"}, "organization": null}, "resource": {"id": 350, "assignee": {"id": 81}, "organization": {"id": 626}, "project": {"id": 337, "owner": {"id": 777}, "assignee": {"id": 885}}, "task": {"id": 384, "owner": {"id": 910}, "assignee": {"id": 1086}}}} +} + +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": 55, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 55}, "organization": {"id": 623}, "project": {"id": 394, "owner": {"id": 739}, "assignee": {"id": 802}}, "task": {"id": 321, "owner": {"id": 988}, "assignee": {"id": 1090}}}} +} + +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": 98, "privilege": "admin"}, "organization": null}, "resource": {"id": 343, "assignee": {"id": 522}, "organization": {"id": 640}, "project": {"id": 393, "owner": {"id": 769}, "assignee": {"id": 848}}, "task": {"id": 300, "owner": {"id": 970}, "assignee": {"id": 1023}}}} +} + +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": 7, "privilege": "business"}, "organization": null}, "resource": {"id": 368, "assignee": {"id": 535}, "organization": {"id": 685}, "project": {"id": 305, "owner": {"id": 748}, "assignee": {"id": 862}}, "task": {"id": 345, "owner": {"id": 969}, "assignee": {"id": 1008}}}} +} + +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": 28, "privilege": "user"}, "organization": null}, "resource": {"id": 339, "assignee": {"id": 513}, "organization": {"id": 699}, "project": {"id": 393, "owner": {"id": 705}, "assignee": {"id": 845}}, "task": {"id": 318, "owner": {"id": 916}, "assignee": {"id": 1051}}}} +} + +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": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 504}, "organization": {"id": 666}, "project": {"id": 314, "owner": {"id": 733}, "assignee": {"id": 849}}, "task": {"id": 368, "owner": {"id": 974}, "assignee": {"id": 1093}}}} +} + +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": 71, "privilege": "none"}, "organization": null}, "resource": {"id": 385, "assignee": {"id": 584}, "organization": {"id": 663}, "project": {"id": 307, "owner": {"id": 753}, "assignee": {"id": 860}}, "task": {"id": 362, "owner": {"id": 985}, "assignee": {"id": 1022}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 514}, "organization": {"id": 144}, "project": {"id": 392, "owner": {"id": 53}, "assignee": {"id": 867}}, "task": {"id": 317, "owner": {"id": 998}, "assignee": {"id": 1026}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 537}, "organization": {"id": 605}, "project": {"id": 323, "owner": {"id": 92}, "assignee": {"id": 849}}, "task": {"id": 368, "owner": {"id": 973}, "assignee": {"id": 1091}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 571}, "organization": {"id": 107}, "project": {"id": 381, "owner": {"id": 96}, "assignee": {"id": 879}}, "task": {"id": 313, "owner": {"id": 998}, "assignee": {"id": 1068}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 596}, "organization": {"id": 654}, "project": {"id": 336, "owner": {"id": 53}, "assignee": {"id": 888}}, "task": {"id": 309, "owner": {"id": 920}, "assignee": {"id": 1080}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 553}, "organization": {"id": 146}, "project": {"id": 390, "owner": {"id": 66}, "assignee": {"id": 833}}, "task": {"id": 380, "owner": {"id": 935}, "assignee": {"id": 1052}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 583}, "organization": {"id": 688}, "project": {"id": 331, "owner": {"id": 71}, "assignee": {"id": 889}}, "task": {"id": 327, "owner": {"id": 979}, "assignee": {"id": 1016}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 531}, "organization": {"id": 164}, "project": {"id": 377, "owner": {"id": 26}, "assignee": {"id": 827}}, "task": {"id": 319, "owner": {"id": 987}, "assignee": {"id": 1093}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 501}, "organization": {"id": 640}, "project": {"id": 369, "owner": {"id": 98}, "assignee": {"id": 820}}, "task": {"id": 397, "owner": {"id": 925}, "assignee": {"id": 1046}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 542}, "organization": {"id": 176}, "project": {"id": 358, "owner": {"id": 57}, "assignee": {"id": 866}}, "task": {"id": 344, "owner": {"id": 996}, "assignee": {"id": 1054}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 587}, "organization": {"id": 618}, "project": {"id": 392, "owner": {"id": 80}, "assignee": {"id": 844}}, "task": {"id": 300, "owner": {"id": 923}, "assignee": {"id": 1064}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 525}, "organization": {"id": 103}, "project": {"id": 318, "owner": {"id": 59}, "assignee": {"id": 869}}, "task": {"id": 398, "owner": {"id": 969}, "assignee": {"id": 1055}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 519}, "organization": {"id": 601}, "project": {"id": 357, "owner": {"id": 10}, "assignee": {"id": 866}}, "task": {"id": 337, "owner": {"id": 915}, "assignee": {"id": 1028}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 550}, "organization": {"id": 160}, "project": {"id": 341, "owner": {"id": 64}, "assignee": {"id": 828}}, "task": {"id": 364, "owner": {"id": 949}, "assignee": {"id": 1081}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 506}, "organization": {"id": 602}, "project": {"id": 397, "owner": {"id": 42}, "assignee": {"id": 811}}, "task": {"id": 383, "owner": {"id": 930}, "assignee": {"id": 1095}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 529}, "organization": {"id": 196}, "project": {"id": 347, "owner": {"id": 24}, "assignee": {"id": 883}}, "task": {"id": 376, "owner": {"id": 940}, "assignee": {"id": 1045}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 501}, "organization": {"id": 650}, "project": {"id": 363, "owner": {"id": 12}, "assignee": {"id": 884}}, "task": {"id": 398, "owner": {"id": 940}, "assignee": {"id": 1045}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 526}, "organization": {"id": 103}, "project": {"id": 399, "owner": {"id": 78}, "assignee": {"id": 840}}, "task": {"id": 327, "owner": {"id": 978}, "assignee": {"id": 1028}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 579}, "organization": {"id": 617}, "project": {"id": 344, "owner": {"id": 72}, "assignee": {"id": 870}}, "task": {"id": 363, "owner": {"id": 978}, "assignee": {"id": 1038}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 577}, "organization": {"id": 127}, "project": {"id": 318, "owner": {"id": 46}, "assignee": {"id": 836}}, "task": {"id": 321, "owner": {"id": 950}, "assignee": {"id": 1087}}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 542}, "organization": {"id": 644}, "project": {"id": 380, "owner": {"id": 93}, "assignee": {"id": 844}}, "task": {"id": 378, "owner": {"id": 953}, "assignee": {"id": 1056}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 567}, "organization": {"id": 155}, "project": {"id": 359, "owner": {"id": 88}, "assignee": {"id": 831}}, "task": {"id": 306, "owner": {"id": 921}, "assignee": {"id": 1034}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 583}, "organization": {"id": 629}, "project": {"id": 393, "owner": {"id": 85}, "assignee": {"id": 881}}, "task": {"id": 363, "owner": {"id": 915}, "assignee": {"id": 1051}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 519}, "organization": {"id": 173}, "project": {"id": 315, "owner": {"id": 17}, "assignee": {"id": 841}}, "task": {"id": 309, "owner": {"id": 948}, "assignee": {"id": 1005}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 568}, "organization": {"id": 639}, "project": {"id": 342, "owner": {"id": 11}, "assignee": {"id": 890}}, "task": {"id": 328, "owner": {"id": 960}, "assignee": {"id": 1070}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 529}, "organization": {"id": 148}, "project": {"id": 365, "owner": {"id": 92}, "assignee": {"id": 863}}, "task": {"id": 342, "owner": {"id": 960}, "assignee": {"id": 1097}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 578}, "organization": {"id": 636}, "project": {"id": 340, "owner": {"id": 86}, "assignee": {"id": 856}}, "task": {"id": 364, "owner": {"id": 910}, "assignee": {"id": 1056}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 555}, "organization": {"id": 153}, "project": {"id": 347, "owner": {"id": 91}, "assignee": {"id": 811}}, "task": {"id": 373, "owner": {"id": 980}, "assignee": {"id": 1026}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 592}, "organization": {"id": 662}, "project": {"id": 353, "owner": {"id": 43}, "assignee": {"id": 852}}, "task": {"id": 350, "owner": {"id": 974}, "assignee": {"id": 1060}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 512}, "organization": {"id": 198}, "project": {"id": 324, "owner": {"id": 56}, "assignee": {"id": 835}}, "task": {"id": 382, "owner": {"id": 956}, "assignee": {"id": 1063}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 534}, "organization": {"id": 632}, "project": {"id": 363, "owner": {"id": 54}, "assignee": {"id": 868}}, "task": {"id": 322, "owner": {"id": 974}, "assignee": {"id": 1035}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 369, "assignee": {"id": 534}, "organization": {"id": 121}, "project": {"id": 378, "owner": {"id": 68}, "assignee": {"id": 885}}, "task": {"id": 370, "owner": {"id": 903}, "assignee": {"id": 1021}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 575}, "organization": {"id": 610}, "project": {"id": 379, "owner": {"id": 92}, "assignee": {"id": 869}}, "task": {"id": 353, "owner": {"id": 961}, "assignee": {"id": 1006}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 506}, "organization": {"id": 108}, "project": {"id": 319, "owner": {"id": 43}, "assignee": {"id": 845}}, "task": {"id": 321, "owner": {"id": 939}, "assignee": {"id": 1056}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 583}, "organization": {"id": 650}, "project": {"id": 376, "owner": {"id": 24}, "assignee": {"id": 895}}, "task": {"id": 378, "owner": {"id": 958}, "assignee": {"id": 1024}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 545}, "organization": {"id": 169}, "project": {"id": 354, "owner": {"id": 29}, "assignee": {"id": 834}}, "task": {"id": 321, "owner": {"id": 950}, "assignee": {"id": 1098}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 597}, "organization": {"id": 612}, "project": {"id": 339, "owner": {"id": 65}, "assignee": {"id": 814}}, "task": {"id": 306, "owner": {"id": 977}, "assignee": {"id": 1071}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 557}, "organization": {"id": 190}, "project": {"id": 385, "owner": {"id": 7}, "assignee": {"id": 828}}, "task": {"id": 369, "owner": {"id": 926}, "assignee": {"id": 1037}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 562}, "organization": {"id": 664}, "project": {"id": 317, "owner": {"id": 55}, "assignee": {"id": 896}}, "task": {"id": 396, "owner": {"id": 964}, "assignee": {"id": 1057}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 583}, "organization": {"id": 169}, "project": {"id": 390, "owner": {"id": 70}, "assignee": {"id": 831}}, "task": {"id": 366, "owner": {"id": 964}, "assignee": {"id": 1053}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 520}, "organization": {"id": 626}, "project": {"id": 364, "owner": {"id": 81}, "assignee": {"id": 875}}, "task": {"id": 355, "owner": {"id": 922}, "assignee": {"id": 1060}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 512}, "organization": {"id": 182}, "project": {"id": 354, "owner": {"id": 23}, "assignee": {"id": 819}}, "task": {"id": 349, "owner": {"id": 931}, "assignee": {"id": 1058}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 517}, "organization": {"id": 642}, "project": {"id": 335, "owner": {"id": 39}, "assignee": {"id": 852}}, "task": {"id": 304, "owner": {"id": 934}, "assignee": {"id": 1062}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 546}, "organization": {"id": 117}, "project": {"id": 330, "owner": {"id": 98}, "assignee": {"id": 871}}, "task": {"id": 359, "owner": {"id": 934}, "assignee": {"id": 1052}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 505}, "organization": {"id": 653}, "project": {"id": 310, "owner": {"id": 58}, "assignee": {"id": 851}}, "task": {"id": 366, "owner": {"id": 953}, "assignee": {"id": 1036}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 592}, "organization": {"id": 197}, "project": {"id": 323, "owner": {"id": 90}, "assignee": {"id": 877}}, "task": {"id": 327, "owner": {"id": 929}, "assignee": {"id": 1029}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 555}, "organization": {"id": 655}, "project": {"id": 334, "owner": {"id": 68}, "assignee": {"id": 803}}, "task": {"id": 354, "owner": {"id": 975}, "assignee": {"id": 1033}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 538}, "organization": {"id": 150}, "project": {"id": 367, "owner": {"id": 39}, "assignee": {"id": 876}}, "task": {"id": 395, "owner": {"id": 978}, "assignee": {"id": 1082}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 579}, "organization": {"id": 609}, "project": {"id": 329, "owner": {"id": 11}, "assignee": {"id": 813}}, "task": {"id": 343, "owner": {"id": 998}, "assignee": {"id": 1035}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 536}, "organization": {"id": 181}, "project": {"id": 330, "owner": {"id": 4}, "assignee": {"id": 808}}, "task": {"id": 317, "owner": {"id": 974}, "assignee": {"id": 1013}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 502}, "organization": {"id": 617}, "project": {"id": 343, "owner": {"id": 39}, "assignee": {"id": 838}}, "task": {"id": 304, "owner": {"id": 942}, "assignee": {"id": 1006}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 596}, "organization": {"id": 124}, "project": {"id": 366, "owner": {"id": 779}, "assignee": {"id": 88}}, "task": {"id": 329, "owner": {"id": 944}, "assignee": {"id": 1077}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 556}, "organization": {"id": 653}, "project": {"id": 359, "owner": {"id": 725}, "assignee": {"id": 10}}, "task": {"id": 398, "owner": {"id": 917}, "assignee": {"id": 1068}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 563}, "organization": {"id": 189}, "project": {"id": 343, "owner": {"id": 762}, "assignee": {"id": 41}}, "task": {"id": 333, "owner": {"id": 910}, "assignee": {"id": 1069}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 559}, "organization": {"id": 691}, "project": {"id": 357, "owner": {"id": 709}, "assignee": {"id": 42}}, "task": {"id": 345, "owner": {"id": 960}, "assignee": {"id": 1009}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 579}, "organization": {"id": 180}, "project": {"id": 363, "owner": {"id": 785}, "assignee": {"id": 13}}, "task": {"id": 393, "owner": {"id": 975}, "assignee": {"id": 1033}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 561}, "organization": {"id": 645}, "project": {"id": 392, "owner": {"id": 753}, "assignee": {"id": 44}}, "task": {"id": 363, "owner": {"id": 931}, "assignee": {"id": 1084}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 588}, "organization": {"id": 160}, "project": {"id": 372, "owner": {"id": 709}, "assignee": {"id": 43}}, "task": {"id": 316, "owner": {"id": 992}, "assignee": {"id": 1056}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 511}, "organization": {"id": 601}, "project": {"id": 354, "owner": {"id": 788}, "assignee": {"id": 0}}, "task": {"id": 326, "owner": {"id": 919}, "assignee": {"id": 1002}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 514}, "organization": {"id": 170}, "project": {"id": 314, "owner": {"id": 760}, "assignee": {"id": 34}}, "task": {"id": 382, "owner": {"id": 941}, "assignee": {"id": 1082}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 525}, "organization": {"id": 623}, "project": {"id": 347, "owner": {"id": 768}, "assignee": {"id": 59}}, "task": {"id": 394, "owner": {"id": 987}, "assignee": {"id": 1002}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 588}, "organization": {"id": 148}, "project": {"id": 397, "owner": {"id": 778}, "assignee": {"id": 66}}, "task": {"id": 332, "owner": {"id": 938}, "assignee": {"id": 1008}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 561}, "organization": {"id": 633}, "project": {"id": 383, "owner": {"id": 714}, "assignee": {"id": 29}}, "task": {"id": 321, "owner": {"id": 972}, "assignee": {"id": 1074}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 591}, "organization": {"id": 129}, "project": {"id": 399, "owner": {"id": 730}, "assignee": {"id": 88}}, "task": {"id": 387, "owner": {"id": 918}, "assignee": {"id": 1070}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 517}, "organization": {"id": 620}, "project": {"id": 302, "owner": {"id": 789}, "assignee": {"id": 64}}, "task": {"id": 356, "owner": {"id": 968}, "assignee": {"id": 1006}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 551}, "organization": {"id": 152}, "project": {"id": 339, "owner": {"id": 729}, "assignee": {"id": 25}}, "task": {"id": 340, "owner": {"id": 912}, "assignee": {"id": 1078}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 540}, "organization": {"id": 695}, "project": {"id": 399, "owner": {"id": 721}, "assignee": {"id": 97}}, "task": {"id": 349, "owner": {"id": 987}, "assignee": {"id": 1050}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 391, "assignee": {"id": 582}, "organization": {"id": 116}, "project": {"id": 360, "owner": {"id": 771}, "assignee": {"id": 42}}, "task": {"id": 339, "owner": {"id": 968}, "assignee": {"id": 1013}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 554}, "organization": {"id": 652}, "project": {"id": 321, "owner": {"id": 758}, "assignee": {"id": 56}}, "task": {"id": 338, "owner": {"id": 939}, "assignee": {"id": 1070}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 573}, "organization": {"id": 184}, "project": {"id": 331, "owner": {"id": 765}, "assignee": {"id": 36}}, "task": {"id": 322, "owner": {"id": 966}, "assignee": {"id": 1056}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 545}, "organization": {"id": 633}, "project": {"id": 305, "owner": {"id": 755}, "assignee": {"id": 28}}, "task": {"id": 365, "owner": {"id": 998}, "assignee": {"id": 1049}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 590}, "organization": {"id": 102}, "project": {"id": 396, "owner": {"id": 700}, "assignee": {"id": 50}}, "task": {"id": 386, "owner": {"id": 908}, "assignee": {"id": 1037}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 576}, "organization": {"id": 614}, "project": {"id": 336, "owner": {"id": 738}, "assignee": {"id": 72}}, "task": {"id": 385, "owner": {"id": 926}, "assignee": {"id": 1018}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 559}, "organization": {"id": 116}, "project": {"id": 380, "owner": {"id": 707}, "assignee": {"id": 29}}, "task": {"id": 321, "owner": {"id": 938}, "assignee": {"id": 1044}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 573}, "organization": {"id": 624}, "project": {"id": 327, "owner": {"id": 743}, "assignee": {"id": 70}}, "task": {"id": 383, "owner": {"id": 972}, "assignee": {"id": 1046}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "assignee": {"id": 512}, "organization": {"id": 141}, "project": {"id": 393, "owner": {"id": 794}, "assignee": {"id": 94}}, "task": {"id": 398, "owner": {"id": 985}, "assignee": {"id": 1079}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 540}, "organization": {"id": 653}, "project": {"id": 389, "owner": {"id": 756}, "assignee": {"id": 20}}, "task": {"id": 350, "owner": {"id": 975}, "assignee": {"id": 1077}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 502}, "organization": {"id": 195}, "project": {"id": 300, "owner": {"id": 761}, "assignee": {"id": 94}}, "task": {"id": 364, "owner": {"id": 958}, "assignee": {"id": 1034}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 520}, "organization": {"id": 624}, "project": {"id": 393, "owner": {"id": 760}, "assignee": {"id": 80}}, "task": {"id": 364, "owner": {"id": 958}, "assignee": {"id": 1045}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 594}, "organization": {"id": 122}, "project": {"id": 310, "owner": {"id": 788}, "assignee": {"id": 69}}, "task": {"id": 331, "owner": {"id": 989}, "assignee": {"id": 1086}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 566}, "organization": {"id": 633}, "project": {"id": 395, "owner": {"id": 784}, "assignee": {"id": 60}}, "task": {"id": 306, "owner": {"id": 921}, "assignee": {"id": 1058}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 525}, "organization": {"id": 181}, "project": {"id": 330, "owner": {"id": 743}, "assignee": {"id": 45}}, "task": {"id": 332, "owner": {"id": 991}, "assignee": {"id": 1089}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 501}, "organization": {"id": 650}, "project": {"id": 325, "owner": {"id": 767}, "assignee": {"id": 52}}, "task": {"id": 381, "owner": {"id": 967}, "assignee": {"id": 1062}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 545}, "organization": {"id": 103}, "project": {"id": 315, "owner": {"id": 721}, "assignee": {"id": 93}}, "task": {"id": 331, "owner": {"id": 932}, "assignee": {"id": 1079}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 524}, "organization": {"id": 641}, "project": {"id": 362, "owner": {"id": 733}, "assignee": {"id": 79}}, "task": {"id": 386, "owner": {"id": 923}, "assignee": {"id": 1043}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 551}, "organization": {"id": 143}, "project": {"id": 332, "owner": {"id": 721}, "assignee": {"id": 1}}, "task": {"id": 316, "owner": {"id": 937}, "assignee": {"id": 1095}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 550}, "organization": {"id": 689}, "project": {"id": 392, "owner": {"id": 717}, "assignee": {"id": 87}}, "task": {"id": 381, "owner": {"id": 959}, "assignee": {"id": 1000}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 548}, "organization": {"id": 126}, "project": {"id": 363, "owner": {"id": 748}, "assignee": {"id": 68}}, "task": {"id": 340, "owner": {"id": 937}, "assignee": {"id": 1097}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 574}, "organization": {"id": 602}, "project": {"id": 398, "owner": {"id": 716}, "assignee": {"id": 92}}, "task": {"id": 322, "owner": {"id": 991}, "assignee": {"id": 1039}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 505}, "organization": {"id": 190}, "project": {"id": 385, "owner": {"id": 781}, "assignee": {"id": 21}}, "task": {"id": 304, "owner": {"id": 966}, "assignee": {"id": 1043}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 594}, "organization": {"id": 658}, "project": {"id": 305, "owner": {"id": 769}, "assignee": {"id": 6}}, "task": {"id": 379, "owner": {"id": 950}, "assignee": {"id": 1001}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 552}, "organization": {"id": 105}, "project": {"id": 355, "owner": {"id": 731}, "assignee": {"id": 68}}, "task": {"id": 398, "owner": {"id": 916}, "assignee": {"id": 1041}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 510}, "organization": {"id": 617}, "project": {"id": 387, "owner": {"id": 702}, "assignee": {"id": 92}}, "task": {"id": 335, "owner": {"id": 974}, "assignee": {"id": 1008}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 555}, "organization": {"id": 198}, "project": {"id": 399, "owner": {"id": 730}, "assignee": {"id": 46}}, "task": {"id": 388, "owner": {"id": 923}, "assignee": {"id": 1024}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 577}, "organization": {"id": 617}, "project": {"id": 366, "owner": {"id": 732}, "assignee": {"id": 31}}, "task": {"id": 336, "owner": {"id": 996}, "assignee": {"id": 1051}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 587}, "organization": {"id": 199}, "project": {"id": 381, "owner": {"id": 728}, "assignee": {"id": 69}}, "task": {"id": 343, "owner": {"id": 974}, "assignee": {"id": 1025}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 572}, "organization": {"id": 655}, "project": {"id": 385, "owner": {"id": 730}, "assignee": {"id": 46}}, "task": {"id": 321, "owner": {"id": 990}, "assignee": {"id": 1054}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 533}, "organization": {"id": 183}, "project": {"id": 352, "owner": {"id": 717}, "assignee": {"id": 96}}, "task": {"id": 338, "owner": {"id": 915}, "assignee": {"id": 1038}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 503}, "organization": {"id": 638}, "project": {"id": 327, "owner": {"id": 738}, "assignee": {"id": 97}}, "task": {"id": 323, "owner": {"id": 991}, "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": 89, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 522}, "organization": {"id": 151}, "project": {"id": 310, "owner": {"id": 766}, "assignee": {"id": 89}}, "task": {"id": 330, "owner": {"id": 998}, "assignee": {"id": 1036}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 523}, "organization": {"id": 640}, "project": {"id": 343, "owner": {"id": 793}, "assignee": {"id": 37}}, "task": {"id": 392, "owner": {"id": 950}, "assignee": {"id": 1037}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 547}, "organization": {"id": 151}, "project": {"id": 341, "owner": {"id": 759}, "assignee": {"id": 880}}, "task": {"id": 305, "owner": {"id": 15}, "assignee": {"id": 1064}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 591}, "organization": {"id": 686}, "project": {"id": 356, "owner": {"id": 747}, "assignee": {"id": 815}}, "task": {"id": 300, "owner": {"id": 94}, "assignee": {"id": 1082}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 544}, "organization": {"id": 114}, "project": {"id": 343, "owner": {"id": 701}, "assignee": {"id": 876}}, "task": {"id": 396, "owner": {"id": 72}, "assignee": {"id": 1009}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 561}, "organization": {"id": 634}, "project": {"id": 376, "owner": {"id": 766}, "assignee": {"id": 894}}, "task": {"id": 340, "owner": {"id": 90}, "assignee": {"id": 1021}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 533}, "organization": {"id": 182}, "project": {"id": 361, "owner": {"id": 732}, "assignee": {"id": 817}}, "task": {"id": 353, "owner": {"id": 79}, "assignee": {"id": 1080}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 567}, "organization": {"id": 648}, "project": {"id": 320, "owner": {"id": 773}, "assignee": {"id": 860}}, "task": {"id": 303, "owner": {"id": 56}, "assignee": {"id": 1016}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 500}, "organization": {"id": 150}, "project": {"id": 394, "owner": {"id": 709}, "assignee": {"id": 838}}, "task": {"id": 334, "owner": {"id": 94}, "assignee": {"id": 1079}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 519}, "organization": {"id": 601}, "project": {"id": 327, "owner": {"id": 765}, "assignee": {"id": 824}}, "task": {"id": 368, "owner": {"id": 38}, "assignee": {"id": 1011}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 541}, "organization": {"id": 122}, "project": {"id": 338, "owner": {"id": 702}, "assignee": {"id": 837}}, "task": {"id": 355, "owner": {"id": 8}, "assignee": {"id": 1009}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 549}, "organization": {"id": 678}, "project": {"id": 322, "owner": {"id": 732}, "assignee": {"id": 842}}, "task": {"id": 384, "owner": {"id": 19}, "assignee": {"id": 1063}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 538}, "organization": {"id": 182}, "project": {"id": 300, "owner": {"id": 757}, "assignee": {"id": 861}}, "task": {"id": 359, "owner": {"id": 69}, "assignee": {"id": 1091}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 558}, "organization": {"id": 633}, "project": {"id": 347, "owner": {"id": 714}, "assignee": {"id": 808}}, "task": {"id": 328, "owner": {"id": 62}, "assignee": {"id": 1029}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 561}, "organization": {"id": 171}, "project": {"id": 360, "owner": {"id": 780}, "assignee": {"id": 847}}, "task": {"id": 387, "owner": {"id": 67}, "assignee": {"id": 1070}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 505}, "organization": {"id": 623}, "project": {"id": 323, "owner": {"id": 725}, "assignee": {"id": 832}}, "task": {"id": 355, "owner": {"id": 39}, "assignee": {"id": 1094}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 527}, "organization": {"id": 194}, "project": {"id": 338, "owner": {"id": 778}, "assignee": {"id": 898}}, "task": {"id": 328, "owner": {"id": 87}, "assignee": {"id": 1049}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 581}, "organization": {"id": 694}, "project": {"id": 331, "owner": {"id": 741}, "assignee": {"id": 863}}, "task": {"id": 305, "owner": {"id": 55}, "assignee": {"id": 1021}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 528}, "organization": {"id": 161}, "project": {"id": 323, "owner": {"id": 722}, "assignee": {"id": 833}}, "task": {"id": 366, "owner": {"id": 45}, "assignee": {"id": 1059}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 592}, "organization": {"id": 673}, "project": {"id": 307, "owner": {"id": 785}, "assignee": {"id": 883}}, "task": {"id": 320, "owner": {"id": 2}, "assignee": {"id": 1035}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 568}, "organization": {"id": 192}, "project": {"id": 356, "owner": {"id": 707}, "assignee": {"id": 852}}, "task": {"id": 381, "owner": {"id": 31}, "assignee": {"id": 1028}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 574}, "organization": {"id": 631}, "project": {"id": 350, "owner": {"id": 721}, "assignee": {"id": 810}}, "task": {"id": 307, "owner": {"id": 95}, "assignee": {"id": 1087}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 546}, "organization": {"id": 135}, "project": {"id": 369, "owner": {"id": 775}, "assignee": {"id": 807}}, "task": {"id": 391, "owner": {"id": 35}, "assignee": {"id": 1098}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 557}, "organization": {"id": 652}, "project": {"id": 340, "owner": {"id": 716}, "assignee": {"id": 821}}, "task": {"id": 395, "owner": {"id": 32}, "assignee": {"id": 1044}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 597}, "organization": {"id": 196}, "project": {"id": 343, "owner": {"id": 796}, "assignee": {"id": 827}}, "task": {"id": 369, "owner": {"id": 28}, "assignee": {"id": 1000}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 538}, "organization": {"id": 629}, "project": {"id": 382, "owner": {"id": 744}, "assignee": {"id": 844}}, "task": {"id": 360, "owner": {"id": 16}, "assignee": {"id": 1023}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 577}, "organization": {"id": 116}, "project": {"id": 362, "owner": {"id": 705}, "assignee": {"id": 880}}, "task": {"id": 384, "owner": {"id": 14}, "assignee": {"id": 1029}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 570}, "organization": {"id": 618}, "project": {"id": 302, "owner": {"id": 768}, "assignee": {"id": 858}}, "task": {"id": 347, "owner": {"id": 22}, "assignee": {"id": 1004}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 523}, "organization": {"id": 189}, "project": {"id": 349, "owner": {"id": 742}, "assignee": {"id": 807}}, "task": {"id": 348, "owner": {"id": 35}, "assignee": {"id": 1013}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 581}, "organization": {"id": 675}, "project": {"id": 378, "owner": {"id": 774}, "assignee": {"id": 864}}, "task": {"id": 384, "owner": {"id": 37}, "assignee": {"id": 1038}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 573}, "organization": {"id": 109}, "project": {"id": 391, "owner": {"id": 758}, "assignee": {"id": 879}}, "task": {"id": 397, "owner": {"id": 7}, "assignee": {"id": 1051}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 562}, "organization": {"id": 655}, "project": {"id": 341, "owner": {"id": 794}, "assignee": {"id": 872}}, "task": {"id": 309, "owner": {"id": 64}, "assignee": {"id": 1009}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 532}, "organization": {"id": 112}, "project": {"id": 376, "owner": {"id": 727}, "assignee": {"id": 858}}, "task": {"id": 386, "owner": {"id": 89}, "assignee": {"id": 1069}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 559}, "organization": {"id": 682}, "project": {"id": 354, "owner": {"id": 742}, "assignee": {"id": 857}}, "task": {"id": 311, "owner": {"id": 89}, "assignee": {"id": 1039}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 587}, "organization": {"id": 106}, "project": {"id": 319, "owner": {"id": 723}, "assignee": {"id": 865}}, "task": {"id": 390, "owner": {"id": 92}, "assignee": {"id": 1060}}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 502}, "organization": {"id": 617}, "project": {"id": 368, "owner": {"id": 793}, "assignee": {"id": 831}}, "task": {"id": 323, "owner": {"id": 26}, "assignee": {"id": 1014}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 540}, "organization": {"id": 185}, "project": {"id": 389, "owner": {"id": 787}, "assignee": {"id": 859}}, "task": {"id": 380, "owner": {"id": 80}, "assignee": {"id": 1041}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 522}, "organization": {"id": 604}, "project": {"id": 310, "owner": {"id": 731}, "assignee": {"id": 840}}, "task": {"id": 365, "owner": {"id": 67}, "assignee": {"id": 1013}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 585}, "organization": {"id": 111}, "project": {"id": 379, "owner": {"id": 793}, "assignee": {"id": 874}}, "task": {"id": 397, "owner": {"id": 21}, "assignee": {"id": 1088}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 554}, "organization": {"id": 686}, "project": {"id": 312, "owner": {"id": 733}, "assignee": {"id": 808}}, "task": {"id": 380, "owner": {"id": 37}, "assignee": {"id": 1062}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 521}, "organization": {"id": 166}, "project": {"id": 394, "owner": {"id": 792}, "assignee": {"id": 857}}, "task": {"id": 342, "owner": {"id": 46}, "assignee": {"id": 1004}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 599}, "organization": {"id": 645}, "project": {"id": 307, "owner": {"id": 718}, "assignee": {"id": 852}}, "task": {"id": 368, "owner": {"id": 99}, "assignee": {"id": 1071}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 534}, "organization": {"id": 198}, "project": {"id": 363, "owner": {"id": 705}, "assignee": {"id": 846}}, "task": {"id": 350, "owner": {"id": 12}, "assignee": {"id": 1098}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 540}, "organization": {"id": 676}, "project": {"id": 366, "owner": {"id": 753}, "assignee": {"id": 844}}, "task": {"id": 331, "owner": {"id": 13}, "assignee": {"id": 1045}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 503}, "organization": {"id": 187}, "project": {"id": 302, "owner": {"id": 737}, "assignee": {"id": 843}}, "task": {"id": 343, "owner": {"id": 9}, "assignee": {"id": 1009}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 502}, "organization": {"id": 694}, "project": {"id": 320, "owner": {"id": 718}, "assignee": {"id": 803}}, "task": {"id": 331, "owner": {"id": 24}, "assignee": {"id": 1013}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 584}, "organization": {"id": 170}, "project": {"id": 390, "owner": {"id": 795}, "assignee": {"id": 817}}, "task": {"id": 370, "owner": {"id": 0}, "assignee": {"id": 1069}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 512}, "organization": {"id": 697}, "project": {"id": 352, "owner": {"id": 715}, "assignee": {"id": 838}}, "task": {"id": 397, "owner": {"id": 64}, "assignee": {"id": 1011}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 571}, "organization": {"id": 118}, "project": {"id": 340, "owner": {"id": 787}, "assignee": {"id": 848}}, "task": {"id": 308, "owner": {"id": 23}, "assignee": {"id": 1054}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 517}, "organization": {"id": 673}, "project": {"id": 336, "owner": {"id": 711}, "assignee": {"id": 832}}, "task": {"id": 328, "owner": {"id": 11}, "assignee": {"id": 1083}}}} +} + +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": 114, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 518}, "organization": {"id": 114}, "project": {"id": 348, "owner": {"id": 743}, "assignee": {"id": 895}}, "task": {"id": 318, "owner": {"id": 9}, "assignee": {"id": 1051}}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 591}, "organization": {"id": 646}, "project": {"id": 392, "owner": {"id": 749}, "assignee": {"id": 866}}, "task": {"id": 349, "owner": {"id": 66}, "assignee": {"id": 1021}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 579}, "organization": {"id": 152}, "project": {"id": 394, "owner": {"id": 796}, "assignee": {"id": 885}}, "task": {"id": 327, "owner": {"id": 998}, "assignee": {"id": 75}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 550}, "organization": {"id": 611}, "project": {"id": 314, "owner": {"id": 764}, "assignee": {"id": 889}}, "task": {"id": 350, "owner": {"id": 994}, "assignee": {"id": 47}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 523}, "organization": {"id": 106}, "project": {"id": 359, "owner": {"id": 744}, "assignee": {"id": 803}}, "task": {"id": 365, "owner": {"id": 974}, "assignee": {"id": 65}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 578}, "organization": {"id": 654}, "project": {"id": 373, "owner": {"id": 761}, "assignee": {"id": 893}}, "task": {"id": 381, "owner": {"id": 975}, "assignee": {"id": 47}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 596}, "organization": {"id": 180}, "project": {"id": 388, "owner": {"id": 796}, "assignee": {"id": 889}}, "task": {"id": 374, "owner": {"id": 924}, "assignee": {"id": 52}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 527}, "organization": {"id": 635}, "project": {"id": 373, "owner": {"id": 707}, "assignee": {"id": 818}}, "task": {"id": 320, "owner": {"id": 915}, "assignee": {"id": 37}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 560}, "organization": {"id": 114}, "project": {"id": 350, "owner": {"id": 720}, "assignee": {"id": 813}}, "task": {"id": 349, "owner": {"id": 952}, "assignee": {"id": 33}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 567}, "organization": {"id": 642}, "project": {"id": 341, "owner": {"id": 795}, "assignee": {"id": 807}}, "task": {"id": 372, "owner": {"id": 988}, "assignee": {"id": 32}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 521}, "organization": {"id": 107}, "project": {"id": 359, "owner": {"id": 716}, "assignee": {"id": 819}}, "task": {"id": 365, "owner": {"id": 910}, "assignee": {"id": 8}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 586}, "organization": {"id": 666}, "project": {"id": 339, "owner": {"id": 736}, "assignee": {"id": 819}}, "task": {"id": 340, "owner": {"id": 937}, "assignee": {"id": 61}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 572}, "organization": {"id": 153}, "project": {"id": 393, "owner": {"id": 713}, "assignee": {"id": 863}}, "task": {"id": 326, "owner": {"id": 986}, "assignee": {"id": 28}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 501}, "organization": {"id": 640}, "project": {"id": 370, "owner": {"id": 792}, "assignee": {"id": 826}}, "task": {"id": 333, "owner": {"id": 955}, "assignee": {"id": 47}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 509}, "organization": {"id": 164}, "project": {"id": 361, "owner": {"id": 790}, "assignee": {"id": 852}}, "task": {"id": 317, "owner": {"id": 974}, "assignee": {"id": 2}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 564}, "organization": {"id": 663}, "project": {"id": 349, "owner": {"id": 752}, "assignee": {"id": 817}}, "task": {"id": 394, "owner": {"id": 998}, "assignee": {"id": 90}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 550}, "organization": {"id": 161}, "project": {"id": 375, "owner": {"id": 764}, "assignee": {"id": 869}}, "task": {"id": 309, "owner": {"id": 984}, "assignee": {"id": 51}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 553}, "organization": {"id": 630}, "project": {"id": 358, "owner": {"id": 729}, "assignee": {"id": 806}}, "task": {"id": 318, "owner": {"id": 994}, "assignee": {"id": 16}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 599}, "organization": {"id": 111}, "project": {"id": 393, "owner": {"id": 722}, "assignee": {"id": 815}}, "task": {"id": 364, "owner": {"id": 917}, "assignee": {"id": 87}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 569}, "organization": {"id": 686}, "project": {"id": 328, "owner": {"id": 704}, "assignee": {"id": 882}}, "task": {"id": 386, "owner": {"id": 915}, "assignee": {"id": 84}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 518}, "organization": {"id": 159}, "project": {"id": 381, "owner": {"id": 759}, "assignee": {"id": 875}}, "task": {"id": 387, "owner": {"id": 913}, "assignee": {"id": 94}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 557}, "organization": {"id": 601}, "project": {"id": 391, "owner": {"id": 785}, "assignee": {"id": 832}}, "task": {"id": 348, "owner": {"id": 945}, "assignee": {"id": 35}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 531}, "organization": {"id": 128}, "project": {"id": 376, "owner": {"id": 747}, "assignee": {"id": 869}}, "task": {"id": 369, "owner": {"id": 909}, "assignee": {"id": 33}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 513}, "organization": {"id": 683}, "project": {"id": 383, "owner": {"id": 768}, "assignee": {"id": 842}}, "task": {"id": 378, "owner": {"id": 996}, "assignee": {"id": 78}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 523}, "organization": {"id": 150}, "project": {"id": 325, "owner": {"id": 709}, "assignee": {"id": 829}}, "task": {"id": 374, "owner": {"id": 960}, "assignee": {"id": 35}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 577}, "organization": {"id": 668}, "project": {"id": 337, "owner": {"id": 725}, "assignee": {"id": 878}}, "task": {"id": 324, "owner": {"id": 937}, "assignee": {"id": 99}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 550}, "organization": {"id": 171}, "project": {"id": 348, "owner": {"id": 785}, "assignee": {"id": 822}}, "task": {"id": 356, "owner": {"id": 911}, "assignee": {"id": 73}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 533}, "organization": {"id": 665}, "project": {"id": 319, "owner": {"id": 702}, "assignee": {"id": 850}}, "task": {"id": 360, "owner": {"id": 978}, "assignee": {"id": 22}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 599}, "organization": {"id": 185}, "project": {"id": 324, "owner": {"id": 731}, "assignee": {"id": 810}}, "task": {"id": 300, "owner": {"id": 916}, "assignee": {"id": 15}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 501}, "organization": {"id": 654}, "project": {"id": 395, "owner": {"id": 772}, "assignee": {"id": 808}}, "task": {"id": 334, "owner": {"id": 906}, "assignee": {"id": 8}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 572}, "organization": {"id": 127}, "project": {"id": 342, "owner": {"id": 741}, "assignee": {"id": 845}}, "task": {"id": 348, "owner": {"id": 988}, "assignee": {"id": 2}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 578}, "organization": {"id": 665}, "project": {"id": 325, "owner": {"id": 783}, "assignee": {"id": 845}}, "task": {"id": 386, "owner": {"id": 951}, "assignee": {"id": 51}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 535}, "organization": {"id": 137}, "project": {"id": 372, "owner": {"id": 768}, "assignee": {"id": 808}}, "task": {"id": 341, "owner": {"id": 917}, "assignee": {"id": 90}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 582}, "organization": {"id": 658}, "project": {"id": 311, "owner": {"id": 769}, "assignee": {"id": 886}}, "task": {"id": 368, "owner": {"id": 985}, "assignee": {"id": 72}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 544}, "organization": {"id": 100}, "project": {"id": 345, "owner": {"id": 758}, "assignee": {"id": 818}}, "task": {"id": 327, "owner": {"id": 970}, "assignee": {"id": 44}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 569}, "organization": {"id": 671}, "project": {"id": 318, "owner": {"id": 700}, "assignee": {"id": 813}}, "task": {"id": 364, "owner": {"id": 988}, "assignee": {"id": 41}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 536}, "organization": {"id": 102}, "project": {"id": 394, "owner": {"id": 729}, "assignee": {"id": 885}}, "task": {"id": 374, "owner": {"id": 946}, "assignee": {"id": 85}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "assignee": {"id": 520}, "organization": {"id": 668}, "project": {"id": 312, "owner": {"id": 776}, "assignee": {"id": 866}}, "task": {"id": 386, "owner": {"id": 992}, "assignee": {"id": 63}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 558}, "organization": {"id": 119}, "project": {"id": 302, "owner": {"id": 751}, "assignee": {"id": 841}}, "task": {"id": 335, "owner": {"id": 927}, "assignee": {"id": 88}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 589}, "organization": {"id": 680}, "project": {"id": 317, "owner": {"id": 759}, "assignee": {"id": 825}}, "task": {"id": 357, "owner": {"id": 903}, "assignee": {"id": 17}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 507}, "organization": {"id": 143}, "project": {"id": 328, "owner": {"id": 785}, "assignee": {"id": 895}}, "task": {"id": 378, "owner": {"id": 914}, "assignee": {"id": 36}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 524}, "organization": {"id": 665}, "project": {"id": 303, "owner": {"id": 782}, "assignee": {"id": 878}}, "task": {"id": 364, "owner": {"id": 985}, "assignee": {"id": 33}}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 551}, "organization": {"id": 106}, "project": {"id": 310, "owner": {"id": 700}, "assignee": {"id": 875}}, "task": {"id": 326, "owner": {"id": 925}, "assignee": {"id": 94}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 508}, "organization": {"id": 672}, "project": {"id": 368, "owner": {"id": 774}, "assignee": {"id": 827}}, "task": {"id": 359, "owner": {"id": 908}, "assignee": {"id": 89}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 577}, "organization": {"id": 193}, "project": {"id": 336, "owner": {"id": 787}, "assignee": {"id": 888}}, "task": {"id": 350, "owner": {"id": 989}, "assignee": {"id": 69}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 510}, "organization": {"id": 612}, "project": {"id": 309, "owner": {"id": 789}, "assignee": {"id": 890}}, "task": {"id": 372, "owner": {"id": 979}, "assignee": {"id": 18}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 541}, "organization": {"id": 154}, "project": {"id": 344, "owner": {"id": 717}, "assignee": {"id": 862}}, "task": {"id": 314, "owner": {"id": 902}, "assignee": {"id": 89}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 531}, "organization": {"id": 692}, "project": {"id": 338, "owner": {"id": 788}, "assignee": {"id": 892}}, "task": {"id": 358, "owner": {"id": 957}, "assignee": {"id": 16}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 529}, "organization": {"id": 105}, "project": {"id": 372, "owner": {"id": 721}, "assignee": {"id": 800}}, "task": {"id": 338, "owner": {"id": 923}, "assignee": {"id": 38}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 597}, "organization": {"id": 634}, "project": {"id": 302, "owner": {"id": 752}, "assignee": {"id": 818}}, "task": {"id": 384, "owner": {"id": 917}, "assignee": {"id": 37}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 589}, "organization": {"id": 152}, "project": {"id": 302, "owner": {"id": 708}, "assignee": {"id": 800}}, "task": {"id": 394, "owner": {"id": 972}, "assignee": {"id": 97}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 523}, "organization": {"id": 684}, "project": {"id": 347, "owner": {"id": 737}, "assignee": {"id": 880}}, "task": {"id": 391, "owner": {"id": 924}, "assignee": {"id": 84}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 70}, "organization": {"id": 157}, "project": {"id": 372, "owner": {"id": 738}, "assignee": {"id": 846}}, "task": {"id": 319, "owner": {"id": 992}, "assignee": {"id": 1039}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 8}, "organization": {"id": 659}, "project": {"id": 309, "owner": {"id": 745}, "assignee": {"id": 855}}, "task": {"id": 392, "owner": {"id": 951}, "assignee": {"id": 1011}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 97}, "organization": {"id": 171}, "project": {"id": 323, "owner": {"id": 746}, "assignee": {"id": 826}}, "task": {"id": 306, "owner": {"id": 929}, "assignee": {"id": 1036}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 10}, "organization": {"id": 695}, "project": {"id": 391, "owner": {"id": 731}, "assignee": {"id": 885}}, "task": {"id": 320, "owner": {"id": 998}, "assignee": {"id": 1088}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 52}, "organization": {"id": 173}, "project": {"id": 399, "owner": {"id": 739}, "assignee": {"id": 800}}, "task": {"id": 356, "owner": {"id": 995}, "assignee": {"id": 1038}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 46}, "organization": {"id": 669}, "project": {"id": 320, "owner": {"id": 791}, "assignee": {"id": 810}}, "task": {"id": 388, "owner": {"id": 970}, "assignee": {"id": 1085}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 41}, "organization": {"id": 130}, "project": {"id": 399, "owner": {"id": 700}, "assignee": {"id": 867}}, "task": {"id": 323, "owner": {"id": 952}, "assignee": {"id": 1085}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 91}, "organization": {"id": 667}, "project": {"id": 385, "owner": {"id": 797}, "assignee": {"id": 826}}, "task": {"id": 306, "owner": {"id": 986}, "assignee": {"id": 1076}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 41}, "organization": {"id": 185}, "project": {"id": 399, "owner": {"id": 798}, "assignee": {"id": 837}}, "task": {"id": 310, "owner": {"id": 974}, "assignee": {"id": 1071}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 19}, "organization": {"id": 648}, "project": {"id": 327, "owner": {"id": 734}, "assignee": {"id": 877}}, "task": {"id": 381, "owner": {"id": 997}, "assignee": {"id": 1096}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 31}, "organization": {"id": 172}, "project": {"id": 386, "owner": {"id": 782}, "assignee": {"id": 840}}, "task": {"id": 390, "owner": {"id": 971}, "assignee": {"id": 1003}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 49}, "organization": {"id": 601}, "project": {"id": 342, "owner": {"id": 775}, "assignee": {"id": 820}}, "task": {"id": 368, "owner": {"id": 997}, "assignee": {"id": 1048}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 66}, "organization": {"id": 108}, "project": {"id": 349, "owner": {"id": 759}, "assignee": {"id": 854}}, "task": {"id": 337, "owner": {"id": 968}, "assignee": {"id": 1028}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 97}, "organization": {"id": 600}, "project": {"id": 358, "owner": {"id": 785}, "assignee": {"id": 833}}, "task": {"id": 329, "owner": {"id": 919}, "assignee": {"id": 1040}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 52}, "organization": {"id": 146}, "project": {"id": 304, "owner": {"id": 707}, "assignee": {"id": 883}}, "task": {"id": 337, "owner": {"id": 985}, "assignee": {"id": 1010}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 21}, "organization": {"id": 657}, "project": {"id": 388, "owner": {"id": 767}, "assignee": {"id": 844}}, "task": {"id": 380, "owner": {"id": 911}, "assignee": {"id": 1077}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 49}, "organization": {"id": 143}, "project": {"id": 316, "owner": {"id": 797}, "assignee": {"id": 865}}, "task": {"id": 317, "owner": {"id": 972}, "assignee": {"id": 1049}}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 93}, "organization": {"id": 695}, "project": {"id": 314, "owner": {"id": 761}, "assignee": {"id": 829}}, "task": {"id": 365, "owner": {"id": 932}, "assignee": {"id": 1024}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 28}, "organization": {"id": 194}, "project": {"id": 345, "owner": {"id": 753}, "assignee": {"id": 858}}, "task": {"id": 305, "owner": {"id": 946}, "assignee": {"id": 1089}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 83}, "organization": {"id": 659}, "project": {"id": 307, "owner": {"id": 701}, "assignee": {"id": 819}}, "task": {"id": 328, "owner": {"id": 917}, "assignee": {"id": 1049}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 58}, "organization": {"id": 151}, "project": {"id": 331, "owner": {"id": 702}, "assignee": {"id": 816}}, "task": {"id": 356, "owner": {"id": 939}, "assignee": {"id": 1099}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 38}, "organization": {"id": 691}, "project": {"id": 356, "owner": {"id": 779}, "assignee": {"id": 812}}, "task": {"id": 377, "owner": {"id": 928}, "assignee": {"id": 1017}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 39}, "organization": {"id": 193}, "project": {"id": 371, "owner": {"id": 771}, "assignee": {"id": 871}}, "task": {"id": 316, "owner": {"id": 994}, "assignee": {"id": 1008}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 44}, "organization": {"id": 628}, "project": {"id": 339, "owner": {"id": 760}, "assignee": {"id": 814}}, "task": {"id": 349, "owner": {"id": 902}, "assignee": {"id": 1086}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 79}, "organization": {"id": 166}, "project": {"id": 348, "owner": {"id": 708}, "assignee": {"id": 858}}, "task": {"id": 385, "owner": {"id": 932}, "assignee": {"id": 1041}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 58}, "organization": {"id": 624}, "project": {"id": 326, "owner": {"id": 746}, "assignee": {"id": 890}}, "task": {"id": 335, "owner": {"id": 982}, "assignee": {"id": 1077}}}} +} + +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": 145, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 82}, "organization": {"id": 145}, "project": {"id": 392, "owner": {"id": 777}, "assignee": {"id": 832}}, "task": {"id": 360, "owner": {"id": 994}, "assignee": {"id": 1047}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 89}, "organization": {"id": 681}, "project": {"id": 306, "owner": {"id": 787}, "assignee": {"id": 835}}, "task": {"id": 354, "owner": {"id": 984}, "assignee": {"id": 1032}}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 90}, "organization": {"id": 121}, "project": {"id": 312, "owner": {"id": 797}, "assignee": {"id": 898}}, "task": {"id": 370, "owner": {"id": 956}, "assignee": {"id": 1092}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 86}, "organization": {"id": 696}, "project": {"id": 394, "owner": {"id": 795}, "assignee": {"id": 825}}, "task": {"id": 335, "owner": {"id": 987}, "assignee": {"id": 1023}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 21}, "organization": {"id": 135}, "project": {"id": 375, "owner": {"id": 764}, "assignee": {"id": 832}}, "task": {"id": 359, "owner": {"id": 922}, "assignee": {"id": 1032}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 27}, "organization": {"id": 670}, "project": {"id": 382, "owner": {"id": 753}, "assignee": {"id": 835}}, "task": {"id": 307, "owner": {"id": 943}, "assignee": {"id": 1016}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 32}, "organization": {"id": 132}, "project": {"id": 393, "owner": {"id": 718}, "assignee": {"id": 821}}, "task": {"id": 304, "owner": {"id": 924}, "assignee": {"id": 1061}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 79}, "organization": {"id": 653}, "project": {"id": 392, "owner": {"id": 760}, "assignee": {"id": 868}}, "task": {"id": 361, "owner": {"id": 942}, "assignee": {"id": 1015}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 69}, "organization": {"id": 194}, "project": {"id": 397, "owner": {"id": 711}, "assignee": {"id": 898}}, "task": {"id": 369, "owner": {"id": 936}, "assignee": {"id": 1038}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 52}, "organization": {"id": 631}, "project": {"id": 345, "owner": {"id": 714}, "assignee": {"id": 852}}, "task": {"id": 343, "owner": {"id": 993}, "assignee": {"id": 1068}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 65}, "organization": {"id": 159}, "project": {"id": 349, "owner": {"id": 744}, "assignee": {"id": 822}}, "task": {"id": 390, "owner": {"id": 965}, "assignee": {"id": 1098}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 83}, "organization": {"id": 640}, "project": {"id": 368, "owner": {"id": 766}, "assignee": {"id": 895}}, "task": {"id": 318, "owner": {"id": 903}, "assignee": {"id": 1057}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 85}, "organization": {"id": 143}, "project": {"id": 349, "owner": {"id": 702}, "assignee": {"id": 890}}, "task": {"id": 347, "owner": {"id": 991}, "assignee": {"id": 1070}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 33}, "organization": {"id": 655}, "project": {"id": 338, "owner": {"id": 739}, "assignee": {"id": 886}}, "task": {"id": 373, "owner": {"id": 963}, "assignee": {"id": 1010}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 6}, "organization": {"id": 179}, "project": {"id": 306, "owner": {"id": 751}, "assignee": {"id": 826}}, "task": {"id": 309, "owner": {"id": 939}, "assignee": {"id": 1010}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 64}, "organization": {"id": 683}, "project": {"id": 306, "owner": {"id": 711}, "assignee": {"id": 892}}, "task": {"id": 385, "owner": {"id": 973}, "assignee": {"id": 1032}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 62}, "organization": {"id": 122}, "project": {"id": 302, "owner": {"id": 705}, "assignee": {"id": 884}}, "task": {"id": 335, "owner": {"id": 993}, "assignee": {"id": 1091}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 31}, "organization": {"id": 696}, "project": {"id": 377, "owner": {"id": 754}, "assignee": {"id": 832}}, "task": {"id": 370, "owner": {"id": 946}, "assignee": {"id": 1058}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 96}, "organization": {"id": 196}, "project": {"id": 359, "owner": {"id": 723}, "assignee": {"id": 827}}, "task": {"id": 354, "owner": {"id": 991}, "assignee": {"id": 1043}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 34}, "organization": {"id": 624}, "project": {"id": 395, "owner": {"id": 798}, "assignee": {"id": 889}}, "task": {"id": 340, "owner": {"id": 907}, "assignee": {"id": 1013}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 38}, "organization": {"id": 147}, "project": {"id": 303, "owner": {"id": 761}, "assignee": {"id": 816}}, "task": {"id": 356, "owner": {"id": 943}, "assignee": {"id": 1083}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 96}, "organization": {"id": 687}, "project": {"id": 325, "owner": {"id": 700}, "assignee": {"id": 809}}, "task": {"id": 316, "owner": {"id": 926}, "assignee": {"id": 1099}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 87}, "organization": {"id": 111}, "project": {"id": 343, "owner": {"id": 781}, "assignee": {"id": 893}}, "task": {"id": 319, "owner": {"id": 964}, "assignee": {"id": 1050}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 4}, "organization": {"id": 626}, "project": {"id": 370, "owner": {"id": 785}, "assignee": {"id": 860}}, "task": {"id": 369, "owner": {"id": 969}, "assignee": {"id": 1007}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 522}, "organization": {"id": 193}, "project": {"id": 305, "owner": {"id": 720}, "assignee": {"id": 896}}, "task": {"id": 308, "owner": {"id": 996}, "assignee": {"id": 1031}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 560}, "organization": {"id": 612}, "project": {"id": 381, "owner": {"id": 740}, "assignee": {"id": 850}}, "task": {"id": 394, "owner": {"id": 961}, "assignee": {"id": 1067}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 524}, "organization": {"id": 119}, "project": {"id": 326, "owner": {"id": 709}, "assignee": {"id": 826}}, "task": {"id": 350, "owner": {"id": 946}, "assignee": {"id": 1004}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 540}, "organization": {"id": 634}, "project": {"id": 364, "owner": {"id": 747}, "assignee": {"id": 897}}, "task": {"id": 381, "owner": {"id": 964}, "assignee": {"id": 1027}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 566}, "organization": {"id": 118}, "project": {"id": 348, "owner": {"id": 720}, "assignee": {"id": 800}}, "task": {"id": 396, "owner": {"id": 957}, "assignee": {"id": 1063}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 545}, "organization": {"id": 654}, "project": {"id": 369, "owner": {"id": 792}, "assignee": {"id": 855}}, "task": {"id": 334, "owner": {"id": 977}, "assignee": {"id": 1030}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 583}, "organization": {"id": 164}, "project": {"id": 354, "owner": {"id": 725}, "assignee": {"id": 837}}, "task": {"id": 305, "owner": {"id": 956}, "assignee": {"id": 1046}}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 553}, "organization": {"id": 647}, "project": {"id": 323, "owner": {"id": 767}, "assignee": {"id": 856}}, "task": {"id": 324, "owner": {"id": 986}, "assignee": {"id": 1031}}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 556}, "organization": {"id": 143}, "project": {"id": 315, "owner": {"id": 758}, "assignee": {"id": 892}}, "task": {"id": 310, "owner": {"id": 976}, "assignee": {"id": 1011}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 586}, "organization": {"id": 680}, "project": {"id": 321, "owner": {"id": 741}, "assignee": {"id": 876}}, "task": {"id": 326, "owner": {"id": 900}, "assignee": {"id": 1082}}}} +} + +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": 104, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 550}, "organization": {"id": 104}, "project": {"id": 354, "owner": {"id": 725}, "assignee": {"id": 854}}, "task": {"id": 304, "owner": {"id": 928}, "assignee": {"id": 1005}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 369, "assignee": {"id": 504}, "organization": {"id": 670}, "project": {"id": 331, "owner": {"id": 741}, "assignee": {"id": 862}}, "task": {"id": 379, "owner": {"id": 924}, "assignee": {"id": 1028}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 583}, "organization": {"id": 183}, "project": {"id": 300, "owner": {"id": 789}, "assignee": {"id": 812}}, "task": {"id": 393, "owner": {"id": 957}, "assignee": {"id": 1096}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 517}, "organization": {"id": 627}, "project": {"id": 380, "owner": {"id": 764}, "assignee": {"id": 844}}, "task": {"id": 303, "owner": {"id": 970}, "assignee": {"id": 1087}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 588}, "organization": {"id": 160}, "project": {"id": 341, "owner": {"id": 794}, "assignee": {"id": 833}}, "task": {"id": 386, "owner": {"id": 956}, "assignee": {"id": 1008}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 502}, "organization": {"id": 621}, "project": {"id": 345, "owner": {"id": 798}, "assignee": {"id": 804}}, "task": {"id": 372, "owner": {"id": 900}, "assignee": {"id": 1049}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 580}, "organization": {"id": 124}, "project": {"id": 336, "owner": {"id": 777}, "assignee": {"id": 879}}, "task": {"id": 363, "owner": {"id": 908}, "assignee": {"id": 1012}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 541}, "organization": {"id": 606}, "project": {"id": 321, "owner": {"id": 714}, "assignee": {"id": 847}}, "task": {"id": 351, "owner": {"id": 972}, "assignee": {"id": 1027}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 542}, "organization": {"id": 101}, "project": {"id": 315, "owner": {"id": 791}, "assignee": {"id": 803}}, "task": {"id": 390, "owner": {"id": 913}, "assignee": {"id": 1008}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 530}, "organization": {"id": 671}, "project": {"id": 377, "owner": {"id": 755}, "assignee": {"id": 817}}, "task": {"id": 308, "owner": {"id": 980}, "assignee": {"id": 1076}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 544}, "organization": {"id": 197}, "project": {"id": 380, "owner": {"id": 703}, "assignee": {"id": 857}}, "task": {"id": 361, "owner": {"id": 975}, "assignee": {"id": 1062}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 544}, "organization": {"id": 656}, "project": {"id": 360, "owner": {"id": 766}, "assignee": {"id": 891}}, "task": {"id": 370, "owner": {"id": 962}, "assignee": {"id": 1080}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 542}, "organization": {"id": 105}, "project": {"id": 349, "owner": {"id": 745}, "assignee": {"id": 880}}, "task": {"id": 377, "owner": {"id": 946}, "assignee": {"id": 1014}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 572}, "organization": {"id": 640}, "project": {"id": 358, "owner": {"id": 763}, "assignee": {"id": 831}}, "task": {"id": 396, "owner": {"id": 973}, "assignee": {"id": 1065}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 530}, "organization": {"id": 195}, "project": {"id": 379, "owner": {"id": 703}, "assignee": {"id": 891}}, "task": {"id": 374, "owner": {"id": 915}, "assignee": {"id": 1091}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 596}, "organization": {"id": 628}, "project": {"id": 396, "owner": {"id": 765}, "assignee": {"id": 882}}, "task": {"id": 319, "owner": {"id": 950}, "assignee": {"id": 1097}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 597}, "organization": {"id": 187}, "project": {"id": 332, "owner": {"id": 766}, "assignee": {"id": 881}}, "task": {"id": 359, "owner": {"id": 909}, "assignee": {"id": 1069}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 546}, "organization": {"id": 628}, "project": {"id": 333, "owner": {"id": 772}, "assignee": {"id": 836}}, "task": {"id": 313, "owner": {"id": 900}, "assignee": {"id": 1058}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 550}, "organization": {"id": 181}, "project": {"id": 327, "owner": {"id": 753}, "assignee": {"id": 860}}, "task": {"id": 339, "owner": {"id": 932}, "assignee": {"id": 1001}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 589}, "organization": {"id": 696}, "project": {"id": 371, "owner": {"id": 783}, "assignee": {"id": 833}}, "task": {"id": 313, "owner": {"id": 906}, "assignee": {"id": 1049}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 537}, "organization": {"id": 144}, "project": {"id": 355, "owner": {"id": 733}, "assignee": {"id": 851}}, "task": {"id": 310, "owner": {"id": 903}, "assignee": {"id": 1035}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 575}, "organization": {"id": 628}, "project": {"id": 327, "owner": {"id": 768}, "assignee": {"id": 868}}, "task": {"id": 395, "owner": {"id": 928}, "assignee": {"id": 1088}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 580}, "organization": {"id": 113}, "project": {"id": 398, "owner": {"id": 767}, "assignee": {"id": 886}}, "task": {"id": 351, "owner": {"id": 922}, "assignee": {"id": 1020}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 517}, "organization": {"id": 693}, "project": {"id": 385, "owner": {"id": 763}, "assignee": {"id": 848}}, "task": {"id": 359, "owner": {"id": 946}, "assignee": {"id": 1064}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 531}, "organization": {"id": 153}, "project": {"id": 366, "owner": {"id": 749}, "assignee": {"id": 838}}, "task": {"id": 330, "owner": {"id": 925}, "assignee": {"id": 1002}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 516}, "organization": {"id": 628}, "project": {"id": 369, "owner": {"id": 781}, "assignee": {"id": 870}}, "task": {"id": 386, "owner": {"id": 999}, "assignee": {"id": 1030}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 527}, "organization": {"id": 163}, "project": {"id": 363, "owner": {"id": 703}, "assignee": {"id": 867}}, "task": {"id": 347, "owner": {"id": 931}, "assignee": {"id": 1041}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 582}, "organization": {"id": 627}, "project": {"id": 354, "owner": {"id": 730}, "assignee": {"id": 835}}, "task": {"id": 320, "owner": {"id": 964}, "assignee": {"id": 1024}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 502}, "organization": {"id": 151}, "project": {"id": 376, "owner": {"id": 719}, "assignee": {"id": 899}}, "task": {"id": 310, "owner": {"id": 944}, "assignee": {"id": 1005}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 574}, "organization": {"id": 675}, "project": {"id": 304, "owner": {"id": 737}, "assignee": {"id": 894}}, "task": {"id": 335, "owner": {"id": 948}, "assignee": {"id": 1066}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 507}, "organization": {"id": 115}, "project": {"id": 331, "owner": {"id": 731}, "assignee": {"id": 857}}, "task": {"id": 338, "owner": {"id": 954}, "assignee": {"id": 1053}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 567}, "organization": {"id": 695}, "project": {"id": 327, "owner": {"id": 720}, "assignee": {"id": 847}}, "task": {"id": 357, "owner": {"id": 959}, "assignee": {"id": 1062}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 578}, "organization": {"id": 157}, "project": {"id": 366, "owner": {"id": 750}, "assignee": {"id": 839}}, "task": {"id": 331, "owner": {"id": 987}, "assignee": {"id": 1024}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 531}, "organization": {"id": 675}, "project": {"id": 352, "owner": {"id": 771}, "assignee": {"id": 825}}, "task": {"id": 307, "owner": {"id": 949}, "assignee": {"id": 1010}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 545}, "organization": {"id": 180}, "project": {"id": 341, "owner": {"id": 757}, "assignee": {"id": 802}}, "task": {"id": 393, "owner": {"id": 921}, "assignee": {"id": 1073}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 559}, "organization": {"id": 613}, "project": {"id": 301, "owner": {"id": 772}, "assignee": {"id": 800}}, "task": {"id": 391, "owner": {"id": 904}, "assignee": {"id": 1025}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 582}, "organization": {"id": 159}, "project": {"id": 397, "owner": {"id": 778}, "assignee": {"id": 800}}, "task": {"id": 393, "owner": {"id": 982}, "assignee": {"id": 1005}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 523}, "organization": {"id": 614}, "project": {"id": 381, "owner": {"id": 783}, "assignee": {"id": 820}}, "task": {"id": 345, "owner": {"id": 934}, "assignee": {"id": 1084}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 593}, "organization": {"id": 133}, "project": {"id": 363, "owner": {"id": 787}, "assignee": {"id": 875}}, "task": {"id": 316, "owner": {"id": 943}, "assignee": {"id": 1028}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 554}, "organization": {"id": 689}, "project": {"id": 305, "owner": {"id": 722}, "assignee": {"id": 834}}, "task": {"id": 394, "owner": {"id": 949}, "assignee": {"id": 1058}}}} +} + +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": 83, "privilege": "admin"}, "organization": null}, "resource": {"id": 391, "assignee": {"id": 599}, "organization": {"id": 689}, "project": {"id": 390, "owner": {"id": 83}, "assignee": {"id": 841}}, "task": {"id": 354, "owner": {"id": 992}, "assignee": {"id": 1099}}}} +} + +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": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 590}, "organization": {"id": 699}, "project": {"id": 315, "owner": {"id": 74}, "assignee": {"id": 834}}, "task": {"id": 360, "owner": {"id": 972}, "assignee": {"id": 1034}}}} +} + +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": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 571}, "organization": {"id": 619}, "project": {"id": 322, "owner": {"id": 13}, "assignee": {"id": 818}}, "task": {"id": 351, "owner": {"id": 922}, "assignee": {"id": 1016}}}} +} + +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": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 567}, "organization": {"id": 683}, "project": {"id": 382, "owner": {"id": 39}, "assignee": {"id": 824}}, "task": {"id": 307, "owner": {"id": 963}, "assignee": {"id": 1054}}}} +} + +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": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 319, "assignee": {"id": 582}, "organization": {"id": 649}, "project": {"id": 335, "owner": {"id": 54}, "assignee": {"id": 820}}, "task": {"id": 327, "owner": {"id": 993}, "assignee": {"id": 1080}}}} +} + +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": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "assignee": {"id": 592}, "organization": {"id": 667}, "project": {"id": 362, "owner": {"id": 753}, "assignee": {"id": 97}}, "task": {"id": 323, "owner": {"id": 972}, "assignee": {"id": 1057}}}} +} + +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": 19, "privilege": "business"}, "organization": null}, "resource": {"id": 323, "assignee": {"id": 530}, "organization": {"id": 647}, "project": {"id": 360, "owner": {"id": 740}, "assignee": {"id": 19}}, "task": {"id": 358, "owner": {"id": 974}, "assignee": {"id": 1095}}}} +} + +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": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 524}, "organization": {"id": 669}, "project": {"id": 388, "owner": {"id": 770}, "assignee": {"id": 9}}, "task": {"id": 370, "owner": {"id": 922}, "assignee": {"id": 1043}}}} +} + +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": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 368, "assignee": {"id": 511}, "organization": {"id": 689}, "project": {"id": 346, "owner": {"id": 732}, "assignee": {"id": 51}}, "task": {"id": 359, "owner": {"id": 990}, "assignee": {"id": 1045}}}} +} + +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": 18, "privilege": "none"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 529}, "organization": {"id": 635}, "project": {"id": 329, "owner": {"id": 775}, "assignee": {"id": 18}}, "task": {"id": 304, "owner": {"id": 976}, "assignee": {"id": 1053}}}} +} + +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": 11, "privilege": "admin"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 508}, "organization": {"id": 647}, "project": {"id": 389, "owner": {"id": 744}, "assignee": {"id": 814}}, "task": {"id": 345, "owner": {"id": 11}, "assignee": {"id": 1023}}}} +} + +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": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 558}, "organization": {"id": 611}, "project": {"id": 383, "owner": {"id": 787}, "assignee": {"id": 829}}, "task": {"id": 351, "owner": {"id": 79}, "assignee": {"id": 1012}}}} +} + +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": 82, "privilege": "user"}, "organization": null}, "resource": {"id": 372, "assignee": {"id": 527}, "organization": {"id": 681}, "project": {"id": 383, "owner": {"id": 729}, "assignee": {"id": 875}}, "task": {"id": 340, "owner": {"id": 82}, "assignee": {"id": 1033}}}} +} + +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": 93, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "assignee": {"id": 536}, "organization": {"id": 664}, "project": {"id": 393, "owner": {"id": 784}, "assignee": {"id": 882}}, "task": {"id": 306, "owner": {"id": 93}, "assignee": {"id": 1048}}}} +} + +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": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 350, "assignee": {"id": 543}, "organization": {"id": 610}, "project": {"id": 309, "owner": {"id": 779}, "assignee": {"id": 823}}, "task": {"id": 340, "owner": {"id": 96}, "assignee": {"id": 1050}}}} +} + +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": 7, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 502}, "organization": {"id": 694}, "project": {"id": 336, "owner": {"id": 768}, "assignee": {"id": 863}}, "task": {"id": 343, "owner": {"id": 954}, "assignee": {"id": 7}}}} +} + +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": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 508}, "organization": {"id": 672}, "project": {"id": 365, "owner": {"id": 740}, "assignee": {"id": 894}}, "task": {"id": 380, "owner": {"id": 966}, "assignee": {"id": 35}}}} +} + +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": 95, "privilege": "user"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 557}, "organization": {"id": 670}, "project": {"id": 336, "owner": {"id": 768}, "assignee": {"id": 827}}, "task": {"id": 331, "owner": {"id": 975}, "assignee": {"id": 95}}}} +} + +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": 359, "assignee": {"id": 588}, "organization": {"id": 688}, "project": {"id": 353, "owner": {"id": 735}, "assignee": {"id": 886}}, "task": {"id": 395, "owner": {"id": 999}, "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": 12, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "assignee": {"id": 510}, "organization": {"id": 654}, "project": {"id": 355, "owner": {"id": 700}, "assignee": {"id": 812}}, "task": {"id": 366, "owner": {"id": 937}, "assignee": {"id": 12}}}} +} + +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": 35, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 35}, "organization": {"id": 635}, "project": {"id": 397, "owner": {"id": 737}, "assignee": {"id": 832}}, "task": {"id": 323, "owner": {"id": 992}, "assignee": {"id": 1004}}}} +} + +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": 41, "privilege": "business"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 41}, "organization": {"id": 630}, "project": {"id": 383, "owner": {"id": 705}, "assignee": {"id": 872}}, "task": {"id": 376, "owner": {"id": 922}, "assignee": {"id": 1006}}}} +} + +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": 15, "privilege": "user"}, "organization": null}, "resource": {"id": 317, "assignee": {"id": 15}, "organization": {"id": 624}, "project": {"id": 305, "owner": {"id": 735}, "assignee": {"id": 823}}, "task": {"id": 318, "owner": {"id": 945}, "assignee": {"id": 1003}}}} +} + +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": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 19}, "organization": {"id": 686}, "project": {"id": 350, "owner": {"id": 781}, "assignee": {"id": 805}}, "task": {"id": 326, "owner": {"id": 960}, "assignee": {"id": 1005}}}} +} + +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": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 380, "assignee": {"id": 29}, "organization": {"id": 622}, "project": {"id": 375, "owner": {"id": 720}, "assignee": {"id": 851}}, "task": {"id": 311, "owner": {"id": 920}, "assignee": {"id": 1090}}}} +} + +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": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 532}, "organization": {"id": 668}, "project": {"id": 355, "owner": {"id": 747}, "assignee": {"id": 884}}, "task": {"id": 331, "owner": {"id": 936}, "assignee": {"id": 1081}}}} +} + +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": 48, "privilege": "business"}, "organization": null}, "resource": {"id": 359, "assignee": {"id": 568}, "organization": {"id": 607}, "project": {"id": 369, "owner": {"id": 705}, "assignee": {"id": 846}}, "task": {"id": 368, "owner": {"id": 958}, "assignee": {"id": 1016}}}} +} + +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": 37, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "assignee": {"id": 584}, "organization": {"id": 620}, "project": {"id": 326, "owner": {"id": 719}, "assignee": {"id": 893}}, "task": {"id": 383, "owner": {"id": 942}, "assignee": {"id": 1076}}}} +} + +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": 96, "privilege": "worker"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 585}, "organization": {"id": 609}, "project": {"id": 388, "owner": {"id": 732}, "assignee": {"id": 814}}, "task": {"id": 346, "owner": {"id": 958}, "assignee": {"id": 1081}}}} +} + +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": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 391, "assignee": {"id": 570}, "organization": {"id": 608}, "project": {"id": 363, "owner": {"id": 700}, "assignee": {"id": 809}}, "task": {"id": 345, "owner": {"id": 908}, "assignee": {"id": 1044}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 580}, "organization": {"id": 187}, "project": {"id": 364, "owner": {"id": 81}, "assignee": {"id": 897}}, "task": {"id": 397, "owner": {"id": 983}, "assignee": {"id": 1076}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 575}, "organization": {"id": 692}, "project": {"id": 378, "owner": {"id": 93}, "assignee": {"id": 872}}, "task": {"id": 395, "owner": {"id": 954}, "assignee": {"id": 1026}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 535}, "organization": {"id": 179}, "project": {"id": 340, "owner": {"id": 9}, "assignee": {"id": 874}}, "task": {"id": 369, "owner": {"id": 957}, "assignee": {"id": 1049}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 521}, "organization": {"id": 648}, "project": {"id": 302, "owner": {"id": 54}, "assignee": {"id": 874}}, "task": {"id": 394, "owner": {"id": 972}, "assignee": {"id": 1094}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 503}, "organization": {"id": 151}, "project": {"id": 328, "owner": {"id": 80}, "assignee": {"id": 804}}, "task": {"id": 391, "owner": {"id": 907}, "assignee": {"id": 1082}}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 596}, "organization": {"id": 670}, "project": {"id": 355, "owner": {"id": 68}, "assignee": {"id": 812}}, "task": {"id": 349, "owner": {"id": 964}, "assignee": {"id": 1026}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 568}, "organization": {"id": 197}, "project": {"id": 390, "owner": {"id": 0}, "assignee": {"id": 832}}, "task": {"id": 319, "owner": {"id": 961}, "assignee": {"id": 1035}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 548}, "organization": {"id": 658}, "project": {"id": 381, "owner": {"id": 1}, "assignee": {"id": 836}}, "task": {"id": 303, "owner": {"id": 994}, "assignee": {"id": 1018}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 575}, "organization": {"id": 135}, "project": {"id": 327, "owner": {"id": 2}, "assignee": {"id": 854}}, "task": {"id": 350, "owner": {"id": 979}, "assignee": {"id": 1052}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 599}, "organization": {"id": 632}, "project": {"id": 372, "owner": {"id": 32}, "assignee": {"id": 801}}, "task": {"id": 352, "owner": {"id": 944}, "assignee": {"id": 1024}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 525}, "organization": {"id": 127}, "project": {"id": 335, "owner": {"id": 66}, "assignee": {"id": 877}}, "task": {"id": 332, "owner": {"id": 980}, "assignee": {"id": 1020}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 591}, "organization": {"id": 685}, "project": {"id": 338, "owner": {"id": 74}, "assignee": {"id": 835}}, "task": {"id": 338, "owner": {"id": 986}, "assignee": {"id": 1060}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 503}, "organization": {"id": 115}, "project": {"id": 365, "owner": {"id": 33}, "assignee": {"id": 837}}, "task": {"id": 364, "owner": {"id": 961}, "assignee": {"id": 1003}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 586}, "organization": {"id": 689}, "project": {"id": 339, "owner": {"id": 65}, "assignee": {"id": 846}}, "task": {"id": 370, "owner": {"id": 917}, "assignee": {"id": 1044}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 583}, "organization": {"id": 111}, "project": {"id": 321, "owner": {"id": 50}, "assignee": {"id": 891}}, "task": {"id": 383, "owner": {"id": 951}, "assignee": {"id": 1096}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 523}, "organization": {"id": 685}, "project": {"id": 381, "owner": {"id": 56}, "assignee": {"id": 834}}, "task": {"id": 369, "owner": {"id": 966}, "assignee": {"id": 1047}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 564}, "organization": {"id": 148}, "project": {"id": 354, "owner": {"id": 83}, "assignee": {"id": 832}}, "task": {"id": 378, "owner": {"id": 944}, "assignee": {"id": 1067}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 574}, "organization": {"id": 687}, "project": {"id": 347, "owner": {"id": 3}, "assignee": {"id": 834}}, "task": {"id": 396, "owner": {"id": 984}, "assignee": {"id": 1018}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 526}, "organization": {"id": 190}, "project": {"id": 343, "owner": {"id": 49}, "assignee": {"id": 876}}, "task": {"id": 326, "owner": {"id": 945}, "assignee": {"id": 1085}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 554}, "organization": {"id": 650}, "project": {"id": 330, "owner": {"id": 7}, "assignee": {"id": 892}}, "task": {"id": 305, "owner": {"id": 994}, "assignee": {"id": 1036}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 502}, "organization": {"id": 191}, "project": {"id": 372, "owner": {"id": 65}, "assignee": {"id": 881}}, "task": {"id": 383, "owner": {"id": 912}, "assignee": {"id": 1001}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 569}, "organization": {"id": 667}, "project": {"id": 377, "owner": {"id": 85}, "assignee": {"id": 816}}, "task": {"id": 397, "owner": {"id": 942}, "assignee": {"id": 1035}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 520}, "organization": {"id": 174}, "project": {"id": 384, "owner": {"id": 33}, "assignee": {"id": 865}}, "task": {"id": 383, "owner": {"id": 942}, "assignee": {"id": 1052}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 525}, "organization": {"id": 602}, "project": {"id": 384, "owner": {"id": 13}, "assignee": {"id": 898}}, "task": {"id": 352, "owner": {"id": 966}, "assignee": {"id": 1033}}}} +} + +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": 185, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 590}, "organization": {"id": 185}, "project": {"id": 353, "owner": {"id": 68}, "assignee": {"id": 810}}, "task": {"id": 322, "owner": {"id": 969}, "assignee": {"id": 1007}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 530}, "organization": {"id": 634}, "project": {"id": 356, "owner": {"id": 34}, "assignee": {"id": 802}}, "task": {"id": 321, "owner": {"id": 943}, "assignee": {"id": 1020}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 530}, "organization": {"id": 180}, "project": {"id": 397, "owner": {"id": 52}, "assignee": {"id": 897}}, "task": {"id": 369, "owner": {"id": 995}, "assignee": {"id": 1057}}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 578}, "organization": {"id": 686}, "project": {"id": 310, "owner": {"id": 93}, "assignee": {"id": 834}}, "task": {"id": 369, "owner": {"id": 962}, "assignee": {"id": 1015}}}} +} + +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": 173, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 579}, "organization": {"id": 173}, "project": {"id": 332, "owner": {"id": 10}, "assignee": {"id": 872}}, "task": {"id": 399, "owner": {"id": 941}, "assignee": {"id": 1010}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 520}, "organization": {"id": 654}, "project": {"id": 385, "owner": {"id": 81}, "assignee": {"id": 861}}, "task": {"id": 373, "owner": {"id": 983}, "assignee": {"id": 1029}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 507}, "organization": {"id": 137}, "project": {"id": 378, "owner": {"id": 91}, "assignee": {"id": 891}}, "task": {"id": 388, "owner": {"id": 926}, "assignee": {"id": 1070}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 514}, "organization": {"id": 636}, "project": {"id": 381, "owner": {"id": 32}, "assignee": {"id": 852}}, "task": {"id": 330, "owner": {"id": 934}, "assignee": {"id": 1017}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 569}, "organization": {"id": 168}, "project": {"id": 373, "owner": {"id": 63}, "assignee": {"id": 852}}, "task": {"id": 343, "owner": {"id": 991}, "assignee": {"id": 1050}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 570}, "organization": {"id": 663}, "project": {"id": 354, "owner": {"id": 33}, "assignee": {"id": 800}}, "task": {"id": 374, "owner": {"id": 940}, "assignee": {"id": 1022}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 578}, "organization": {"id": 191}, "project": {"id": 359, "owner": {"id": 18}, "assignee": {"id": 866}}, "task": {"id": 387, "owner": {"id": 907}, "assignee": {"id": 1075}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 571}, "organization": {"id": 652}, "project": {"id": 312, "owner": {"id": 83}, "assignee": {"id": 833}}, "task": {"id": 357, "owner": {"id": 990}, "assignee": {"id": 1048}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 568}, "organization": {"id": 145}, "project": {"id": 395, "owner": {"id": 78}, "assignee": {"id": 845}}, "task": {"id": 314, "owner": {"id": 930}, "assignee": {"id": 1096}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 590}, "organization": {"id": 663}, "project": {"id": 358, "owner": {"id": 84}, "assignee": {"id": 875}}, "task": {"id": 346, "owner": {"id": 976}, "assignee": {"id": 1076}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 545}, "organization": {"id": 160}, "project": {"id": 335, "owner": {"id": 58}, "assignee": {"id": 883}}, "task": {"id": 315, "owner": {"id": 962}, "assignee": {"id": 1068}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 579}, "organization": {"id": 652}, "project": {"id": 315, "owner": {"id": 36}, "assignee": {"id": 824}}, "task": {"id": 322, "owner": {"id": 939}, "assignee": {"id": 1003}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 513}, "organization": {"id": 118}, "project": {"id": 351, "owner": {"id": 61}, "assignee": {"id": 801}}, "task": {"id": 358, "owner": {"id": 997}, "assignee": {"id": 1042}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 503}, "organization": {"id": 633}, "project": {"id": 304, "owner": {"id": 71}, "assignee": {"id": 805}}, "task": {"id": 314, "owner": {"id": 988}, "assignee": {"id": 1050}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 519}, "organization": {"id": 151}, "project": {"id": 387, "owner": {"id": 84}, "assignee": {"id": 898}}, "task": {"id": 361, "owner": {"id": 990}, "assignee": {"id": 1083}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 504}, "organization": {"id": 677}, "project": {"id": 342, "owner": {"id": 95}, "assignee": {"id": 822}}, "task": {"id": 378, "owner": {"id": 973}, "assignee": {"id": 1085}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 563}, "organization": {"id": 119}, "project": {"id": 367, "owner": {"id": 23}, "assignee": {"id": 828}}, "task": {"id": 335, "owner": {"id": 977}, "assignee": {"id": 1052}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 546}, "organization": {"id": 626}, "project": {"id": 380, "owner": {"id": 16}, "assignee": {"id": 841}}, "task": {"id": 396, "owner": {"id": 919}, "assignee": {"id": 1004}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 543}, "organization": {"id": 120}, "project": {"id": 374, "owner": {"id": 24}, "assignee": {"id": 843}}, "task": {"id": 396, "owner": {"id": 998}, "assignee": {"id": 1072}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 529}, "organization": {"id": 618}, "project": {"id": 317, "owner": {"id": 75}, "assignee": {"id": 893}}, "task": {"id": 327, "owner": {"id": 989}, "assignee": {"id": 1085}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 504}, "organization": {"id": 177}, "project": {"id": 344, "owner": {"id": 37}, "assignee": {"id": 874}}, "task": {"id": 390, "owner": {"id": 985}, "assignee": {"id": 1095}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 554}, "organization": {"id": 646}, "project": {"id": 302, "owner": {"id": 84}, "assignee": {"id": 898}}, "task": {"id": 343, "owner": {"id": 926}, "assignee": {"id": 1028}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 584}, "organization": {"id": 155}, "project": {"id": 351, "owner": {"id": 788}, "assignee": {"id": 92}}, "task": {"id": 342, "owner": {"id": 940}, "assignee": {"id": 1011}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 587}, "organization": {"id": 685}, "project": {"id": 396, "owner": {"id": 711}, "assignee": {"id": 24}}, "task": {"id": 311, "owner": {"id": 903}, "assignee": {"id": 1035}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 590}, "organization": {"id": 163}, "project": {"id": 323, "owner": {"id": 742}, "assignee": {"id": 41}}, "task": {"id": 333, "owner": {"id": 997}, "assignee": {"id": 1098}}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 509}, "organization": {"id": 613}, "project": {"id": 370, "owner": {"id": 701}, "assignee": {"id": 99}}, "task": {"id": 364, "owner": {"id": 927}, "assignee": {"id": 1037}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 546}, "organization": {"id": 125}, "project": {"id": 318, "owner": {"id": 705}, "assignee": {"id": 74}}, "task": {"id": 380, "owner": {"id": 999}, "assignee": {"id": 1069}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 500}, "organization": {"id": 682}, "project": {"id": 306, "owner": {"id": 761}, "assignee": {"id": 2}}, "task": {"id": 362, "owner": {"id": 977}, "assignee": {"id": 1094}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 580}, "organization": {"id": 117}, "project": {"id": 370, "owner": {"id": 722}, "assignee": {"id": 44}}, "task": {"id": 369, "owner": {"id": 918}, "assignee": {"id": 1036}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 592}, "organization": {"id": 658}, "project": {"id": 321, "owner": {"id": 752}, "assignee": {"id": 37}}, "task": {"id": 361, "owner": {"id": 970}, "assignee": {"id": 1000}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 380, "assignee": {"id": 565}, "organization": {"id": 180}, "project": {"id": 394, "owner": {"id": 716}, "assignee": {"id": 41}}, "task": {"id": 307, "owner": {"id": 910}, "assignee": {"id": 1037}}}} +} + +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": 190, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 568}, "organization": {"id": 686}, "project": {"id": 311, "owner": {"id": 701}, "assignee": {"id": 72}}, "task": {"id": 375, "owner": {"id": 966}, "assignee": {"id": 1093}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 535}, "organization": {"id": 123}, "project": {"id": 380, "owner": {"id": 766}, "assignee": {"id": 49}}, "task": {"id": 385, "owner": {"id": 969}, "assignee": {"id": 1025}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 566}, "organization": {"id": 632}, "project": {"id": 322, "owner": {"id": 785}, "assignee": {"id": 34}}, "task": {"id": 305, "owner": {"id": 913}, "assignee": {"id": 1025}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 558}, "organization": {"id": 190}, "project": {"id": 396, "owner": {"id": 745}, "assignee": {"id": 57}}, "task": {"id": 312, "owner": {"id": 957}, "assignee": {"id": 1027}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 513}, "organization": {"id": 682}, "project": {"id": 372, "owner": {"id": 734}, "assignee": {"id": 59}}, "task": {"id": 303, "owner": {"id": 998}, "assignee": {"id": 1031}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 573}, "organization": {"id": 188}, "project": {"id": 385, "owner": {"id": 720}, "assignee": {"id": 21}}, "task": {"id": 340, "owner": {"id": 913}, "assignee": {"id": 1044}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 582}, "organization": {"id": 667}, "project": {"id": 332, "owner": {"id": 796}, "assignee": {"id": 53}}, "task": {"id": 327, "owner": {"id": 993}, "assignee": {"id": 1050}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 310, "assignee": {"id": 538}, "organization": {"id": 147}, "project": {"id": 321, "owner": {"id": 778}, "assignee": {"id": 75}}, "task": {"id": 345, "owner": {"id": 996}, "assignee": {"id": 1012}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 594}, "organization": {"id": 615}, "project": {"id": 373, "owner": {"id": 715}, "assignee": {"id": 82}}, "task": {"id": 391, "owner": {"id": 926}, "assignee": {"id": 1076}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 513}, "organization": {"id": 127}, "project": {"id": 351, "owner": {"id": 703}, "assignee": {"id": 50}}, "task": {"id": 373, "owner": {"id": 929}, "assignee": {"id": 1022}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 556}, "organization": {"id": 600}, "project": {"id": 384, "owner": {"id": 715}, "assignee": {"id": 1}}, "task": {"id": 318, "owner": {"id": 993}, "assignee": {"id": 1001}}}} +} + +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": 161, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 550}, "organization": {"id": 161}, "project": {"id": 364, "owner": {"id": 761}, "assignee": {"id": 89}}, "task": {"id": 369, "owner": {"id": 924}, "assignee": {"id": 1075}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 576}, "organization": {"id": 610}, "project": {"id": 381, "owner": {"id": 797}, "assignee": {"id": 57}}, "task": {"id": 340, "owner": {"id": 981}, "assignee": {"id": 1013}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 550}, "organization": {"id": 198}, "project": {"id": 340, "owner": {"id": 718}, "assignee": {"id": 20}}, "task": {"id": 367, "owner": {"id": 942}, "assignee": {"id": 1039}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 581}, "organization": {"id": 656}, "project": {"id": 396, "owner": {"id": 788}, "assignee": {"id": 32}}, "task": {"id": 338, "owner": {"id": 912}, "assignee": {"id": 1037}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 552}, "organization": {"id": 114}, "project": {"id": 328, "owner": {"id": 746}, "assignee": {"id": 51}}, "task": {"id": 354, "owner": {"id": 925}, "assignee": {"id": 1051}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 569}, "organization": {"id": 641}, "project": {"id": 379, "owner": {"id": 707}, "assignee": {"id": 23}}, "task": {"id": 357, "owner": {"id": 918}, "assignee": {"id": 1056}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 512}, "organization": {"id": 167}, "project": {"id": 354, "owner": {"id": 798}, "assignee": {"id": 70}}, "task": {"id": 369, "owner": {"id": 991}, "assignee": {"id": 1039}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 567}, "organization": {"id": 678}, "project": {"id": 312, "owner": {"id": 747}, "assignee": {"id": 38}}, "task": {"id": 306, "owner": {"id": 913}, "assignee": {"id": 1084}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 510}, "organization": {"id": 150}, "project": {"id": 312, "owner": {"id": 705}, "assignee": {"id": 7}}, "task": {"id": 391, "owner": {"id": 988}, "assignee": {"id": 1051}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 570}, "organization": {"id": 601}, "project": {"id": 322, "owner": {"id": 767}, "assignee": {"id": 41}}, "task": {"id": 362, "owner": {"id": 948}, "assignee": {"id": 1056}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 530}, "organization": {"id": 154}, "project": {"id": 376, "owner": {"id": 709}, "assignee": {"id": 61}}, "task": {"id": 382, "owner": {"id": 957}, "assignee": {"id": 1051}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 537}, "organization": {"id": 661}, "project": {"id": 315, "owner": {"id": 730}, "assignee": {"id": 63}}, "task": {"id": 302, "owner": {"id": 946}, "assignee": {"id": 1076}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 544}, "organization": {"id": 129}, "project": {"id": 338, "owner": {"id": 778}, "assignee": {"id": 91}}, "task": {"id": 393, "owner": {"id": 980}, "assignee": {"id": 1089}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 594}, "organization": {"id": 674}, "project": {"id": 323, "owner": {"id": 725}, "assignee": {"id": 78}}, "task": {"id": 330, "owner": {"id": 917}, "assignee": {"id": 1009}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 564}, "organization": {"id": 147}, "project": {"id": 303, "owner": {"id": 768}, "assignee": {"id": 56}}, "task": {"id": 331, "owner": {"id": 976}, "assignee": {"id": 1092}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 567}, "organization": {"id": 665}, "project": {"id": 366, "owner": {"id": 745}, "assignee": {"id": 41}}, "task": {"id": 398, "owner": {"id": 903}, "assignee": {"id": 1091}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 507}, "organization": {"id": 169}, "project": {"id": 398, "owner": {"id": 743}, "assignee": {"id": 13}}, "task": {"id": 346, "owner": {"id": 930}, "assignee": {"id": 1018}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 589}, "organization": {"id": 626}, "project": {"id": 379, "owner": {"id": 739}, "assignee": {"id": 84}}, "task": {"id": 389, "owner": {"id": 958}, "assignee": {"id": 1071}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 539}, "organization": {"id": 119}, "project": {"id": 344, "owner": {"id": 739}, "assignee": {"id": 65}}, "task": {"id": 379, "owner": {"id": 990}, "assignee": {"id": 1071}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 528}, "organization": {"id": 672}, "project": {"id": 321, "owner": {"id": 739}, "assignee": {"id": 11}}, "task": {"id": 302, "owner": {"id": 930}, "assignee": {"id": 1029}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 562}, "organization": {"id": 132}, "project": {"id": 325, "owner": {"id": 754}, "assignee": {"id": 27}}, "task": {"id": 380, "owner": {"id": 934}, "assignee": {"id": 1049}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 585}, "organization": {"id": 664}, "project": {"id": 362, "owner": {"id": 797}, "assignee": {"id": 0}}, "task": {"id": 319, "owner": {"id": 990}, "assignee": {"id": 1048}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 515}, "organization": {"id": 166}, "project": {"id": 387, "owner": {"id": 775}, "assignee": {"id": 87}}, "task": {"id": 361, "owner": {"id": 932}, "assignee": {"id": 1006}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 528}, "organization": {"id": 603}, "project": {"id": 321, "owner": {"id": 714}, "assignee": {"id": 32}}, "task": {"id": 315, "owner": {"id": 966}, "assignee": {"id": 1046}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 584}, "organization": {"id": 107}, "project": {"id": 343, "owner": {"id": 759}, "assignee": {"id": 76}}, "task": {"id": 338, "owner": {"id": 917}, "assignee": {"id": 1074}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 512}, "organization": {"id": 619}, "project": {"id": 358, "owner": {"id": 789}, "assignee": {"id": 33}}, "task": {"id": 319, "owner": {"id": 948}, "assignee": {"id": 1090}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 548}, "organization": {"id": 130}, "project": {"id": 373, "owner": {"id": 728}, "assignee": {"id": 11}}, "task": {"id": 340, "owner": {"id": 995}, "assignee": {"id": 1068}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 386, "assignee": {"id": 532}, "organization": {"id": 693}, "project": {"id": 336, "owner": {"id": 751}, "assignee": {"id": 52}}, "task": {"id": 385, "owner": {"id": 907}, "assignee": {"id": 1087}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 548}, "organization": {"id": 187}, "project": {"id": 354, "owner": {"id": 700}, "assignee": {"id": 48}}, "task": {"id": 315, "owner": {"id": 980}, "assignee": {"id": 1075}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 556}, "organization": {"id": 687}, "project": {"id": 355, "owner": {"id": 766}, "assignee": {"id": 38}}, "task": {"id": 304, "owner": {"id": 993}, "assignee": {"id": 1043}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 516}, "organization": {"id": 158}, "project": {"id": 335, "owner": {"id": 763}, "assignee": {"id": 855}}, "task": {"id": 360, "owner": {"id": 89}, "assignee": {"id": 1049}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 591}, "organization": {"id": 639}, "project": {"id": 395, "owner": {"id": 701}, "assignee": {"id": 868}}, "task": {"id": 361, "owner": {"id": 5}, "assignee": {"id": 1061}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 565}, "organization": {"id": 156}, "project": {"id": 333, "owner": {"id": 726}, "assignee": {"id": 803}}, "task": {"id": 334, "owner": {"id": 43}, "assignee": {"id": 1053}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 599}, "organization": {"id": 613}, "project": {"id": 354, "owner": {"id": 704}, "assignee": {"id": 858}}, "task": {"id": 333, "owner": {"id": 23}, "assignee": {"id": 1028}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 553}, "organization": {"id": 114}, "project": {"id": 320, "owner": {"id": 791}, "assignee": {"id": 840}}, "task": {"id": 330, "owner": {"id": 85}, "assignee": {"id": 1029}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 541}, "organization": {"id": 653}, "project": {"id": 368, "owner": {"id": 779}, "assignee": {"id": 888}}, "task": {"id": 307, "owner": {"id": 86}, "assignee": {"id": 1031}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 515}, "organization": {"id": 159}, "project": {"id": 390, "owner": {"id": 751}, "assignee": {"id": 864}}, "task": {"id": 395, "owner": {"id": 96}, "assignee": {"id": 1074}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 529}, "organization": {"id": 649}, "project": {"id": 312, "owner": {"id": 732}, "assignee": {"id": 840}}, "task": {"id": 382, "owner": {"id": 90}, "assignee": {"id": 1019}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 568}, "organization": {"id": 139}, "project": {"id": 375, "owner": {"id": 732}, "assignee": {"id": 898}}, "task": {"id": 322, "owner": {"id": 37}, "assignee": {"id": 1041}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 594}, "organization": {"id": 671}, "project": {"id": 365, "owner": {"id": 748}, "assignee": {"id": 811}}, "task": {"id": 343, "owner": {"id": 97}, "assignee": {"id": 1047}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 557}, "organization": {"id": 148}, "project": {"id": 360, "owner": {"id": 787}, "assignee": {"id": 879}}, "task": {"id": 394, "owner": {"id": 11}, "assignee": {"id": 1038}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 570}, "organization": {"id": 608}, "project": {"id": 371, "owner": {"id": 733}, "assignee": {"id": 853}}, "task": {"id": 342, "owner": {"id": 70}, "assignee": {"id": 1092}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 586}, "organization": {"id": 182}, "project": {"id": 345, "owner": {"id": 764}, "assignee": {"id": 864}}, "task": {"id": 390, "owner": {"id": 41}, "assignee": {"id": 1033}}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 557}, "organization": {"id": 681}, "project": {"id": 386, "owner": {"id": 706}, "assignee": {"id": 815}}, "task": {"id": 325, "owner": {"id": 19}, "assignee": {"id": 1063}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 518}, "organization": {"id": 103}, "project": {"id": 371, "owner": {"id": 760}, "assignee": {"id": 869}}, "task": {"id": 345, "owner": {"id": 95}, "assignee": {"id": 1002}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 524}, "organization": {"id": 651}, "project": {"id": 339, "owner": {"id": 783}, "assignee": {"id": 819}}, "task": {"id": 330, "owner": {"id": 91}, "assignee": {"id": 1033}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 524}, "organization": {"id": 121}, "project": {"id": 315, "owner": {"id": 737}, "assignee": {"id": 854}}, "task": {"id": 331, "owner": {"id": 27}, "assignee": {"id": 1068}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 578}, "organization": {"id": 665}, "project": {"id": 307, "owner": {"id": 765}, "assignee": {"id": 805}}, "task": {"id": 349, "owner": {"id": 85}, "assignee": {"id": 1060}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 559}, "organization": {"id": 154}, "project": {"id": 381, "owner": {"id": 776}, "assignee": {"id": 884}}, "task": {"id": 303, "owner": {"id": 54}, "assignee": {"id": 1068}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 588}, "organization": {"id": 635}, "project": {"id": 325, "owner": {"id": 784}, "assignee": {"id": 802}}, "task": {"id": 396, "owner": {"id": 54}, "assignee": {"id": 1094}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 542}, "organization": {"id": 195}, "project": {"id": 373, "owner": {"id": 789}, "assignee": {"id": 873}}, "task": {"id": 374, "owner": {"id": 21}, "assignee": {"id": 1067}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 534}, "organization": {"id": 611}, "project": {"id": 340, "owner": {"id": 710}, "assignee": {"id": 844}}, "task": {"id": 369, "owner": {"id": 55}, "assignee": {"id": 1006}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 511}, "organization": {"id": 145}, "project": {"id": 308, "owner": {"id": 713}, "assignee": {"id": 856}}, "task": {"id": 364, "owner": {"id": 8}, "assignee": {"id": 1010}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 504}, "organization": {"id": 671}, "project": {"id": 307, "owner": {"id": 753}, "assignee": {"id": 800}}, "task": {"id": 383, "owner": {"id": 76}, "assignee": {"id": 1024}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 505}, "organization": {"id": 109}, "project": {"id": 343, "owner": {"id": 761}, "assignee": {"id": 852}}, "task": {"id": 318, "owner": {"id": 32}, "assignee": {"id": 1025}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 550}, "organization": {"id": 669}, "project": {"id": 365, "owner": {"id": 751}, "assignee": {"id": 866}}, "task": {"id": 362, "owner": {"id": 87}, "assignee": {"id": 1063}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 502}, "organization": {"id": 171}, "project": {"id": 368, "owner": {"id": 761}, "assignee": {"id": 816}}, "task": {"id": 356, "owner": {"id": 30}, "assignee": {"id": 1075}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 561}, "organization": {"id": 666}, "project": {"id": 323, "owner": {"id": 779}, "assignee": {"id": 851}}, "task": {"id": 314, "owner": {"id": 25}, "assignee": {"id": 1079}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 581}, "organization": {"id": 105}, "project": {"id": 399, "owner": {"id": 778}, "assignee": {"id": 802}}, "task": {"id": 393, "owner": {"id": 31}, "assignee": {"id": 1079}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 540}, "organization": {"id": 617}, "project": {"id": 342, "owner": {"id": 718}, "assignee": {"id": 884}}, "task": {"id": 336, "owner": {"id": 30}, "assignee": {"id": 1006}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 527}, "organization": {"id": 195}, "project": {"id": 363, "owner": {"id": 757}, "assignee": {"id": 837}}, "task": {"id": 312, "owner": {"id": 34}, "assignee": {"id": 1033}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 547}, "organization": {"id": 688}, "project": {"id": 346, "owner": {"id": 778}, "assignee": {"id": 859}}, "task": {"id": 396, "owner": {"id": 37}, "assignee": {"id": 1012}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 587}, "organization": {"id": 176}, "project": {"id": 387, "owner": {"id": 746}, "assignee": {"id": 880}}, "task": {"id": 398, "owner": {"id": 80}, "assignee": {"id": 1073}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 571}, "organization": {"id": 612}, "project": {"id": 338, "owner": {"id": 748}, "assignee": {"id": 891}}, "task": {"id": 302, "owner": {"id": 10}, "assignee": {"id": 1053}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 564}, "organization": {"id": 192}, "project": {"id": 368, "owner": {"id": 709}, "assignee": {"id": 807}}, "task": {"id": 324, "owner": {"id": 31}, "assignee": {"id": 1089}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 572}, "organization": {"id": 682}, "project": {"id": 342, "owner": {"id": 732}, "assignee": {"id": 817}}, "task": {"id": 327, "owner": {"id": 16}, "assignee": {"id": 1090}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 565}, "organization": {"id": 157}, "project": {"id": 331, "owner": {"id": 756}, "assignee": {"id": 872}}, "task": {"id": 357, "owner": {"id": 93}, "assignee": {"id": 1079}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 510}, "organization": {"id": 627}, "project": {"id": 372, "owner": {"id": 764}, "assignee": {"id": 887}}, "task": {"id": 306, "owner": {"id": 61}, "assignee": {"id": 1073}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 576}, "organization": {"id": 143}, "project": {"id": 359, "owner": {"id": 793}, "assignee": {"id": 839}}, "task": {"id": 384, "owner": {"id": 43}, "assignee": {"id": 1092}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 537}, "organization": {"id": 619}, "project": {"id": 304, "owner": {"id": 715}, "assignee": {"id": 868}}, "task": {"id": 319, "owner": {"id": 78}, "assignee": {"id": 1065}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 592}, "organization": {"id": 152}, "project": {"id": 302, "owner": {"id": 791}, "assignee": {"id": 888}}, "task": {"id": 394, "owner": {"id": 57}, "assignee": {"id": 1058}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 569}, "organization": {"id": 654}, "project": {"id": 337, "owner": {"id": 758}, "assignee": {"id": 820}}, "task": {"id": 344, "owner": {"id": 90}, "assignee": {"id": 1070}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 576}, "organization": {"id": 179}, "project": {"id": 374, "owner": {"id": 744}, "assignee": {"id": 868}}, "task": {"id": 393, "owner": {"id": 48}, "assignee": {"id": 1088}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 521}, "organization": {"id": 686}, "project": {"id": 323, "owner": {"id": 778}, "assignee": {"id": 844}}, "task": {"id": 343, "owner": {"id": 96}, "assignee": {"id": 1056}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 501}, "organization": {"id": 135}, "project": {"id": 397, "owner": {"id": 705}, "assignee": {"id": 854}}, "task": {"id": 384, "owner": {"id": 74}, "assignee": {"id": 1093}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 551}, "organization": {"id": 629}, "project": {"id": 329, "owner": {"id": 725}, "assignee": {"id": 828}}, "task": {"id": 392, "owner": {"id": 31}, "assignee": {"id": 1072}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 589}, "organization": {"id": 156}, "project": {"id": 338, "owner": {"id": 716}, "assignee": {"id": 839}}, "task": {"id": 306, "owner": {"id": 48}, "assignee": {"id": 1056}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 593}, "organization": {"id": 630}, "project": {"id": 343, "owner": {"id": 773}, "assignee": {"id": 849}}, "task": {"id": 333, "owner": {"id": 6}, "assignee": {"id": 1032}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 576}, "organization": {"id": 100}, "project": {"id": 320, "owner": {"id": 711}, "assignee": {"id": 821}}, "task": {"id": 316, "owner": {"id": 79}, "assignee": {"id": 1077}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 556}, "organization": {"id": 697}, "project": {"id": 334, "owner": {"id": 725}, "assignee": {"id": 813}}, "task": {"id": 355, "owner": {"id": 45}, "assignee": {"id": 1096}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 509}, "organization": {"id": 145}, "project": {"id": 314, "owner": {"id": 783}, "assignee": {"id": 887}}, "task": {"id": 366, "owner": {"id": 991}, "assignee": {"id": 17}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 575}, "organization": {"id": 619}, "project": {"id": 365, "owner": {"id": 738}, "assignee": {"id": 826}}, "task": {"id": 308, "owner": {"id": 990}, "assignee": {"id": 23}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 594}, "organization": {"id": 188}, "project": {"id": 369, "owner": {"id": 753}, "assignee": {"id": 889}}, "task": {"id": 336, "owner": {"id": 931}, "assignee": {"id": 65}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 509}, "organization": {"id": 672}, "project": {"id": 354, "owner": {"id": 721}, "assignee": {"id": 816}}, "task": {"id": 309, "owner": {"id": 904}, "assignee": {"id": 64}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 500}, "organization": {"id": 143}, "project": {"id": 372, "owner": {"id": 762}, "assignee": {"id": 899}}, "task": {"id": 380, "owner": {"id": 928}, "assignee": {"id": 70}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 573}, "organization": {"id": 684}, "project": {"id": 383, "owner": {"id": 722}, "assignee": {"id": 896}}, "task": {"id": 382, "owner": {"id": 929}, "assignee": {"id": 66}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 507}, "organization": {"id": 133}, "project": {"id": 331, "owner": {"id": 748}, "assignee": {"id": 863}}, "task": {"id": 308, "owner": {"id": 997}, "assignee": {"id": 84}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 578}, "organization": {"id": 630}, "project": {"id": 331, "owner": {"id": 710}, "assignee": {"id": 891}}, "task": {"id": 314, "owner": {"id": 925}, "assignee": {"id": 9}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 506}, "organization": {"id": 119}, "project": {"id": 390, "owner": {"id": 749}, "assignee": {"id": 893}}, "task": {"id": 376, "owner": {"id": 940}, "assignee": {"id": 91}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 561}, "organization": {"id": 660}, "project": {"id": 383, "owner": {"id": 737}, "assignee": {"id": 894}}, "task": {"id": 304, "owner": {"id": 999}, "assignee": {"id": 26}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 538}, "organization": {"id": 124}, "project": {"id": 381, "owner": {"id": 700}, "assignee": {"id": 812}}, "task": {"id": 363, "owner": {"id": 909}, "assignee": {"id": 24}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 519}, "organization": {"id": 641}, "project": {"id": 341, "owner": {"id": 756}, "assignee": {"id": 890}}, "task": {"id": 309, "owner": {"id": 954}, "assignee": {"id": 2}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 578}, "organization": {"id": 104}, "project": {"id": 354, "owner": {"id": 712}, "assignee": {"id": 865}}, "task": {"id": 333, "owner": {"id": 908}, "assignee": {"id": 71}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 589}, "organization": {"id": 601}, "project": {"id": 344, "owner": {"id": 727}, "assignee": {"id": 871}}, "task": {"id": 317, "owner": {"id": 965}, "assignee": {"id": 52}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 593}, "organization": {"id": 197}, "project": {"id": 398, "owner": {"id": 722}, "assignee": {"id": 892}}, "task": {"id": 310, "owner": {"id": 977}, "assignee": {"id": 88}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 518}, "organization": {"id": 637}, "project": {"id": 375, "owner": {"id": 758}, "assignee": {"id": 878}}, "task": {"id": 314, "owner": {"id": 989}, "assignee": {"id": 78}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 506}, "organization": {"id": 174}, "project": {"id": 307, "owner": {"id": 780}, "assignee": {"id": 852}}, "task": {"id": 373, "owner": {"id": 907}, "assignee": {"id": 91}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 527}, "organization": {"id": 680}, "project": {"id": 322, "owner": {"id": 768}, "assignee": {"id": 848}}, "task": {"id": 362, "owner": {"id": 986}, "assignee": {"id": 28}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 593}, "organization": {"id": 116}, "project": {"id": 392, "owner": {"id": 743}, "assignee": {"id": 805}}, "task": {"id": 381, "owner": {"id": 944}, "assignee": {"id": 76}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 526}, "organization": {"id": 670}, "project": {"id": 318, "owner": {"id": 717}, "assignee": {"id": 826}}, "task": {"id": 378, "owner": {"id": 978}, "assignee": {"id": 51}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 585}, "organization": {"id": 136}, "project": {"id": 375, "owner": {"id": 708}, "assignee": {"id": 817}}, "task": {"id": 396, "owner": {"id": 971}, "assignee": {"id": 97}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 503}, "organization": {"id": 667}, "project": {"id": 394, "owner": {"id": 749}, "assignee": {"id": 899}}, "task": {"id": 387, "owner": {"id": 908}, "assignee": {"id": 36}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 511}, "organization": {"id": 127}, "project": {"id": 398, "owner": {"id": 751}, "assignee": {"id": 834}}, "task": {"id": 328, "owner": {"id": 963}, "assignee": {"id": 70}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 512}, "organization": {"id": 674}, "project": {"id": 372, "owner": {"id": 772}, "assignee": {"id": 879}}, "task": {"id": 339, "owner": {"id": 988}, "assignee": {"id": 50}}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 523}, "organization": {"id": 125}, "project": {"id": 331, "owner": {"id": 791}, "assignee": {"id": 807}}, "task": {"id": 383, "owner": {"id": 909}, "assignee": {"id": 24}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 562}, "organization": {"id": 674}, "project": {"id": 311, "owner": {"id": 769}, "assignee": {"id": 809}}, "task": {"id": 365, "owner": {"id": 939}, "assignee": {"id": 97}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 575}, "organization": {"id": 170}, "project": {"id": 399, "owner": {"id": 775}, "assignee": {"id": 855}}, "task": {"id": 343, "owner": {"id": 953}, "assignee": {"id": 18}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 537}, "organization": {"id": 691}, "project": {"id": 397, "owner": {"id": 783}, "assignee": {"id": 834}}, "task": {"id": 344, "owner": {"id": 928}, "assignee": {"id": 41}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 596}, "organization": {"id": 101}, "project": {"id": 362, "owner": {"id": 759}, "assignee": {"id": 854}}, "task": {"id": 335, "owner": {"id": 958}, "assignee": {"id": 52}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 343, "assignee": {"id": 543}, "organization": {"id": 650}, "project": {"id": 316, "owner": {"id": 719}, "assignee": {"id": 836}}, "task": {"id": 358, "owner": {"id": 915}, "assignee": {"id": 83}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 573}, "organization": {"id": 148}, "project": {"id": 379, "owner": {"id": 751}, "assignee": {"id": 866}}, "task": {"id": 300, "owner": {"id": 915}, "assignee": {"id": 50}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 551}, "organization": {"id": 644}, "project": {"id": 371, "owner": {"id": 709}, "assignee": {"id": 827}}, "task": {"id": 392, "owner": {"id": 988}, "assignee": {"id": 62}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 546}, "organization": {"id": 169}, "project": {"id": 329, "owner": {"id": 769}, "assignee": {"id": 867}}, "task": {"id": 335, "owner": {"id": 924}, "assignee": {"id": 38}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 575}, "organization": {"id": 687}, "project": {"id": 388, "owner": {"id": 768}, "assignee": {"id": 830}}, "task": {"id": 347, "owner": {"id": 974}, "assignee": {"id": 22}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 553}, "organization": {"id": 107}, "project": {"id": 302, "owner": {"id": 791}, "assignee": {"id": 893}}, "task": {"id": 305, "owner": {"id": 902}, "assignee": {"id": 78}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 512}, "organization": {"id": 614}, "project": {"id": 355, "owner": {"id": 745}, "assignee": {"id": 805}}, "task": {"id": 304, "owner": {"id": 915}, "assignee": {"id": 56}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 582}, "organization": {"id": 125}, "project": {"id": 311, "owner": {"id": 711}, "assignee": {"id": 826}}, "task": {"id": 399, "owner": {"id": 911}, "assignee": {"id": 93}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 374, "assignee": {"id": 596}, "organization": {"id": 672}, "project": {"id": 398, "owner": {"id": 726}, "assignee": {"id": 873}}, "task": {"id": 323, "owner": {"id": 973}, "assignee": {"id": 85}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 536}, "organization": {"id": 151}, "project": {"id": 356, "owner": {"id": 714}, "assignee": {"id": 847}}, "task": {"id": 372, "owner": {"id": 995}, "assignee": {"id": 64}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 513}, "organization": {"id": 605}, "project": {"id": 305, "owner": {"id": 713}, "assignee": {"id": 839}}, "task": {"id": 347, "owner": {"id": 974}, "assignee": {"id": 28}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 597}, "organization": {"id": 165}, "project": {"id": 389, "owner": {"id": 762}, "assignee": {"id": 839}}, "task": {"id": 387, "owner": {"id": 996}, "assignee": {"id": 32}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 558}, "organization": {"id": 628}, "project": {"id": 393, "owner": {"id": 744}, "assignee": {"id": 889}}, "task": {"id": 397, "owner": {"id": 903}, "assignee": {"id": 91}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 554}, "organization": {"id": 145}, "project": {"id": 315, "owner": {"id": 758}, "assignee": {"id": 895}}, "task": {"id": 330, "owner": {"id": 943}, "assignee": {"id": 64}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 553}, "organization": {"id": 674}, "project": {"id": 310, "owner": {"id": 731}, "assignee": {"id": 806}}, "task": {"id": 356, "owner": {"id": 968}, "assignee": {"id": 91}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 595}, "organization": {"id": 124}, "project": {"id": 331, "owner": {"id": 759}, "assignee": {"id": 830}}, "task": {"id": 368, "owner": {"id": 994}, "assignee": {"id": 6}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 555}, "organization": {"id": 609}, "project": {"id": 365, "owner": {"id": 701}, "assignee": {"id": 892}}, "task": {"id": 323, "owner": {"id": 917}, "assignee": {"id": 40}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 576}, "organization": {"id": 113}, "project": {"id": 355, "owner": {"id": 772}, "assignee": {"id": 835}}, "task": {"id": 390, "owner": {"id": 963}, "assignee": {"id": 38}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 533}, "organization": {"id": 659}, "project": {"id": 383, "owner": {"id": 781}, "assignee": {"id": 870}}, "task": {"id": 315, "owner": {"id": 938}, "assignee": {"id": 45}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 538}, "organization": {"id": 137}, "project": {"id": 302, "owner": {"id": 720}, "assignee": {"id": 846}}, "task": {"id": 322, "owner": {"id": 992}, "assignee": {"id": 37}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 559}, "organization": {"id": 684}, "project": {"id": 309, "owner": {"id": 792}, "assignee": {"id": 878}}, "task": {"id": 308, "owner": {"id": 908}, "assignee": {"id": 39}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 11}, "organization": {"id": 194}, "project": {"id": 384, "owner": {"id": 760}, "assignee": {"id": 890}}, "task": {"id": 356, "owner": {"id": 994}, "assignee": {"id": 1007}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 54}, "organization": {"id": 689}, "project": {"id": 328, "owner": {"id": 763}, "assignee": {"id": 862}}, "task": {"id": 326, "owner": {"id": 901}, "assignee": {"id": 1038}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 63}, "organization": {"id": 165}, "project": {"id": 355, "owner": {"id": 750}, "assignee": {"id": 892}}, "task": {"id": 395, "owner": {"id": 966}, "assignee": {"id": 1027}}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 62}, "organization": {"id": 668}, "project": {"id": 320, "owner": {"id": 767}, "assignee": {"id": 897}}, "task": {"id": 347, "owner": {"id": 996}, "assignee": {"id": 1028}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 32}, "organization": {"id": 118}, "project": {"id": 347, "owner": {"id": 703}, "assignee": {"id": 858}}, "task": {"id": 374, "owner": {"id": 958}, "assignee": {"id": 1095}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 59}, "organization": {"id": 618}, "project": {"id": 342, "owner": {"id": 708}, "assignee": {"id": 866}}, "task": {"id": 389, "owner": {"id": 942}, "assignee": {"id": 1031}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 78}, "organization": {"id": 131}, "project": {"id": 350, "owner": {"id": 773}, "assignee": {"id": 864}}, "task": {"id": 336, "owner": {"id": 918}, "assignee": {"id": 1042}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 42}, "organization": {"id": 648}, "project": {"id": 312, "owner": {"id": 778}, "assignee": {"id": 863}}, "task": {"id": 372, "owner": {"id": 995}, "assignee": {"id": 1040}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 25}, "organization": {"id": 152}, "project": {"id": 361, "owner": {"id": 735}, "assignee": {"id": 838}}, "task": {"id": 331, "owner": {"id": 969}, "assignee": {"id": 1014}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 10}, "organization": {"id": 673}, "project": {"id": 333, "owner": {"id": 761}, "assignee": {"id": 873}}, "task": {"id": 301, "owner": {"id": 959}, "assignee": {"id": 1049}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 36}, "organization": {"id": 175}, "project": {"id": 355, "owner": {"id": 757}, "assignee": {"id": 895}}, "task": {"id": 318, "owner": {"id": 957}, "assignee": {"id": 1047}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 39}, "organization": {"id": 623}, "project": {"id": 335, "owner": {"id": 751}, "assignee": {"id": 834}}, "task": {"id": 338, "owner": {"id": 955}, "assignee": {"id": 1094}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 27}, "organization": {"id": 162}, "project": {"id": 307, "owner": {"id": 792}, "assignee": {"id": 823}}, "task": {"id": 370, "owner": {"id": 958}, "assignee": {"id": 1076}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 68}, "organization": {"id": 602}, "project": {"id": 370, "owner": {"id": 704}, "assignee": {"id": 846}}, "task": {"id": 376, "owner": {"id": 916}, "assignee": {"id": 1010}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 95}, "organization": {"id": 112}, "project": {"id": 329, "owner": {"id": 782}, "assignee": {"id": 884}}, "task": {"id": 394, "owner": {"id": 964}, "assignee": {"id": 1027}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 98}, "organization": {"id": 603}, "project": {"id": 323, "owner": {"id": 737}, "assignee": {"id": 806}}, "task": {"id": 384, "owner": {"id": 990}, "assignee": {"id": 1020}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 310, "assignee": {"id": 16}, "organization": {"id": 190}, "project": {"id": 302, "owner": {"id": 750}, "assignee": {"id": 876}}, "task": {"id": 314, "owner": {"id": 961}, "assignee": {"id": 1017}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 12}, "organization": {"id": 661}, "project": {"id": 352, "owner": {"id": 759}, "assignee": {"id": 800}}, "task": {"id": 300, "owner": {"id": 913}, "assignee": {"id": 1004}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 80}, "organization": {"id": 188}, "project": {"id": 359, "owner": {"id": 753}, "assignee": {"id": 882}}, "task": {"id": 394, "owner": {"id": 977}, "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": 66, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 66}, "organization": {"id": 680}, "project": {"id": 332, "owner": {"id": 795}, "assignee": {"id": 802}}, "task": {"id": 306, "owner": {"id": 944}, "assignee": {"id": 1008}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 0}, "organization": {"id": 162}, "project": {"id": 340, "owner": {"id": 720}, "assignee": {"id": 835}}, "task": {"id": 396, "owner": {"id": 977}, "assignee": {"id": 1093}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 84}, "organization": {"id": 617}, "project": {"id": 307, "owner": {"id": 737}, "assignee": {"id": 870}}, "task": {"id": 369, "owner": {"id": 944}, "assignee": {"id": 1024}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 28}, "organization": {"id": 104}, "project": {"id": 390, "owner": {"id": 715}, "assignee": {"id": 824}}, "task": {"id": 396, "owner": {"id": 964}, "assignee": {"id": 1098}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 87}, "organization": {"id": 655}, "project": {"id": 393, "owner": {"id": 758}, "assignee": {"id": 879}}, "task": {"id": 301, "owner": {"id": 940}, "assignee": {"id": 1091}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 41}, "organization": {"id": 133}, "project": {"id": 305, "owner": {"id": 787}, "assignee": {"id": 880}}, "task": {"id": 318, "owner": {"id": 969}, "assignee": {"id": 1086}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 84}, "organization": {"id": 699}, "project": {"id": 390, "owner": {"id": 720}, "assignee": {"id": 861}}, "task": {"id": 347, "owner": {"id": 946}, "assignee": {"id": 1065}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 74}, "organization": {"id": 147}, "project": {"id": 335, "owner": {"id": 708}, "assignee": {"id": 873}}, "task": {"id": 372, "owner": {"id": 960}, "assignee": {"id": 1018}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 0}, "organization": {"id": 618}, "project": {"id": 309, "owner": {"id": 760}, "assignee": {"id": 816}}, "task": {"id": 371, "owner": {"id": 939}, "assignee": {"id": 1046}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 57}, "organization": {"id": 109}, "project": {"id": 317, "owner": {"id": 703}, "assignee": {"id": 823}}, "task": {"id": 388, "owner": {"id": 914}, "assignee": {"id": 1003}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 86}, "organization": {"id": 694}, "project": {"id": 372, "owner": {"id": 746}, "assignee": {"id": 857}}, "task": {"id": 362, "owner": {"id": 954}, "assignee": {"id": 1017}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 20}, "organization": {"id": 161}, "project": {"id": 329, "owner": {"id": 715}, "assignee": {"id": 837}}, "task": {"id": 368, "owner": {"id": 905}, "assignee": {"id": 1032}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 16}, "organization": {"id": 627}, "project": {"id": 334, "owner": {"id": 729}, "assignee": {"id": 897}}, "task": {"id": 353, "owner": {"id": 981}, "assignee": {"id": 1034}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 75}, "organization": {"id": 125}, "project": {"id": 344, "owner": {"id": 726}, "assignee": {"id": 897}}, "task": {"id": 347, "owner": {"id": 977}, "assignee": {"id": 1059}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 82}, "organization": {"id": 642}, "project": {"id": 381, "owner": {"id": 728}, "assignee": {"id": 896}}, "task": {"id": 339, "owner": {"id": 983}, "assignee": {"id": 1026}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 92}, "organization": {"id": 178}, "project": {"id": 340, "owner": {"id": 733}, "assignee": {"id": 835}}, "task": {"id": 365, "owner": {"id": 988}, "assignee": {"id": 1088}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 16}, "organization": {"id": 661}, "project": {"id": 310, "owner": {"id": 732}, "assignee": {"id": 845}}, "task": {"id": 395, "owner": {"id": 970}, "assignee": {"id": 1083}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 89}, "organization": {"id": 139}, "project": {"id": 304, "owner": {"id": 738}, "assignee": {"id": 811}}, "task": {"id": 398, "owner": {"id": 904}, "assignee": {"id": 1087}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 89}, "organization": {"id": 639}, "project": {"id": 338, "owner": {"id": 707}, "assignee": {"id": 852}}, "task": {"id": 315, "owner": {"id": 952}, "assignee": {"id": 1033}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 79}, "organization": {"id": 113}, "project": {"id": 367, "owner": {"id": 758}, "assignee": {"id": 877}}, "task": {"id": 332, "owner": {"id": 921}, "assignee": {"id": 1069}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 90}, "organization": {"id": 617}, "project": {"id": 362, "owner": {"id": 755}, "assignee": {"id": 891}}, "task": {"id": 325, "owner": {"id": 948}, "assignee": {"id": 1074}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 46}, "organization": {"id": 147}, "project": {"id": 370, "owner": {"id": 741}, "assignee": {"id": 889}}, "task": {"id": 332, "owner": {"id": 924}, "assignee": {"id": 1080}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 28}, "organization": {"id": 683}, "project": {"id": 343, "owner": {"id": 727}, "assignee": {"id": 875}}, "task": {"id": 381, "owner": {"id": 984}, "assignee": {"id": 1078}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 96}, "organization": {"id": 182}, "project": {"id": 368, "owner": {"id": 770}, "assignee": {"id": 840}}, "task": {"id": 375, "owner": {"id": 927}, "assignee": {"id": 1079}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 2}, "organization": {"id": 619}, "project": {"id": 354, "owner": {"id": 723}, "assignee": {"id": 866}}, "task": {"id": 388, "owner": {"id": 951}, "assignee": {"id": 1060}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 68}, "organization": {"id": 144}, "project": {"id": 312, "owner": {"id": 788}, "assignee": {"id": 835}}, "task": {"id": 355, "owner": {"id": 944}, "assignee": {"id": 1093}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 12}, "organization": {"id": 675}, "project": {"id": 371, "owner": {"id": 771}, "assignee": {"id": 815}}, "task": {"id": 358, "owner": {"id": 959}, "assignee": {"id": 1032}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 77}, "organization": {"id": 168}, "project": {"id": 326, "owner": {"id": 796}, "assignee": {"id": 814}}, "task": {"id": 331, "owner": {"id": 935}, "assignee": {"id": 1079}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 76}, "organization": {"id": 674}, "project": {"id": 350, "owner": {"id": 752}, "assignee": {"id": 839}}, "task": {"id": 328, "owner": {"id": 964}, "assignee": {"id": 1060}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 28}, "organization": {"id": 177}, "project": {"id": 394, "owner": {"id": 728}, "assignee": {"id": 819}}, "task": {"id": 333, "owner": {"id": 995}, "assignee": {"id": 1001}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 39}, "organization": {"id": 690}, "project": {"id": 357, "owner": {"id": 753}, "assignee": {"id": 866}}, "task": {"id": 385, "owner": {"id": 972}, "assignee": {"id": 1042}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 512}, "organization": {"id": 187}, "project": {"id": 385, "owner": {"id": 747}, "assignee": {"id": 884}}, "task": {"id": 369, "owner": {"id": 984}, "assignee": {"id": 1001}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 588}, "organization": {"id": 656}, "project": {"id": 321, "owner": {"id": 714}, "assignee": {"id": 823}}, "task": {"id": 378, "owner": {"id": 918}, "assignee": {"id": 1063}}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 556}, "organization": {"id": 132}, "project": {"id": 303, "owner": {"id": 795}, "assignee": {"id": 887}}, "task": {"id": 365, "owner": {"id": 959}, "assignee": {"id": 1067}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 569}, "organization": {"id": 683}, "project": {"id": 313, "owner": {"id": 791}, "assignee": {"id": 800}}, "task": {"id": 337, "owner": {"id": 991}, "assignee": {"id": 1098}}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 582}, "organization": {"id": 124}, "project": {"id": 327, "owner": {"id": 701}, "assignee": {"id": 875}}, "task": {"id": 331, "owner": {"id": 950}, "assignee": {"id": 1092}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 510}, "organization": {"id": 613}, "project": {"id": 368, "owner": {"id": 714}, "assignee": {"id": 842}}, "task": {"id": 321, "owner": {"id": 953}, "assignee": {"id": 1046}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 540}, "organization": {"id": 119}, "project": {"id": 314, "owner": {"id": 711}, "assignee": {"id": 822}}, "task": {"id": 365, "owner": {"id": 998}, "assignee": {"id": 1060}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 586}, "organization": {"id": 668}, "project": {"id": 382, "owner": {"id": 783}, "assignee": {"id": 860}}, "task": {"id": 312, "owner": {"id": 960}, "assignee": {"id": 1021}}}} +} + +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": 181, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 537}, "organization": {"id": 181}, "project": {"id": 352, "owner": {"id": 728}, "assignee": {"id": 848}}, "task": {"id": 368, "owner": {"id": 920}, "assignee": {"id": 1010}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 554}, "organization": {"id": 624}, "project": {"id": 359, "owner": {"id": 751}, "assignee": {"id": 803}}, "task": {"id": 347, "owner": {"id": 901}, "assignee": {"id": 1064}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 590}, "organization": {"id": 178}, "project": {"id": 385, "owner": {"id": 706}, "assignee": {"id": 898}}, "task": {"id": 307, "owner": {"id": 950}, "assignee": {"id": 1056}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 598}, "organization": {"id": 635}, "project": {"id": 344, "owner": {"id": 761}, "assignee": {"id": 830}}, "task": {"id": 392, "owner": {"id": 919}, "assignee": {"id": 1025}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 547}, "organization": {"id": 168}, "project": {"id": 328, "owner": {"id": 760}, "assignee": {"id": 838}}, "task": {"id": 351, "owner": {"id": 928}, "assignee": {"id": 1009}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 534}, "organization": {"id": 647}, "project": {"id": 305, "owner": {"id": 718}, "assignee": {"id": 842}}, "task": {"id": 396, "owner": {"id": 998}, "assignee": {"id": 1093}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 533}, "organization": {"id": 173}, "project": {"id": 397, "owner": {"id": 791}, "assignee": {"id": 843}}, "task": {"id": 380, "owner": {"id": 912}, "assignee": {"id": 1063}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 569}, "organization": {"id": 695}, "project": {"id": 334, "owner": {"id": 707}, "assignee": {"id": 864}}, "task": {"id": 347, "owner": {"id": 956}, "assignee": {"id": 1017}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 571}, "organization": {"id": 143}, "project": {"id": 316, "owner": {"id": 705}, "assignee": {"id": 895}}, "task": {"id": 365, "owner": {"id": 954}, "assignee": {"id": 1081}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 531}, "organization": {"id": 640}, "project": {"id": 398, "owner": {"id": 785}, "assignee": {"id": 855}}, "task": {"id": 374, "owner": {"id": 981}, "assignee": {"id": 1077}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 592}, "organization": {"id": 140}, "project": {"id": 379, "owner": {"id": 797}, "assignee": {"id": 830}}, "task": {"id": 361, "owner": {"id": 992}, "assignee": {"id": 1037}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 566}, "organization": {"id": 664}, "project": {"id": 349, "owner": {"id": 784}, "assignee": {"id": 857}}, "task": {"id": 301, "owner": {"id": 976}, "assignee": {"id": 1067}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 526}, "organization": {"id": 174}, "project": {"id": 386, "owner": {"id": 764}, "assignee": {"id": 870}}, "task": {"id": 320, "owner": {"id": 904}, "assignee": {"id": 1061}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 504}, "organization": {"id": 658}, "project": {"id": 354, "owner": {"id": 757}, "assignee": {"id": 874}}, "task": {"id": 334, "owner": {"id": 914}, "assignee": {"id": 1011}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 521}, "organization": {"id": 151}, "project": {"id": 364, "owner": {"id": 775}, "assignee": {"id": 873}}, "task": {"id": 353, "owner": {"id": 995}, "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": 49, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 501}, "organization": {"id": 662}, "project": {"id": 323, "owner": {"id": 751}, "assignee": {"id": 848}}, "task": {"id": 322, "owner": {"id": 905}, "assignee": {"id": 1064}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 560}, "organization": {"id": 136}, "project": {"id": 389, "owner": {"id": 774}, "assignee": {"id": 827}}, "task": {"id": 356, "owner": {"id": 937}, "assignee": {"id": 1001}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 531}, "organization": {"id": 679}, "project": {"id": 305, "owner": {"id": 754}, "assignee": {"id": 861}}, "task": {"id": 350, "owner": {"id": 981}, "assignee": {"id": 1013}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 552}, "organization": {"id": 180}, "project": {"id": 343, "owner": {"id": 701}, "assignee": {"id": 895}}, "task": {"id": 348, "owner": {"id": 980}, "assignee": {"id": 1014}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 516}, "organization": {"id": 636}, "project": {"id": 377, "owner": {"id": 788}, "assignee": {"id": 810}}, "task": {"id": 380, "owner": {"id": 922}, "assignee": {"id": 1071}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 599}, "organization": {"id": 169}, "project": {"id": 365, "owner": {"id": 794}, "assignee": {"id": 852}}, "task": {"id": 302, "owner": {"id": 997}, "assignee": {"id": 1093}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 578}, "organization": {"id": 651}, "project": {"id": 394, "owner": {"id": 773}, "assignee": {"id": 857}}, "task": {"id": 371, "owner": {"id": 951}, "assignee": {"id": 1018}}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 503}, "organization": {"id": 147}, "project": {"id": 335, "owner": {"id": 746}, "assignee": {"id": 814}}, "task": {"id": 373, "owner": {"id": 911}, "assignee": {"id": 1004}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 593}, "organization": {"id": 671}, "project": {"id": 354, "owner": {"id": 756}, "assignee": {"id": 834}}, "task": {"id": 367, "owner": {"id": 938}, "assignee": {"id": 1098}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 565}, "organization": {"id": 109}, "project": {"id": 364, "owner": {"id": 795}, "assignee": {"id": 825}}, "task": {"id": 396, "owner": {"id": 971}, "assignee": {"id": 1056}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 508}, "organization": {"id": 623}, "project": {"id": 339, "owner": {"id": 742}, "assignee": {"id": 851}}, "task": {"id": 321, "owner": {"id": 942}, "assignee": {"id": 1057}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 559}, "organization": {"id": 197}, "project": {"id": 369, "owner": {"id": 753}, "assignee": {"id": 854}}, "task": {"id": 369, "owner": {"id": 990}, "assignee": {"id": 1046}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 501}, "organization": {"id": 670}, "project": {"id": 327, "owner": {"id": 788}, "assignee": {"id": 896}}, "task": {"id": 394, "owner": {"id": 928}, "assignee": {"id": 1030}}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 530}, "organization": {"id": 124}, "project": {"id": 335, "owner": {"id": 704}, "assignee": {"id": 859}}, "task": {"id": 330, "owner": {"id": 948}, "assignee": {"id": 1034}}}} +} + +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": 288}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 545}, "organization": {"id": 627}, "project": {"id": 336, "owner": {"id": 765}, "assignee": {"id": 882}}, "task": {"id": 344, "owner": {"id": 933}, "assignee": {"id": 1010}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 582}, "organization": {"id": 102}, "project": {"id": 340, "owner": {"id": 775}, "assignee": {"id": 863}}, "task": {"id": 367, "owner": {"id": 987}, "assignee": {"id": 1071}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 553}, "organization": {"id": 602}, "project": {"id": 399, "owner": {"id": 757}, "assignee": {"id": 839}}, "task": {"id": 336, "owner": {"id": 920}, "assignee": {"id": 1009}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 532}, "organization": {"id": 192}, "project": {"id": 346, "owner": {"id": 723}, "assignee": {"id": 807}}, "task": {"id": 349, "owner": {"id": 982}, "assignee": {"id": 1066}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 598}, "organization": {"id": 649}, "project": {"id": 345, "owner": {"id": 794}, "assignee": {"id": 860}}, "task": {"id": 345, "owner": {"id": 906}, "assignee": {"id": 1069}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 599}, "organization": {"id": 154}, "project": {"id": 335, "owner": {"id": 790}, "assignee": {"id": 840}}, "task": {"id": 327, "owner": {"id": 900}, "assignee": {"id": 1056}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 596}, "organization": {"id": 655}, "project": {"id": 374, "owner": {"id": 740}, "assignee": {"id": 884}}, "task": {"id": 344, "owner": {"id": 967}, "assignee": {"id": 1097}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 513}, "organization": {"id": 127}, "project": {"id": 358, "owner": {"id": 798}, "assignee": {"id": 844}}, "task": {"id": 399, "owner": {"id": 982}, "assignee": {"id": 1088}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 595}, "organization": {"id": 694}, "project": {"id": 338, "owner": {"id": 750}, "assignee": {"id": 868}}, "task": {"id": 300, "owner": {"id": 902}, "assignee": {"id": 1036}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 503}, "organization": {"id": 194}, "project": {"id": 371, "owner": {"id": 715}, "assignee": {"id": 882}}, "task": {"id": 396, "owner": {"id": 902}, "assignee": {"id": 1086}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 535}, "organization": {"id": 613}, "project": {"id": 342, "owner": {"id": 713}, "assignee": {"id": 888}}, "task": {"id": 358, "owner": {"id": 969}, "assignee": {"id": 1059}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 502}, "organization": {"id": 137}, "project": {"id": 369, "owner": {"id": 722}, "assignee": {"id": 818}}, "task": {"id": 396, "owner": {"id": 986}, "assignee": {"id": 1009}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 519}, "organization": {"id": 666}, "project": {"id": 389, "owner": {"id": 764}, "assignee": {"id": 879}}, "task": {"id": 354, "owner": {"id": 972}, "assignee": {"id": 1047}}}} +} + +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": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 548}, "organization": {"id": 603}, "project": {"id": 345, "owner": {"id": 66}, "assignee": {"id": 876}}, "task": {"id": 332, "owner": {"id": 954}, "assignee": {"id": 1098}}}} +} + +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": 6, "privilege": "business"}, "organization": null}, "resource": {"id": 379, "assignee": {"id": 553}, "organization": {"id": 678}, "project": {"id": 389, "owner": {"id": 6}, "assignee": {"id": 855}}, "task": {"id": 357, "owner": {"id": 948}, "assignee": {"id": 1077}}}} +} + +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": 25, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "assignee": {"id": 504}, "organization": {"id": 634}, "project": {"id": 306, "owner": {"id": 25}, "assignee": {"id": 899}}, "task": {"id": 334, "owner": {"id": 959}, "assignee": {"id": 1077}}}} +} + +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": 29, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 599}, "organization": {"id": 623}, "project": {"id": 309, "owner": {"id": 29}, "assignee": {"id": 855}}, "task": {"id": 344, "owner": {"id": 979}, "assignee": {"id": 1099}}}} +} + +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": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 359, "assignee": {"id": 515}, "organization": {"id": 690}, "project": {"id": 372, "owner": {"id": 84}, "assignee": {"id": 874}}, "task": {"id": 376, "owner": {"id": 910}, "assignee": {"id": 1062}}}} +} + +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": 13, "privilege": "admin"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 545}, "organization": {"id": 683}, "project": {"id": 371, "owner": {"id": 733}, "assignee": {"id": 13}}, "task": {"id": 394, "owner": {"id": 951}, "assignee": {"id": 1048}}}} +} + +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": 52, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 535}, "organization": {"id": 660}, "project": {"id": 302, "owner": {"id": 763}, "assignee": {"id": 52}}, "task": {"id": 348, "owner": {"id": 911}, "assignee": {"id": 1061}}}} +} + +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": 77, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 507}, "organization": {"id": 679}, "project": {"id": 373, "owner": {"id": 711}, "assignee": {"id": 77}}, "task": {"id": 399, "owner": {"id": 907}, "assignee": {"id": 1044}}}} +} + +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": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 547}, "organization": {"id": 661}, "project": {"id": 386, "owner": {"id": 791}, "assignee": {"id": 92}}, "task": {"id": 336, "owner": {"id": 997}, "assignee": {"id": 1045}}}} +} + +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": 30, "privilege": "none"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 584}, "organization": {"id": 642}, "project": {"id": 360, "owner": {"id": 771}, "assignee": {"id": 30}}, "task": {"id": 381, "owner": {"id": 975}, "assignee": {"id": 1059}}}} +} + +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": 38, "privilege": "admin"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 559}, "organization": {"id": 692}, "project": {"id": 344, "owner": {"id": 733}, "assignee": {"id": 892}}, "task": {"id": 395, "owner": {"id": 38}, "assignee": {"id": 1011}}}} +} + +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": 24, "privilege": "business"}, "organization": null}, "resource": {"id": 370, "assignee": {"id": 578}, "organization": {"id": 676}, "project": {"id": 303, "owner": {"id": 750}, "assignee": {"id": 805}}, "task": {"id": 324, "owner": {"id": 24}, "assignee": {"id": 1029}}}} +} + +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": 80, "privilege": "user"}, "organization": null}, "resource": {"id": 307, "assignee": {"id": 533}, "organization": {"id": 608}, "project": {"id": 305, "owner": {"id": 735}, "assignee": {"id": 824}}, "task": {"id": 345, "owner": {"id": 80}, "assignee": {"id": 1022}}}} +} + +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": 85, "privilege": "worker"}, "organization": null}, "resource": {"id": 396, "assignee": {"id": 567}, "organization": {"id": 616}, "project": {"id": 382, "owner": {"id": 759}, "assignee": {"id": 880}}, "task": {"id": 361, "owner": {"id": 85}, "assignee": {"id": 1091}}}} +} + +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": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 571}, "organization": {"id": 648}, "project": {"id": 343, "owner": {"id": 735}, "assignee": {"id": 837}}, "task": {"id": 346, "owner": {"id": 36}, "assignee": {"id": 1073}}}} +} + +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": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 380, "assignee": {"id": 510}, "organization": {"id": 604}, "project": {"id": 354, "owner": {"id": 723}, "assignee": {"id": 846}}, "task": {"id": 312, "owner": {"id": 979}, "assignee": {"id": 23}}}} +} + +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": 81, "privilege": "business"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 547}, "organization": {"id": 667}, "project": {"id": 325, "owner": {"id": 764}, "assignee": {"id": 898}}, "task": {"id": 311, "owner": {"id": 935}, "assignee": {"id": 81}}}} +} + +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": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 581}, "organization": {"id": 693}, "project": {"id": 310, "owner": {"id": 780}, "assignee": {"id": 833}}, "task": {"id": 396, "owner": {"id": 906}, "assignee": {"id": 38}}}} +} + +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": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "assignee": {"id": 575}, "organization": {"id": 637}, "project": {"id": 364, "owner": {"id": 755}, "assignee": {"id": 863}}, "task": {"id": 375, "owner": {"id": 962}, "assignee": {"id": 51}}}} +} + +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": 37, "privilege": "none"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 576}, "organization": {"id": 632}, "project": {"id": 383, "owner": {"id": 711}, "assignee": {"id": 871}}, "task": {"id": 309, "owner": {"id": 912}, "assignee": {"id": 37}}}} +} + +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": 57, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "assignee": {"id": 57}, "organization": {"id": 698}, "project": {"id": 323, "owner": {"id": 770}, "assignee": {"id": 823}}, "task": {"id": 389, "owner": {"id": 903}, "assignee": {"id": 1099}}}} +} + +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": 75, "privilege": "business"}, "organization": null}, "resource": {"id": 330, "assignee": {"id": 75}, "organization": {"id": 601}, "project": {"id": 369, "owner": {"id": 758}, "assignee": {"id": 870}}, "task": {"id": 357, "owner": {"id": 912}, "assignee": {"id": 1071}}}} +} + +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": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 396, "assignee": {"id": 98}, "organization": {"id": 659}, "project": {"id": 302, "owner": {"id": 732}, "assignee": {"id": 859}}, "task": {"id": 313, "owner": {"id": 921}, "assignee": {"id": 1020}}}} +} + +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": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 42}, "organization": {"id": 698}, "project": {"id": 332, "owner": {"id": 724}, "assignee": {"id": 819}}, "task": {"id": 382, "owner": {"id": 947}, "assignee": {"id": 1027}}}} +} + +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": 63, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "assignee": {"id": 63}, "organization": {"id": 629}, "project": {"id": 383, "owner": {"id": 726}, "assignee": {"id": 880}}, "task": {"id": 381, "owner": {"id": 937}, "assignee": {"id": 1010}}}} +} + +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": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 574}, "organization": {"id": 620}, "project": {"id": 377, "owner": {"id": 777}, "assignee": {"id": 805}}, "task": {"id": 302, "owner": {"id": 918}, "assignee": {"id": 1026}}}} +} + +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": 61, "privilege": "business"}, "organization": null}, "resource": {"id": 343, "assignee": {"id": 590}, "organization": {"id": 671}, "project": {"id": 311, "owner": {"id": 707}, "assignee": {"id": 849}}, "task": {"id": 335, "owner": {"id": 998}, "assignee": {"id": 1014}}}} +} + +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": 95, "privilege": "user"}, "organization": null}, "resource": {"id": 391, "assignee": {"id": 527}, "organization": {"id": 603}, "project": {"id": 373, "owner": {"id": 729}, "assignee": {"id": 800}}, "task": {"id": 331, "owner": {"id": 934}, "assignee": {"id": 1053}}}} +} + +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": 10, "privilege": "worker"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 517}, "organization": {"id": 620}, "project": {"id": 365, "owner": {"id": 776}, "assignee": {"id": 817}}, "task": {"id": 361, "owner": {"id": 953}, "assignee": {"id": 1018}}}} +} + +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": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 514}, "organization": {"id": 658}, "project": {"id": 321, "owner": {"id": 707}, "assignee": {"id": 831}}, "task": {"id": 303, "owner": {"id": 906}, "assignee": {"id": 1095}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 587}, "organization": {"id": 196}, "project": {"id": 345, "owner": {"id": 6}, "assignee": {"id": 851}}, "task": {"id": 312, "owner": {"id": 958}, "assignee": {"id": 1076}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 573}, "organization": {"id": 651}, "project": {"id": 309, "owner": {"id": 35}, "assignee": {"id": 830}}, "task": {"id": 313, "owner": {"id": 995}, "assignee": {"id": 1015}}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 585}, "organization": {"id": 157}, "project": {"id": 398, "owner": {"id": 62}, "assignee": {"id": 860}}, "task": {"id": 335, "owner": {"id": 942}, "assignee": {"id": 1076}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 508}, "organization": {"id": 683}, "project": {"id": 354, "owner": {"id": 8}, "assignee": {"id": 836}}, "task": {"id": 354, "owner": {"id": 976}, "assignee": {"id": 1048}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 589}, "organization": {"id": 157}, "project": {"id": 387, "owner": {"id": 93}, "assignee": {"id": 834}}, "task": {"id": 392, "owner": {"id": 970}, "assignee": {"id": 1072}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 597}, "organization": {"id": 654}, "project": {"id": 370, "owner": {"id": 93}, "assignee": {"id": 844}}, "task": {"id": 367, "owner": {"id": 931}, "assignee": {"id": 1001}}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 552}, "organization": {"id": 108}, "project": {"id": 398, "owner": {"id": 7}, "assignee": {"id": 889}}, "task": {"id": 352, "owner": {"id": 969}, "assignee": {"id": 1099}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 532}, "organization": {"id": 682}, "project": {"id": 371, "owner": {"id": 48}, "assignee": {"id": 846}}, "task": {"id": 384, "owner": {"id": 972}, "assignee": {"id": 1038}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 324, "assignee": {"id": 586}, "organization": {"id": 133}, "project": {"id": 325, "owner": {"id": 30}, "assignee": {"id": 812}}, "task": {"id": 370, "owner": {"id": 979}, "assignee": {"id": 1079}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 592}, "organization": {"id": 692}, "project": {"id": 327, "owner": {"id": 52}, "assignee": {"id": 837}}, "task": {"id": 387, "owner": {"id": 972}, "assignee": {"id": 1085}}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 553}, "organization": {"id": 102}, "project": {"id": 319, "owner": {"id": 17}, "assignee": {"id": 839}}, "task": {"id": 375, "owner": {"id": 978}, "assignee": {"id": 1067}}}} +} + +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": 153, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 563}, "organization": {"id": 689}, "project": {"id": 398, "owner": {"id": 70}, "assignee": {"id": 868}}, "task": {"id": 392, "owner": {"id": 979}, "assignee": {"id": 1065}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 586}, "organization": {"id": 153}, "project": {"id": 389, "owner": {"id": 1}, "assignee": {"id": 874}}, "task": {"id": 398, "owner": {"id": 927}, "assignee": {"id": 1072}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 513}, "organization": {"id": 650}, "project": {"id": 311, "owner": {"id": 6}, "assignee": {"id": 820}}, "task": {"id": 386, "owner": {"id": 904}, "assignee": {"id": 1070}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 516}, "organization": {"id": 129}, "project": {"id": 364, "owner": {"id": 37}, "assignee": {"id": 866}}, "task": {"id": 312, "owner": {"id": 973}, "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": 82, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 540}, "organization": {"id": 600}, "project": {"id": 338, "owner": {"id": 82}, "assignee": {"id": 804}}, "task": {"id": 383, "owner": {"id": 994}, "assignee": {"id": 1049}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 516}, "organization": {"id": 176}, "project": {"id": 342, "owner": {"id": 89}, "assignee": {"id": 896}}, "task": {"id": 360, "owner": {"id": 951}, "assignee": {"id": 1055}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 554}, "organization": {"id": 618}, "project": {"id": 387, "owner": {"id": 45}, "assignee": {"id": 895}}, "task": {"id": 352, "owner": {"id": 945}, "assignee": {"id": 1094}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 528}, "organization": {"id": 109}, "project": {"id": 382, "owner": {"id": 81}, "assignee": {"id": 832}}, "task": {"id": 334, "owner": {"id": 927}, "assignee": {"id": 1017}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 574}, "organization": {"id": 650}, "project": {"id": 373, "owner": {"id": 66}, "assignee": {"id": 833}}, "task": {"id": 363, "owner": {"id": 935}, "assignee": {"id": 1059}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 555}, "organization": {"id": 190}, "project": {"id": 342, "owner": {"id": 2}, "assignee": {"id": 803}}, "task": {"id": 312, "owner": {"id": 984}, "assignee": {"id": 1012}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 369, "assignee": {"id": 529}, "organization": {"id": 601}, "project": {"id": 318, "owner": {"id": 18}, "assignee": {"id": 882}}, "task": {"id": 316, "owner": {"id": 917}, "assignee": {"id": 1088}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 571}, "organization": {"id": 137}, "project": {"id": 370, "owner": {"id": 67}, "assignee": {"id": 899}}, "task": {"id": 335, "owner": {"id": 988}, "assignee": {"id": 1043}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 528}, "organization": {"id": 641}, "project": {"id": 356, "owner": {"id": 48}, "assignee": {"id": 816}}, "task": {"id": 352, "owner": {"id": 920}, "assignee": {"id": 1080}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 592}, "organization": {"id": 148}, "project": {"id": 354, "owner": {"id": 88}, "assignee": {"id": 891}}, "task": {"id": 341, "owner": {"id": 990}, "assignee": {"id": 1049}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 553}, "organization": {"id": 601}, "project": {"id": 346, "owner": {"id": 79}, "assignee": {"id": 805}}, "task": {"id": 395, "owner": {"id": 948}, "assignee": {"id": 1039}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 537}, "organization": {"id": 184}, "project": {"id": 368, "owner": {"id": 8}, "assignee": {"id": 841}}, "task": {"id": 354, "owner": {"id": 908}, "assignee": {"id": 1072}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 515}, "organization": {"id": 658}, "project": {"id": 381, "owner": {"id": 6}, "assignee": {"id": 887}}, "task": {"id": 357, "owner": {"id": 979}, "assignee": {"id": 1026}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 573}, "organization": {"id": 156}, "project": {"id": 348, "owner": {"id": 79}, "assignee": {"id": 888}}, "task": {"id": 397, "owner": {"id": 987}, "assignee": {"id": 1005}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 508}, "organization": {"id": 611}, "project": {"id": 309, "owner": {"id": 49}, "assignee": {"id": 830}}, "task": {"id": 322, "owner": {"id": 955}, "assignee": {"id": 1014}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 530}, "organization": {"id": 168}, "project": {"id": 360, "owner": {"id": 40}, "assignee": {"id": 898}}, "task": {"id": 348, "owner": {"id": 980}, "assignee": {"id": 1086}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 575}, "organization": {"id": 686}, "project": {"id": 385, "owner": {"id": 90}, "assignee": {"id": 885}}, "task": {"id": 337, "owner": {"id": 900}, "assignee": {"id": 1031}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 529}, "organization": {"id": 171}, "project": {"id": 374, "owner": {"id": 70}, "assignee": {"id": 805}}, "task": {"id": 322, "owner": {"id": 904}, "assignee": {"id": 1051}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 528}, "organization": {"id": 628}, "project": {"id": 320, "owner": {"id": 63}, "assignee": {"id": 824}}, "task": {"id": 366, "owner": {"id": 978}, "assignee": {"id": 1067}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 583}, "organization": {"id": 193}, "project": {"id": 346, "owner": {"id": 15}, "assignee": {"id": 835}}, "task": {"id": 387, "owner": {"id": 979}, "assignee": {"id": 1060}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 521}, "organization": {"id": 660}, "project": {"id": 301, "owner": {"id": 41}, "assignee": {"id": 852}}, "task": {"id": 378, "owner": {"id": 991}, "assignee": {"id": 1037}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 592}, "organization": {"id": 153}, "project": {"id": 398, "owner": {"id": 22}, "assignee": {"id": 846}}, "task": {"id": 318, "owner": {"id": 947}, "assignee": {"id": 1094}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 531}, "organization": {"id": 605}, "project": {"id": 317, "owner": {"id": 64}, "assignee": {"id": 851}}, "task": {"id": 396, "owner": {"id": 932}, "assignee": {"id": 1012}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 507}, "organization": {"id": 102}, "project": {"id": 337, "owner": {"id": 94}, "assignee": {"id": 855}}, "task": {"id": 393, "owner": {"id": 925}, "assignee": {"id": 1072}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 503}, "organization": {"id": 614}, "project": {"id": 392, "owner": {"id": 54}, "assignee": {"id": 857}}, "task": {"id": 356, "owner": {"id": 975}, "assignee": {"id": 1003}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 563}, "organization": {"id": 189}, "project": {"id": 374, "owner": {"id": 59}, "assignee": {"id": 884}}, "task": {"id": 323, "owner": {"id": 959}, "assignee": {"id": 1088}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 516}, "organization": {"id": 613}, "project": {"id": 335, "owner": {"id": 78}, "assignee": {"id": 883}}, "task": {"id": 315, "owner": {"id": 924}, "assignee": {"id": 1045}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 501}, "organization": {"id": 159}, "project": {"id": 381, "owner": {"id": 1}, "assignee": {"id": 818}}, "task": {"id": 389, "owner": {"id": 974}, "assignee": {"id": 1044}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 510}, "organization": {"id": 648}, "project": {"id": 385, "owner": {"id": 87}, "assignee": {"id": 878}}, "task": {"id": 398, "owner": {"id": 953}, "assignee": {"id": 1089}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 589}, "organization": {"id": 179}, "project": {"id": 383, "owner": {"id": 43}, "assignee": {"id": 802}}, "task": {"id": 386, "owner": {"id": 906}, "assignee": {"id": 1048}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 510}, "organization": {"id": 611}, "project": {"id": 339, "owner": {"id": 27}, "assignee": {"id": 819}}, "task": {"id": 345, "owner": {"id": 942}, "assignee": {"id": 1026}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 374, "assignee": {"id": 518}, "organization": {"id": 199}, "project": {"id": 361, "owner": {"id": 43}, "assignee": {"id": 806}}, "task": {"id": 356, "owner": {"id": 963}, "assignee": {"id": 1055}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 570}, "organization": {"id": 640}, "project": {"id": 324, "owner": {"id": 21}, "assignee": {"id": 813}}, "task": {"id": 338, "owner": {"id": 933}, "assignee": {"id": 1004}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 555}, "organization": {"id": 172}, "project": {"id": 308, "owner": {"id": 15}, "assignee": {"id": 811}}, "task": {"id": 353, "owner": {"id": 938}, "assignee": {"id": 1050}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 501}, "organization": {"id": 650}, "project": {"id": 342, "owner": {"id": 0}, "assignee": {"id": 892}}, "task": {"id": 390, "owner": {"id": 914}, "assignee": {"id": 1056}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 591}, "organization": {"id": 189}, "project": {"id": 388, "owner": {"id": 710}, "assignee": {"id": 18}}, "task": {"id": 332, "owner": {"id": 944}, "assignee": {"id": 1054}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 571}, "organization": {"id": 672}, "project": {"id": 376, "owner": {"id": 736}, "assignee": {"id": 31}}, "task": {"id": 329, "owner": {"id": 916}, "assignee": {"id": 1081}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 540}, "organization": {"id": 143}, "project": {"id": 354, "owner": {"id": 705}, "assignee": {"id": 37}}, "task": {"id": 375, "owner": {"id": 951}, "assignee": {"id": 1019}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 578}, "organization": {"id": 678}, "project": {"id": 351, "owner": {"id": 732}, "assignee": {"id": 3}}, "task": {"id": 389, "owner": {"id": 944}, "assignee": {"id": 1095}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 591}, "organization": {"id": 173}, "project": {"id": 372, "owner": {"id": 772}, "assignee": {"id": 57}}, "task": {"id": 397, "owner": {"id": 950}, "assignee": {"id": 1058}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 590}, "organization": {"id": 652}, "project": {"id": 371, "owner": {"id": 712}, "assignee": {"id": 6}}, "task": {"id": 358, "owner": {"id": 984}, "assignee": {"id": 1079}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 502}, "organization": {"id": 131}, "project": {"id": 323, "owner": {"id": 744}, "assignee": {"id": 61}}, "task": {"id": 347, "owner": {"id": 978}, "assignee": {"id": 1059}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 580}, "organization": {"id": 685}, "project": {"id": 354, "owner": {"id": 715}, "assignee": {"id": 85}}, "task": {"id": 304, "owner": {"id": 985}, "assignee": {"id": 1045}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 582}, "organization": {"id": 168}, "project": {"id": 362, "owner": {"id": 777}, "assignee": {"id": 11}}, "task": {"id": 375, "owner": {"id": 903}, "assignee": {"id": 1085}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 506}, "organization": {"id": 696}, "project": {"id": 344, "owner": {"id": 760}, "assignee": {"id": 55}}, "task": {"id": 392, "owner": {"id": 941}, "assignee": {"id": 1035}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 524}, "organization": {"id": 178}, "project": {"id": 389, "owner": {"id": 766}, "assignee": {"id": 52}}, "task": {"id": 385, "owner": {"id": 915}, "assignee": {"id": 1066}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 518}, "organization": {"id": 627}, "project": {"id": 367, "owner": {"id": 767}, "assignee": {"id": 41}}, "task": {"id": 329, "owner": {"id": 930}, "assignee": {"id": 1092}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 584}, "organization": {"id": 113}, "project": {"id": 388, "owner": {"id": 712}, "assignee": {"id": 31}}, "task": {"id": 363, "owner": {"id": 901}, "assignee": {"id": 1079}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 599}, "organization": {"id": 687}, "project": {"id": 327, "owner": {"id": 701}, "assignee": {"id": 99}}, "task": {"id": 397, "owner": {"id": 950}, "assignee": {"id": 1094}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 592}, "organization": {"id": 183}, "project": {"id": 340, "owner": {"id": 741}, "assignee": {"id": 3}}, "task": {"id": 380, "owner": {"id": 968}, "assignee": {"id": 1077}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 557}, "organization": {"id": 679}, "project": {"id": 333, "owner": {"id": 747}, "assignee": {"id": 33}}, "task": {"id": 327, "owner": {"id": 928}, "assignee": {"id": 1037}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 585}, "organization": {"id": 115}, "project": {"id": 311, "owner": {"id": 762}, "assignee": {"id": 42}}, "task": {"id": 329, "owner": {"id": 969}, "assignee": {"id": 1081}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 523}, "organization": {"id": 641}, "project": {"id": 334, "owner": {"id": 719}, "assignee": {"id": 90}}, "task": {"id": 378, "owner": {"id": 986}, "assignee": {"id": 1065}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 549}, "organization": {"id": 124}, "project": {"id": 381, "owner": {"id": 703}, "assignee": {"id": 53}}, "task": {"id": 365, "owner": {"id": 983}, "assignee": {"id": 1001}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 582}, "organization": {"id": 680}, "project": {"id": 307, "owner": {"id": 764}, "assignee": {"id": 3}}, "task": {"id": 363, "owner": {"id": 943}, "assignee": {"id": 1037}}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 502}, "organization": {"id": 131}, "project": {"id": 322, "owner": {"id": 795}, "assignee": {"id": 59}}, "task": {"id": 390, "owner": {"id": 964}, "assignee": {"id": 1057}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 543}, "organization": {"id": 628}, "project": {"id": 330, "owner": {"id": 756}, "assignee": {"id": 42}}, "task": {"id": 369, "owner": {"id": 943}, "assignee": {"id": 1078}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 555}, "organization": {"id": 166}, "project": {"id": 328, "owner": {"id": 701}, "assignee": {"id": 18}}, "task": {"id": 326, "owner": {"id": 917}, "assignee": {"id": 1013}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 558}, "organization": {"id": 657}, "project": {"id": 312, "owner": {"id": 766}, "assignee": {"id": 0}}, "task": {"id": 307, "owner": {"id": 955}, "assignee": {"id": 1089}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 509}, "organization": {"id": 144}, "project": {"id": 369, "owner": {"id": 784}, "assignee": {"id": 84}}, "task": {"id": 306, "owner": {"id": 905}, "assignee": {"id": 1007}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 566}, "organization": {"id": 637}, "project": {"id": 315, "owner": {"id": 783}, "assignee": {"id": 5}}, "task": {"id": 382, "owner": {"id": 946}, "assignee": {"id": 1062}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 543}, "organization": {"id": 117}, "project": {"id": 363, "owner": {"id": 785}, "assignee": {"id": 19}}, "task": {"id": 332, "owner": {"id": 947}, "assignee": {"id": 1062}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 379, "assignee": {"id": 565}, "organization": {"id": 662}, "project": {"id": 391, "owner": {"id": 725}, "assignee": {"id": 33}}, "task": {"id": 375, "owner": {"id": 994}, "assignee": {"id": 1091}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 548}, "organization": {"id": 161}, "project": {"id": 320, "owner": {"id": 700}, "assignee": {"id": 55}}, "task": {"id": 343, "owner": {"id": 982}, "assignee": {"id": 1041}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 538}, "organization": {"id": 690}, "project": {"id": 349, "owner": {"id": 774}, "assignee": {"id": 88}}, "task": {"id": 397, "owner": {"id": 935}, "assignee": {"id": 1075}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 516}, "organization": {"id": 119}, "project": {"id": 394, "owner": {"id": 736}, "assignee": {"id": 39}}, "task": {"id": 352, "owner": {"id": 901}, "assignee": {"id": 1034}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 513}, "organization": {"id": 608}, "project": {"id": 328, "owner": {"id": 755}, "assignee": {"id": 88}}, "task": {"id": 329, "owner": {"id": 976}, "assignee": {"id": 1092}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 582}, "organization": {"id": 111}, "project": {"id": 358, "owner": {"id": 785}, "assignee": {"id": 72}}, "task": {"id": 337, "owner": {"id": 927}, "assignee": {"id": 1051}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 538}, "organization": {"id": 609}, "project": {"id": 385, "owner": {"id": 791}, "assignee": {"id": 7}}, "task": {"id": 354, "owner": {"id": 901}, "assignee": {"id": 1073}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 534}, "organization": {"id": 124}, "project": {"id": 325, "owner": {"id": 713}, "assignee": {"id": 42}}, "task": {"id": 341, "owner": {"id": 966}, "assignee": {"id": 1081}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 568}, "organization": {"id": 617}, "project": {"id": 349, "owner": {"id": 719}, "assignee": {"id": 56}}, "task": {"id": 378, "owner": {"id": 947}, "assignee": {"id": 1079}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 512}, "organization": {"id": 155}, "project": {"id": 316, "owner": {"id": 784}, "assignee": {"id": 49}}, "task": {"id": 342, "owner": {"id": 991}, "assignee": {"id": 1003}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 570}, "organization": {"id": 680}, "project": {"id": 342, "owner": {"id": 791}, "assignee": {"id": 49}}, "task": {"id": 313, "owner": {"id": 972}, "assignee": {"id": 1002}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 502}, "organization": {"id": 164}, "project": {"id": 307, "owner": {"id": 718}, "assignee": {"id": 52}}, "task": {"id": 312, "owner": {"id": 958}, "assignee": {"id": 1065}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 525}, "organization": {"id": 651}, "project": {"id": 324, "owner": {"id": 741}, "assignee": {"id": 77}}, "task": {"id": 383, "owner": {"id": 976}, "assignee": {"id": 1024}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 517}, "organization": {"id": 129}, "project": {"id": 353, "owner": {"id": 720}, "assignee": {"id": 31}}, "task": {"id": 304, "owner": {"id": 912}, "assignee": {"id": 1059}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 585}, "organization": {"id": 643}, "project": {"id": 332, "owner": {"id": 793}, "assignee": {"id": 42}}, "task": {"id": 398, "owner": {"id": 944}, "assignee": {"id": 1057}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 539}, "organization": {"id": 149}, "project": {"id": 380, "owner": {"id": 778}, "assignee": {"id": 8}}, "task": {"id": 378, "owner": {"id": 971}, "assignee": {"id": 1025}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 565}, "organization": {"id": 627}, "project": {"id": 386, "owner": {"id": 745}, "assignee": {"id": 97}}, "task": {"id": 316, "owner": {"id": 908}, "assignee": {"id": 1009}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 533}, "organization": {"id": 158}, "project": {"id": 368, "owner": {"id": 771}, "assignee": {"id": 42}}, "task": {"id": 306, "owner": {"id": 942}, "assignee": {"id": 1064}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 564}, "organization": {"id": 636}, "project": {"id": 353, "owner": {"id": 789}, "assignee": {"id": 19}}, "task": {"id": 364, "owner": {"id": 918}, "assignee": {"id": 1096}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 515}, "organization": {"id": 188}, "project": {"id": 397, "owner": {"id": 716}, "assignee": {"id": 52}}, "task": {"id": 371, "owner": {"id": 997}, "assignee": {"id": 1042}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 534}, "organization": {"id": 687}, "project": {"id": 352, "owner": {"id": 760}, "assignee": {"id": 52}}, "task": {"id": 336, "owner": {"id": 904}, "assignee": {"id": 1080}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 597}, "organization": {"id": 192}, "project": {"id": 347, "owner": {"id": 725}, "assignee": {"id": 28}}, "task": {"id": 398, "owner": {"id": 927}, "assignee": {"id": 1010}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 528}, "organization": {"id": 612}, "project": {"id": 384, "owner": {"id": 701}, "assignee": {"id": 28}}, "task": {"id": 382, "owner": {"id": 906}, "assignee": {"id": 1020}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 514}, "organization": {"id": 157}, "project": {"id": 329, "owner": {"id": 747}, "assignee": {"id": 878}}, "task": {"id": 318, "owner": {"id": 64}, "assignee": {"id": 1083}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 566}, "organization": {"id": 632}, "project": {"id": 391, "owner": {"id": 726}, "assignee": {"id": 815}}, "task": {"id": 389, "owner": {"id": 75}, "assignee": {"id": 1085}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 536}, "organization": {"id": 195}, "project": {"id": 355, "owner": {"id": 718}, "assignee": {"id": 836}}, "task": {"id": 379, "owner": {"id": 36}, "assignee": {"id": 1025}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 519}, "organization": {"id": 607}, "project": {"id": 378, "owner": {"id": 701}, "assignee": {"id": 886}}, "task": {"id": 357, "owner": {"id": 61}, "assignee": {"id": 1056}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 532}, "organization": {"id": 169}, "project": {"id": 331, "owner": {"id": 705}, "assignee": {"id": 895}}, "task": {"id": 394, "owner": {"id": 78}, "assignee": {"id": 1023}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 526}, "organization": {"id": 648}, "project": {"id": 399, "owner": {"id": 759}, "assignee": {"id": 844}}, "task": {"id": 327, "owner": {"id": 10}, "assignee": {"id": 1001}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 555}, "organization": {"id": 191}, "project": {"id": 381, "owner": {"id": 708}, "assignee": {"id": 844}}, "task": {"id": 309, "owner": {"id": 42}, "assignee": {"id": 1074}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 584}, "organization": {"id": 667}, "project": {"id": 326, "owner": {"id": 724}, "assignee": {"id": 891}}, "task": {"id": 361, "owner": {"id": 49}, "assignee": {"id": 1059}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 593}, "organization": {"id": 177}, "project": {"id": 318, "owner": {"id": 754}, "assignee": {"id": 835}}, "task": {"id": 382, "owner": {"id": 49}, "assignee": {"id": 1023}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 520}, "organization": {"id": 657}, "project": {"id": 346, "owner": {"id": 776}, "assignee": {"id": 826}}, "task": {"id": 307, "owner": {"id": 77}, "assignee": {"id": 1020}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 533}, "organization": {"id": 196}, "project": {"id": 359, "owner": {"id": 701}, "assignee": {"id": 887}}, "task": {"id": 344, "owner": {"id": 44}, "assignee": {"id": 1057}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 599}, "organization": {"id": 677}, "project": {"id": 328, "owner": {"id": 782}, "assignee": {"id": 806}}, "task": {"id": 353, "owner": {"id": 2}, "assignee": {"id": 1048}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 586}, "organization": {"id": 181}, "project": {"id": 326, "owner": {"id": 798}, "assignee": {"id": 858}}, "task": {"id": 352, "owner": {"id": 21}, "assignee": {"id": 1010}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 537}, "organization": {"id": 661}, "project": {"id": 341, "owner": {"id": 766}, "assignee": {"id": 816}}, "task": {"id": 317, "owner": {"id": 13}, "assignee": {"id": 1093}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 527}, "organization": {"id": 148}, "project": {"id": 347, "owner": {"id": 723}, "assignee": {"id": 832}}, "task": {"id": 383, "owner": {"id": 34}, "assignee": {"id": 1035}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 527}, "organization": {"id": 659}, "project": {"id": 391, "owner": {"id": 759}, "assignee": {"id": 835}}, "task": {"id": 365, "owner": {"id": 68}, "assignee": {"id": 1052}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 573}, "organization": {"id": 193}, "project": {"id": 311, "owner": {"id": 728}, "assignee": {"id": 873}}, "task": {"id": 341, "owner": {"id": 73}, "assignee": {"id": 1012}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 547}, "organization": {"id": 649}, "project": {"id": 385, "owner": {"id": 731}, "assignee": {"id": 896}}, "task": {"id": 308, "owner": {"id": 37}, "assignee": {"id": 1011}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 505}, "organization": {"id": 187}, "project": {"id": 340, "owner": {"id": 724}, "assignee": {"id": 817}}, "task": {"id": 313, "owner": {"id": 16}, "assignee": {"id": 1002}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 560}, "organization": {"id": 625}, "project": {"id": 390, "owner": {"id": 770}, "assignee": {"id": 807}}, "task": {"id": 375, "owner": {"id": 1}, "assignee": {"id": 1066}}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 584}, "organization": {"id": 109}, "project": {"id": 317, "owner": {"id": 714}, "assignee": {"id": 873}}, "task": {"id": 313, "owner": {"id": 53}, "assignee": {"id": 1036}}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 571}, "organization": {"id": 659}, "project": {"id": 343, "owner": {"id": 700}, "assignee": {"id": 832}}, "task": {"id": 338, "owner": {"id": 24}, "assignee": {"id": 1092}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 584}, "organization": {"id": 167}, "project": {"id": 373, "owner": {"id": 720}, "assignee": {"id": 889}}, "task": {"id": 387, "owner": {"id": 70}, "assignee": {"id": 1039}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 568}, "organization": {"id": 603}, "project": {"id": 356, "owner": {"id": 720}, "assignee": {"id": 816}}, "task": {"id": 380, "owner": {"id": 42}, "assignee": {"id": 1027}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 539}, "organization": {"id": 140}, "project": {"id": 380, "owner": {"id": 777}, "assignee": {"id": 898}}, "task": {"id": 396, "owner": {"id": 43}, "assignee": {"id": 1016}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 592}, "organization": {"id": 625}, "project": {"id": 391, "owner": {"id": 738}, "assignee": {"id": 815}}, "task": {"id": 350, "owner": {"id": 33}, "assignee": {"id": 1074}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 584}, "organization": {"id": 153}, "project": {"id": 328, "owner": {"id": 761}, "assignee": {"id": 812}}, "task": {"id": 306, "owner": {"id": 49}, "assignee": {"id": 1081}}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 548}, "organization": {"id": 675}, "project": {"id": 359, "owner": {"id": 751}, "assignee": {"id": 883}}, "task": {"id": 375, "owner": {"id": 98}, "assignee": {"id": 1062}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 503}, "organization": {"id": 102}, "project": {"id": 313, "owner": {"id": 702}, "assignee": {"id": 845}}, "task": {"id": 329, "owner": {"id": 15}, "assignee": {"id": 1087}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 548}, "organization": {"id": 633}, "project": {"id": 382, "owner": {"id": 757}, "assignee": {"id": 857}}, "task": {"id": 366, "owner": {"id": 86}, "assignee": {"id": 1057}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 503}, "organization": {"id": 197}, "project": {"id": 353, "owner": {"id": 792}, "assignee": {"id": 880}}, "task": {"id": 398, "owner": {"id": 42}, "assignee": {"id": 1087}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 530}, "organization": {"id": 685}, "project": {"id": 386, "owner": {"id": 782}, "assignee": {"id": 839}}, "task": {"id": 368, "owner": {"id": 17}, "assignee": {"id": 1084}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 599}, "organization": {"id": 149}, "project": {"id": 330, "owner": {"id": 793}, "assignee": {"id": 818}}, "task": {"id": 348, "owner": {"id": 81}, "assignee": {"id": 1099}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 598}, "organization": {"id": 634}, "project": {"id": 379, "owner": {"id": 771}, "assignee": {"id": 819}}, "task": {"id": 328, "owner": {"id": 18}, "assignee": {"id": 1045}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 518}, "organization": {"id": 117}, "project": {"id": 371, "owner": {"id": 751}, "assignee": {"id": 829}}, "task": {"id": 305, "owner": {"id": 23}, "assignee": {"id": 1036}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 549}, "organization": {"id": 684}, "project": {"id": 320, "owner": {"id": 700}, "assignee": {"id": 838}}, "task": {"id": 329, "owner": {"id": 47}, "assignee": {"id": 1082}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 534}, "organization": {"id": 147}, "project": {"id": 348, "owner": {"id": 740}, "assignee": {"id": 840}}, "task": {"id": 321, "owner": {"id": 35}, "assignee": {"id": 1024}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 598}, "organization": {"id": 651}, "project": {"id": 397, "owner": {"id": 744}, "assignee": {"id": 887}}, "task": {"id": 376, "owner": {"id": 3}, "assignee": {"id": 1031}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 569}, "organization": {"id": 118}, "project": {"id": 394, "owner": {"id": 764}, "assignee": {"id": 861}}, "task": {"id": 361, "owner": {"id": 13}, "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": 63, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 550}, "organization": {"id": 601}, "project": {"id": 394, "owner": {"id": 703}, "assignee": {"id": 856}}, "task": {"id": 332, "owner": {"id": 63}, "assignee": {"id": 1060}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 597}, "organization": {"id": 172}, "project": {"id": 368, "owner": {"id": 793}, "assignee": {"id": 827}}, "task": {"id": 375, "owner": {"id": 6}, "assignee": {"id": 1058}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 515}, "organization": {"id": 643}, "project": {"id": 326, "owner": {"id": 797}, "assignee": {"id": 806}}, "task": {"id": 352, "owner": {"id": 42}, "assignee": {"id": 1061}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 563}, "organization": {"id": 163}, "project": {"id": 381, "owner": {"id": 739}, "assignee": {"id": 800}}, "task": {"id": 397, "owner": {"id": 62}, "assignee": {"id": 1049}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 530}, "organization": {"id": 681}, "project": {"id": 309, "owner": {"id": 775}, "assignee": {"id": 844}}, "task": {"id": 375, "owner": {"id": 42}, "assignee": {"id": 1054}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 583}, "organization": {"id": 138}, "project": {"id": 338, "owner": {"id": 781}, "assignee": {"id": 856}}, "task": {"id": 306, "owner": {"id": 28}, "assignee": {"id": 1062}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 550}, "organization": {"id": 673}, "project": {"id": 327, "owner": {"id": 766}, "assignee": {"id": 876}}, "task": {"id": 327, "owner": {"id": 90}, "assignee": {"id": 1006}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 507}, "organization": {"id": 197}, "project": {"id": 392, "owner": {"id": 778}, "assignee": {"id": 886}}, "task": {"id": 395, "owner": {"id": 67}, "assignee": {"id": 1011}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 506}, "organization": {"id": 616}, "project": {"id": 395, "owner": {"id": 767}, "assignee": {"id": 831}}, "task": {"id": 348, "owner": {"id": 80}, "assignee": {"id": 1044}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 539}, "organization": {"id": 121}, "project": {"id": 316, "owner": {"id": 778}, "assignee": {"id": 832}}, "task": {"id": 326, "owner": {"id": 2}, "assignee": {"id": 1010}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 575}, "organization": {"id": 669}, "project": {"id": 394, "owner": {"id": 744}, "assignee": {"id": 880}}, "task": {"id": 387, "owner": {"id": 45}, "assignee": {"id": 1095}}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 553}, "organization": {"id": 184}, "project": {"id": 384, "owner": {"id": 754}, "assignee": {"id": 813}}, "task": {"id": 318, "owner": {"id": 986}, "assignee": {"id": 68}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 511}, "organization": {"id": 657}, "project": {"id": 341, "owner": {"id": 721}, "assignee": {"id": 885}}, "task": {"id": 389, "owner": {"id": 915}, "assignee": {"id": 75}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 563}, "organization": {"id": 147}, "project": {"id": 321, "owner": {"id": 715}, "assignee": {"id": 877}}, "task": {"id": 312, "owner": {"id": 998}, "assignee": {"id": 24}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 538}, "organization": {"id": 624}, "project": {"id": 351, "owner": {"id": 737}, "assignee": {"id": 851}}, "task": {"id": 308, "owner": {"id": 938}, "assignee": {"id": 38}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 528}, "organization": {"id": 182}, "project": {"id": 311, "owner": {"id": 754}, "assignee": {"id": 878}}, "task": {"id": 390, "owner": {"id": 930}, "assignee": {"id": 35}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 553}, "organization": {"id": 614}, "project": {"id": 313, "owner": {"id": 713}, "assignee": {"id": 815}}, "task": {"id": 363, "owner": {"id": 957}, "assignee": {"id": 32}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 598}, "organization": {"id": 165}, "project": {"id": 308, "owner": {"id": 703}, "assignee": {"id": 851}}, "task": {"id": 363, "owner": {"id": 947}, "assignee": {"id": 59}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 521}, "organization": {"id": 698}, "project": {"id": 353, "owner": {"id": 790}, "assignee": {"id": 839}}, "task": {"id": 361, "owner": {"id": 967}, "assignee": {"id": 39}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 545}, "organization": {"id": 184}, "project": {"id": 356, "owner": {"id": 700}, "assignee": {"id": 882}}, "task": {"id": 309, "owner": {"id": 905}, "assignee": {"id": 93}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 538}, "organization": {"id": 641}, "project": {"id": 372, "owner": {"id": 788}, "assignee": {"id": 854}}, "task": {"id": 301, "owner": {"id": 979}, "assignee": {"id": 35}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 505}, "organization": {"id": 161}, "project": {"id": 316, "owner": {"id": 730}, "assignee": {"id": 808}}, "task": {"id": 391, "owner": {"id": 981}, "assignee": {"id": 26}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 559}, "organization": {"id": 638}, "project": {"id": 307, "owner": {"id": 734}, "assignee": {"id": 883}}, "task": {"id": 378, "owner": {"id": 900}, "assignee": {"id": 74}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 583}, "organization": {"id": 138}, "project": {"id": 347, "owner": {"id": 752}, "assignee": {"id": 890}}, "task": {"id": 314, "owner": {"id": 961}, "assignee": {"id": 37}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 598}, "organization": {"id": 672}, "project": {"id": 324, "owner": {"id": 758}, "assignee": {"id": 838}}, "task": {"id": 329, "owner": {"id": 903}, "assignee": {"id": 58}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 583}, "organization": {"id": 163}, "project": {"id": 335, "owner": {"id": 725}, "assignee": {"id": 809}}, "task": {"id": 338, "owner": {"id": 973}, "assignee": {"id": 39}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 571}, "organization": {"id": 637}, "project": {"id": 346, "owner": {"id": 789}, "assignee": {"id": 812}}, "task": {"id": 329, "owner": {"id": 949}, "assignee": {"id": 68}}}} +} + +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": 134, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 524}, "organization": {"id": 134}, "project": {"id": 307, "owner": {"id": 702}, "assignee": {"id": 892}}, "task": {"id": 362, "owner": {"id": 989}, "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": 1, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 574}, "organization": {"id": 656}, "project": {"id": 332, "owner": {"id": 799}, "assignee": {"id": 834}}, "task": {"id": 328, "owner": {"id": 929}, "assignee": {"id": 1}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 511}, "organization": {"id": 187}, "project": {"id": 328, "owner": {"id": 748}, "assignee": {"id": 874}}, "task": {"id": 300, "owner": {"id": 941}, "assignee": {"id": 72}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 529}, "organization": {"id": 666}, "project": {"id": 376, "owner": {"id": 787}, "assignee": {"id": 856}}, "task": {"id": 387, "owner": {"id": 942}, "assignee": {"id": 20}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 557}, "organization": {"id": 125}, "project": {"id": 312, "owner": {"id": 716}, "assignee": {"id": 841}}, "task": {"id": 365, "owner": {"id": 972}, "assignee": {"id": 15}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 593}, "organization": {"id": 684}, "project": {"id": 349, "owner": {"id": 774}, "assignee": {"id": 880}}, "task": {"id": 317, "owner": {"id": 962}, "assignee": {"id": 22}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 549}, "organization": {"id": 118}, "project": {"id": 380, "owner": {"id": 789}, "assignee": {"id": 830}}, "task": {"id": 385, "owner": {"id": 982}, "assignee": {"id": 9}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 590}, "organization": {"id": 666}, "project": {"id": 348, "owner": {"id": 722}, "assignee": {"id": 822}}, "task": {"id": 302, "owner": {"id": 927}, "assignee": {"id": 23}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 557}, "organization": {"id": 110}, "project": {"id": 337, "owner": {"id": 798}, "assignee": {"id": 800}}, "task": {"id": 302, "owner": {"id": 993}, "assignee": {"id": 88}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 556}, "organization": {"id": 662}, "project": {"id": 379, "owner": {"id": 745}, "assignee": {"id": 849}}, "task": {"id": 313, "owner": {"id": 944}, "assignee": {"id": 42}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 545}, "organization": {"id": 184}, "project": {"id": 393, "owner": {"id": 719}, "assignee": {"id": 894}}, "task": {"id": 310, "owner": {"id": 973}, "assignee": {"id": 78}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 505}, "organization": {"id": 626}, "project": {"id": 364, "owner": {"id": 711}, "assignee": {"id": 857}}, "task": {"id": 319, "owner": {"id": 931}, "assignee": {"id": 97}}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 532}, "organization": {"id": 195}, "project": {"id": 345, "owner": {"id": 798}, "assignee": {"id": 841}}, "task": {"id": 306, "owner": {"id": 984}, "assignee": {"id": 53}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 594}, "organization": {"id": 608}, "project": {"id": 380, "owner": {"id": 785}, "assignee": {"id": 855}}, "task": {"id": 368, "owner": {"id": 954}, "assignee": {"id": 33}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 593}, "organization": {"id": 166}, "project": {"id": 358, "owner": {"id": 707}, "assignee": {"id": 835}}, "task": {"id": 357, "owner": {"id": 931}, "assignee": {"id": 23}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 539}, "organization": {"id": 637}, "project": {"id": 377, "owner": {"id": 741}, "assignee": {"id": 882}}, "task": {"id": 364, "owner": {"id": 925}, "assignee": {"id": 34}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 534}, "organization": {"id": 140}, "project": {"id": 365, "owner": {"id": 758}, "assignee": {"id": 867}}, "task": {"id": 370, "owner": {"id": 983}, "assignee": {"id": 74}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 535}, "organization": {"id": 671}, "project": {"id": 341, "owner": {"id": 732}, "assignee": {"id": 829}}, "task": {"id": 394, "owner": {"id": 930}, "assignee": {"id": 66}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 535}, "organization": {"id": 120}, "project": {"id": 325, "owner": {"id": 730}, "assignee": {"id": 853}}, "task": {"id": 334, "owner": {"id": 924}, "assignee": {"id": 56}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 515}, "organization": {"id": 609}, "project": {"id": 301, "owner": {"id": 722}, "assignee": {"id": 816}}, "task": {"id": 313, "owner": {"id": 908}, "assignee": {"id": 83}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 542}, "organization": {"id": 196}, "project": {"id": 328, "owner": {"id": 777}, "assignee": {"id": 865}}, "task": {"id": 348, "owner": {"id": 913}, "assignee": {"id": 86}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 590}, "organization": {"id": 685}, "project": {"id": 396, "owner": {"id": 737}, "assignee": {"id": 866}}, "task": {"id": 307, "owner": {"id": 965}, "assignee": {"id": 55}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 510}, "organization": {"id": 177}, "project": {"id": 314, "owner": {"id": 716}, "assignee": {"id": 813}}, "task": {"id": 307, "owner": {"id": 993}, "assignee": {"id": 44}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 592}, "organization": {"id": 658}, "project": {"id": 310, "owner": {"id": 707}, "assignee": {"id": 889}}, "task": {"id": 379, "owner": {"id": 921}, "assignee": {"id": 45}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 582}, "organization": {"id": 155}, "project": {"id": 399, "owner": {"id": 765}, "assignee": {"id": 847}}, "task": {"id": 332, "owner": {"id": 923}, "assignee": {"id": 8}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 509}, "organization": {"id": 661}, "project": {"id": 345, "owner": {"id": 746}, "assignee": {"id": 847}}, "task": {"id": 335, "owner": {"id": 976}, "assignee": {"id": 67}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 590}, "organization": {"id": 107}, "project": {"id": 313, "owner": {"id": 749}, "assignee": {"id": 821}}, "task": {"id": 396, "owner": {"id": 993}, "assignee": {"id": 51}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 526}, "organization": {"id": 674}, "project": {"id": 343, "owner": {"id": 761}, "assignee": {"id": 847}}, "task": {"id": 311, "owner": {"id": 990}, "assignee": {"id": 47}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 536}, "organization": {"id": 138}, "project": {"id": 364, "owner": {"id": 715}, "assignee": {"id": 899}}, "task": {"id": 332, "owner": {"id": 966}, "assignee": {"id": 34}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 521}, "organization": {"id": 608}, "project": {"id": 381, "owner": {"id": 717}, "assignee": {"id": 825}}, "task": {"id": 358, "owner": {"id": 987}, "assignee": {"id": 39}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 533}, "organization": {"id": 182}, "project": {"id": 368, "owner": {"id": 779}, "assignee": {"id": 839}}, "task": {"id": 365, "owner": {"id": 978}, "assignee": {"id": 90}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 504}, "organization": {"id": 615}, "project": {"id": 370, "owner": {"id": 727}, "assignee": {"id": 832}}, "task": {"id": 327, "owner": {"id": 976}, "assignee": {"id": 13}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 537}, "organization": {"id": 180}, "project": {"id": 394, "owner": {"id": 790}, "assignee": {"id": 873}}, "task": {"id": 384, "owner": {"id": 913}, "assignee": {"id": 46}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 533}, "organization": {"id": 687}, "project": {"id": 346, "owner": {"id": 734}, "assignee": {"id": 814}}, "task": {"id": 322, "owner": {"id": 914}, "assignee": {"id": 57}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 90}, "organization": {"id": 180}, "project": {"id": 365, "owner": {"id": 755}, "assignee": {"id": 851}}, "task": {"id": 345, "owner": {"id": 988}, "assignee": {"id": 1070}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 8}, "organization": {"id": 693}, "project": {"id": 361, "owner": {"id": 715}, "assignee": {"id": 851}}, "task": {"id": 388, "owner": {"id": 954}, "assignee": {"id": 1006}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 43}, "organization": {"id": 189}, "project": {"id": 380, "owner": {"id": 733}, "assignee": {"id": 819}}, "task": {"id": 375, "owner": {"id": 959}, "assignee": {"id": 1091}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 98}, "organization": {"id": 670}, "project": {"id": 395, "owner": {"id": 761}, "assignee": {"id": 868}}, "task": {"id": 346, "owner": {"id": 964}, "assignee": {"id": 1052}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 15}, "organization": {"id": 196}, "project": {"id": 374, "owner": {"id": 717}, "assignee": {"id": 840}}, "task": {"id": 376, "owner": {"id": 975}, "assignee": {"id": 1018}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 43}, "organization": {"id": 624}, "project": {"id": 383, "owner": {"id": 773}, "assignee": {"id": 874}}, "task": {"id": 344, "owner": {"id": 934}, "assignee": {"id": 1016}}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 76}, "organization": {"id": 103}, "project": {"id": 326, "owner": {"id": 723}, "assignee": {"id": 851}}, "task": {"id": 364, "owner": {"id": 966}, "assignee": {"id": 1088}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 63}, "organization": {"id": 692}, "project": {"id": 380, "owner": {"id": 774}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 909}, "assignee": {"id": 1053}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 33}, "organization": {"id": 108}, "project": {"id": 338, "owner": {"id": 751}, "assignee": {"id": 827}}, "task": {"id": 331, "owner": {"id": 934}, "assignee": {"id": 1046}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 380, "assignee": {"id": 22}, "organization": {"id": 657}, "project": {"id": 332, "owner": {"id": 760}, "assignee": {"id": 801}}, "task": {"id": 369, "owner": {"id": 933}, "assignee": {"id": 1069}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 3}, "organization": {"id": 144}, "project": {"id": 335, "owner": {"id": 758}, "assignee": {"id": 881}}, "task": {"id": 353, "owner": {"id": 958}, "assignee": {"id": 1098}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 55}, "organization": {"id": 659}, "project": {"id": 372, "owner": {"id": 782}, "assignee": {"id": 855}}, "task": {"id": 321, "owner": {"id": 929}, "assignee": {"id": 1085}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 91}, "organization": {"id": 148}, "project": {"id": 325, "owner": {"id": 720}, "assignee": {"id": 895}}, "task": {"id": 302, "owner": {"id": 989}, "assignee": {"id": 1042}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 92}, "organization": {"id": 686}, "project": {"id": 355, "owner": {"id": 747}, "assignee": {"id": 891}}, "task": {"id": 394, "owner": {"id": 983}, "assignee": {"id": 1035}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 80}, "organization": {"id": 125}, "project": {"id": 340, "owner": {"id": 794}, "assignee": {"id": 859}}, "task": {"id": 344, "owner": {"id": 922}, "assignee": {"id": 1033}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 28}, "organization": {"id": 668}, "project": {"id": 361, "owner": {"id": 745}, "assignee": {"id": 849}}, "task": {"id": 386, "owner": {"id": 982}, "assignee": {"id": 1013}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 3}, "organization": {"id": 195}, "project": {"id": 347, "owner": {"id": 761}, "assignee": {"id": 878}}, "task": {"id": 340, "owner": {"id": 978}, "assignee": {"id": 1099}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 74}, "organization": {"id": 610}, "project": {"id": 363, "owner": {"id": 721}, "assignee": {"id": 887}}, "task": {"id": 301, "owner": {"id": 909}, "assignee": {"id": 1096}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 47}, "organization": {"id": 168}, "project": {"id": 399, "owner": {"id": 773}, "assignee": {"id": 874}}, "task": {"id": 306, "owner": {"id": 919}, "assignee": {"id": 1063}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 34}, "organization": {"id": 665}, "project": {"id": 381, "owner": {"id": 722}, "assignee": {"id": 888}}, "task": {"id": 359, "owner": {"id": 998}, "assignee": {"id": 1019}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 82}, "organization": {"id": 154}, "project": {"id": 357, "owner": {"id": 710}, "assignee": {"id": 897}}, "task": {"id": 368, "owner": {"id": 904}, "assignee": {"id": 1044}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 65}, "organization": {"id": 637}, "project": {"id": 368, "owner": {"id": 712}, "assignee": {"id": 848}}, "task": {"id": 330, "owner": {"id": 919}, "assignee": {"id": 1072}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 89}, "organization": {"id": 102}, "project": {"id": 320, "owner": {"id": 730}, "assignee": {"id": 864}}, "task": {"id": 318, "owner": {"id": 944}, "assignee": {"id": 1098}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 58}, "organization": {"id": 647}, "project": {"id": 357, "owner": {"id": 775}, "assignee": {"id": 885}}, "task": {"id": 366, "owner": {"id": 968}, "assignee": {"id": 1058}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 22}, "organization": {"id": 105}, "project": {"id": 355, "owner": {"id": 774}, "assignee": {"id": 852}}, "task": {"id": 325, "owner": {"id": 988}, "assignee": {"id": 1035}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 72}, "organization": {"id": 614}, "project": {"id": 339, "owner": {"id": 753}, "assignee": {"id": 864}}, "task": {"id": 359, "owner": {"id": 941}, "assignee": {"id": 1046}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 41}, "organization": {"id": 169}, "project": {"id": 307, "owner": {"id": 778}, "assignee": {"id": 873}}, "task": {"id": 371, "owner": {"id": 942}, "assignee": {"id": 1055}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 60}, "organization": {"id": 602}, "project": {"id": 374, "owner": {"id": 784}, "assignee": {"id": 882}}, "task": {"id": 390, "owner": {"id": 916}, "assignee": {"id": 1073}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 61}, "organization": {"id": 191}, "project": {"id": 396, "owner": {"id": 727}, "assignee": {"id": 845}}, "task": {"id": 303, "owner": {"id": 937}, "assignee": {"id": 1027}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 11}, "organization": {"id": 659}, "project": {"id": 308, "owner": {"id": 701}, "assignee": {"id": 814}}, "task": {"id": 398, "owner": {"id": 903}, "assignee": {"id": 1081}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 5}, "organization": {"id": 101}, "project": {"id": 341, "owner": {"id": 724}, "assignee": {"id": 873}}, "task": {"id": 362, "owner": {"id": 926}, "assignee": {"id": 1003}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 62}, "organization": {"id": 695}, "project": {"id": 394, "owner": {"id": 733}, "assignee": {"id": 880}}, "task": {"id": 319, "owner": {"id": 949}, "assignee": {"id": 1076}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 11}, "organization": {"id": 163}, "project": {"id": 381, "owner": {"id": 721}, "assignee": {"id": 888}}, "task": {"id": 382, "owner": {"id": 961}, "assignee": {"id": 1064}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 98}, "organization": {"id": 663}, "project": {"id": 357, "owner": {"id": 797}, "assignee": {"id": 859}}, "task": {"id": 389, "owner": {"id": 997}, "assignee": {"id": 1045}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 22}, "organization": {"id": 192}, "project": {"id": 364, "owner": {"id": 743}, "assignee": {"id": 886}}, "task": {"id": 392, "owner": {"id": 930}, "assignee": {"id": 1051}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 18}, "organization": {"id": 626}, "project": {"id": 300, "owner": {"id": 735}, "assignee": {"id": 891}}, "task": {"id": 364, "owner": {"id": 935}, "assignee": {"id": 1048}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 67}, "organization": {"id": 119}, "project": {"id": 367, "owner": {"id": 771}, "assignee": {"id": 895}}, "task": {"id": 306, "owner": {"id": 960}, "assignee": {"id": 1095}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 44}, "organization": {"id": 624}, "project": {"id": 397, "owner": {"id": 799}, "assignee": {"id": 809}}, "task": {"id": 342, "owner": {"id": 993}, "assignee": {"id": 1033}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 31}, "organization": {"id": 149}, "project": {"id": 311, "owner": {"id": 703}, "assignee": {"id": 822}}, "task": {"id": 371, "owner": {"id": 955}, "assignee": {"id": 1077}}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 26}, "organization": {"id": 694}, "project": {"id": 333, "owner": {"id": 795}, "assignee": {"id": 840}}, "task": {"id": 360, "owner": {"id": 940}, "assignee": {"id": 1032}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 93}, "organization": {"id": 104}, "project": {"id": 349, "owner": {"id": 798}, "assignee": {"id": 847}}, "task": {"id": 351, "owner": {"id": 963}, "assignee": {"id": 1080}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 4}, "organization": {"id": 695}, "project": {"id": 320, "owner": {"id": 706}, "assignee": {"id": 855}}, "task": {"id": 383, "owner": {"id": 942}, "assignee": {"id": 1094}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 61}, "organization": {"id": 101}, "project": {"id": 330, "owner": {"id": 725}, "assignee": {"id": 827}}, "task": {"id": 365, "owner": {"id": 905}, "assignee": {"id": 1082}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 70}, "organization": {"id": 629}, "project": {"id": 356, "owner": {"id": 755}, "assignee": {"id": 813}}, "task": {"id": 334, "owner": {"id": 922}, "assignee": {"id": 1028}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 69}, "organization": {"id": 102}, "project": {"id": 343, "owner": {"id": 724}, "assignee": {"id": 846}}, "task": {"id": 372, "owner": {"id": 948}, "assignee": {"id": 1002}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 48}, "organization": {"id": 658}, "project": {"id": 380, "owner": {"id": 722}, "assignee": {"id": 886}}, "task": {"id": 383, "owner": {"id": 909}, "assignee": {"id": 1062}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 19}, "organization": {"id": 184}, "project": {"id": 307, "owner": {"id": 701}, "assignee": {"id": 888}}, "task": {"id": 383, "owner": {"id": 991}, "assignee": {"id": 1031}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 98}, "organization": {"id": 630}, "project": {"id": 309, "owner": {"id": 718}, "assignee": {"id": 823}}, "task": {"id": 336, "owner": {"id": 971}, "assignee": {"id": 1020}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 18}, "organization": {"id": 169}, "project": {"id": 391, "owner": {"id": 749}, "assignee": {"id": 813}}, "task": {"id": 371, "owner": {"id": 992}, "assignee": {"id": 1092}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 89}, "organization": {"id": 639}, "project": {"id": 301, "owner": {"id": 710}, "assignee": {"id": 822}}, "task": {"id": 396, "owner": {"id": 971}, "assignee": {"id": 1034}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 594}, "organization": {"id": 119}, "project": {"id": 361, "owner": {"id": 771}, "assignee": {"id": 865}}, "task": {"id": 349, "owner": {"id": 973}, "assignee": {"id": 1013}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 558}, "organization": {"id": 687}, "project": {"id": 384, "owner": {"id": 782}, "assignee": {"id": 801}}, "task": {"id": 340, "owner": {"id": 911}, "assignee": {"id": 1067}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 561}, "organization": {"id": 145}, "project": {"id": 337, "owner": {"id": 797}, "assignee": {"id": 836}}, "task": {"id": 352, "owner": {"id": 961}, "assignee": {"id": 1049}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 598}, "organization": {"id": 633}, "project": {"id": 352, "owner": {"id": 764}, "assignee": {"id": 808}}, "task": {"id": 304, "owner": {"id": 971}, "assignee": {"id": 1041}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 573}, "organization": {"id": 134}, "project": {"id": 323, "owner": {"id": 718}, "assignee": {"id": 876}}, "task": {"id": 315, "owner": {"id": 971}, "assignee": {"id": 1058}}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 514}, "organization": {"id": 694}, "project": {"id": 314, "owner": {"id": 778}, "assignee": {"id": 844}}, "task": {"id": 388, "owner": {"id": 911}, "assignee": {"id": 1092}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 547}, "organization": {"id": 174}, "project": {"id": 339, "owner": {"id": 778}, "assignee": {"id": 850}}, "task": {"id": 381, "owner": {"id": 941}, "assignee": {"id": 1077}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 512}, "organization": {"id": 648}, "project": {"id": 353, "owner": {"id": 765}, "assignee": {"id": 854}}, "task": {"id": 377, "owner": {"id": 936}, "assignee": {"id": 1063}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 558}, "organization": {"id": 183}, "project": {"id": 384, "owner": {"id": 759}, "assignee": {"id": 873}}, "task": {"id": 313, "owner": {"id": 913}, "assignee": {"id": 1053}}}} +} + +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": 103, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 564}, "organization": {"id": 666}, "project": {"id": 327, "owner": {"id": 789}, "assignee": {"id": 826}}, "task": {"id": 384, "owner": {"id": 927}, "assignee": {"id": 1046}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 520}, "organization": {"id": 152}, "project": {"id": 369, "owner": {"id": 778}, "assignee": {"id": 860}}, "task": {"id": 399, "owner": {"id": 966}, "assignee": {"id": 1072}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 547}, "organization": {"id": 698}, "project": {"id": 307, "owner": {"id": 766}, "assignee": {"id": 873}}, "task": {"id": 343, "owner": {"id": 969}, "assignee": {"id": 1044}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 519}, "organization": {"id": 126}, "project": {"id": 358, "owner": {"id": 756}, "assignee": {"id": 859}}, "task": {"id": 336, "owner": {"id": 901}, "assignee": {"id": 1070}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 572}, "organization": {"id": 694}, "project": {"id": 313, "owner": {"id": 736}, "assignee": {"id": 849}}, "task": {"id": 309, "owner": {"id": 977}, "assignee": {"id": 1082}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 589}, "organization": {"id": 143}, "project": {"id": 333, "owner": {"id": 775}, "assignee": {"id": 822}}, "task": {"id": 320, "owner": {"id": 971}, "assignee": {"id": 1081}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 594}, "organization": {"id": 680}, "project": {"id": 371, "owner": {"id": 748}, "assignee": {"id": 823}}, "task": {"id": 324, "owner": {"id": 933}, "assignee": {"id": 1061}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 584}, "organization": {"id": 118}, "project": {"id": 390, "owner": {"id": 714}, "assignee": {"id": 819}}, "task": {"id": 330, "owner": {"id": 969}, "assignee": {"id": 1064}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 547}, "organization": {"id": 696}, "project": {"id": 342, "owner": {"id": 780}, "assignee": {"id": 889}}, "task": {"id": 369, "owner": {"id": 983}, "assignee": {"id": 1035}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 529}, "organization": {"id": 141}, "project": {"id": 343, "owner": {"id": 730}, "assignee": {"id": 859}}, "task": {"id": 373, "owner": {"id": 976}, "assignee": {"id": 1040}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 590}, "organization": {"id": 616}, "project": {"id": 369, "owner": {"id": 764}, "assignee": {"id": 856}}, "task": {"id": 389, "owner": {"id": 915}, "assignee": {"id": 1092}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 537}, "organization": {"id": 102}, "project": {"id": 311, "owner": {"id": 701}, "assignee": {"id": 872}}, "task": {"id": 310, "owner": {"id": 957}, "assignee": {"id": 1053}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 569}, "organization": {"id": 684}, "project": {"id": 341, "owner": {"id": 737}, "assignee": {"id": 868}}, "task": {"id": 316, "owner": {"id": 991}, "assignee": {"id": 1016}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 577}, "organization": {"id": 143}, "project": {"id": 386, "owner": {"id": 711}, "assignee": {"id": 872}}, "task": {"id": 379, "owner": {"id": 990}, "assignee": {"id": 1038}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 574}, "organization": {"id": 683}, "project": {"id": 382, "owner": {"id": 766}, "assignee": {"id": 815}}, "task": {"id": 306, "owner": {"id": 967}, "assignee": {"id": 1015}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 593}, "organization": {"id": 129}, "project": {"id": 304, "owner": {"id": 712}, "assignee": {"id": 819}}, "task": {"id": 363, "owner": {"id": 957}, "assignee": {"id": 1072}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 514}, "organization": {"id": 664}, "project": {"id": 359, "owner": {"id": 769}, "assignee": {"id": 845}}, "task": {"id": 376, "owner": {"id": 955}, "assignee": {"id": 1045}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 581}, "organization": {"id": 115}, "project": {"id": 353, "owner": {"id": 759}, "assignee": {"id": 863}}, "task": {"id": 326, "owner": {"id": 937}, "assignee": {"id": 1028}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 544}, "organization": {"id": 651}, "project": {"id": 377, "owner": {"id": 701}, "assignee": {"id": 896}}, "task": {"id": 335, "owner": {"id": 903}, "assignee": {"id": 1048}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 547}, "organization": {"id": 145}, "project": {"id": 342, "owner": {"id": 758}, "assignee": {"id": 846}}, "task": {"id": 356, "owner": {"id": 931}, "assignee": {"id": 1003}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 503}, "organization": {"id": 678}, "project": {"id": 365, "owner": {"id": 747}, "assignee": {"id": 846}}, "task": {"id": 342, "owner": {"id": 903}, "assignee": {"id": 1010}}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 561}, "organization": {"id": 106}, "project": {"id": 305, "owner": {"id": 756}, "assignee": {"id": 865}}, "task": {"id": 330, "owner": {"id": 981}, "assignee": {"id": 1074}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 543}, "organization": {"id": 638}, "project": {"id": 311, "owner": {"id": 749}, "assignee": {"id": 853}}, "task": {"id": 331, "owner": {"id": 913}, "assignee": {"id": 1075}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 586}, "organization": {"id": 130}, "project": {"id": 352, "owner": {"id": 723}, "assignee": {"id": 898}}, "task": {"id": 326, "owner": {"id": 926}, "assignee": {"id": 1037}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 583}, "organization": {"id": 694}, "project": {"id": 321, "owner": {"id": 781}, "assignee": {"id": 852}}, "task": {"id": 328, "owner": {"id": 911}, "assignee": {"id": 1093}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 538}, "organization": {"id": 167}, "project": {"id": 300, "owner": {"id": 717}, "assignee": {"id": 804}}, "task": {"id": 369, "owner": {"id": 945}, "assignee": {"id": 1045}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 531}, "organization": {"id": 607}, "project": {"id": 357, "owner": {"id": 767}, "assignee": {"id": 887}}, "task": {"id": 313, "owner": {"id": 930}, "assignee": {"id": 1085}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 533}, "organization": {"id": 181}, "project": {"id": 379, "owner": {"id": 794}, "assignee": {"id": 846}}, "task": {"id": 342, "owner": {"id": 905}, "assignee": {"id": 1066}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 597}, "organization": {"id": 620}, "project": {"id": 390, "owner": {"id": 760}, "assignee": {"id": 839}}, "task": {"id": 383, "owner": {"id": 997}, "assignee": {"id": 1011}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 538}, "organization": {"id": 137}, "project": {"id": 381, "owner": {"id": 746}, "assignee": {"id": 815}}, "task": {"id": 372, "owner": {"id": 946}, "assignee": {"id": 1085}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 539}, "organization": {"id": 666}, "project": {"id": 380, "owner": {"id": 720}, "assignee": {"id": 884}}, "task": {"id": 337, "owner": {"id": 935}, "assignee": {"id": 1081}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 534}, "organization": {"id": 121}, "project": {"id": 353, "owner": {"id": 769}, "assignee": {"id": 859}}, "task": {"id": 350, "owner": {"id": 915}, "assignee": {"id": 1012}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 549}, "organization": {"id": 661}, "project": {"id": 334, "owner": {"id": 797}, "assignee": {"id": 869}}, "task": {"id": 397, "owner": {"id": 948}, "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": 25, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 596}, "organization": {"id": 194}, "project": {"id": 335, "owner": {"id": 741}, "assignee": {"id": 857}}, "task": {"id": 348, "owner": {"id": 935}, "assignee": {"id": 1089}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 521}, "organization": {"id": 667}, "project": {"id": 333, "owner": {"id": 798}, "assignee": {"id": 849}}, "task": {"id": 356, "owner": {"id": 942}, "assignee": {"id": 1011}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 554}, "organization": {"id": 164}, "project": {"id": 395, "owner": {"id": 787}, "assignee": {"id": 834}}, "task": {"id": 336, "owner": {"id": 907}, "assignee": {"id": 1048}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 501}, "organization": {"id": 631}, "project": {"id": 330, "owner": {"id": 715}, "assignee": {"id": 865}}, "task": {"id": 322, "owner": {"id": 918}, "assignee": {"id": 1050}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 574}, "organization": {"id": 143}, "project": {"id": 386, "owner": {"id": 717}, "assignee": {"id": 869}}, "task": {"id": 350, "owner": {"id": 982}, "assignee": {"id": 1068}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 590}, "organization": {"id": 616}, "project": {"id": 337, "owner": {"id": 760}, "assignee": {"id": 810}}, "task": {"id": 396, "owner": {"id": 964}, "assignee": {"id": 1041}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 514}, "organization": {"id": 146}, "project": {"id": 312, "owner": {"id": 762}, "assignee": {"id": 872}}, "task": {"id": 386, "owner": {"id": 946}, "assignee": {"id": 1044}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 585}, "organization": {"id": 681}, "project": {"id": 373, "owner": {"id": 717}, "assignee": {"id": 836}}, "task": {"id": 340, "owner": {"id": 931}, "assignee": {"id": 1033}}}} +} + +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": 30, "privilege": "admin"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 557}, "organization": {"id": 636}, "project": {"id": 365, "owner": {"id": 30}, "assignee": {"id": 815}}, "task": {"id": 390, "owner": {"id": 958}, "assignee": {"id": 1010}}}} +} + +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": 64, "privilege": "business"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 580}, "organization": {"id": 602}, "project": {"id": 398, "owner": {"id": 64}, "assignee": {"id": 838}}, "task": {"id": 331, "owner": {"id": 912}, "assignee": {"id": 1001}}}} +} + +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": 7, "privilege": "user"}, "organization": null}, "resource": {"id": 311, "assignee": {"id": 517}, "organization": {"id": 634}, "project": {"id": 302, "owner": {"id": 7}, "assignee": {"id": 882}}, "task": {"id": 309, "owner": {"id": 975}, "assignee": {"id": 1019}}}} +} + +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": 70, "privilege": "worker"}, "organization": null}, "resource": {"id": 357, "assignee": {"id": 530}, "organization": {"id": 636}, "project": {"id": 338, "owner": {"id": 70}, "assignee": {"id": 873}}, "task": {"id": 398, "owner": {"id": 941}, "assignee": {"id": 1012}}}} +} + +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": 4, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 598}, "organization": {"id": 674}, "project": {"id": 324, "owner": {"id": 4}, "assignee": {"id": 886}}, "task": {"id": 392, "owner": {"id": 946}, "assignee": {"id": 1020}}}} +} + +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": 25, "privilege": "admin"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 519}, "organization": {"id": 602}, "project": {"id": 367, "owner": {"id": 771}, "assignee": {"id": 25}}, "task": {"id": 352, "owner": {"id": 919}, "assignee": {"id": 1092}}}} +} + +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": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 356, "assignee": {"id": 506}, "organization": {"id": 682}, "project": {"id": 372, "owner": {"id": 745}, "assignee": {"id": 3}}, "task": {"id": 395, "owner": {"id": 927}, "assignee": {"id": 1068}}}} +} + +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": 55, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 535}, "organization": {"id": 646}, "project": {"id": 309, "owner": {"id": 752}, "assignee": {"id": 55}}, "task": {"id": 386, "owner": {"id": 967}, "assignee": {"id": 1012}}}} +} + +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": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 550}, "organization": {"id": 601}, "project": {"id": 329, "owner": {"id": 715}, "assignee": {"id": 41}}, "task": {"id": 369, "owner": {"id": 953}, "assignee": {"id": 1002}}}} +} + +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": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 570}, "organization": {"id": 645}, "project": {"id": 330, "owner": {"id": 704}, "assignee": {"id": 36}}, "task": {"id": 335, "owner": {"id": 942}, "assignee": {"id": 1027}}}} +} + +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": 37, "privilege": "admin"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 589}, "organization": {"id": 635}, "project": {"id": 373, "owner": {"id": 752}, "assignee": {"id": 830}}, "task": {"id": 386, "owner": {"id": 37}, "assignee": {"id": 1027}}}} +} + +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": 73, "privilege": "business"}, "organization": null}, "resource": {"id": 379, "assignee": {"id": 508}, "organization": {"id": 688}, "project": {"id": 350, "owner": {"id": 748}, "assignee": {"id": 812}}, "task": {"id": 306, "owner": {"id": 73}, "assignee": {"id": 1060}}}} +} + +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": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 345, "assignee": {"id": 596}, "organization": {"id": 647}, "project": {"id": 379, "owner": {"id": 762}, "assignee": {"id": 856}}, "task": {"id": 386, "owner": {"id": 24}, "assignee": {"id": 1055}}}} +} + +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": 6, "privilege": "worker"}, "organization": null}, "resource": {"id": 318, "assignee": {"id": 545}, "organization": {"id": 622}, "project": {"id": 339, "owner": {"id": 777}, "assignee": {"id": 804}}, "task": {"id": 398, "owner": {"id": 6}, "assignee": {"id": 1030}}}} +} + +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": 40, "privilege": "none"}, "organization": null}, "resource": {"id": 365, "assignee": {"id": 544}, "organization": {"id": 655}, "project": {"id": 331, "owner": {"id": 774}, "assignee": {"id": 846}}, "task": {"id": 317, "owner": {"id": 40}, "assignee": {"id": 1040}}}} +} + +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": 88, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 573}, "organization": {"id": 637}, "project": {"id": 323, "owner": {"id": 736}, "assignee": {"id": 859}}, "task": {"id": 307, "owner": {"id": 900}, "assignee": {"id": 88}}}} +} + +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": 64, "privilege": "business"}, "organization": null}, "resource": {"id": 325, "assignee": {"id": 555}, "organization": {"id": 655}, "project": {"id": 319, "owner": {"id": 769}, "assignee": {"id": 864}}, "task": {"id": 392, "owner": {"id": 914}, "assignee": {"id": 64}}}} +} + +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": 93, "privilege": "user"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 531}, "organization": {"id": 694}, "project": {"id": 370, "owner": {"id": 734}, "assignee": {"id": 882}}, "task": {"id": 348, "owner": {"id": 943}, "assignee": {"id": 93}}}} +} + +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": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 580}, "organization": {"id": 623}, "project": {"id": 384, "owner": {"id": 754}, "assignee": {"id": 866}}, "task": {"id": 399, "owner": {"id": 901}, "assignee": {"id": 47}}}} +} + +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": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 579}, "organization": {"id": 651}, "project": {"id": 393, "owner": {"id": 766}, "assignee": {"id": 844}}, "task": {"id": 349, "owner": {"id": 923}, "assignee": {"id": 36}}}} +} + +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": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 372, "assignee": {"id": 23}, "organization": {"id": 689}, "project": {"id": 333, "owner": {"id": 704}, "assignee": {"id": 880}}, "task": {"id": 376, "owner": {"id": 939}, "assignee": {"id": 1033}}}} +} + +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": 53, "privilege": "business"}, "organization": null}, "resource": {"id": 325, "assignee": {"id": 53}, "organization": {"id": 621}, "project": {"id": 339, "owner": {"id": 782}, "assignee": {"id": 883}}, "task": {"id": 333, "owner": {"id": 967}, "assignee": {"id": 1038}}}} +} + +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": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 330, "assignee": {"id": 22}, "organization": {"id": 603}, "project": {"id": 386, "owner": {"id": 739}, "assignee": {"id": 860}}, "task": {"id": 378, "owner": {"id": 986}, "assignee": {"id": 1069}}}} +} + +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": 83, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 83}, "organization": {"id": 666}, "project": {"id": 354, "owner": {"id": 758}, "assignee": {"id": 822}}, "task": {"id": 361, "owner": {"id": 981}, "assignee": {"id": 1049}}}} +} + +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": 43, "privilege": "none"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 43}, "organization": {"id": 689}, "project": {"id": 357, "owner": {"id": 725}, "assignee": {"id": 884}}, "task": {"id": 355, "owner": {"id": 989}, "assignee": {"id": 1082}}}} +} + +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": 89, "privilege": "admin"}, "organization": null}, "resource": {"id": 356, "assignee": {"id": 549}, "organization": {"id": 634}, "project": {"id": 346, "owner": {"id": 710}, "assignee": {"id": 899}}, "task": {"id": 345, "owner": {"id": 986}, "assignee": {"id": 1035}}}} +} + +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": 19, "privilege": "business"}, "organization": null}, "resource": {"id": 307, "assignee": {"id": 510}, "organization": {"id": 603}, "project": {"id": 347, "owner": {"id": 770}, "assignee": {"id": 846}}, "task": {"id": 395, "owner": {"id": 900}, "assignee": {"id": 1046}}}} +} + +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": 60, "privilege": "user"}, "organization": null}, "resource": {"id": 310, "assignee": {"id": 503}, "organization": {"id": 620}, "project": {"id": 373, "owner": {"id": 788}, "assignee": {"id": 808}}, "task": {"id": 345, "owner": {"id": 968}, "assignee": {"id": 1086}}}} +} + +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": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 530}, "organization": {"id": 605}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 888}}, "task": {"id": 390, "owner": {"id": 942}, "assignee": {"id": 1013}}}} +} + +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": 47, "privilege": "none"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 541}, "organization": {"id": 623}, "project": {"id": 359, "owner": {"id": 768}, "assignee": {"id": 878}}, "task": {"id": 331, "owner": {"id": 959}, "assignee": {"id": 1081}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 541}, "organization": {"id": 141}, "project": {"id": 349, "owner": {"id": 46}, "assignee": {"id": 841}}, "task": {"id": 390, "owner": {"id": 985}, "assignee": {"id": 1028}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 596}, "organization": {"id": 620}, "project": {"id": 305, "owner": {"id": 4}, "assignee": {"id": 834}}, "task": {"id": 339, "owner": {"id": 927}, "assignee": {"id": 1087}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 557}, "organization": {"id": 124}, "project": {"id": 331, "owner": {"id": 10}, "assignee": {"id": 818}}, "task": {"id": 320, "owner": {"id": 961}, "assignee": {"id": 1082}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 540}, "organization": {"id": 672}, "project": {"id": 300, "owner": {"id": 10}, "assignee": {"id": 824}}, "task": {"id": 344, "owner": {"id": 977}, "assignee": {"id": 1056}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 561}, "organization": {"id": 145}, "project": {"id": 382, "owner": {"id": 21}, "assignee": {"id": 842}}, "task": {"id": 371, "owner": {"id": 985}, "assignee": {"id": 1051}}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 555}, "organization": {"id": 670}, "project": {"id": 332, "owner": {"id": 82}, "assignee": {"id": 873}}, "task": {"id": 355, "owner": {"id": 999}, "assignee": {"id": 1053}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 572}, "organization": {"id": 103}, "project": {"id": 378, "owner": {"id": 30}, "assignee": {"id": 869}}, "task": {"id": 324, "owner": {"id": 991}, "assignee": {"id": 1069}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 502}, "organization": {"id": 617}, "project": {"id": 314, "owner": {"id": 75}, "assignee": {"id": 848}}, "task": {"id": 380, "owner": {"id": 933}, "assignee": {"id": 1069}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 549}, "organization": {"id": 197}, "project": {"id": 302, "owner": {"id": 42}, "assignee": {"id": 833}}, "task": {"id": 394, "owner": {"id": 983}, "assignee": {"id": 1083}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 565}, "organization": {"id": 676}, "project": {"id": 334, "owner": {"id": 19}, "assignee": {"id": 878}}, "task": {"id": 327, "owner": {"id": 927}, "assignee": {"id": 1075}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 524}, "organization": {"id": 129}, "project": {"id": 358, "owner": {"id": 59}, "assignee": {"id": 856}}, "task": {"id": 309, "owner": {"id": 944}, "assignee": {"id": 1079}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 505}, "organization": {"id": 689}, "project": {"id": 381, "owner": {"id": 84}, "assignee": {"id": 832}}, "task": {"id": 366, "owner": {"id": 959}, "assignee": {"id": 1043}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 537}, "organization": {"id": 134}, "project": {"id": 329, "owner": {"id": 67}, "assignee": {"id": 891}}, "task": {"id": 371, "owner": {"id": 959}, "assignee": {"id": 1010}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 563}, "organization": {"id": 652}, "project": {"id": 392, "owner": {"id": 81}, "assignee": {"id": 814}}, "task": {"id": 322, "owner": {"id": 956}, "assignee": {"id": 1015}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 596}, "organization": {"id": 182}, "project": {"id": 376, "owner": {"id": 47}, "assignee": {"id": 846}}, "task": {"id": 351, "owner": {"id": 970}, "assignee": {"id": 1061}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 511}, "organization": {"id": 667}, "project": {"id": 392, "owner": {"id": 6}, "assignee": {"id": 841}}, "task": {"id": 332, "owner": {"id": 971}, "assignee": {"id": 1079}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 571}, "organization": {"id": 163}, "project": {"id": 323, "owner": {"id": 11}, "assignee": {"id": 825}}, "task": {"id": 369, "owner": {"id": 982}, "assignee": {"id": 1077}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 543}, "organization": {"id": 612}, "project": {"id": 395, "owner": {"id": 12}, "assignee": {"id": 882}}, "task": {"id": 378, "owner": {"id": 978}, "assignee": {"id": 1033}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 590}, "organization": {"id": 104}, "project": {"id": 317, "owner": {"id": 86}, "assignee": {"id": 894}}, "task": {"id": 357, "owner": {"id": 972}, "assignee": {"id": 1078}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 579}, "organization": {"id": 695}, "project": {"id": 385, "owner": {"id": 29}, "assignee": {"id": 815}}, "task": {"id": 386, "owner": {"id": 932}, "assignee": {"id": 1097}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 559}, "organization": {"id": 178}, "project": {"id": 334, "owner": {"id": 9}, "assignee": {"id": 884}}, "task": {"id": 349, "owner": {"id": 973}, "assignee": {"id": 1024}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 560}, "organization": {"id": 668}, "project": {"id": 334, "owner": {"id": 84}, "assignee": {"id": 826}}, "task": {"id": 375, "owner": {"id": 917}, "assignee": {"id": 1050}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 526}, "organization": {"id": 141}, "project": {"id": 343, "owner": {"id": 25}, "assignee": {"id": 857}}, "task": {"id": 388, "owner": {"id": 925}, "assignee": {"id": 1071}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 576}, "organization": {"id": 625}, "project": {"id": 330, "owner": {"id": 10}, "assignee": {"id": 821}}, "task": {"id": 395, "owner": {"id": 964}, "assignee": {"id": 1098}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 533}, "organization": {"id": 108}, "project": {"id": 342, "owner": {"id": 66}, "assignee": {"id": 859}}, "task": {"id": 332, "owner": {"id": 984}, "assignee": {"id": 1098}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 570}, "organization": {"id": 604}, "project": {"id": 300, "owner": {"id": 15}, "assignee": {"id": 866}}, "task": {"id": 303, "owner": {"id": 957}, "assignee": {"id": 1001}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 584}, "organization": {"id": 132}, "project": {"id": 367, "owner": {"id": 6}, "assignee": {"id": 892}}, "task": {"id": 373, "owner": {"id": 924}, "assignee": {"id": 1077}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 576}, "organization": {"id": 696}, "project": {"id": 318, "owner": {"id": 91}, "assignee": {"id": 886}}, "task": {"id": 317, "owner": {"id": 905}, "assignee": {"id": 1066}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 502}, "organization": {"id": 184}, "project": {"id": 313, "owner": {"id": 14}, "assignee": {"id": 807}}, "task": {"id": 338, "owner": {"id": 997}, "assignee": {"id": 1015}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 536}, "organization": {"id": 609}, "project": {"id": 381, "owner": {"id": 0}, "assignee": {"id": 830}}, "task": {"id": 381, "owner": {"id": 947}, "assignee": {"id": 1085}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 586}, "organization": {"id": 161}, "project": {"id": 383, "owner": {"id": 6}, "assignee": {"id": 866}}, "task": {"id": 389, "owner": {"id": 998}, "assignee": {"id": 1087}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 311, "assignee": {"id": 541}, "organization": {"id": 626}, "project": {"id": 390, "owner": {"id": 68}, "assignee": {"id": 856}}, "task": {"id": 362, "owner": {"id": 986}, "assignee": {"id": 1060}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 588}, "organization": {"id": 142}, "project": {"id": 377, "owner": {"id": 65}, "assignee": {"id": 887}}, "task": {"id": 383, "owner": {"id": 901}, "assignee": {"id": 1005}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 523}, "organization": {"id": 635}, "project": {"id": 354, "owner": {"id": 84}, "assignee": {"id": 805}}, "task": {"id": 358, "owner": {"id": 921}, "assignee": {"id": 1054}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 518}, "organization": {"id": 114}, "project": {"id": 336, "owner": {"id": 93}, "assignee": {"id": 837}}, "task": {"id": 315, "owner": {"id": 996}, "assignee": {"id": 1054}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 560}, "organization": {"id": 680}, "project": {"id": 328, "owner": {"id": 91}, "assignee": {"id": 888}}, "task": {"id": 395, "owner": {"id": 948}, "assignee": {"id": 1060}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 595}, "organization": {"id": 101}, "project": {"id": 353, "owner": {"id": 91}, "assignee": {"id": 894}}, "task": {"id": 327, "owner": {"id": 961}, "assignee": {"id": 1033}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 562}, "organization": {"id": 621}, "project": {"id": 322, "owner": {"id": 74}, "assignee": {"id": 814}}, "task": {"id": 342, "owner": {"id": 910}, "assignee": {"id": 1064}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 546}, "organization": {"id": 164}, "project": {"id": 370, "owner": {"id": 35}, "assignee": {"id": 871}}, "task": {"id": 399, "owner": {"id": 957}, "assignee": {"id": 1082}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 568}, "organization": {"id": 661}, "project": {"id": 396, "owner": {"id": 0}, "assignee": {"id": 834}}, "task": {"id": 355, "owner": {"id": 990}, "assignee": {"id": 1070}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 522}, "organization": {"id": 122}, "project": {"id": 345, "owner": {"id": 85}, "assignee": {"id": 862}}, "task": {"id": 398, "owner": {"id": 964}, "assignee": {"id": 1099}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 585}, "organization": {"id": 600}, "project": {"id": 325, "owner": {"id": 72}, "assignee": {"id": 835}}, "task": {"id": 338, "owner": {"id": 986}, "assignee": {"id": 1039}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 532}, "organization": {"id": 155}, "project": {"id": 319, "owner": {"id": 35}, "assignee": {"id": 882}}, "task": {"id": 364, "owner": {"id": 916}, "assignee": {"id": 1002}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 509}, "organization": {"id": 604}, "project": {"id": 333, "owner": {"id": 57}, "assignee": {"id": 878}}, "task": {"id": 317, "owner": {"id": 911}, "assignee": {"id": 1011}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 581}, "organization": {"id": 124}, "project": {"id": 366, "owner": {"id": 24}, "assignee": {"id": 890}}, "task": {"id": 366, "owner": {"id": 925}, "assignee": {"id": 1089}}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 517}, "organization": {"id": 655}, "project": {"id": 321, "owner": {"id": 41}, "assignee": {"id": 851}}, "task": {"id": 321, "owner": {"id": 960}, "assignee": {"id": 1008}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 554}, "organization": {"id": 121}, "project": {"id": 327, "owner": {"id": 71}, "assignee": {"id": 873}}, "task": {"id": 351, "owner": {"id": 910}, "assignee": {"id": 1043}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 551}, "organization": {"id": 621}, "project": {"id": 385, "owner": {"id": 65}, "assignee": {"id": 857}}, "task": {"id": 316, "owner": {"id": 903}, "assignee": {"id": 1039}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 572}, "organization": {"id": 168}, "project": {"id": 349, "owner": {"id": 3}, "assignee": {"id": 801}}, "task": {"id": 313, "owner": {"id": 953}, "assignee": {"id": 1074}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 575}, "organization": {"id": 664}, "project": {"id": 381, "owner": {"id": 77}, "assignee": {"id": 899}}, "task": {"id": 353, "owner": {"id": 951}, "assignee": {"id": 1053}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 532}, "organization": {"id": 122}, "project": {"id": 335, "owner": {"id": 764}, "assignee": {"id": 65}}, "task": {"id": 377, "owner": {"id": 924}, "assignee": {"id": 1038}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 501}, "organization": {"id": 686}, "project": {"id": 371, "owner": {"id": 781}, "assignee": {"id": 15}}, "task": {"id": 340, "owner": {"id": 950}, "assignee": {"id": 1066}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 542}, "organization": {"id": 187}, "project": {"id": 322, "owner": {"id": 771}, "assignee": {"id": 81}}, "task": {"id": 328, "owner": {"id": 909}, "assignee": {"id": 1057}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 569}, "organization": {"id": 626}, "project": {"id": 388, "owner": {"id": 799}, "assignee": {"id": 38}}, "task": {"id": 370, "owner": {"id": 954}, "assignee": {"id": 1073}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 547}, "organization": {"id": 111}, "project": {"id": 361, "owner": {"id": 703}, "assignee": {"id": 0}}, "task": {"id": 304, "owner": {"id": 955}, "assignee": {"id": 1049}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 519}, "organization": {"id": 647}, "project": {"id": 331, "owner": {"id": 724}, "assignee": {"id": 41}}, "task": {"id": 344, "owner": {"id": 920}, "assignee": {"id": 1093}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 562}, "organization": {"id": 140}, "project": {"id": 321, "owner": {"id": 757}, "assignee": {"id": 66}}, "task": {"id": 393, "owner": {"id": 908}, "assignee": {"id": 1093}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 524}, "organization": {"id": 655}, "project": {"id": 374, "owner": {"id": 795}, "assignee": {"id": 13}}, "task": {"id": 386, "owner": {"id": 995}, "assignee": {"id": 1080}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 555}, "organization": {"id": 135}, "project": {"id": 398, "owner": {"id": 774}, "assignee": {"id": 12}}, "task": {"id": 378, "owner": {"id": 907}, "assignee": {"id": 1076}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 587}, "organization": {"id": 618}, "project": {"id": 396, "owner": {"id": 714}, "assignee": {"id": 23}}, "task": {"id": 320, "owner": {"id": 973}, "assignee": {"id": 1089}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 590}, "organization": {"id": 136}, "project": {"id": 377, "owner": {"id": 719}, "assignee": {"id": 61}}, "task": {"id": 358, "owner": {"id": 972}, "assignee": {"id": 1051}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 561}, "organization": {"id": 615}, "project": {"id": 345, "owner": {"id": 709}, "assignee": {"id": 82}}, "task": {"id": 354, "owner": {"id": 974}, "assignee": {"id": 1085}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 553}, "organization": {"id": 170}, "project": {"id": 308, "owner": {"id": 778}, "assignee": {"id": 44}}, "task": {"id": 394, "owner": {"id": 944}, "assignee": {"id": 1086}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 536}, "organization": {"id": 632}, "project": {"id": 316, "owner": {"id": 746}, "assignee": {"id": 15}}, "task": {"id": 335, "owner": {"id": 919}, "assignee": {"id": 1058}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 538}, "organization": {"id": 142}, "project": {"id": 390, "owner": {"id": 700}, "assignee": {"id": 4}}, "task": {"id": 360, "owner": {"id": 977}, "assignee": {"id": 1003}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 513}, "organization": {"id": 624}, "project": {"id": 351, "owner": {"id": 741}, "assignee": {"id": 47}}, "task": {"id": 364, "owner": {"id": 997}, "assignee": {"id": 1095}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 507}, "organization": {"id": 184}, "project": {"id": 307, "owner": {"id": 749}, "assignee": {"id": 56}}, "task": {"id": 341, "owner": {"id": 918}, "assignee": {"id": 1058}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 575}, "organization": {"id": 676}, "project": {"id": 364, "owner": {"id": 743}, "assignee": {"id": 18}}, "task": {"id": 342, "owner": {"id": 910}, "assignee": {"id": 1012}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 540}, "organization": {"id": 163}, "project": {"id": 378, "owner": {"id": 733}, "assignee": {"id": 66}}, "task": {"id": 364, "owner": {"id": 958}, "assignee": {"id": 1058}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 567}, "organization": {"id": 658}, "project": {"id": 398, "owner": {"id": 743}, "assignee": {"id": 54}}, "task": {"id": 309, "owner": {"id": 981}, "assignee": {"id": 1076}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 538}, "organization": {"id": 176}, "project": {"id": 322, "owner": {"id": 738}, "assignee": {"id": 91}}, "task": {"id": 332, "owner": {"id": 944}, "assignee": {"id": 1082}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 581}, "organization": {"id": 652}, "project": {"id": 344, "owner": {"id": 749}, "assignee": {"id": 16}}, "task": {"id": 357, "owner": {"id": 932}, "assignee": {"id": 1043}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 568}, "organization": {"id": 113}, "project": {"id": 321, "owner": {"id": 734}, "assignee": {"id": 0}}, "task": {"id": 389, "owner": {"id": 924}, "assignee": {"id": 1077}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 549}, "organization": {"id": 671}, "project": {"id": 308, "owner": {"id": 755}, "assignee": {"id": 48}}, "task": {"id": 349, "owner": {"id": 972}, "assignee": {"id": 1033}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 574}, "organization": {"id": 160}, "project": {"id": 360, "owner": {"id": 709}, "assignee": {"id": 52}}, "task": {"id": 356, "owner": {"id": 948}, "assignee": {"id": 1034}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "assignee": {"id": 509}, "organization": {"id": 681}, "project": {"id": 368, "owner": {"id": 796}, "assignee": {"id": 9}}, "task": {"id": 324, "owner": {"id": 927}, "assignee": {"id": 1037}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 530}, "organization": {"id": 196}, "project": {"id": 304, "owner": {"id": 739}, "assignee": {"id": 95}}, "task": {"id": 343, "owner": {"id": 917}, "assignee": {"id": 1020}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 548}, "organization": {"id": 620}, "project": {"id": 370, "owner": {"id": 701}, "assignee": {"id": 50}}, "task": {"id": 315, "owner": {"id": 998}, "assignee": {"id": 1015}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 578}, "organization": {"id": 102}, "project": {"id": 366, "owner": {"id": 784}, "assignee": {"id": 89}}, "task": {"id": 321, "owner": {"id": 923}, "assignee": {"id": 1095}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 515}, "organization": {"id": 678}, "project": {"id": 320, "owner": {"id": 750}, "assignee": {"id": 94}}, "task": {"id": 335, "owner": {"id": 943}, "assignee": {"id": 1015}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 550}, "organization": {"id": 128}, "project": {"id": 304, "owner": {"id": 750}, "assignee": {"id": 91}}, "task": {"id": 327, "owner": {"id": 961}, "assignee": {"id": 1040}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 544}, "organization": {"id": 631}, "project": {"id": 354, "owner": {"id": 785}, "assignee": {"id": 82}}, "task": {"id": 301, "owner": {"id": 908}, "assignee": {"id": 1048}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 558}, "organization": {"id": 163}, "project": {"id": 355, "owner": {"id": 714}, "assignee": {"id": 99}}, "task": {"id": 382, "owner": {"id": 965}, "assignee": {"id": 1094}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 587}, "organization": {"id": 620}, "project": {"id": 399, "owner": {"id": 729}, "assignee": {"id": 53}}, "task": {"id": 313, "owner": {"id": 905}, "assignee": {"id": 1016}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 507}, "organization": {"id": 113}, "project": {"id": 320, "owner": {"id": 742}, "assignee": {"id": 72}}, "task": {"id": 327, "owner": {"id": 945}, "assignee": {"id": 1087}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 590}, "organization": {"id": 688}, "project": {"id": 340, "owner": {"id": 715}, "assignee": {"id": 64}}, "task": {"id": 313, "owner": {"id": 972}, "assignee": {"id": 1028}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 576}, "organization": {"id": 123}, "project": {"id": 363, "owner": {"id": 763}, "assignee": {"id": 22}}, "task": {"id": 312, "owner": {"id": 958}, "assignee": {"id": 1000}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 523}, "organization": {"id": 616}, "project": {"id": 345, "owner": {"id": 767}, "assignee": {"id": 19}}, "task": {"id": 391, "owner": {"id": 935}, "assignee": {"id": 1009}}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 516}, "organization": {"id": 169}, "project": {"id": 319, "owner": {"id": 727}, "assignee": {"id": 51}}, "task": {"id": 396, "owner": {"id": 922}, "assignee": {"id": 1074}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 513}, "organization": {"id": 604}, "project": {"id": 309, "owner": {"id": 762}, "assignee": {"id": 2}}, "task": {"id": 319, "owner": {"id": 981}, "assignee": {"id": 1011}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 507}, "organization": {"id": 138}, "project": {"id": 373, "owner": {"id": 709}, "assignee": {"id": 64}}, "task": {"id": 335, "owner": {"id": 906}, "assignee": {"id": 1057}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 574}, "organization": {"id": 675}, "project": {"id": 391, "owner": {"id": 762}, "assignee": {"id": 23}}, "task": {"id": 303, "owner": {"id": 958}, "assignee": {"id": 1025}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 570}, "organization": {"id": 173}, "project": {"id": 333, "owner": {"id": 787}, "assignee": {"id": 9}}, "task": {"id": 367, "owner": {"id": 984}, "assignee": {"id": 1050}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 513}, "organization": {"id": 680}, "project": {"id": 368, "owner": {"id": 790}, "assignee": {"id": 17}}, "task": {"id": 353, "owner": {"id": 911}, "assignee": {"id": 1096}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 504}, "organization": {"id": 136}, "project": {"id": 378, "owner": {"id": 711}, "assignee": {"id": 30}}, "task": {"id": 337, "owner": {"id": 914}, "assignee": {"id": 1084}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 580}, "organization": {"id": 654}, "project": {"id": 398, "owner": {"id": 796}, "assignee": {"id": 28}}, "task": {"id": 316, "owner": {"id": 909}, "assignee": {"id": 1042}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 514}, "organization": {"id": 154}, "project": {"id": 369, "owner": {"id": 736}, "assignee": {"id": 9}}, "task": {"id": 370, "owner": {"id": 900}, "assignee": {"id": 1086}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 554}, "organization": {"id": 666}, "project": {"id": 391, "owner": {"id": 736}, "assignee": {"id": 61}}, "task": {"id": 394, "owner": {"id": 938}, "assignee": {"id": 1035}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 550}, "organization": {"id": 178}, "project": {"id": 303, "owner": {"id": 779}, "assignee": {"id": 35}}, "task": {"id": 314, "owner": {"id": 986}, "assignee": {"id": 1086}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 501}, "organization": {"id": 643}, "project": {"id": 356, "owner": {"id": 741}, "assignee": {"id": 46}}, "task": {"id": 317, "owner": {"id": 955}, "assignee": {"id": 1098}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 534}, "organization": {"id": 196}, "project": {"id": 324, "owner": {"id": 726}, "assignee": {"id": 886}}, "task": {"id": 353, "owner": {"id": 78}, "assignee": {"id": 1026}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 522}, "organization": {"id": 664}, "project": {"id": 338, "owner": {"id": 718}, "assignee": {"id": 868}}, "task": {"id": 387, "owner": {"id": 80}, "assignee": {"id": 1040}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 583}, "organization": {"id": 105}, "project": {"id": 354, "owner": {"id": 729}, "assignee": {"id": 877}}, "task": {"id": 305, "owner": {"id": 20}, "assignee": {"id": 1027}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 529}, "organization": {"id": 616}, "project": {"id": 358, "owner": {"id": 798}, "assignee": {"id": 879}}, "task": {"id": 391, "owner": {"id": 93}, "assignee": {"id": 1007}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 557}, "organization": {"id": 147}, "project": {"id": 387, "owner": {"id": 720}, "assignee": {"id": 869}}, "task": {"id": 356, "owner": {"id": 19}, "assignee": {"id": 1078}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 577}, "organization": {"id": 649}, "project": {"id": 348, "owner": {"id": 710}, "assignee": {"id": 879}}, "task": {"id": 341, "owner": {"id": 3}, "assignee": {"id": 1045}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 549}, "organization": {"id": 128}, "project": {"id": 326, "owner": {"id": 748}, "assignee": {"id": 861}}, "task": {"id": 301, "owner": {"id": 37}, "assignee": {"id": 1060}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 546}, "organization": {"id": 616}, "project": {"id": 325, "owner": {"id": 720}, "assignee": {"id": 853}}, "task": {"id": 308, "owner": {"id": 51}, "assignee": {"id": 1020}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 572}, "organization": {"id": 173}, "project": {"id": 381, "owner": {"id": 796}, "assignee": {"id": 840}}, "task": {"id": 385, "owner": {"id": 49}, "assignee": {"id": 1024}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 523}, "organization": {"id": 635}, "project": {"id": 354, "owner": {"id": 708}, "assignee": {"id": 891}}, "task": {"id": 305, "owner": {"id": 52}, "assignee": {"id": 1090}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 597}, "organization": {"id": 134}, "project": {"id": 371, "owner": {"id": 751}, "assignee": {"id": 809}}, "task": {"id": 382, "owner": {"id": 35}, "assignee": {"id": 1074}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 574}, "organization": {"id": 609}, "project": {"id": 386, "owner": {"id": 788}, "assignee": {"id": 854}}, "task": {"id": 377, "owner": {"id": 67}, "assignee": {"id": 1072}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 525}, "organization": {"id": 162}, "project": {"id": 327, "owner": {"id": 783}, "assignee": {"id": 867}}, "task": {"id": 350, "owner": {"id": 41}, "assignee": {"id": 1047}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 533}, "organization": {"id": 661}, "project": {"id": 375, "owner": {"id": 792}, "assignee": {"id": 845}}, "task": {"id": 324, "owner": {"id": 11}, "assignee": {"id": 1003}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 514}, "organization": {"id": 128}, "project": {"id": 369, "owner": {"id": 722}, "assignee": {"id": 895}}, "task": {"id": 380, "owner": {"id": 81}, "assignee": {"id": 1058}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 595}, "organization": {"id": 600}, "project": {"id": 375, "owner": {"id": 760}, "assignee": {"id": 872}}, "task": {"id": 311, "owner": {"id": 79}, "assignee": {"id": 1085}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 558}, "organization": {"id": 149}, "project": {"id": 311, "owner": {"id": 742}, "assignee": {"id": 842}}, "task": {"id": 347, "owner": {"id": 16}, "assignee": {"id": 1030}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 568}, "organization": {"id": 603}, "project": {"id": 343, "owner": {"id": 725}, "assignee": {"id": 871}}, "task": {"id": 381, "owner": {"id": 57}, "assignee": {"id": 1028}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 517}, "organization": {"id": 174}, "project": {"id": 341, "owner": {"id": 794}, "assignee": {"id": 881}}, "task": {"id": 335, "owner": {"id": 60}, "assignee": {"id": 1091}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 530}, "organization": {"id": 678}, "project": {"id": 333, "owner": {"id": 774}, "assignee": {"id": 866}}, "task": {"id": 363, "owner": {"id": 4}, "assignee": {"id": 1031}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 529}, "organization": {"id": 194}, "project": {"id": 347, "owner": {"id": 766}, "assignee": {"id": 886}}, "task": {"id": 376, "owner": {"id": 35}, "assignee": {"id": 1030}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 578}, "organization": {"id": 613}, "project": {"id": 366, "owner": {"id": 718}, "assignee": {"id": 868}}, "task": {"id": 343, "owner": {"id": 70}, "assignee": {"id": 1086}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 534}, "organization": {"id": 120}, "project": {"id": 362, "owner": {"id": 738}, "assignee": {"id": 830}}, "task": {"id": 354, "owner": {"id": 50}, "assignee": {"id": 1084}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 531}, "organization": {"id": 650}, "project": {"id": 382, "owner": {"id": 718}, "assignee": {"id": 874}}, "task": {"id": 336, "owner": {"id": 19}, "assignee": {"id": 1078}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 577}, "organization": {"id": 143}, "project": {"id": 368, "owner": {"id": 766}, "assignee": {"id": 898}}, "task": {"id": 321, "owner": {"id": 88}, "assignee": {"id": 1022}}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 541}, "organization": {"id": 621}, "project": {"id": 391, "owner": {"id": 755}, "assignee": {"id": 801}}, "task": {"id": 385, "owner": {"id": 77}, "assignee": {"id": 1047}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 592}, "organization": {"id": 187}, "project": {"id": 325, "owner": {"id": 755}, "assignee": {"id": 882}}, "task": {"id": 385, "owner": {"id": 32}, "assignee": {"id": 1069}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 584}, "organization": {"id": 603}, "project": {"id": 391, "owner": {"id": 712}, "assignee": {"id": 887}}, "task": {"id": 359, "owner": {"id": 76}, "assignee": {"id": 1059}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 551}, "organization": {"id": 136}, "project": {"id": 334, "owner": {"id": 748}, "assignee": {"id": 867}}, "task": {"id": 320, "owner": {"id": 4}, "assignee": {"id": 1095}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 517}, "organization": {"id": 622}, "project": {"id": 337, "owner": {"id": 794}, "assignee": {"id": 897}}, "task": {"id": 346, "owner": {"id": 87}, "assignee": {"id": 1067}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 593}, "organization": {"id": 191}, "project": {"id": 327, "owner": {"id": 758}, "assignee": {"id": 899}}, "task": {"id": 331, "owner": {"id": 1}, "assignee": {"id": 1037}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 536}, "organization": {"id": 697}, "project": {"id": 301, "owner": {"id": 732}, "assignee": {"id": 870}}, "task": {"id": 306, "owner": {"id": 52}, "assignee": {"id": 1079}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 510}, "organization": {"id": 144}, "project": {"id": 363, "owner": {"id": 769}, "assignee": {"id": 859}}, "task": {"id": 379, "owner": {"id": 94}, "assignee": {"id": 1068}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 508}, "organization": {"id": 670}, "project": {"id": 368, "owner": {"id": 798}, "assignee": {"id": 888}}, "task": {"id": 340, "owner": {"id": 98}, "assignee": {"id": 1080}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 577}, "organization": {"id": 186}, "project": {"id": 361, "owner": {"id": 702}, "assignee": {"id": 819}}, "task": {"id": 330, "owner": {"id": 91}, "assignee": {"id": 1092}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 522}, "organization": {"id": 686}, "project": {"id": 389, "owner": {"id": 777}, "assignee": {"id": 873}}, "task": {"id": 355, "owner": {"id": 45}, "assignee": {"id": 1006}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 542}, "organization": {"id": 122}, "project": {"id": 327, "owner": {"id": 758}, "assignee": {"id": 805}}, "task": {"id": 376, "owner": {"id": 54}, "assignee": {"id": 1025}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 508}, "organization": {"id": 626}, "project": {"id": 394, "owner": {"id": 774}, "assignee": {"id": 877}}, "task": {"id": 363, "owner": {"id": 38}, "assignee": {"id": 1003}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 591}, "organization": {"id": 113}, "project": {"id": 312, "owner": {"id": 733}, "assignee": {"id": 837}}, "task": {"id": 352, "owner": {"id": 70}, "assignee": {"id": 1016}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 538}, "organization": {"id": 684}, "project": {"id": 343, "owner": {"id": 764}, "assignee": {"id": 806}}, "task": {"id": 365, "owner": {"id": 33}, "assignee": {"id": 1089}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 532}, "organization": {"id": 101}, "project": {"id": 302, "owner": {"id": 759}, "assignee": {"id": 851}}, "task": {"id": 301, "owner": {"id": 49}, "assignee": {"id": 1077}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 506}, "organization": {"id": 694}, "project": {"id": 355, "owner": {"id": 758}, "assignee": {"id": 869}}, "task": {"id": 316, "owner": {"id": 3}, "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": 3, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 557}, "organization": {"id": 103}, "project": {"id": 304, "owner": {"id": 705}, "assignee": {"id": 897}}, "task": {"id": 330, "owner": {"id": 3}, "assignee": {"id": 1003}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 570}, "organization": {"id": 663}, "project": {"id": 361, "owner": {"id": 774}, "assignee": {"id": 883}}, "task": {"id": 349, "owner": {"id": 32}, "assignee": {"id": 1045}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 548}, "organization": {"id": 137}, "project": {"id": 304, "owner": {"id": 723}, "assignee": {"id": 826}}, "task": {"id": 304, "owner": {"id": 1}, "assignee": {"id": 1019}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 560}, "organization": {"id": 619}, "project": {"id": 342, "owner": {"id": 753}, "assignee": {"id": 885}}, "task": {"id": 345, "owner": {"id": 96}, "assignee": {"id": 1021}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 535}, "organization": {"id": 147}, "project": {"id": 317, "owner": {"id": 749}, "assignee": {"id": 822}}, "task": {"id": 355, "owner": {"id": 89}, "assignee": {"id": 1051}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 511}, "organization": {"id": 602}, "project": {"id": 366, "owner": {"id": 711}, "assignee": {"id": 840}}, "task": {"id": 396, "owner": {"id": 6}, "assignee": {"id": 1073}}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 504}, "organization": {"id": 103}, "project": {"id": 381, "owner": {"id": 782}, "assignee": {"id": 894}}, "task": {"id": 323, "owner": {"id": 66}, "assignee": {"id": 1053}}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 591}, "organization": {"id": 654}, "project": {"id": 316, "owner": {"id": 759}, "assignee": {"id": 888}}, "task": {"id": 341, "owner": {"id": 41}, "assignee": {"id": 1027}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 544}, "organization": {"id": 157}, "project": {"id": 399, "owner": {"id": 762}, "assignee": {"id": 814}}, "task": {"id": 311, "owner": {"id": 912}, "assignee": {"id": 61}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 508}, "organization": {"id": 676}, "project": {"id": 327, "owner": {"id": 746}, "assignee": {"id": 866}}, "task": {"id": 311, "owner": {"id": 955}, "assignee": {"id": 20}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 505}, "organization": {"id": 123}, "project": {"id": 304, "owner": {"id": 714}, "assignee": {"id": 819}}, "task": {"id": 338, "owner": {"id": 966}, "assignee": {"id": 66}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 540}, "organization": {"id": 652}, "project": {"id": 339, "owner": {"id": 767}, "assignee": {"id": 861}}, "task": {"id": 303, "owner": {"id": 944}, "assignee": {"id": 54}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 527}, "organization": {"id": 149}, "project": {"id": 332, "owner": {"id": 766}, "assignee": {"id": 828}}, "task": {"id": 361, "owner": {"id": 972}, "assignee": {"id": 57}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 561}, "organization": {"id": 664}, "project": {"id": 335, "owner": {"id": 787}, "assignee": {"id": 821}}, "task": {"id": 396, "owner": {"id": 936}, "assignee": {"id": 35}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 533}, "organization": {"id": 192}, "project": {"id": 329, "owner": {"id": 747}, "assignee": {"id": 862}}, "task": {"id": 338, "owner": {"id": 985}, "assignee": {"id": 84}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 500}, "organization": {"id": 616}, "project": {"id": 308, "owner": {"id": 723}, "assignee": {"id": 826}}, "task": {"id": 361, "owner": {"id": 943}, "assignee": {"id": 14}}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 560}, "organization": {"id": 183}, "project": {"id": 386, "owner": {"id": 713}, "assignee": {"id": 814}}, "task": {"id": 381, "owner": {"id": 951}, "assignee": {"id": 87}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 545}, "organization": {"id": 689}, "project": {"id": 375, "owner": {"id": 701}, "assignee": {"id": 824}}, "task": {"id": 324, "owner": {"id": 933}, "assignee": {"id": 72}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 587}, "organization": {"id": 133}, "project": {"id": 342, "owner": {"id": 728}, "assignee": {"id": 880}}, "task": {"id": 316, "owner": {"id": 906}, "assignee": {"id": 3}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 583}, "organization": {"id": 620}, "project": {"id": 388, "owner": {"id": 744}, "assignee": {"id": 847}}, "task": {"id": 360, "owner": {"id": 928}, "assignee": {"id": 30}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 514}, "organization": {"id": 101}, "project": {"id": 301, "owner": {"id": 710}, "assignee": {"id": 838}}, "task": {"id": 334, "owner": {"id": 909}, "assignee": {"id": 55}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 574}, "organization": {"id": 652}, "project": {"id": 398, "owner": {"id": 718}, "assignee": {"id": 817}}, "task": {"id": 394, "owner": {"id": 999}, "assignee": {"id": 12}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 554}, "organization": {"id": 155}, "project": {"id": 393, "owner": {"id": 703}, "assignee": {"id": 885}}, "task": {"id": 335, "owner": {"id": 961}, "assignee": {"id": 16}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 574}, "organization": {"id": 620}, "project": {"id": 314, "owner": {"id": 725}, "assignee": {"id": 837}}, "task": {"id": 392, "owner": {"id": 933}, "assignee": {"id": 97}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 502}, "organization": {"id": 182}, "project": {"id": 365, "owner": {"id": 737}, "assignee": {"id": 804}}, "task": {"id": 386, "owner": {"id": 943}, "assignee": {"id": 26}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 594}, "organization": {"id": 667}, "project": {"id": 371, "owner": {"id": 747}, "assignee": {"id": 843}}, "task": {"id": 341, "owner": {"id": 911}, "assignee": {"id": 41}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 577}, "organization": {"id": 176}, "project": {"id": 379, "owner": {"id": 713}, "assignee": {"id": 887}}, "task": {"id": 387, "owner": {"id": 966}, "assignee": {"id": 70}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 509}, "organization": {"id": 623}, "project": {"id": 334, "owner": {"id": 712}, "assignee": {"id": 843}}, "task": {"id": 397, "owner": {"id": 907}, "assignee": {"id": 51}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 533}, "organization": {"id": 160}, "project": {"id": 328, "owner": {"id": 708}, "assignee": {"id": 890}}, "task": {"id": 326, "owner": {"id": 926}, "assignee": {"id": 73}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 595}, "organization": {"id": 673}, "project": {"id": 330, "owner": {"id": 765}, "assignee": {"id": 889}}, "task": {"id": 385, "owner": {"id": 990}, "assignee": {"id": 2}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 535}, "organization": {"id": 139}, "project": {"id": 314, "owner": {"id": 741}, "assignee": {"id": 885}}, "task": {"id": 380, "owner": {"id": 971}, "assignee": {"id": 0}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 563}, "organization": {"id": 663}, "project": {"id": 303, "owner": {"id": 723}, "assignee": {"id": 817}}, "task": {"id": 309, "owner": {"id": 907}, "assignee": {"id": 86}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 504}, "organization": {"id": 139}, "project": {"id": 378, "owner": {"id": 787}, "assignee": {"id": 821}}, "task": {"id": 349, "owner": {"id": 971}, "assignee": {"id": 4}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 593}, "organization": {"id": 642}, "project": {"id": 393, "owner": {"id": 765}, "assignee": {"id": 865}}, "task": {"id": 328, "owner": {"id": 937}, "assignee": {"id": 54}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 587}, "organization": {"id": 148}, "project": {"id": 367, "owner": {"id": 744}, "assignee": {"id": 803}}, "task": {"id": 349, "owner": {"id": 929}, "assignee": {"id": 45}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 562}, "organization": {"id": 664}, "project": {"id": 350, "owner": {"id": 727}, "assignee": {"id": 856}}, "task": {"id": 315, "owner": {"id": 935}, "assignee": {"id": 52}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 597}, "organization": {"id": 131}, "project": {"id": 309, "owner": {"id": 703}, "assignee": {"id": 856}}, "task": {"id": 343, "owner": {"id": 994}, "assignee": {"id": 43}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 530}, "organization": {"id": 623}, "project": {"id": 384, "owner": {"id": 794}, "assignee": {"id": 888}}, "task": {"id": 332, "owner": {"id": 975}, "assignee": {"id": 47}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 500}, "organization": {"id": 197}, "project": {"id": 374, "owner": {"id": 715}, "assignee": {"id": 884}}, "task": {"id": 347, "owner": {"id": 989}, "assignee": {"id": 70}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 566}, "organization": {"id": 639}, "project": {"id": 343, "owner": {"id": 789}, "assignee": {"id": 891}}, "task": {"id": 372, "owner": {"id": 943}, "assignee": {"id": 56}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 549}, "organization": {"id": 179}, "project": {"id": 352, "owner": {"id": 749}, "assignee": {"id": 882}}, "task": {"id": 385, "owner": {"id": 921}, "assignee": {"id": 22}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 558}, "organization": {"id": 680}, "project": {"id": 319, "owner": {"id": 702}, "assignee": {"id": 866}}, "task": {"id": 309, "owner": {"id": 997}, "assignee": {"id": 39}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 521}, "organization": {"id": 199}, "project": {"id": 398, "owner": {"id": 710}, "assignee": {"id": 815}}, "task": {"id": 366, "owner": {"id": 922}, "assignee": {"id": 45}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 585}, "organization": {"id": 686}, "project": {"id": 309, "owner": {"id": 700}, "assignee": {"id": 861}}, "task": {"id": 348, "owner": {"id": 996}, "assignee": {"id": 30}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 571}, "organization": {"id": 105}, "project": {"id": 337, "owner": {"id": 763}, "assignee": {"id": 807}}, "task": {"id": 350, "owner": {"id": 922}, "assignee": {"id": 38}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 543}, "organization": {"id": 624}, "project": {"id": 314, "owner": {"id": 737}, "assignee": {"id": 852}}, "task": {"id": 377, "owner": {"id": 942}, "assignee": {"id": 59}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 523}, "organization": {"id": 112}, "project": {"id": 334, "owner": {"id": 751}, "assignee": {"id": 885}}, "task": {"id": 330, "owner": {"id": 915}, "assignee": {"id": 83}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 570}, "organization": {"id": 622}, "project": {"id": 345, "owner": {"id": 707}, "assignee": {"id": 881}}, "task": {"id": 367, "owner": {"id": 901}, "assignee": {"id": 71}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 591}, "organization": {"id": 178}, "project": {"id": 387, "owner": {"id": 705}, "assignee": {"id": 813}}, "task": {"id": 357, "owner": {"id": 914}, "assignee": {"id": 65}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 385, "assignee": {"id": 569}, "organization": {"id": 669}, "project": {"id": 371, "owner": {"id": 702}, "assignee": {"id": 826}}, "task": {"id": 388, "owner": {"id": 974}, "assignee": {"id": 84}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 573}, "organization": {"id": 110}, "project": {"id": 386, "owner": {"id": 758}, "assignee": {"id": 870}}, "task": {"id": 341, "owner": {"id": 989}, "assignee": {"id": 37}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 532}, "organization": {"id": 643}, "project": {"id": 378, "owner": {"id": 760}, "assignee": {"id": 803}}, "task": {"id": 329, "owner": {"id": 980}, "assignee": {"id": 11}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 578}, "organization": {"id": 196}, "project": {"id": 392, "owner": {"id": 707}, "assignee": {"id": 868}}, "task": {"id": 309, "owner": {"id": 999}, "assignee": {"id": 37}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 558}, "organization": {"id": 627}, "project": {"id": 359, "owner": {"id": 755}, "assignee": {"id": 853}}, "task": {"id": 390, "owner": {"id": 922}, "assignee": {"id": 70}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 527}, "organization": {"id": 192}, "project": {"id": 380, "owner": {"id": 739}, "assignee": {"id": 866}}, "task": {"id": 322, "owner": {"id": 910}, "assignee": {"id": 35}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 566}, "organization": {"id": 672}, "project": {"id": 394, "owner": {"id": 760}, "assignee": {"id": 842}}, "task": {"id": 342, "owner": {"id": 970}, "assignee": {"id": 14}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 510}, "organization": {"id": 138}, "project": {"id": 375, "owner": {"id": 778}, "assignee": {"id": 848}}, "task": {"id": 334, "owner": {"id": 948}, "assignee": {"id": 91}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 502}, "organization": {"id": 624}, "project": {"id": 307, "owner": {"id": 700}, "assignee": {"id": 807}}, "task": {"id": 322, "owner": {"id": 961}, "assignee": {"id": 86}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 35}, "organization": {"id": 114}, "project": {"id": 326, "owner": {"id": 705}, "assignee": {"id": 860}}, "task": {"id": 351, "owner": {"id": 946}, "assignee": {"id": 1030}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 34}, "organization": {"id": 662}, "project": {"id": 305, "owner": {"id": 739}, "assignee": {"id": 849}}, "task": {"id": 329, "owner": {"id": 943}, "assignee": {"id": 1000}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 35}, "organization": {"id": 163}, "project": {"id": 336, "owner": {"id": 726}, "assignee": {"id": 867}}, "task": {"id": 370, "owner": {"id": 972}, "assignee": {"id": 1028}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 59}, "organization": {"id": 680}, "project": {"id": 346, "owner": {"id": 791}, "assignee": {"id": 868}}, "task": {"id": 366, "owner": {"id": 986}, "assignee": {"id": 1058}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 91}, "organization": {"id": 104}, "project": {"id": 377, "owner": {"id": 765}, "assignee": {"id": 845}}, "task": {"id": 368, "owner": {"id": 980}, "assignee": {"id": 1037}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 71}, "organization": {"id": 616}, "project": {"id": 336, "owner": {"id": 709}, "assignee": {"id": 835}}, "task": {"id": 387, "owner": {"id": 955}, "assignee": {"id": 1043}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 8}, "organization": {"id": 148}, "project": {"id": 386, "owner": {"id": 742}, "assignee": {"id": 808}}, "task": {"id": 348, "owner": {"id": 998}, "assignee": {"id": 1054}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 79}, "organization": {"id": 641}, "project": {"id": 301, "owner": {"id": 789}, "assignee": {"id": 885}}, "task": {"id": 304, "owner": {"id": 937}, "assignee": {"id": 1064}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 59}, "organization": {"id": 124}, "project": {"id": 339, "owner": {"id": 720}, "assignee": {"id": 884}}, "task": {"id": 335, "owner": {"id": 985}, "assignee": {"id": 1095}}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 83}, "organization": {"id": 681}, "project": {"id": 356, "owner": {"id": 780}, "assignee": {"id": 878}}, "task": {"id": 316, "owner": {"id": 918}, "assignee": {"id": 1022}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 57}, "organization": {"id": 158}, "project": {"id": 319, "owner": {"id": 773}, "assignee": {"id": 801}}, "task": {"id": 393, "owner": {"id": 911}, "assignee": {"id": 1098}}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 93}, "organization": {"id": 661}, "project": {"id": 337, "owner": {"id": 735}, "assignee": {"id": 864}}, "task": {"id": 394, "owner": {"id": 958}, "assignee": {"id": 1059}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 15}, "organization": {"id": 183}, "project": {"id": 336, "owner": {"id": 729}, "assignee": {"id": 853}}, "task": {"id": 331, "owner": {"id": 949}, "assignee": {"id": 1017}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 65}, "organization": {"id": 687}, "project": {"id": 391, "owner": {"id": 781}, "assignee": {"id": 817}}, "task": {"id": 363, "owner": {"id": 969}, "assignee": {"id": 1041}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 73}, "organization": {"id": 132}, "project": {"id": 315, "owner": {"id": 748}, "assignee": {"id": 803}}, "task": {"id": 312, "owner": {"id": 928}, "assignee": {"id": 1097}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 79}, "organization": {"id": 680}, "project": {"id": 383, "owner": {"id": 799}, "assignee": {"id": 825}}, "task": {"id": 363, "owner": {"id": 982}, "assignee": {"id": 1090}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 25}, "organization": {"id": 108}, "project": {"id": 354, "owner": {"id": 765}, "assignee": {"id": 840}}, "task": {"id": 324, "owner": {"id": 928}, "assignee": {"id": 1089}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 76}, "organization": {"id": 600}, "project": {"id": 341, "owner": {"id": 722}, "assignee": {"id": 891}}, "task": {"id": 345, "owner": {"id": 977}, "assignee": {"id": 1080}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 45}, "organization": {"id": 147}, "project": {"id": 393, "owner": {"id": 776}, "assignee": {"id": 833}}, "task": {"id": 341, "owner": {"id": 926}, "assignee": {"id": 1063}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 34}, "organization": {"id": 695}, "project": {"id": 398, "owner": {"id": 797}, "assignee": {"id": 892}}, "task": {"id": 354, "owner": {"id": 969}, "assignee": {"id": 1023}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 95}, "organization": {"id": 180}, "project": {"id": 308, "owner": {"id": 782}, "assignee": {"id": 838}}, "task": {"id": 331, "owner": {"id": 980}, "assignee": {"id": 1068}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 81}, "organization": {"id": 662}, "project": {"id": 316, "owner": {"id": 758}, "assignee": {"id": 875}}, "task": {"id": 387, "owner": {"id": 997}, "assignee": {"id": 1001}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 5}, "organization": {"id": 120}, "project": {"id": 315, "owner": {"id": 704}, "assignee": {"id": 871}}, "task": {"id": 369, "owner": {"id": 901}, "assignee": {"id": 1078}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 42}, "organization": {"id": 608}, "project": {"id": 351, "owner": {"id": 724}, "assignee": {"id": 848}}, "task": {"id": 381, "owner": {"id": 998}, "assignee": {"id": 1084}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 10}, "organization": {"id": 177}, "project": {"id": 304, "owner": {"id": 703}, "assignee": {"id": 833}}, "task": {"id": 392, "owner": {"id": 989}, "assignee": {"id": 1052}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 16}, "organization": {"id": 689}, "project": {"id": 304, "owner": {"id": 772}, "assignee": {"id": 838}}, "task": {"id": 350, "owner": {"id": 932}, "assignee": {"id": 1039}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 5}, "organization": {"id": 135}, "project": {"id": 313, "owner": {"id": 734}, "assignee": {"id": 836}}, "task": {"id": 319, "owner": {"id": 939}, "assignee": {"id": 1079}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 84}, "organization": {"id": 606}, "project": {"id": 332, "owner": {"id": 789}, "assignee": {"id": 845}}, "task": {"id": 370, "owner": {"id": 932}, "assignee": {"id": 1047}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 83}, "organization": {"id": 123}, "project": {"id": 399, "owner": {"id": 791}, "assignee": {"id": 827}}, "task": {"id": 306, "owner": {"id": 988}, "assignee": {"id": 1003}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 343, "assignee": {"id": 16}, "organization": {"id": 633}, "project": {"id": 321, "owner": {"id": 765}, "assignee": {"id": 835}}, "task": {"id": 370, "owner": {"id": 912}, "assignee": {"id": 1052}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 13}, "organization": {"id": 120}, "project": {"id": 383, "owner": {"id": 706}, "assignee": {"id": 881}}, "task": {"id": 316, "owner": {"id": 917}, "assignee": {"id": 1077}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 99}, "organization": {"id": 642}, "project": {"id": 389, "owner": {"id": 755}, "assignee": {"id": 892}}, "task": {"id": 380, "owner": {"id": 947}, "assignee": {"id": 1049}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 47}, "organization": {"id": 185}, "project": {"id": 348, "owner": {"id": 786}, "assignee": {"id": 872}}, "task": {"id": 322, "owner": {"id": 977}, "assignee": {"id": 1042}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 1}, "organization": {"id": 623}, "project": {"id": 358, "owner": {"id": 771}, "assignee": {"id": 821}}, "task": {"id": 366, "owner": {"id": 981}, "assignee": {"id": 1023}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 63}, "organization": {"id": 175}, "project": {"id": 312, "owner": {"id": 764}, "assignee": {"id": 810}}, "task": {"id": 312, "owner": {"id": 927}, "assignee": {"id": 1007}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 30}, "organization": {"id": 698}, "project": {"id": 324, "owner": {"id": 772}, "assignee": {"id": 847}}, "task": {"id": 362, "owner": {"id": 948}, "assignee": {"id": 1058}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 42}, "organization": {"id": 148}, "project": {"id": 364, "owner": {"id": 777}, "assignee": {"id": 837}}, "task": {"id": 309, "owner": {"id": 943}, "assignee": {"id": 1093}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 69}, "organization": {"id": 613}, "project": {"id": 380, "owner": {"id": 743}, "assignee": {"id": 841}}, "task": {"id": 321, "owner": {"id": 988}, "assignee": {"id": 1059}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 21}, "organization": {"id": 120}, "project": {"id": 363, "owner": {"id": 747}, "assignee": {"id": 894}}, "task": {"id": 366, "owner": {"id": 986}, "assignee": {"id": 1071}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 21}, "organization": {"id": 670}, "project": {"id": 353, "owner": {"id": 773}, "assignee": {"id": 865}}, "task": {"id": 386, "owner": {"id": 998}, "assignee": {"id": 1070}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 78}, "organization": {"id": 188}, "project": {"id": 367, "owner": {"id": 799}, "assignee": {"id": 884}}, "task": {"id": 312, "owner": {"id": 950}, "assignee": {"id": 1053}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 34}, "organization": {"id": 619}, "project": {"id": 399, "owner": {"id": 715}, "assignee": {"id": 824}}, "task": {"id": 398, "owner": {"id": 903}, "assignee": {"id": 1063}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 48}, "organization": {"id": 172}, "project": {"id": 332, "owner": {"id": 795}, "assignee": {"id": 810}}, "task": {"id": 356, "owner": {"id": 997}, "assignee": {"id": 1084}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 19}, "organization": {"id": 628}, "project": {"id": 387, "owner": {"id": 794}, "assignee": {"id": 876}}, "task": {"id": 305, "owner": {"id": 915}, "assignee": {"id": 1021}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 1}, "organization": {"id": 124}, "project": {"id": 372, "owner": {"id": 733}, "assignee": {"id": 897}}, "task": {"id": 391, "owner": {"id": 988}, "assignee": {"id": 1059}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 85}, "organization": {"id": 600}, "project": {"id": 382, "owner": {"id": 794}, "assignee": {"id": 850}}, "task": {"id": 352, "owner": {"id": 980}, "assignee": {"id": 1080}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 73}, "organization": {"id": 196}, "project": {"id": 320, "owner": {"id": 798}, "assignee": {"id": 852}}, "task": {"id": 303, "owner": {"id": 909}, "assignee": {"id": 1011}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 68}, "organization": {"id": 698}, "project": {"id": 329, "owner": {"id": 702}, "assignee": {"id": 834}}, "task": {"id": 352, "owner": {"id": 979}, "assignee": {"id": 1009}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 17}, "organization": {"id": 128}, "project": {"id": 338, "owner": {"id": 709}, "assignee": {"id": 836}}, "task": {"id": 381, "owner": {"id": 944}, "assignee": {"id": 1067}}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 94}, "organization": {"id": 678}, "project": {"id": 393, "owner": {"id": 747}, "assignee": {"id": 878}}, "task": {"id": 336, "owner": {"id": 922}, "assignee": {"id": 1031}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 510}, "organization": {"id": 161}, "project": {"id": 353, "owner": {"id": 720}, "assignee": {"id": 831}}, "task": {"id": 331, "owner": {"id": 966}, "assignee": {"id": 1028}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 548}, "organization": {"id": 658}, "project": {"id": 321, "owner": {"id": 701}, "assignee": {"id": 856}}, "task": {"id": 397, "owner": {"id": 918}, "assignee": {"id": 1056}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 533}, "organization": {"id": 103}, "project": {"id": 373, "owner": {"id": 750}, "assignee": {"id": 866}}, "task": {"id": 353, "owner": {"id": 981}, "assignee": {"id": 1057}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 595}, "organization": {"id": 670}, "project": {"id": 380, "owner": {"id": 737}, "assignee": {"id": 863}}, "task": {"id": 308, "owner": {"id": 948}, "assignee": {"id": 1027}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 523}, "organization": {"id": 198}, "project": {"id": 331, "owner": {"id": 755}, "assignee": {"id": 801}}, "task": {"id": 362, "owner": {"id": 914}, "assignee": {"id": 1057}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 545}, "organization": {"id": 618}, "project": {"id": 353, "owner": {"id": 773}, "assignee": {"id": 805}}, "task": {"id": 368, "owner": {"id": 904}, "assignee": {"id": 1081}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 513}, "organization": {"id": 197}, "project": {"id": 349, "owner": {"id": 720}, "assignee": {"id": 854}}, "task": {"id": 377, "owner": {"id": 921}, "assignee": {"id": 1073}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 589}, "organization": {"id": 677}, "project": {"id": 336, "owner": {"id": 791}, "assignee": {"id": 861}}, "task": {"id": 371, "owner": {"id": 972}, "assignee": {"id": 1036}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 559}, "organization": {"id": 183}, "project": {"id": 333, "owner": {"id": 796}, "assignee": {"id": 829}}, "task": {"id": 381, "owner": {"id": 943}, "assignee": {"id": 1092}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 518}, "organization": {"id": 627}, "project": {"id": 371, "owner": {"id": 793}, "assignee": {"id": 858}}, "task": {"id": 333, "owner": {"id": 915}, "assignee": {"id": 1064}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 518}, "organization": {"id": 170}, "project": {"id": 341, "owner": {"id": 736}, "assignee": {"id": 872}}, "task": {"id": 311, "owner": {"id": 969}, "assignee": {"id": 1013}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 554}, "organization": {"id": 621}, "project": {"id": 374, "owner": {"id": 716}, "assignee": {"id": 853}}, "task": {"id": 392, "owner": {"id": 990}, "assignee": {"id": 1096}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 545}, "organization": {"id": 103}, "project": {"id": 301, "owner": {"id": 777}, "assignee": {"id": 898}}, "task": {"id": 332, "owner": {"id": 995}, "assignee": {"id": 1029}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 565}, "organization": {"id": 627}, "project": {"id": 382, "owner": {"id": 745}, "assignee": {"id": 857}}, "task": {"id": 344, "owner": {"id": 983}, "assignee": {"id": 1069}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 592}, "organization": {"id": 123}, "project": {"id": 336, "owner": {"id": 725}, "assignee": {"id": 861}}, "task": {"id": 300, "owner": {"id": 922}, "assignee": {"id": 1008}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 547}, "organization": {"id": 633}, "project": {"id": 339, "owner": {"id": 753}, "assignee": {"id": 843}}, "task": {"id": 345, "owner": {"id": 917}, "assignee": {"id": 1032}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 593}, "organization": {"id": 103}, "project": {"id": 347, "owner": {"id": 728}, "assignee": {"id": 848}}, "task": {"id": 349, "owner": {"id": 920}, "assignee": {"id": 1023}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 591}, "organization": {"id": 693}, "project": {"id": 304, "owner": {"id": 723}, "assignee": {"id": 808}}, "task": {"id": 392, "owner": {"id": 970}, "assignee": {"id": 1078}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 559}, "organization": {"id": 152}, "project": {"id": 398, "owner": {"id": 778}, "assignee": {"id": 839}}, "task": {"id": 312, "owner": {"id": 932}, "assignee": {"id": 1050}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 533}, "organization": {"id": 637}, "project": {"id": 339, "owner": {"id": 730}, "assignee": {"id": 862}}, "task": {"id": 372, "owner": {"id": 983}, "assignee": {"id": 1027}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 510}, "organization": {"id": 108}, "project": {"id": 391, "owner": {"id": 720}, "assignee": {"id": 809}}, "task": {"id": 380, "owner": {"id": 905}, "assignee": {"id": 1081}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 546}, "organization": {"id": 634}, "project": {"id": 330, "owner": {"id": 708}, "assignee": {"id": 879}}, "task": {"id": 339, "owner": {"id": 963}, "assignee": {"id": 1076}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 551}, "organization": {"id": 138}, "project": {"id": 348, "owner": {"id": 730}, "assignee": {"id": 800}}, "task": {"id": 371, "owner": {"id": 931}, "assignee": {"id": 1031}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 593}, "organization": {"id": 624}, "project": {"id": 371, "owner": {"id": 784}, "assignee": {"id": 835}}, "task": {"id": 361, "owner": {"id": 932}, "assignee": {"id": 1002}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 539}, "organization": {"id": 161}, "project": {"id": 375, "owner": {"id": 705}, "assignee": {"id": 881}}, "task": {"id": 331, "owner": {"id": 906}, "assignee": {"id": 1021}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 501}, "organization": {"id": 675}, "project": {"id": 397, "owner": {"id": 743}, "assignee": {"id": 833}}, "task": {"id": 355, "owner": {"id": 963}, "assignee": {"id": 1052}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 505}, "organization": {"id": 167}, "project": {"id": 335, "owner": {"id": 722}, "assignee": {"id": 866}}, "task": {"id": 398, "owner": {"id": 912}, "assignee": {"id": 1065}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 597}, "organization": {"id": 651}, "project": {"id": 380, "owner": {"id": 770}, "assignee": {"id": 825}}, "task": {"id": 377, "owner": {"id": 930}, "assignee": {"id": 1075}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 573}, "organization": {"id": 176}, "project": {"id": 368, "owner": {"id": 758}, "assignee": {"id": 875}}, "task": {"id": 321, "owner": {"id": 940}, "assignee": {"id": 1009}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 578}, "organization": {"id": 683}, "project": {"id": 326, "owner": {"id": 736}, "assignee": {"id": 896}}, "task": {"id": 351, "owner": {"id": 962}, "assignee": {"id": 1011}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 579}, "organization": {"id": 138}, "project": {"id": 311, "owner": {"id": 706}, "assignee": {"id": 804}}, "task": {"id": 337, "owner": {"id": 918}, "assignee": {"id": 1059}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 556}, "organization": {"id": 659}, "project": {"id": 310, "owner": {"id": 772}, "assignee": {"id": 853}}, "task": {"id": 344, "owner": {"id": 976}, "assignee": {"id": 1050}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 534}, "organization": {"id": 138}, "project": {"id": 375, "owner": {"id": 737}, "assignee": {"id": 809}}, "task": {"id": 345, "owner": {"id": 927}, "assignee": {"id": 1071}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 540}, "organization": {"id": 642}, "project": {"id": 392, "owner": {"id": 736}, "assignee": {"id": 890}}, "task": {"id": 333, "owner": {"id": 997}, "assignee": {"id": 1024}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 520}, "organization": {"id": 175}, "project": {"id": 316, "owner": {"id": 744}, "assignee": {"id": 814}}, "task": {"id": 351, "owner": {"id": 935}, "assignee": {"id": 1019}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 539}, "organization": {"id": 611}, "project": {"id": 355, "owner": {"id": 758}, "assignee": {"id": 805}}, "task": {"id": 367, "owner": {"id": 992}, "assignee": {"id": 1026}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 577}, "organization": {"id": 173}, "project": {"id": 300, "owner": {"id": 723}, "assignee": {"id": 805}}, "task": {"id": 385, "owner": {"id": 994}, "assignee": {"id": 1063}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 554}, "organization": {"id": 682}, "project": {"id": 334, "owner": {"id": 722}, "assignee": {"id": 825}}, "task": {"id": 345, "owner": {"id": 914}, "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": 53, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 579}, "organization": {"id": 156}, "project": {"id": 351, "owner": {"id": 705}, "assignee": {"id": 855}}, "task": {"id": 325, "owner": {"id": 974}, "assignee": {"id": 1089}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 542}, "organization": {"id": 623}, "project": {"id": 391, "owner": {"id": 778}, "assignee": {"id": 854}}, "task": {"id": 360, "owner": {"id": 990}, "assignee": {"id": 1015}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 556}, "organization": {"id": 138}, "project": {"id": 365, "owner": {"id": 706}, "assignee": {"id": 848}}, "task": {"id": 348, "owner": {"id": 950}, "assignee": {"id": 1037}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 529}, "organization": {"id": 656}, "project": {"id": 350, "owner": {"id": 798}, "assignee": {"id": 817}}, "task": {"id": 324, "owner": {"id": 969}, "assignee": {"id": 1052}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 589}, "organization": {"id": 139}, "project": {"id": 322, "owner": {"id": 742}, "assignee": {"id": 838}}, "task": {"id": 383, "owner": {"id": 967}, "assignee": {"id": 1032}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 550}, "organization": {"id": 619}, "project": {"id": 373, "owner": {"id": 775}, "assignee": {"id": 851}}, "task": {"id": 322, "owner": {"id": 941}, "assignee": {"id": 1091}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 536}, "organization": {"id": 163}, "project": {"id": 312, "owner": {"id": 755}, "assignee": {"id": 861}}, "task": {"id": 353, "owner": {"id": 971}, "assignee": {"id": 1076}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "assignee": {"id": 540}, "organization": {"id": 679}, "project": {"id": 329, "owner": {"id": 707}, "assignee": {"id": 809}}, "task": {"id": 353, "owner": {"id": 956}, "assignee": {"id": 1070}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 589}, "organization": {"id": 112}, "project": {"id": 308, "owner": {"id": 760}, "assignee": {"id": 808}}, "task": {"id": 360, "owner": {"id": 948}, "assignee": {"id": 1057}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 545}, "organization": {"id": 635}, "project": {"id": 387, "owner": {"id": 769}, "assignee": {"id": 828}}, "task": {"id": 317, "owner": {"id": 993}, "assignee": {"id": 1022}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 569}, "organization": {"id": 191}, "project": {"id": 341, "owner": {"id": 706}, "assignee": {"id": 892}}, "task": {"id": 318, "owner": {"id": 964}, "assignee": {"id": 1052}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 588}, "organization": {"id": 609}, "project": {"id": 325, "owner": {"id": 785}, "assignee": {"id": 826}}, "task": {"id": 358, "owner": {"id": 948}, "assignee": {"id": 1021}}}} +} + +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": 57, "privilege": "admin"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 599}, "organization": {"id": 640}, "project": {"id": 377, "owner": {"id": 57}, "assignee": {"id": 837}}, "task": {"id": 317, "owner": {"id": 915}, "assignee": {"id": 1036}}}} +} + +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": 69, "privilege": "business"}, "organization": null}, "resource": {"id": 318, "assignee": {"id": 515}, "organization": {"id": 697}, "project": {"id": 362, "owner": {"id": 69}, "assignee": {"id": 805}}, "task": {"id": 306, "owner": {"id": 981}, "assignee": {"id": 1075}}}} +} + +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": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 596}, "organization": {"id": 611}, "project": {"id": 321, "owner": {"id": 53}, "assignee": {"id": 845}}, "task": {"id": 358, "owner": {"id": 962}, "assignee": {"id": 1088}}}} +} + +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": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "assignee": {"id": 573}, "organization": {"id": 677}, "project": {"id": 364, "owner": {"id": 39}, "assignee": {"id": 831}}, "task": {"id": 376, "owner": {"id": 980}, "assignee": {"id": 1091}}}} +} + +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": 66, "privilege": "none"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 510}, "organization": {"id": 639}, "project": {"id": 324, "owner": {"id": 66}, "assignee": {"id": 853}}, "task": {"id": 367, "owner": {"id": 994}, "assignee": {"id": 1006}}}} +} + +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": 91, "privilege": "admin"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 523}, "organization": {"id": 608}, "project": {"id": 304, "owner": {"id": 784}, "assignee": {"id": 91}}, "task": {"id": 310, "owner": {"id": 903}, "assignee": {"id": 1027}}}} +} + +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": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 524}, "organization": {"id": 609}, "project": {"id": 353, "owner": {"id": 750}, "assignee": {"id": 17}}, "task": {"id": 334, "owner": {"id": 902}, "assignee": {"id": 1007}}}} +} + +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": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 528}, "organization": {"id": 669}, "project": {"id": 339, "owner": {"id": 704}, "assignee": {"id": 88}}, "task": {"id": 331, "owner": {"id": 991}, "assignee": {"id": 1021}}}} +} + +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": 33, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 581}, "organization": {"id": 663}, "project": {"id": 347, "owner": {"id": 742}, "assignee": {"id": 33}}, "task": {"id": 385, "owner": {"id": 999}, "assignee": {"id": 1082}}}} +} + +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": 34, "privilege": "none"}, "organization": null}, "resource": {"id": 386, "assignee": {"id": 571}, "organization": {"id": 694}, "project": {"id": 321, "owner": {"id": 722}, "assignee": {"id": 34}}, "task": {"id": 367, "owner": {"id": 908}, "assignee": {"id": 1081}}}} +} + +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": 87, "privilege": "admin"}, "organization": null}, "resource": {"id": 391, "assignee": {"id": 559}, "organization": {"id": 643}, "project": {"id": 357, "owner": {"id": 712}, "assignee": {"id": 840}}, "task": {"id": 351, "owner": {"id": 87}, "assignee": {"id": 1047}}}} +} + +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": 22, "privilege": "business"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 583}, "organization": {"id": 693}, "project": {"id": 360, "owner": {"id": 720}, "assignee": {"id": 891}}, "task": {"id": 334, "owner": {"id": 22}, "assignee": {"id": 1052}}}} +} + +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": 4, "privilege": "user"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 559}, "organization": {"id": 631}, "project": {"id": 319, "owner": {"id": 700}, "assignee": {"id": 829}}, "task": {"id": 386, "owner": {"id": 4}, "assignee": {"id": 1068}}}} +} + +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": 6, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "assignee": {"id": 549}, "organization": {"id": 647}, "project": {"id": 322, "owner": {"id": 776}, "assignee": {"id": 881}}, "task": {"id": 384, "owner": {"id": 6}, "assignee": {"id": 1020}}}} +} + +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": 17, "privilege": "none"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 509}, "organization": {"id": 603}, "project": {"id": 387, "owner": {"id": 751}, "assignee": {"id": 812}}, "task": {"id": 312, "owner": {"id": 17}, "assignee": {"id": 1087}}}} +} + +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": 11, "privilege": "admin"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 516}, "organization": {"id": 659}, "project": {"id": 353, "owner": {"id": 752}, "assignee": {"id": 819}}, "task": {"id": 394, "owner": {"id": 983}, "assignee": {"id": 11}}}} +} + +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": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 538}, "organization": {"id": 647}, "project": {"id": 330, "owner": {"id": 713}, "assignee": {"id": 860}}, "task": {"id": 368, "owner": {"id": 957}, "assignee": {"id": 90}}}} +} + +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": 31, "privilege": "user"}, "organization": null}, "resource": {"id": 379, "assignee": {"id": 570}, "organization": {"id": 637}, "project": {"id": 348, "owner": {"id": 723}, "assignee": {"id": 857}}, "task": {"id": 318, "owner": {"id": 966}, "assignee": {"id": 31}}}} +} + +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": 96, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "assignee": {"id": 565}, "organization": {"id": 667}, "project": {"id": 338, "owner": {"id": 749}, "assignee": {"id": 855}}, "task": {"id": 378, "owner": {"id": 944}, "assignee": {"id": 96}}}} +} + +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": 57, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 567}, "organization": {"id": 622}, "project": {"id": 338, "owner": {"id": 744}, "assignee": {"id": 858}}, "task": {"id": 304, "owner": {"id": 904}, "assignee": {"id": 57}}}} +} + +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": 20, "privilege": "admin"}, "organization": null}, "resource": {"id": 395, "assignee": {"id": 20}, "organization": {"id": 692}, "project": {"id": 358, "owner": {"id": 733}, "assignee": {"id": 803}}, "task": {"id": 344, "owner": {"id": 913}, "assignee": {"id": 1040}}}} +} + +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": 96, "privilege": "business"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 96}, "organization": {"id": 690}, "project": {"id": 328, "owner": {"id": 745}, "assignee": {"id": 840}}, "task": {"id": 325, "owner": {"id": 963}, "assignee": {"id": 1053}}}} +} + +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": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 9}, "organization": {"id": 603}, "project": {"id": 342, "owner": {"id": 775}, "assignee": {"id": 801}}, "task": {"id": 312, "owner": {"id": 955}, "assignee": {"id": 1000}}}} +} + +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": 18, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "assignee": {"id": 18}, "organization": {"id": 610}, "project": {"id": 361, "owner": {"id": 784}, "assignee": {"id": 829}}, "task": {"id": 316, "owner": {"id": 966}, "assignee": {"id": 1069}}}} +} + +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": 55, "privilege": "none"}, "organization": null}, "resource": {"id": 361, "assignee": {"id": 55}, "organization": {"id": 677}, "project": {"id": 368, "owner": {"id": 737}, "assignee": {"id": 848}}, "task": {"id": 364, "owner": {"id": 989}, "assignee": {"id": 1048}}}} +} + +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": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 306, "assignee": {"id": 575}, "organization": {"id": 661}, "project": {"id": 378, "owner": {"id": 788}, "assignee": {"id": 867}}, "task": {"id": 342, "owner": {"id": 971}, "assignee": {"id": 1011}}}} +} + +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": 44, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "assignee": {"id": 585}, "organization": {"id": 607}, "project": {"id": 352, "owner": {"id": 700}, "assignee": {"id": 806}}, "task": {"id": 304, "owner": {"id": 970}, "assignee": {"id": 1047}}}} +} + +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": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "assignee": {"id": 554}, "organization": {"id": 691}, "project": {"id": 367, "owner": {"id": 789}, "assignee": {"id": 817}}, "task": {"id": 311, "owner": {"id": 998}, "assignee": {"id": 1080}}}} +} + +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": 35, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 564}, "organization": {"id": 661}, "project": {"id": 376, "owner": {"id": 799}, "assignee": {"id": 828}}, "task": {"id": 326, "owner": {"id": 911}, "assignee": {"id": 1013}}}} +} + +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": 13, "privilege": "none"}, "organization": null}, "resource": {"id": 369, "assignee": {"id": 559}, "organization": {"id": 629}, "project": {"id": 345, "owner": {"id": 733}, "assignee": {"id": 827}}, "task": {"id": 363, "owner": {"id": 944}, "assignee": {"id": 1039}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 504}, "organization": {"id": 175}, "project": {"id": 326, "owner": {"id": 10}, "assignee": {"id": 898}}, "task": {"id": 393, "owner": {"id": 993}, "assignee": {"id": 1082}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 547}, "organization": {"id": 645}, "project": {"id": 307, "owner": {"id": 58}, "assignee": {"id": 855}}, "task": {"id": 360, "owner": {"id": 933}, "assignee": {"id": 1002}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 568}, "organization": {"id": 111}, "project": {"id": 378, "owner": {"id": 63}, "assignee": {"id": 874}}, "task": {"id": 336, "owner": {"id": 970}, "assignee": {"id": 1068}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 556}, "organization": {"id": 602}, "project": {"id": 304, "owner": {"id": 34}, "assignee": {"id": 899}}, "task": {"id": 361, "owner": {"id": 939}, "assignee": {"id": 1064}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 505}, "organization": {"id": 137}, "project": {"id": 358, "owner": {"id": 31}, "assignee": {"id": 886}}, "task": {"id": 356, "owner": {"id": 994}, "assignee": {"id": 1014}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 501}, "organization": {"id": 645}, "project": {"id": 396, "owner": {"id": 24}, "assignee": {"id": 865}}, "task": {"id": 368, "owner": {"id": 959}, "assignee": {"id": 1066}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 513}, "organization": {"id": 151}, "project": {"id": 391, "owner": {"id": 69}, "assignee": {"id": 896}}, "task": {"id": 386, "owner": {"id": 971}, "assignee": {"id": 1092}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 585}, "organization": {"id": 627}, "project": {"id": 364, "owner": {"id": 47}, "assignee": {"id": 886}}, "task": {"id": 303, "owner": {"id": 915}, "assignee": {"id": 1009}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 562}, "organization": {"id": 145}, "project": {"id": 373, "owner": {"id": 6}, "assignee": {"id": 813}}, "task": {"id": 314, "owner": {"id": 932}, "assignee": {"id": 1040}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 565}, "organization": {"id": 648}, "project": {"id": 342, "owner": {"id": 91}, "assignee": {"id": 843}}, "task": {"id": 337, "owner": {"id": 912}, "assignee": {"id": 1096}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 548}, "organization": {"id": 155}, "project": {"id": 304, "owner": {"id": 11}, "assignee": {"id": 881}}, "task": {"id": 367, "owner": {"id": 924}, "assignee": {"id": 1032}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 508}, "organization": {"id": 638}, "project": {"id": 354, "owner": {"id": 84}, "assignee": {"id": 810}}, "task": {"id": 383, "owner": {"id": 903}, "assignee": {"id": 1024}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 562}, "organization": {"id": 115}, "project": {"id": 323, "owner": {"id": 59}, "assignee": {"id": 890}}, "task": {"id": 372, "owner": {"id": 979}, "assignee": {"id": 1034}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 552}, "organization": {"id": 619}, "project": {"id": 332, "owner": {"id": 59}, "assignee": {"id": 822}}, "task": {"id": 359, "owner": {"id": 991}, "assignee": {"id": 1080}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 539}, "organization": {"id": 179}, "project": {"id": 336, "owner": {"id": 71}, "assignee": {"id": 819}}, "task": {"id": 317, "owner": {"id": 906}, "assignee": {"id": 1028}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 510}, "organization": {"id": 699}, "project": {"id": 379, "owner": {"id": 41}, "assignee": {"id": 890}}, "task": {"id": 330, "owner": {"id": 937}, "assignee": {"id": 1033}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 552}, "organization": {"id": 169}, "project": {"id": 370, "owner": {"id": 2}, "assignee": {"id": 890}}, "task": {"id": 360, "owner": {"id": 903}, "assignee": {"id": 1018}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 534}, "organization": {"id": 634}, "project": {"id": 374, "owner": {"id": 67}, "assignee": {"id": 861}}, "task": {"id": 397, "owner": {"id": 928}, "assignee": {"id": 1075}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 534}, "organization": {"id": 134}, "project": {"id": 314, "owner": {"id": 79}, "assignee": {"id": 837}}, "task": {"id": 398, "owner": {"id": 931}, "assignee": {"id": 1093}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 575}, "organization": {"id": 608}, "project": {"id": 305, "owner": {"id": 34}, "assignee": {"id": 814}}, "task": {"id": 320, "owner": {"id": 999}, "assignee": {"id": 1087}}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 590}, "organization": {"id": 108}, "project": {"id": 314, "owner": {"id": 77}, "assignee": {"id": 846}}, "task": {"id": 391, "owner": {"id": 901}, "assignee": {"id": 1056}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 588}, "organization": {"id": 675}, "project": {"id": 312, "owner": {"id": 64}, "assignee": {"id": 877}}, "task": {"id": 390, "owner": {"id": 978}, "assignee": {"id": 1022}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 524}, "organization": {"id": 193}, "project": {"id": 312, "owner": {"id": 18}, "assignee": {"id": 834}}, "task": {"id": 390, "owner": {"id": 999}, "assignee": {"id": 1003}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 537}, "organization": {"id": 614}, "project": {"id": 361, "owner": {"id": 27}, "assignee": {"id": 814}}, "task": {"id": 332, "owner": {"id": 964}, "assignee": {"id": 1076}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 506}, "organization": {"id": 105}, "project": {"id": 388, "owner": {"id": 38}, "assignee": {"id": 839}}, "task": {"id": 333, "owner": {"id": 978}, "assignee": {"id": 1021}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 524}, "organization": {"id": 656}, "project": {"id": 375, "owner": {"id": 29}, "assignee": {"id": 827}}, "task": {"id": 372, "owner": {"id": 940}, "assignee": {"id": 1041}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 586}, "organization": {"id": 134}, "project": {"id": 322, "owner": {"id": 25}, "assignee": {"id": 839}}, "task": {"id": 305, "owner": {"id": 915}, "assignee": {"id": 1049}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 585}, "organization": {"id": 667}, "project": {"id": 398, "owner": {"id": 7}, "assignee": {"id": 851}}, "task": {"id": 386, "owner": {"id": 969}, "assignee": {"id": 1073}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 526}, "organization": {"id": 161}, "project": {"id": 370, "owner": {"id": 68}, "assignee": {"id": 889}}, "task": {"id": 394, "owner": {"id": 927}, "assignee": {"id": 1048}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 562}, "organization": {"id": 631}, "project": {"id": 319, "owner": {"id": 91}, "assignee": {"id": 868}}, "task": {"id": 383, "owner": {"id": 960}, "assignee": {"id": 1082}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 590}, "organization": {"id": 107}, "project": {"id": 395, "owner": {"id": 9}, "assignee": {"id": 824}}, "task": {"id": 358, "owner": {"id": 991}, "assignee": {"id": 1087}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 516}, "organization": {"id": 655}, "project": {"id": 378, "owner": {"id": 98}, "assignee": {"id": 850}}, "task": {"id": 368, "owner": {"id": 946}, "assignee": {"id": 1002}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 580}, "organization": {"id": 198}, "project": {"id": 379, "owner": {"id": 10}, "assignee": {"id": 871}}, "task": {"id": 368, "owner": {"id": 913}, "assignee": {"id": 1016}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 598}, "organization": {"id": 655}, "project": {"id": 350, "owner": {"id": 77}, "assignee": {"id": 824}}, "task": {"id": 392, "owner": {"id": 916}, "assignee": {"id": 1044}}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 529}, "organization": {"id": 188}, "project": {"id": 396, "owner": {"id": 51}, "assignee": {"id": 810}}, "task": {"id": 321, "owner": {"id": 944}, "assignee": {"id": 1012}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 516}, "organization": {"id": 682}, "project": {"id": 390, "owner": {"id": 86}, "assignee": {"id": 804}}, "task": {"id": 320, "owner": {"id": 990}, "assignee": {"id": 1049}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 576}, "organization": {"id": 145}, "project": {"id": 318, "owner": {"id": 53}, "assignee": {"id": 803}}, "task": {"id": 335, "owner": {"id": 982}, "assignee": {"id": 1000}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 541}, "organization": {"id": 661}, "project": {"id": 356, "owner": {"id": 16}, "assignee": {"id": 875}}, "task": {"id": 384, "owner": {"id": 928}, "assignee": {"id": 1014}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 531}, "organization": {"id": 144}, "project": {"id": 373, "owner": {"id": 41}, "assignee": {"id": 861}}, "task": {"id": 361, "owner": {"id": 941}, "assignee": {"id": 1078}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 554}, "organization": {"id": 633}, "project": {"id": 313, "owner": {"id": 77}, "assignee": {"id": 841}}, "task": {"id": 318, "owner": {"id": 922}, "assignee": {"id": 1017}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 574}, "organization": {"id": 176}, "project": {"id": 331, "owner": {"id": 15}, "assignee": {"id": 841}}, "task": {"id": 370, "owner": {"id": 922}, "assignee": {"id": 1030}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 528}, "organization": {"id": 679}, "project": {"id": 387, "owner": {"id": 17}, "assignee": {"id": 829}}, "task": {"id": 380, "owner": {"id": 953}, "assignee": {"id": 1005}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 550}, "organization": {"id": 168}, "project": {"id": 324, "owner": {"id": 57}, "assignee": {"id": 867}}, "task": {"id": 344, "owner": {"id": 908}, "assignee": {"id": 1098}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 574}, "organization": {"id": 683}, "project": {"id": 322, "owner": {"id": 3}, "assignee": {"id": 854}}, "task": {"id": 372, "owner": {"id": 973}, "assignee": {"id": 1049}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 543}, "organization": {"id": 136}, "project": {"id": 349, "owner": {"id": 10}, "assignee": {"id": 805}}, "task": {"id": 329, "owner": {"id": 932}, "assignee": {"id": 1018}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 551}, "organization": {"id": 673}, "project": {"id": 318, "owner": {"id": 82}, "assignee": {"id": 849}}, "task": {"id": 364, "owner": {"id": 973}, "assignee": {"id": 1096}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 512}, "organization": {"id": 181}, "project": {"id": 302, "owner": {"id": 49}, "assignee": {"id": 833}}, "task": {"id": 307, "owner": {"id": 995}, "assignee": {"id": 1056}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 569}, "organization": {"id": 689}, "project": {"id": 316, "owner": {"id": 28}, "assignee": {"id": 898}}, "task": {"id": 362, "owner": {"id": 974}, "assignee": {"id": 1084}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 512}, "organization": {"id": 127}, "project": {"id": 393, "owner": {"id": 81}, "assignee": {"id": 862}}, "task": {"id": 338, "owner": {"id": 999}, "assignee": {"id": 1055}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 534}, "organization": {"id": 688}, "project": {"id": 312, "owner": {"id": 3}, "assignee": {"id": 813}}, "task": {"id": 369, "owner": {"id": 917}, "assignee": {"id": 1045}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 569}, "organization": {"id": 160}, "project": {"id": 308, "owner": {"id": 793}, "assignee": {"id": 23}}, "task": {"id": 305, "owner": {"id": 935}, "assignee": {"id": 1087}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 505}, "organization": {"id": 604}, "project": {"id": 335, "owner": {"id": 787}, "assignee": {"id": 35}}, "task": {"id": 392, "owner": {"id": 969}, "assignee": {"id": 1007}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 523}, "organization": {"id": 156}, "project": {"id": 349, "owner": {"id": 792}, "assignee": {"id": 90}}, "task": {"id": 357, "owner": {"id": 903}, "assignee": {"id": 1034}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 565}, "organization": {"id": 633}, "project": {"id": 385, "owner": {"id": 747}, "assignee": {"id": 79}}, "task": {"id": 311, "owner": {"id": 925}, "assignee": {"id": 1024}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 529}, "organization": {"id": 172}, "project": {"id": 313, "owner": {"id": 739}, "assignee": {"id": 10}}, "task": {"id": 363, "owner": {"id": 937}, "assignee": {"id": 1009}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 509}, "organization": {"id": 603}, "project": {"id": 352, "owner": {"id": 756}, "assignee": {"id": 94}}, "task": {"id": 369, "owner": {"id": 951}, "assignee": {"id": 1050}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 595}, "organization": {"id": 120}, "project": {"id": 306, "owner": {"id": 711}, "assignee": {"id": 4}}, "task": {"id": 331, "owner": {"id": 973}, "assignee": {"id": 1097}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 548}, "organization": {"id": 662}, "project": {"id": 320, "owner": {"id": 759}, "assignee": {"id": 81}}, "task": {"id": 343, "owner": {"id": 958}, "assignee": {"id": 1081}}}} +} + +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": 171, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 548}, "organization": {"id": 171}, "project": {"id": 399, "owner": {"id": 743}, "assignee": {"id": 33}}, "task": {"id": 328, "owner": {"id": 942}, "assignee": {"id": 1097}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 503}, "organization": {"id": 677}, "project": {"id": 338, "owner": {"id": 746}, "assignee": {"id": 36}}, "task": {"id": 378, "owner": {"id": 997}, "assignee": {"id": 1083}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 549}, "organization": {"id": 103}, "project": {"id": 389, "owner": {"id": 770}, "assignee": {"id": 79}}, "task": {"id": 361, "owner": {"id": 913}, "assignee": {"id": 1091}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 580}, "organization": {"id": 652}, "project": {"id": 308, "owner": {"id": 749}, "assignee": {"id": 46}}, "task": {"id": 343, "owner": {"id": 956}, "assignee": {"id": 1091}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 516}, "organization": {"id": 148}, "project": {"id": 340, "owner": {"id": 741}, "assignee": {"id": 73}}, "task": {"id": 307, "owner": {"id": 962}, "assignee": {"id": 1060}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 586}, "organization": {"id": 638}, "project": {"id": 327, "owner": {"id": 750}, "assignee": {"id": 88}}, "task": {"id": 369, "owner": {"id": 941}, "assignee": {"id": 1066}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 500}, "organization": {"id": 128}, "project": {"id": 312, "owner": {"id": 728}, "assignee": {"id": 63}}, "task": {"id": 342, "owner": {"id": 932}, "assignee": {"id": 1096}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 563}, "organization": {"id": 616}, "project": {"id": 351, "owner": {"id": 763}, "assignee": {"id": 51}}, "task": {"id": 310, "owner": {"id": 995}, "assignee": {"id": 1021}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 520}, "organization": {"id": 135}, "project": {"id": 343, "owner": {"id": 734}, "assignee": {"id": 98}}, "task": {"id": 398, "owner": {"id": 973}, "assignee": {"id": 1002}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 587}, "organization": {"id": 607}, "project": {"id": 314, "owner": {"id": 789}, "assignee": {"id": 42}}, "task": {"id": 331, "owner": {"id": 912}, "assignee": {"id": 1070}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 594}, "organization": {"id": 180}, "project": {"id": 338, "owner": {"id": 741}, "assignee": {"id": 42}}, "task": {"id": 364, "owner": {"id": 930}, "assignee": {"id": 1038}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 589}, "organization": {"id": 696}, "project": {"id": 329, "owner": {"id": 760}, "assignee": {"id": 5}}, "task": {"id": 378, "owner": {"id": 924}, "assignee": {"id": 1089}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 314, "assignee": {"id": 520}, "organization": {"id": 184}, "project": {"id": 387, "owner": {"id": 777}, "assignee": {"id": 71}}, "task": {"id": 377, "owner": {"id": 924}, "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": 7, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 584}, "organization": {"id": 672}, "project": {"id": 360, "owner": {"id": 767}, "assignee": {"id": 7}}, "task": {"id": 344, "owner": {"id": 936}, "assignee": {"id": 1089}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 555}, "organization": {"id": 111}, "project": {"id": 385, "owner": {"id": 760}, "assignee": {"id": 56}}, "task": {"id": 315, "owner": {"id": 910}, "assignee": {"id": 1099}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 561}, "organization": {"id": 685}, "project": {"id": 302, "owner": {"id": 798}, "assignee": {"id": 47}}, "task": {"id": 392, "owner": {"id": 987}, "assignee": {"id": 1066}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 596}, "organization": {"id": 100}, "project": {"id": 367, "owner": {"id": 794}, "assignee": {"id": 74}}, "task": {"id": 332, "owner": {"id": 951}, "assignee": {"id": 1009}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 540}, "organization": {"id": 645}, "project": {"id": 302, "owner": {"id": 727}, "assignee": {"id": 48}}, "task": {"id": 382, "owner": {"id": 961}, "assignee": {"id": 1048}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 592}, "organization": {"id": 166}, "project": {"id": 396, "owner": {"id": 709}, "assignee": {"id": 73}}, "task": {"id": 364, "owner": {"id": 955}, "assignee": {"id": 1065}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 555}, "organization": {"id": 681}, "project": {"id": 305, "owner": {"id": 778}, "assignee": {"id": 74}}, "task": {"id": 385, "owner": {"id": 967}, "assignee": {"id": 1002}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 517}, "organization": {"id": 103}, "project": {"id": 376, "owner": {"id": 755}, "assignee": {"id": 33}}, "task": {"id": 301, "owner": {"id": 910}, "assignee": {"id": 1032}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 535}, "organization": {"id": 681}, "project": {"id": 389, "owner": {"id": 727}, "assignee": {"id": 28}}, "task": {"id": 342, "owner": {"id": 916}, "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": 42, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 507}, "organization": {"id": 104}, "project": {"id": 344, "owner": {"id": 703}, "assignee": {"id": 42}}, "task": {"id": 326, "owner": {"id": 911}, "assignee": {"id": 1098}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 546}, "organization": {"id": 640}, "project": {"id": 383, "owner": {"id": 755}, "assignee": {"id": 55}}, "task": {"id": 399, "owner": {"id": 973}, "assignee": {"id": 1097}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 504}, "organization": {"id": 132}, "project": {"id": 332, "owner": {"id": 777}, "assignee": {"id": 86}}, "task": {"id": 301, "owner": {"id": 944}, "assignee": {"id": 1023}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 597}, "organization": {"id": 682}, "project": {"id": 365, "owner": {"id": 715}, "assignee": {"id": 82}}, "task": {"id": 373, "owner": {"id": 957}, "assignee": {"id": 1047}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 536}, "organization": {"id": 109}, "project": {"id": 355, "owner": {"id": 751}, "assignee": {"id": 59}}, "task": {"id": 356, "owner": {"id": 971}, "assignee": {"id": 1001}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 531}, "organization": {"id": 677}, "project": {"id": 379, "owner": {"id": 775}, "assignee": {"id": 88}}, "task": {"id": 393, "owner": {"id": 972}, "assignee": {"id": 1047}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 374, "assignee": {"id": 598}, "organization": {"id": 147}, "project": {"id": 349, "owner": {"id": 779}, "assignee": {"id": 44}}, "task": {"id": 340, "owner": {"id": 922}, "assignee": {"id": 1080}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 597}, "organization": {"id": 698}, "project": {"id": 316, "owner": {"id": 700}, "assignee": {"id": 95}}, "task": {"id": 355, "owner": {"id": 927}, "assignee": {"id": 1080}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 529}, "organization": {"id": 191}, "project": {"id": 368, "owner": {"id": 704}, "assignee": {"id": 10}}, "task": {"id": 359, "owner": {"id": 916}, "assignee": {"id": 1061}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 556}, "organization": {"id": 636}, "project": {"id": 376, "owner": {"id": 781}, "assignee": {"id": 43}}, "task": {"id": 359, "owner": {"id": 945}, "assignee": {"id": 1068}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 509}, "organization": {"id": 153}, "project": {"id": 325, "owner": {"id": 750}, "assignee": {"id": 76}}, "task": {"id": 312, "owner": {"id": 995}, "assignee": {"id": 1094}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 541}, "organization": {"id": 658}, "project": {"id": 321, "owner": {"id": 705}, "assignee": {"id": 63}}, "task": {"id": 388, "owner": {"id": 902}, "assignee": {"id": 1083}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 585}, "organization": {"id": 124}, "project": {"id": 350, "owner": {"id": 707}, "assignee": {"id": 12}}, "task": {"id": 315, "owner": {"id": 943}, "assignee": {"id": 1007}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 580}, "organization": {"id": 692}, "project": {"id": 360, "owner": {"id": 793}, "assignee": {"id": 0}}, "task": {"id": 372, "owner": {"id": 928}, "assignee": {"id": 1039}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 575}, "organization": {"id": 189}, "project": {"id": 347, "owner": {"id": 754}, "assignee": {"id": 62}}, "task": {"id": 324, "owner": {"id": 930}, "assignee": {"id": 1062}}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 536}, "organization": {"id": 679}, "project": {"id": 323, "owner": {"id": 726}, "assignee": {"id": 66}}, "task": {"id": 328, "owner": {"id": 945}, "assignee": {"id": 1045}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 538}, "organization": {"id": 126}, "project": {"id": 318, "owner": {"id": 723}, "assignee": {"id": 14}}, "task": {"id": 358, "owner": {"id": 988}, "assignee": {"id": 1082}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 541}, "organization": {"id": 617}, "project": {"id": 324, "owner": {"id": 735}, "assignee": {"id": 79}}, "task": {"id": 363, "owner": {"id": 919}, "assignee": {"id": 1085}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 588}, "organization": {"id": 198}, "project": {"id": 370, "owner": {"id": 706}, "assignee": {"id": 71}}, "task": {"id": 395, "owner": {"id": 981}, "assignee": {"id": 1094}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 502}, "organization": {"id": 639}, "project": {"id": 390, "owner": {"id": 769}, "assignee": {"id": 37}}, "task": {"id": 335, "owner": {"id": 998}, "assignee": {"id": 1045}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 587}, "organization": {"id": 131}, "project": {"id": 389, "owner": {"id": 770}, "assignee": {"id": 806}}, "task": {"id": 338, "owner": {"id": 60}, "assignee": {"id": 1011}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 599}, "organization": {"id": 691}, "project": {"id": 309, "owner": {"id": 702}, "assignee": {"id": 842}}, "task": {"id": 322, "owner": {"id": 89}, "assignee": {"id": 1049}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 511}, "organization": {"id": 138}, "project": {"id": 387, "owner": {"id": 701}, "assignee": {"id": 866}}, "task": {"id": 302, "owner": {"id": 86}, "assignee": {"id": 1008}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 502}, "organization": {"id": 639}, "project": {"id": 344, "owner": {"id": 798}, "assignee": {"id": 841}}, "task": {"id": 382, "owner": {"id": 55}, "assignee": {"id": 1044}}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 559}, "organization": {"id": 197}, "project": {"id": 329, "owner": {"id": 758}, "assignee": {"id": 809}}, "task": {"id": 351, "owner": {"id": 87}, "assignee": {"id": 1018}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 524}, "organization": {"id": 665}, "project": {"id": 303, "owner": {"id": 715}, "assignee": {"id": 884}}, "task": {"id": 327, "owner": {"id": 86}, "assignee": {"id": 1026}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 578}, "organization": {"id": 107}, "project": {"id": 364, "owner": {"id": 730}, "assignee": {"id": 840}}, "task": {"id": 385, "owner": {"id": 56}, "assignee": {"id": 1062}}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 589}, "organization": {"id": 666}, "project": {"id": 345, "owner": {"id": 721}, "assignee": {"id": 898}}, "task": {"id": 386, "owner": {"id": 50}, "assignee": {"id": 1080}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 545}, "organization": {"id": 170}, "project": {"id": 325, "owner": {"id": 745}, "assignee": {"id": 867}}, "task": {"id": 328, "owner": {"id": 3}, "assignee": {"id": 1066}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 545}, "organization": {"id": 649}, "project": {"id": 377, "owner": {"id": 725}, "assignee": {"id": 886}}, "task": {"id": 390, "owner": {"id": 3}, "assignee": {"id": 1093}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 500}, "organization": {"id": 176}, "project": {"id": 309, "owner": {"id": 770}, "assignee": {"id": 834}}, "task": {"id": 367, "owner": {"id": 46}, "assignee": {"id": 1075}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 570}, "organization": {"id": 662}, "project": {"id": 302, "owner": {"id": 739}, "assignee": {"id": 862}}, "task": {"id": 338, "owner": {"id": 59}, "assignee": {"id": 1083}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 591}, "organization": {"id": 138}, "project": {"id": 368, "owner": {"id": 743}, "assignee": {"id": 801}}, "task": {"id": 331, "owner": {"id": 98}, "assignee": {"id": 1046}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 524}, "organization": {"id": 612}, "project": {"id": 305, "owner": {"id": 766}, "assignee": {"id": 885}}, "task": {"id": 368, "owner": {"id": 60}, "assignee": {"id": 1011}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 530}, "organization": {"id": 188}, "project": {"id": 318, "owner": {"id": 749}, "assignee": {"id": 861}}, "task": {"id": 324, "owner": {"id": 57}, "assignee": {"id": 1079}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 527}, "organization": {"id": 630}, "project": {"id": 329, "owner": {"id": 734}, "assignee": {"id": 817}}, "task": {"id": 375, "owner": {"id": 78}, "assignee": {"id": 1035}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 575}, "organization": {"id": 141}, "project": {"id": 380, "owner": {"id": 771}, "assignee": {"id": 819}}, "task": {"id": 338, "owner": {"id": 66}, "assignee": {"id": 1017}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 543}, "organization": {"id": 650}, "project": {"id": 310, "owner": {"id": 718}, "assignee": {"id": 851}}, "task": {"id": 320, "owner": {"id": 0}, "assignee": {"id": 1068}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 575}, "organization": {"id": 170}, "project": {"id": 314, "owner": {"id": 756}, "assignee": {"id": 816}}, "task": {"id": 393, "owner": {"id": 87}, "assignee": {"id": 1088}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 543}, "organization": {"id": 677}, "project": {"id": 378, "owner": {"id": 765}, "assignee": {"id": 819}}, "task": {"id": 340, "owner": {"id": 87}, "assignee": {"id": 1063}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 535}, "organization": {"id": 104}, "project": {"id": 318, "owner": {"id": 738}, "assignee": {"id": 813}}, "task": {"id": 362, "owner": {"id": 39}, "assignee": {"id": 1054}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 552}, "organization": {"id": 633}, "project": {"id": 338, "owner": {"id": 774}, "assignee": {"id": 878}}, "task": {"id": 381, "owner": {"id": 28}, "assignee": {"id": 1081}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 578}, "organization": {"id": 152}, "project": {"id": 328, "owner": {"id": 711}, "assignee": {"id": 811}}, "task": {"id": 362, "owner": {"id": 86}, "assignee": {"id": 1095}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 511}, "organization": {"id": 695}, "project": {"id": 332, "owner": {"id": 715}, "assignee": {"id": 812}}, "task": {"id": 304, "owner": {"id": 69}, "assignee": {"id": 1055}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 551}, "organization": {"id": 178}, "project": {"id": 393, "owner": {"id": 738}, "assignee": {"id": 850}}, "task": {"id": 347, "owner": {"id": 85}, "assignee": {"id": 1064}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 578}, "organization": {"id": 617}, "project": {"id": 374, "owner": {"id": 733}, "assignee": {"id": 870}}, "task": {"id": 375, "owner": {"id": 19}, "assignee": {"id": 1001}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 516}, "organization": {"id": 192}, "project": {"id": 314, "owner": {"id": 759}, "assignee": {"id": 890}}, "task": {"id": 334, "owner": {"id": 60}, "assignee": {"id": 1067}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 560}, "organization": {"id": 696}, "project": {"id": 362, "owner": {"id": 763}, "assignee": {"id": 814}}, "task": {"id": 314, "owner": {"id": 32}, "assignee": {"id": 1072}}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 579}, "organization": {"id": 151}, "project": {"id": 339, "owner": {"id": 752}, "assignee": {"id": 861}}, "task": {"id": 396, "owner": {"id": 40}, "assignee": {"id": 1036}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 561}, "organization": {"id": 648}, "project": {"id": 357, "owner": {"id": 702}, "assignee": {"id": 885}}, "task": {"id": 356, "owner": {"id": 22}, "assignee": {"id": 1061}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 578}, "organization": {"id": 105}, "project": {"id": 302, "owner": {"id": 748}, "assignee": {"id": 839}}, "task": {"id": 311, "owner": {"id": 80}, "assignee": {"id": 1059}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 503}, "organization": {"id": 613}, "project": {"id": 309, "owner": {"id": 731}, "assignee": {"id": 817}}, "task": {"id": 303, "owner": {"id": 24}, "assignee": {"id": 1030}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 590}, "organization": {"id": 142}, "project": {"id": 344, "owner": {"id": 709}, "assignee": {"id": 863}}, "task": {"id": 363, "owner": {"id": 38}, "assignee": {"id": 1028}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 550}, "organization": {"id": 668}, "project": {"id": 349, "owner": {"id": 773}, "assignee": {"id": 837}}, "task": {"id": 312, "owner": {"id": 83}, "assignee": {"id": 1014}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 527}, "organization": {"id": 147}, "project": {"id": 382, "owner": {"id": 729}, "assignee": {"id": 820}}, "task": {"id": 387, "owner": {"id": 84}, "assignee": {"id": 1014}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 521}, "organization": {"id": 615}, "project": {"id": 340, "owner": {"id": 755}, "assignee": {"id": 863}}, "task": {"id": 323, "owner": {"id": 71}, "assignee": {"id": 1034}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 591}, "organization": {"id": 155}, "project": {"id": 398, "owner": {"id": 763}, "assignee": {"id": 871}}, "task": {"id": 369, "owner": {"id": 84}, "assignee": {"id": 1040}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 595}, "organization": {"id": 641}, "project": {"id": 387, "owner": {"id": 782}, "assignee": {"id": 862}}, "task": {"id": 310, "owner": {"id": 72}, "assignee": {"id": 1016}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 596}, "organization": {"id": 116}, "project": {"id": 344, "owner": {"id": 763}, "assignee": {"id": 822}}, "task": {"id": 312, "owner": {"id": 54}, "assignee": {"id": 1039}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 537}, "organization": {"id": 666}, "project": {"id": 326, "owner": {"id": 709}, "assignee": {"id": 886}}, "task": {"id": 332, "owner": {"id": 25}, "assignee": {"id": 1085}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 536}, "organization": {"id": 116}, "project": {"id": 307, "owner": {"id": 792}, "assignee": {"id": 849}}, "task": {"id": 347, "owner": {"id": 76}, "assignee": {"id": 1065}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 528}, "organization": {"id": 662}, "project": {"id": 382, "owner": {"id": 745}, "assignee": {"id": 893}}, "task": {"id": 361, "owner": {"id": 78}, "assignee": {"id": 1009}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 564}, "organization": {"id": 114}, "project": {"id": 334, "owner": {"id": 714}, "assignee": {"id": 860}}, "task": {"id": 345, "owner": {"id": 92}, "assignee": {"id": 1052}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 554}, "organization": {"id": 650}, "project": {"id": 374, "owner": {"id": 784}, "assignee": {"id": 867}}, "task": {"id": 333, "owner": {"id": 4}, "assignee": {"id": 1021}}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 554}, "organization": {"id": 143}, "project": {"id": 334, "owner": {"id": 761}, "assignee": {"id": 823}}, "task": {"id": 395, "owner": {"id": 99}, "assignee": {"id": 1036}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 529}, "organization": {"id": 633}, "project": {"id": 328, "owner": {"id": 733}, "assignee": {"id": 891}}, "task": {"id": 310, "owner": {"id": 33}, "assignee": {"id": 1037}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 533}, "organization": {"id": 175}, "project": {"id": 338, "owner": {"id": 788}, "assignee": {"id": 825}}, "task": {"id": 346, "owner": {"id": 35}, "assignee": {"id": 1080}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 538}, "organization": {"id": 681}, "project": {"id": 379, "owner": {"id": 796}, "assignee": {"id": 859}}, "task": {"id": 346, "owner": {"id": 28}, "assignee": {"id": 1027}}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 577}, "organization": {"id": 169}, "project": {"id": 347, "owner": {"id": 792}, "assignee": {"id": 886}}, "task": {"id": 375, "owner": {"id": 99}, "assignee": {"id": 1072}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 552}, "organization": {"id": 693}, "project": {"id": 367, "owner": {"id": 742}, "assignee": {"id": 831}}, "task": {"id": 346, "owner": {"id": 12}, "assignee": {"id": 1094}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 518}, "organization": {"id": 123}, "project": {"id": 369, "owner": {"id": 753}, "assignee": {"id": 840}}, "task": {"id": 362, "owner": {"id": 915}, "assignee": {"id": 53}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 593}, "organization": {"id": 617}, "project": {"id": 341, "owner": {"id": 760}, "assignee": {"id": 809}}, "task": {"id": 353, "owner": {"id": 917}, "assignee": {"id": 0}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 557}, "organization": {"id": 190}, "project": {"id": 382, "owner": {"id": 794}, "assignee": {"id": 855}}, "task": {"id": 305, "owner": {"id": 922}, "assignee": {"id": 11}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 552}, "organization": {"id": 640}, "project": {"id": 330, "owner": {"id": 789}, "assignee": {"id": 831}}, "task": {"id": 348, "owner": {"id": 952}, "assignee": {"id": 64}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 509}, "organization": {"id": 173}, "project": {"id": 317, "owner": {"id": 791}, "assignee": {"id": 899}}, "task": {"id": 304, "owner": {"id": 921}, "assignee": {"id": 65}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 550}, "organization": {"id": 622}, "project": {"id": 367, "owner": {"id": 706}, "assignee": {"id": 810}}, "task": {"id": 309, "owner": {"id": 977}, "assignee": {"id": 57}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 504}, "organization": {"id": 114}, "project": {"id": 391, "owner": {"id": 741}, "assignee": {"id": 833}}, "task": {"id": 365, "owner": {"id": 930}, "assignee": {"id": 42}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 506}, "organization": {"id": 685}, "project": {"id": 388, "owner": {"id": 723}, "assignee": {"id": 854}}, "task": {"id": 305, "owner": {"id": 975}, "assignee": {"id": 46}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 557}, "organization": {"id": 140}, "project": {"id": 325, "owner": {"id": 793}, "assignee": {"id": 898}}, "task": {"id": 361, "owner": {"id": 990}, "assignee": {"id": 10}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 566}, "organization": {"id": 673}, "project": {"id": 398, "owner": {"id": 760}, "assignee": {"id": 883}}, "task": {"id": 355, "owner": {"id": 947}, "assignee": {"id": 19}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 500}, "organization": {"id": 140}, "project": {"id": 377, "owner": {"id": 763}, "assignee": {"id": 848}}, "task": {"id": 312, "owner": {"id": 980}, "assignee": {"id": 26}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 501}, "organization": {"id": 684}, "project": {"id": 305, "owner": {"id": 779}, "assignee": {"id": 875}}, "task": {"id": 338, "owner": {"id": 965}, "assignee": {"id": 57}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 553}, "organization": {"id": 133}, "project": {"id": 343, "owner": {"id": 729}, "assignee": {"id": 873}}, "task": {"id": 392, "owner": {"id": 940}, "assignee": {"id": 92}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 575}, "organization": {"id": 632}, "project": {"id": 392, "owner": {"id": 723}, "assignee": {"id": 859}}, "task": {"id": 336, "owner": {"id": 921}, "assignee": {"id": 99}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 522}, "organization": {"id": 113}, "project": {"id": 392, "owner": {"id": 797}, "assignee": {"id": 867}}, "task": {"id": 340, "owner": {"id": 997}, "assignee": {"id": 88}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 542}, "organization": {"id": 625}, "project": {"id": 372, "owner": {"id": 734}, "assignee": {"id": 898}}, "task": {"id": 398, "owner": {"id": 955}, "assignee": {"id": 31}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 596}, "organization": {"id": 166}, "project": {"id": 368, "owner": {"id": 740}, "assignee": {"id": 816}}, "task": {"id": 329, "owner": {"id": 961}, "assignee": {"id": 79}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 518}, "organization": {"id": 603}, "project": {"id": 329, "owner": {"id": 787}, "assignee": {"id": 862}}, "task": {"id": 395, "owner": {"id": 916}, "assignee": {"id": 5}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 573}, "organization": {"id": 160}, "project": {"id": 351, "owner": {"id": 765}, "assignee": {"id": 856}}, "task": {"id": 337, "owner": {"id": 964}, "assignee": {"id": 46}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 517}, "organization": {"id": 671}, "project": {"id": 377, "owner": {"id": 786}, "assignee": {"id": 809}}, "task": {"id": 359, "owner": {"id": 910}, "assignee": {"id": 66}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 511}, "organization": {"id": 126}, "project": {"id": 355, "owner": {"id": 705}, "assignee": {"id": 877}}, "task": {"id": 369, "owner": {"id": 973}, "assignee": {"id": 57}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 567}, "organization": {"id": 668}, "project": {"id": 308, "owner": {"id": 727}, "assignee": {"id": 818}}, "task": {"id": 303, "owner": {"id": 967}, "assignee": {"id": 75}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 507}, "organization": {"id": 145}, "project": {"id": 379, "owner": {"id": 769}, "assignee": {"id": 820}}, "task": {"id": 303, "owner": {"id": 969}, "assignee": {"id": 35}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 523}, "organization": {"id": 601}, "project": {"id": 385, "owner": {"id": 799}, "assignee": {"id": 889}}, "task": {"id": 334, "owner": {"id": 910}, "assignee": {"id": 47}}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 561}, "organization": {"id": 189}, "project": {"id": 330, "owner": {"id": 708}, "assignee": {"id": 843}}, "task": {"id": 359, "owner": {"id": 923}, "assignee": {"id": 93}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 525}, "organization": {"id": 653}, "project": {"id": 347, "owner": {"id": 760}, "assignee": {"id": 835}}, "task": {"id": 324, "owner": {"id": 941}, "assignee": {"id": 20}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 552}, "organization": {"id": 196}, "project": {"id": 304, "owner": {"id": 725}, "assignee": {"id": 824}}, "task": {"id": 369, "owner": {"id": 978}, "assignee": {"id": 33}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 585}, "organization": {"id": 655}, "project": {"id": 376, "owner": {"id": 730}, "assignee": {"id": 839}}, "task": {"id": 334, "owner": {"id": 901}, "assignee": {"id": 89}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 537}, "organization": {"id": 157}, "project": {"id": 382, "owner": {"id": 717}, "assignee": {"id": 881}}, "task": {"id": 396, "owner": {"id": 988}, "assignee": {"id": 29}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 522}, "organization": {"id": 683}, "project": {"id": 333, "owner": {"id": 763}, "assignee": {"id": 804}}, "task": {"id": 316, "owner": {"id": 973}, "assignee": {"id": 19}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 504}, "organization": {"id": 137}, "project": {"id": 374, "owner": {"id": 730}, "assignee": {"id": 882}}, "task": {"id": 375, "owner": {"id": 994}, "assignee": {"id": 69}}}} +} + +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": 130, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 560}, "organization": {"id": 681}, "project": {"id": 334, "owner": {"id": 757}, "assignee": {"id": 841}}, "task": {"id": 366, "owner": {"id": 995}, "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": 32, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 501}, "organization": {"id": 184}, "project": {"id": 388, "owner": {"id": 785}, "assignee": {"id": 852}}, "task": {"id": 314, "owner": {"id": 945}, "assignee": {"id": 32}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 585}, "organization": {"id": 689}, "project": {"id": 310, "owner": {"id": 753}, "assignee": {"id": 805}}, "task": {"id": 396, "owner": {"id": 940}, "assignee": {"id": 3}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 551}, "organization": {"id": 124}, "project": {"id": 303, "owner": {"id": 708}, "assignee": {"id": 814}}, "task": {"id": 318, "owner": {"id": 971}, "assignee": {"id": 99}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 598}, "organization": {"id": 675}, "project": {"id": 335, "owner": {"id": 723}, "assignee": {"id": 855}}, "task": {"id": 359, "owner": {"id": 907}, "assignee": {"id": 78}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 529}, "organization": {"id": 114}, "project": {"id": 388, "owner": {"id": 731}, "assignee": {"id": 862}}, "task": {"id": 309, "owner": {"id": 934}, "assignee": {"id": 42}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 502}, "organization": {"id": 647}, "project": {"id": 310, "owner": {"id": 780}, "assignee": {"id": 884}}, "task": {"id": 346, "owner": {"id": 940}, "assignee": {"id": 42}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 578}, "organization": {"id": 148}, "project": {"id": 378, "owner": {"id": 764}, "assignee": {"id": 836}}, "task": {"id": 310, "owner": {"id": 981}, "assignee": {"id": 67}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 596}, "organization": {"id": 608}, "project": {"id": 320, "owner": {"id": 724}, "assignee": {"id": 898}}, "task": {"id": 315, "owner": {"id": 977}, "assignee": {"id": 39}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 551}, "organization": {"id": 171}, "project": {"id": 370, "owner": {"id": 789}, "assignee": {"id": 821}}, "task": {"id": 325, "owner": {"id": 988}, "assignee": {"id": 6}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 555}, "organization": {"id": 672}, "project": {"id": 363, "owner": {"id": 750}, "assignee": {"id": 805}}, "task": {"id": 359, "owner": {"id": 931}, "assignee": {"id": 73}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 519}, "organization": {"id": 195}, "project": {"id": 399, "owner": {"id": 724}, "assignee": {"id": 842}}, "task": {"id": 356, "owner": {"id": 969}, "assignee": {"id": 7}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 547}, "organization": {"id": 633}, "project": {"id": 377, "owner": {"id": 705}, "assignee": {"id": 839}}, "task": {"id": 399, "owner": {"id": 938}, "assignee": {"id": 15}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 518}, "organization": {"id": 194}, "project": {"id": 306, "owner": {"id": 793}, "assignee": {"id": 882}}, "task": {"id": 362, "owner": {"id": 916}, "assignee": {"id": 8}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 581}, "organization": {"id": 694}, "project": {"id": 363, "owner": {"id": 764}, "assignee": {"id": 866}}, "task": {"id": 339, "owner": {"id": 948}, "assignee": {"id": 10}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 514}, "organization": {"id": 115}, "project": {"id": 357, "owner": {"id": 743}, "assignee": {"id": 842}}, "task": {"id": 303, "owner": {"id": 980}, "assignee": {"id": 32}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 537}, "organization": {"id": 618}, "project": {"id": 320, "owner": {"id": 721}, "assignee": {"id": 819}}, "task": {"id": 385, "owner": {"id": 949}, "assignee": {"id": 81}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 562}, "organization": {"id": 124}, "project": {"id": 312, "owner": {"id": 759}, "assignee": {"id": 850}}, "task": {"id": 310, "owner": {"id": 996}, "assignee": {"id": 97}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 539}, "organization": {"id": 617}, "project": {"id": 351, "owner": {"id": 788}, "assignee": {"id": 835}}, "task": {"id": 314, "owner": {"id": 936}, "assignee": {"id": 57}}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 7}, "organization": {"id": 106}, "project": {"id": 330, "owner": {"id": 726}, "assignee": {"id": 892}}, "task": {"id": 344, "owner": {"id": 999}, "assignee": {"id": 1082}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 96}, "organization": {"id": 627}, "project": {"id": 373, "owner": {"id": 763}, "assignee": {"id": 857}}, "task": {"id": 338, "owner": {"id": 983}, "assignee": {"id": 1030}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 23}, "organization": {"id": 167}, "project": {"id": 306, "owner": {"id": 741}, "assignee": {"id": 835}}, "task": {"id": 305, "owner": {"id": 951}, "assignee": {"id": 1072}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 1}, "organization": {"id": 674}, "project": {"id": 388, "owner": {"id": 790}, "assignee": {"id": 809}}, "task": {"id": 376, "owner": {"id": 956}, "assignee": {"id": 1088}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 34}, "organization": {"id": 141}, "project": {"id": 334, "owner": {"id": 736}, "assignee": {"id": 895}}, "task": {"id": 353, "owner": {"id": 910}, "assignee": {"id": 1081}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 48}, "organization": {"id": 641}, "project": {"id": 378, "owner": {"id": 776}, "assignee": {"id": 891}}, "task": {"id": 355, "owner": {"id": 919}, "assignee": {"id": 1049}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 25}, "organization": {"id": 168}, "project": {"id": 329, "owner": {"id": 713}, "assignee": {"id": 888}}, "task": {"id": 337, "owner": {"id": 986}, "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": 2, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 2}, "organization": {"id": 656}, "project": {"id": 311, "owner": {"id": 728}, "assignee": {"id": 807}}, "task": {"id": 399, "owner": {"id": 926}, "assignee": {"id": 1032}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 89}, "organization": {"id": 166}, "project": {"id": 335, "owner": {"id": 712}, "assignee": {"id": 850}}, "task": {"id": 352, "owner": {"id": 949}, "assignee": {"id": 1026}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 8}, "organization": {"id": 692}, "project": {"id": 376, "owner": {"id": 758}, "assignee": {"id": 845}}, "task": {"id": 351, "owner": {"id": 957}, "assignee": {"id": 1075}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 81}, "organization": {"id": 157}, "project": {"id": 354, "owner": {"id": 708}, "assignee": {"id": 832}}, "task": {"id": 359, "owner": {"id": 903}, "assignee": {"id": 1083}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 78}, "organization": {"id": 661}, "project": {"id": 355, "owner": {"id": 717}, "assignee": {"id": 878}}, "task": {"id": 317, "owner": {"id": 926}, "assignee": {"id": 1070}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 51}, "organization": {"id": 129}, "project": {"id": 309, "owner": {"id": 729}, "assignee": {"id": 881}}, "task": {"id": 368, "owner": {"id": 955}, "assignee": {"id": 1033}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 18}, "organization": {"id": 625}, "project": {"id": 362, "owner": {"id": 750}, "assignee": {"id": 814}}, "task": {"id": 387, "owner": {"id": 927}, "assignee": {"id": 1008}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 40}, "organization": {"id": 193}, "project": {"id": 353, "owner": {"id": 792}, "assignee": {"id": 848}}, "task": {"id": 384, "owner": {"id": 930}, "assignee": {"id": 1019}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 84}, "organization": {"id": 642}, "project": {"id": 378, "owner": {"id": 736}, "assignee": {"id": 814}}, "task": {"id": 340, "owner": {"id": 947}, "assignee": {"id": 1091}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 83}, "organization": {"id": 171}, "project": {"id": 388, "owner": {"id": 734}, "assignee": {"id": 865}}, "task": {"id": 325, "owner": {"id": 973}, "assignee": {"id": 1054}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 80}, "organization": {"id": 624}, "project": {"id": 342, "owner": {"id": 785}, "assignee": {"id": 861}}, "task": {"id": 324, "owner": {"id": 900}, "assignee": {"id": 1051}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 2}, "organization": {"id": 143}, "project": {"id": 369, "owner": {"id": 785}, "assignee": {"id": 826}}, "task": {"id": 331, "owner": {"id": 946}, "assignee": {"id": 1036}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 92}, "organization": {"id": 639}, "project": {"id": 332, "owner": {"id": 781}, "assignee": {"id": 871}}, "task": {"id": 366, "owner": {"id": 929}, "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": 40, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 40}, "organization": {"id": 199}, "project": {"id": 324, "owner": {"id": 757}, "assignee": {"id": 842}}, "task": {"id": 361, "owner": {"id": 913}, "assignee": {"id": 1025}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 20}, "organization": {"id": 685}, "project": {"id": 337, "owner": {"id": 710}, "assignee": {"id": 800}}, "task": {"id": 315, "owner": {"id": 999}, "assignee": {"id": 1043}}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 98}, "organization": {"id": 133}, "project": {"id": 369, "owner": {"id": 790}, "assignee": {"id": 874}}, "task": {"id": 347, "owner": {"id": 950}, "assignee": {"id": 1070}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 60}, "organization": {"id": 673}, "project": {"id": 330, "owner": {"id": 741}, "assignee": {"id": 803}}, "task": {"id": 301, "owner": {"id": 923}, "assignee": {"id": 1095}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 58}, "organization": {"id": 106}, "project": {"id": 308, "owner": {"id": 794}, "assignee": {"id": 885}}, "task": {"id": 338, "owner": {"id": 909}, "assignee": {"id": 1044}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 2}, "organization": {"id": 625}, "project": {"id": 391, "owner": {"id": 741}, "assignee": {"id": 850}}, "task": {"id": 360, "owner": {"id": 948}, "assignee": {"id": 1017}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 14}, "organization": {"id": 153}, "project": {"id": 345, "owner": {"id": 791}, "assignee": {"id": 854}}, "task": {"id": 393, "owner": {"id": 949}, "assignee": {"id": 1061}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 76}, "organization": {"id": 641}, "project": {"id": 334, "owner": {"id": 767}, "assignee": {"id": 876}}, "task": {"id": 309, "owner": {"id": 913}, "assignee": {"id": 1079}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 73}, "organization": {"id": 144}, "project": {"id": 385, "owner": {"id": 724}, "assignee": {"id": 821}}, "task": {"id": 359, "owner": {"id": 909}, "assignee": {"id": 1005}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 73}, "organization": {"id": 646}, "project": {"id": 394, "owner": {"id": 711}, "assignee": {"id": 842}}, "task": {"id": 349, "owner": {"id": 976}, "assignee": {"id": 1007}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 68}, "organization": {"id": 165}, "project": {"id": 304, "owner": {"id": 728}, "assignee": {"id": 899}}, "task": {"id": 314, "owner": {"id": 987}, "assignee": {"id": 1030}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 77}, "organization": {"id": 630}, "project": {"id": 390, "owner": {"id": 701}, "assignee": {"id": 893}}, "task": {"id": 310, "owner": {"id": 987}, "assignee": {"id": 1090}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 3}, "organization": {"id": 129}, "project": {"id": 377, "owner": {"id": 728}, "assignee": {"id": 862}}, "task": {"id": 385, "owner": {"id": 939}, "assignee": {"id": 1048}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 5}, "organization": {"id": 645}, "project": {"id": 337, "owner": {"id": 720}, "assignee": {"id": 885}}, "task": {"id": 318, "owner": {"id": 979}, "assignee": {"id": 1066}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 36}, "organization": {"id": 114}, "project": {"id": 340, "owner": {"id": 790}, "assignee": {"id": 847}}, "task": {"id": 385, "owner": {"id": 938}, "assignee": {"id": 1024}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 53}, "organization": {"id": 671}, "project": {"id": 322, "owner": {"id": 774}, "assignee": {"id": 801}}, "task": {"id": 384, "owner": {"id": 940}, "assignee": {"id": 1040}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 92}, "organization": {"id": 199}, "project": {"id": 308, "owner": {"id": 791}, "assignee": {"id": 821}}, "task": {"id": 324, "owner": {"id": 921}, "assignee": {"id": 1023}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 48}, "organization": {"id": 601}, "project": {"id": 394, "owner": {"id": 781}, "assignee": {"id": 819}}, "task": {"id": 325, "owner": {"id": 980}, "assignee": {"id": 1031}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 90}, "organization": {"id": 166}, "project": {"id": 322, "owner": {"id": 755}, "assignee": {"id": 898}}, "task": {"id": 320, "owner": {"id": 909}, "assignee": {"id": 1048}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 13}, "organization": {"id": 675}, "project": {"id": 357, "owner": {"id": 786}, "assignee": {"id": 823}}, "task": {"id": 393, "owner": {"id": 941}, "assignee": {"id": 1089}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 42}, "organization": {"id": 155}, "project": {"id": 360, "owner": {"id": 767}, "assignee": {"id": 866}}, "task": {"id": 315, "owner": {"id": 958}, "assignee": {"id": 1023}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 23}, "organization": {"id": 624}, "project": {"id": 397, "owner": {"id": 757}, "assignee": {"id": 856}}, "task": {"id": 331, "owner": {"id": 995}, "assignee": {"id": 1082}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 72}, "organization": {"id": 133}, "project": {"id": 364, "owner": {"id": 760}, "assignee": {"id": 822}}, "task": {"id": 378, "owner": {"id": 901}, "assignee": {"id": 1031}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 40}, "organization": {"id": 688}, "project": {"id": 392, "owner": {"id": 734}, "assignee": {"id": 854}}, "task": {"id": 328, "owner": {"id": 915}, "assignee": {"id": 1026}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 85}, "organization": {"id": 130}, "project": {"id": 339, "owner": {"id": 771}, "assignee": {"id": 894}}, "task": {"id": 361, "owner": {"id": 916}, "assignee": {"id": 1046}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 32}, "organization": {"id": 639}, "project": {"id": 377, "owner": {"id": 769}, "assignee": {"id": 835}}, "task": {"id": 341, "owner": {"id": 997}, "assignee": {"id": 1016}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 58}, "organization": {"id": 176}, "project": {"id": 312, "owner": {"id": 767}, "assignee": {"id": 876}}, "task": {"id": 325, "owner": {"id": 963}, "assignee": {"id": 1030}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 22}, "organization": {"id": 676}, "project": {"id": 347, "owner": {"id": 790}, "assignee": {"id": 886}}, "task": {"id": 389, "owner": {"id": 961}, "assignee": {"id": 1034}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 33}, "organization": {"id": 123}, "project": {"id": 352, "owner": {"id": 738}, "assignee": {"id": 877}}, "task": {"id": 398, "owner": {"id": 967}, "assignee": {"id": 1023}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 29}, "organization": {"id": 663}, "project": {"id": 343, "owner": {"id": 737}, "assignee": {"id": 853}}, "task": {"id": 320, "owner": {"id": 908}, "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": 82, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 550}, "organization": {"id": 160}, "project": {"id": 302, "owner": {"id": 766}, "assignee": {"id": 816}}, "task": {"id": 312, "owner": {"id": 942}, "assignee": {"id": 1064}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 555}, "organization": {"id": 641}, "project": {"id": 379, "owner": {"id": 720}, "assignee": {"id": 838}}, "task": {"id": 338, "owner": {"id": 913}, "assignee": {"id": 1000}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 539}, "organization": {"id": 109}, "project": {"id": 372, "owner": {"id": 789}, "assignee": {"id": 833}}, "task": {"id": 349, "owner": {"id": 940}, "assignee": {"id": 1066}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 561}, "organization": {"id": 621}, "project": {"id": 333, "owner": {"id": 753}, "assignee": {"id": 804}}, "task": {"id": 367, "owner": {"id": 910}, "assignee": {"id": 1078}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 549}, "organization": {"id": 155}, "project": {"id": 336, "owner": {"id": 767}, "assignee": {"id": 869}}, "task": {"id": 345, "owner": {"id": 916}, "assignee": {"id": 1030}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 572}, "organization": {"id": 670}, "project": {"id": 391, "owner": {"id": 703}, "assignee": {"id": 839}}, "task": {"id": 325, "owner": {"id": 966}, "assignee": {"id": 1011}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 531}, "organization": {"id": 161}, "project": {"id": 326, "owner": {"id": 751}, "assignee": {"id": 833}}, "task": {"id": 341, "owner": {"id": 932}, "assignee": {"id": 1087}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 515}, "organization": {"id": 666}, "project": {"id": 336, "owner": {"id": 700}, "assignee": {"id": 823}}, "task": {"id": 386, "owner": {"id": 939}, "assignee": {"id": 1016}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 587}, "organization": {"id": 183}, "project": {"id": 342, "owner": {"id": 787}, "assignee": {"id": 816}}, "task": {"id": 335, "owner": {"id": 905}, "assignee": {"id": 1042}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 580}, "organization": {"id": 639}, "project": {"id": 335, "owner": {"id": 710}, "assignee": {"id": 887}}, "task": {"id": 373, "owner": {"id": 951}, "assignee": {"id": 1034}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 513}, "organization": {"id": 197}, "project": {"id": 352, "owner": {"id": 722}, "assignee": {"id": 861}}, "task": {"id": 310, "owner": {"id": 919}, "assignee": {"id": 1002}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 551}, "organization": {"id": 677}, "project": {"id": 387, "owner": {"id": 741}, "assignee": {"id": 850}}, "task": {"id": 326, "owner": {"id": 967}, "assignee": {"id": 1091}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 505}, "organization": {"id": 116}, "project": {"id": 326, "owner": {"id": 799}, "assignee": {"id": 892}}, "task": {"id": 314, "owner": {"id": 993}, "assignee": {"id": 1099}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 582}, "organization": {"id": 629}, "project": {"id": 313, "owner": {"id": 735}, "assignee": {"id": 893}}, "task": {"id": 342, "owner": {"id": 915}, "assignee": {"id": 1073}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 571}, "organization": {"id": 179}, "project": {"id": 390, "owner": {"id": 750}, "assignee": {"id": 831}}, "task": {"id": 338, "owner": {"id": 990}, "assignee": {"id": 1043}}}} +} + +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": 152, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 548}, "organization": {"id": 658}, "project": {"id": 343, "owner": {"id": 781}, "assignee": {"id": 812}}, "task": {"id": 303, "owner": {"id": 963}, "assignee": {"id": 1084}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 595}, "organization": {"id": 193}, "project": {"id": 392, "owner": {"id": 793}, "assignee": {"id": 859}}, "task": {"id": 315, "owner": {"id": 919}, "assignee": {"id": 1075}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 538}, "organization": {"id": 643}, "project": {"id": 365, "owner": {"id": 725}, "assignee": {"id": 818}}, "task": {"id": 301, "owner": {"id": 980}, "assignee": {"id": 1054}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 535}, "organization": {"id": 160}, "project": {"id": 397, "owner": {"id": 717}, "assignee": {"id": 834}}, "task": {"id": 330, "owner": {"id": 985}, "assignee": {"id": 1025}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 567}, "organization": {"id": 652}, "project": {"id": 332, "owner": {"id": 748}, "assignee": {"id": 876}}, "task": {"id": 368, "owner": {"id": 927}, "assignee": {"id": 1024}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 528}, "organization": {"id": 127}, "project": {"id": 303, "owner": {"id": 744}, "assignee": {"id": 832}}, "task": {"id": 362, "owner": {"id": 918}, "assignee": {"id": 1022}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 578}, "organization": {"id": 639}, "project": {"id": 309, "owner": {"id": 793}, "assignee": {"id": 875}}, "task": {"id": 380, "owner": {"id": 988}, "assignee": {"id": 1056}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 541}, "organization": {"id": 161}, "project": {"id": 371, "owner": {"id": 748}, "assignee": {"id": 810}}, "task": {"id": 319, "owner": {"id": 946}, "assignee": {"id": 1075}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 595}, "organization": {"id": 698}, "project": {"id": 397, "owner": {"id": 701}, "assignee": {"id": 898}}, "task": {"id": 333, "owner": {"id": 989}, "assignee": {"id": 1048}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 535}, "organization": {"id": 151}, "project": {"id": 389, "owner": {"id": 785}, "assignee": {"id": 834}}, "task": {"id": 354, "owner": {"id": 955}, "assignee": {"id": 1055}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 555}, "organization": {"id": 685}, "project": {"id": 340, "owner": {"id": 735}, "assignee": {"id": 835}}, "task": {"id": 339, "owner": {"id": 952}, "assignee": {"id": 1042}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 507}, "organization": {"id": 157}, "project": {"id": 318, "owner": {"id": 748}, "assignee": {"id": 829}}, "task": {"id": 327, "owner": {"id": 919}, "assignee": {"id": 1086}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 560}, "organization": {"id": 632}, "project": {"id": 326, "owner": {"id": 750}, "assignee": {"id": 824}}, "task": {"id": 343, "owner": {"id": 905}, "assignee": {"id": 1008}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 532}, "organization": {"id": 114}, "project": {"id": 367, "owner": {"id": 784}, "assignee": {"id": 834}}, "task": {"id": 301, "owner": {"id": 960}, "assignee": {"id": 1052}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 588}, "organization": {"id": 647}, "project": {"id": 329, "owner": {"id": 723}, "assignee": {"id": 864}}, "task": {"id": 353, "owner": {"id": 944}, "assignee": {"id": 1062}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 562}, "organization": {"id": 140}, "project": {"id": 340, "owner": {"id": 776}, "assignee": {"id": 801}}, "task": {"id": 303, "owner": {"id": 924}, "assignee": {"id": 1095}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 511}, "organization": {"id": 610}, "project": {"id": 331, "owner": {"id": 789}, "assignee": {"id": 819}}, "task": {"id": 374, "owner": {"id": 907}, "assignee": {"id": 1011}}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 575}, "organization": {"id": 147}, "project": {"id": 375, "owner": {"id": 751}, "assignee": {"id": 802}}, "task": {"id": 359, "owner": {"id": 979}, "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": 21, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 597}, "organization": {"id": 608}, "project": {"id": 324, "owner": {"id": 786}, "assignee": {"id": 865}}, "task": {"id": 336, "owner": {"id": 981}, "assignee": {"id": 1005}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 536}, "organization": {"id": 176}, "project": {"id": 338, "owner": {"id": 758}, "assignee": {"id": 855}}, "task": {"id": 343, "owner": {"id": 949}, "assignee": {"id": 1033}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 597}, "organization": {"id": 671}, "project": {"id": 335, "owner": {"id": 782}, "assignee": {"id": 849}}, "task": {"id": 339, "owner": {"id": 975}, "assignee": {"id": 1041}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 526}, "organization": {"id": 167}, "project": {"id": 350, "owner": {"id": 728}, "assignee": {"id": 847}}, "task": {"id": 344, "owner": {"id": 923}, "assignee": {"id": 1038}}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 538}, "organization": {"id": 617}, "project": {"id": 319, "owner": {"id": 794}, "assignee": {"id": 812}}, "task": {"id": 363, "owner": {"id": 952}, "assignee": {"id": 1064}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 518}, "organization": {"id": 133}, "project": {"id": 351, "owner": {"id": 767}, "assignee": {"id": 846}}, "task": {"id": 379, "owner": {"id": 949}, "assignee": {"id": 1030}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 537}, "organization": {"id": 625}, "project": {"id": 312, "owner": {"id": 771}, "assignee": {"id": 870}}, "task": {"id": 306, "owner": {"id": 994}, "assignee": {"id": 1056}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 568}, "organization": {"id": 160}, "project": {"id": 360, "owner": {"id": 736}, "assignee": {"id": 847}}, "task": {"id": 338, "owner": {"id": 969}, "assignee": {"id": 1014}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 575}, "organization": {"id": 601}, "project": {"id": 348, "owner": {"id": 713}, "assignee": {"id": 846}}, "task": {"id": 325, "owner": {"id": 946}, "assignee": {"id": 1004}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 517}, "organization": {"id": 141}, "project": {"id": 330, "owner": {"id": 796}, "assignee": {"id": 833}}, "task": {"id": 320, "owner": {"id": 950}, "assignee": {"id": 1076}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 571}, "organization": {"id": 604}, "project": {"id": 333, "owner": {"id": 782}, "assignee": {"id": 825}}, "task": {"id": 360, "owner": {"id": 961}, "assignee": {"id": 1059}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 528}, "organization": {"id": 133}, "project": {"id": 389, "owner": {"id": 781}, "assignee": {"id": 888}}, "task": {"id": 312, "owner": {"id": 999}, "assignee": {"id": 1076}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 559}, "organization": {"id": 699}, "project": {"id": 379, "owner": {"id": 790}, "assignee": {"id": 880}}, "task": {"id": 394, "owner": {"id": 980}, "assignee": {"id": 1043}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 549}, "organization": {"id": 107}, "project": {"id": 353, "owner": {"id": 788}, "assignee": {"id": 836}}, "task": {"id": 372, "owner": {"id": 934}, "assignee": {"id": 1002}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 543}, "organization": {"id": 625}, "project": {"id": 349, "owner": {"id": 787}, "assignee": {"id": 820}}, "task": {"id": 364, "owner": {"id": 979}, "assignee": {"id": 1073}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 592}, "organization": {"id": 102}, "project": {"id": 373, "owner": {"id": 794}, "assignee": {"id": 821}}, "task": {"id": 335, "owner": {"id": 916}, "assignee": {"id": 1077}}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 542}, "organization": {"id": 646}, "project": {"id": 361, "owner": {"id": 742}, "assignee": {"id": 837}}, "task": {"id": 310, "owner": {"id": 954}, "assignee": {"id": 1081}}}} +} + +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": 3, "privilege": "admin"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 522}, "organization": {"id": 615}, "project": {"id": 323, "owner": {"id": 3}, "assignee": {"id": 868}}, "task": {"id": 313, "owner": {"id": 945}, "assignee": {"id": 1037}}}} +} + +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": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 326, "assignee": {"id": 593}, "organization": {"id": 603}, "project": {"id": 358, "owner": {"id": 82}, "assignee": {"id": 879}}, "task": {"id": 364, "owner": {"id": 982}, "assignee": {"id": 1024}}}} +} + +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": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 307, "assignee": {"id": 542}, "organization": {"id": 688}, "project": {"id": 365, "owner": {"id": 76}, "assignee": {"id": 854}}, "task": {"id": 366, "owner": {"id": 961}, "assignee": {"id": 1007}}}} +} + +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": 86, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "assignee": {"id": 519}, "organization": {"id": 610}, "project": {"id": 333, "owner": {"id": 86}, "assignee": {"id": 886}}, "task": {"id": 377, "owner": {"id": 923}, "assignee": {"id": 1015}}}} +} + +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": 93, "privilege": "none"}, "organization": null}, "resource": {"id": 385, "assignee": {"id": 505}, "organization": {"id": 694}, "project": {"id": 331, "owner": {"id": 93}, "assignee": {"id": 809}}, "task": {"id": 328, "owner": {"id": 985}, "assignee": {"id": 1094}}}} +} + +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": 57, "privilege": "admin"}, "organization": null}, "resource": {"id": 326, "assignee": {"id": 527}, "organization": {"id": 617}, "project": {"id": 345, "owner": {"id": 717}, "assignee": {"id": 57}}, "task": {"id": 369, "owner": {"id": 958}, "assignee": {"id": 1045}}}} +} + +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": 37, "privilege": "business"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 545}, "organization": {"id": 694}, "project": {"id": 329, "owner": {"id": 702}, "assignee": {"id": 37}}, "task": {"id": 307, "owner": {"id": 934}, "assignee": {"id": 1001}}}} +} + +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": 7, "privilege": "user"}, "organization": null}, "resource": {"id": 326, "assignee": {"id": 585}, "organization": {"id": 670}, "project": {"id": 370, "owner": {"id": 720}, "assignee": {"id": 7}}, "task": {"id": 396, "owner": {"id": 916}, "assignee": {"id": 1094}}}} +} + +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": 29, "privilege": "worker"}, "organization": null}, "resource": {"id": 368, "assignee": {"id": 529}, "organization": {"id": 684}, "project": {"id": 387, "owner": {"id": 717}, "assignee": {"id": 29}}, "task": {"id": 355, "owner": {"id": 919}, "assignee": {"id": 1005}}}} +} + +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": 62, "privilege": "none"}, "organization": null}, "resource": {"id": 350, "assignee": {"id": 526}, "organization": {"id": 625}, "project": {"id": 397, "owner": {"id": 744}, "assignee": {"id": 62}}, "task": {"id": 338, "owner": {"id": 946}, "assignee": {"id": 1058}}}} +} + +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": 71, "privilege": "admin"}, "organization": null}, "resource": {"id": 313, "assignee": {"id": 594}, "organization": {"id": 693}, "project": {"id": 371, "owner": {"id": 790}, "assignee": {"id": 873}}, "task": {"id": 304, "owner": {"id": 71}, "assignee": {"id": 1036}}}} +} + +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": 56, "privilege": "business"}, "organization": null}, "resource": {"id": 350, "assignee": {"id": 583}, "organization": {"id": 695}, "project": {"id": 328, "owner": {"id": 723}, "assignee": {"id": 893}}, "task": {"id": 378, "owner": {"id": 56}, "assignee": {"id": 1074}}}} +} + +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": 86, "privilege": "user"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 507}, "organization": {"id": 677}, "project": {"id": 389, "owner": {"id": 765}, "assignee": {"id": 899}}, "task": {"id": 395, "owner": {"id": 86}, "assignee": {"id": 1017}}}} +} + +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": 68, "privilege": "worker"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 537}, "organization": {"id": 698}, "project": {"id": 344, "owner": {"id": 766}, "assignee": {"id": 832}}, "task": {"id": 326, "owner": {"id": 68}, "assignee": {"id": 1022}}}} +} + +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": 92, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "assignee": {"id": 578}, "organization": {"id": 674}, "project": {"id": 358, "owner": {"id": 736}, "assignee": {"id": 849}}, "task": {"id": 342, "owner": {"id": 92}, "assignee": {"id": 1042}}}} +} + +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": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "assignee": {"id": 539}, "organization": {"id": 667}, "project": {"id": 364, "owner": {"id": 740}, "assignee": {"id": 870}}, "task": {"id": 362, "owner": {"id": 936}, "assignee": {"id": 22}}}} +} + +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": 18, "privilege": "business"}, "organization": null}, "resource": {"id": 350, "assignee": {"id": 560}, "organization": {"id": 699}, "project": {"id": 328, "owner": {"id": 766}, "assignee": {"id": 834}}, "task": {"id": 386, "owner": {"id": 900}, "assignee": {"id": 18}}}} +} + +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": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 395, "assignee": {"id": 587}, "organization": {"id": 632}, "project": {"id": 366, "owner": {"id": 759}, "assignee": {"id": 829}}, "task": {"id": 310, "owner": {"id": 904}, "assignee": {"id": 53}}}} +} + +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": 26, "privilege": "worker"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 526}, "organization": {"id": 636}, "project": {"id": 352, "owner": {"id": 776}, "assignee": {"id": 841}}, "task": {"id": 375, "owner": {"id": 950}, "assignee": {"id": 26}}}} +} + +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": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "assignee": {"id": 502}, "organization": {"id": 616}, "project": {"id": 355, "owner": {"id": 708}, "assignee": {"id": 857}}, "task": {"id": 356, "owner": {"id": 944}, "assignee": {"id": 16}}}} +} + +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": 64, "privilege": "admin"}, "organization": null}, "resource": {"id": 323, "assignee": {"id": 64}, "organization": {"id": 644}, "project": {"id": 309, "owner": {"id": 788}, "assignee": {"id": 843}}, "task": {"id": 350, "owner": {"id": 914}, "assignee": {"id": 1042}}}} +} + +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": 41, "privilege": "business"}, "organization": null}, "resource": {"id": 326, "assignee": {"id": 41}, "organization": {"id": 652}, "project": {"id": 384, "owner": {"id": 791}, "assignee": {"id": 865}}, "task": {"id": 341, "owner": {"id": 925}, "assignee": {"id": 1044}}}} +} + +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": 89, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 89}, "organization": {"id": 683}, "project": {"id": 355, "owner": {"id": 745}, "assignee": {"id": 818}}, "task": {"id": 317, "owner": {"id": 979}, "assignee": {"id": 1044}}}} +} + +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": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 330, "assignee": {"id": 19}, "organization": {"id": 610}, "project": {"id": 378, "owner": {"id": 712}, "assignee": {"id": 836}}, "task": {"id": 380, "owner": {"id": 927}, "assignee": {"id": 1092}}}} +} + +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": 74, "privilege": "none"}, "organization": null}, "resource": {"id": 389, "assignee": {"id": 74}, "organization": {"id": 699}, "project": {"id": 326, "owner": {"id": 768}, "assignee": {"id": 817}}, "task": {"id": 323, "owner": {"id": 987}, "assignee": {"id": 1023}}}} +} + +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": 94, "privilege": "admin"}, "organization": null}, "resource": {"id": 345, "assignee": {"id": 553}, "organization": {"id": 617}, "project": {"id": 327, "owner": {"id": 782}, "assignee": {"id": 854}}, "task": {"id": 393, "owner": {"id": 963}, "assignee": {"id": 1073}}}} +} + +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": 73, "privilege": "business"}, "organization": null}, "resource": {"id": 398, "assignee": {"id": 591}, "organization": {"id": 600}, "project": {"id": 368, "owner": {"id": 750}, "assignee": {"id": 863}}, "task": {"id": 370, "owner": {"id": 953}, "assignee": {"id": 1069}}}} +} + +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": 34, "privilege": "user"}, "organization": null}, "resource": {"id": 349, "assignee": {"id": 538}, "organization": {"id": 626}, "project": {"id": 338, "owner": {"id": 750}, "assignee": {"id": 843}}, "task": {"id": 384, "owner": {"id": 942}, "assignee": {"id": 1019}}}} +} + +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": 32, "privilege": "worker"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 540}, "organization": {"id": 640}, "project": {"id": 312, "owner": {"id": 780}, "assignee": {"id": 869}}, "task": {"id": 398, "owner": {"id": 930}, "assignee": {"id": 1067}}}} +} + +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": 85, "privilege": "none"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 500}, "organization": {"id": 611}, "project": {"id": 392, "owner": {"id": 715}, "assignee": {"id": 890}}, "task": {"id": 331, "owner": {"id": 974}, "assignee": {"id": 1064}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 548}, "organization": {"id": 191}, "project": {"id": 311, "owner": {"id": 86}, "assignee": {"id": 805}}, "task": {"id": 330, "owner": {"id": 900}, "assignee": {"id": 1090}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 540}, "organization": {"id": 611}, "project": {"id": 330, "owner": {"id": 57}, "assignee": {"id": 820}}, "task": {"id": 300, "owner": {"id": 918}, "assignee": {"id": 1042}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 518}, "organization": {"id": 126}, "project": {"id": 383, "owner": {"id": 63}, "assignee": {"id": 849}}, "task": {"id": 300, "owner": {"id": 911}, "assignee": {"id": 1081}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 512}, "organization": {"id": 680}, "project": {"id": 350, "owner": {"id": 56}, "assignee": {"id": 816}}, "task": {"id": 383, "owner": {"id": 981}, "assignee": {"id": 1057}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 508}, "organization": {"id": 155}, "project": {"id": 336, "owner": {"id": 35}, "assignee": {"id": 892}}, "task": {"id": 354, "owner": {"id": 965}, "assignee": {"id": 1092}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 551}, "organization": {"id": 666}, "project": {"id": 385, "owner": {"id": 64}, "assignee": {"id": 819}}, "task": {"id": 378, "owner": {"id": 916}, "assignee": {"id": 1087}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 575}, "organization": {"id": 185}, "project": {"id": 396, "owner": {"id": 23}, "assignee": {"id": 800}}, "task": {"id": 302, "owner": {"id": 925}, "assignee": {"id": 1066}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 568}, "organization": {"id": 683}, "project": {"id": 371, "owner": {"id": 65}, "assignee": {"id": 809}}, "task": {"id": 354, "owner": {"id": 936}, "assignee": {"id": 1023}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 583}, "organization": {"id": 153}, "project": {"id": 331, "owner": {"id": 75}, "assignee": {"id": 845}}, "task": {"id": 399, "owner": {"id": 987}, "assignee": {"id": 1020}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 528}, "organization": {"id": 672}, "project": {"id": 312, "owner": {"id": 21}, "assignee": {"id": 836}}, "task": {"id": 399, "owner": {"id": 900}, "assignee": {"id": 1042}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 526}, "organization": {"id": 188}, "project": {"id": 347, "owner": {"id": 77}, "assignee": {"id": 837}}, "task": {"id": 335, "owner": {"id": 936}, "assignee": {"id": 1022}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 542}, "organization": {"id": 601}, "project": {"id": 324, "owner": {"id": 68}, "assignee": {"id": 844}}, "task": {"id": 379, "owner": {"id": 966}, "assignee": {"id": 1035}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 540}, "organization": {"id": 129}, "project": {"id": 366, "owner": {"id": 33}, "assignee": {"id": 894}}, "task": {"id": 301, "owner": {"id": 967}, "assignee": {"id": 1095}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 504}, "organization": {"id": 641}, "project": {"id": 364, "owner": {"id": 20}, "assignee": {"id": 828}}, "task": {"id": 318, "owner": {"id": 914}, "assignee": {"id": 1035}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 552}, "organization": {"id": 182}, "project": {"id": 345, "owner": {"id": 70}, "assignee": {"id": 847}}, "task": {"id": 379, "owner": {"id": 983}, "assignee": {"id": 1074}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 577}, "organization": {"id": 639}, "project": {"id": 370, "owner": {"id": 38}, "assignee": {"id": 800}}, "task": {"id": 328, "owner": {"id": 919}, "assignee": {"id": 1089}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 563}, "organization": {"id": 161}, "project": {"id": 373, "owner": {"id": 49}, "assignee": {"id": 872}}, "task": {"id": 319, "owner": {"id": 936}, "assignee": {"id": 1038}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 575}, "organization": {"id": 619}, "project": {"id": 352, "owner": {"id": 56}, "assignee": {"id": 815}}, "task": {"id": 310, "owner": {"id": 939}, "assignee": {"id": 1025}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 506}, "organization": {"id": 135}, "project": {"id": 397, "owner": {"id": 33}, "assignee": {"id": 898}}, "task": {"id": 334, "owner": {"id": 909}, "assignee": {"id": 1031}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 522}, "organization": {"id": 650}, "project": {"id": 332, "owner": {"id": 44}, "assignee": {"id": 868}}, "task": {"id": 336, "owner": {"id": 953}, "assignee": {"id": 1013}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 529}, "organization": {"id": 111}, "project": {"id": 395, "owner": {"id": 29}, "assignee": {"id": 852}}, "task": {"id": 336, "owner": {"id": 957}, "assignee": {"id": 1018}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 505}, "organization": {"id": 643}, "project": {"id": 358, "owner": {"id": 34}, "assignee": {"id": 874}}, "task": {"id": 355, "owner": {"id": 921}, "assignee": {"id": 1033}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 567}, "organization": {"id": 119}, "project": {"id": 302, "owner": {"id": 54}, "assignee": {"id": 821}}, "task": {"id": 316, "owner": {"id": 989}, "assignee": {"id": 1007}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 551}, "organization": {"id": 634}, "project": {"id": 370, "owner": {"id": 25}, "assignee": {"id": 848}}, "task": {"id": 361, "owner": {"id": 947}, "assignee": {"id": 1009}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 549}, "organization": {"id": 124}, "project": {"id": 354, "owner": {"id": 7}, "assignee": {"id": 827}}, "task": {"id": 355, "owner": {"id": 940}, "assignee": {"id": 1086}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 599}, "organization": {"id": 627}, "project": {"id": 377, "owner": {"id": 97}, "assignee": {"id": 818}}, "task": {"id": 335, "owner": {"id": 927}, "assignee": {"id": 1034}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 545}, "organization": {"id": 168}, "project": {"id": 397, "owner": {"id": 31}, "assignee": {"id": 816}}, "task": {"id": 327, "owner": {"id": 942}, "assignee": {"id": 1011}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 552}, "organization": {"id": 625}, "project": {"id": 303, "owner": {"id": 68}, "assignee": {"id": 892}}, "task": {"id": 324, "owner": {"id": 921}, "assignee": {"id": 1051}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 510}, "organization": {"id": 177}, "project": {"id": 313, "owner": {"id": 4}, "assignee": {"id": 825}}, "task": {"id": 393, "owner": {"id": 949}, "assignee": {"id": 1015}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 526}, "organization": {"id": 697}, "project": {"id": 383, "owner": {"id": 15}, "assignee": {"id": 839}}, "task": {"id": 398, "owner": {"id": 934}, "assignee": {"id": 1033}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 508}, "organization": {"id": 158}, "project": {"id": 354, "owner": {"id": 9}, "assignee": {"id": 896}}, "task": {"id": 308, "owner": {"id": 961}, "assignee": {"id": 1045}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 530}, "organization": {"id": 677}, "project": {"id": 308, "owner": {"id": 67}, "assignee": {"id": 896}}, "task": {"id": 354, "owner": {"id": 986}, "assignee": {"id": 1031}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 531}, "organization": {"id": 112}, "project": {"id": 348, "owner": {"id": 6}, "assignee": {"id": 806}}, "task": {"id": 370, "owner": {"id": 972}, "assignee": {"id": 1087}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 519}, "organization": {"id": 656}, "project": {"id": 323, "owner": {"id": 7}, "assignee": {"id": 811}}, "task": {"id": 313, "owner": {"id": 926}, "assignee": {"id": 1029}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 586}, "organization": {"id": 137}, "project": {"id": 336, "owner": {"id": 68}, "assignee": {"id": 811}}, "task": {"id": 345, "owner": {"id": 911}, "assignee": {"id": 1006}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 559}, "organization": {"id": 672}, "project": {"id": 399, "owner": {"id": 11}, "assignee": {"id": 806}}, "task": {"id": 365, "owner": {"id": 932}, "assignee": {"id": 1017}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 566}, "organization": {"id": 144}, "project": {"id": 301, "owner": {"id": 15}, "assignee": {"id": 864}}, "task": {"id": 313, "owner": {"id": 962}, "assignee": {"id": 1014}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 539}, "organization": {"id": 680}, "project": {"id": 355, "owner": {"id": 42}, "assignee": {"id": 860}}, "task": {"id": 342, "owner": {"id": 948}, "assignee": {"id": 1041}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 534}, "organization": {"id": 190}, "project": {"id": 328, "owner": {"id": 10}, "assignee": {"id": 866}}, "task": {"id": 322, "owner": {"id": 949}, "assignee": {"id": 1024}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 565}, "organization": {"id": 622}, "project": {"id": 328, "owner": {"id": 28}, "assignee": {"id": 857}}, "task": {"id": 312, "owner": {"id": 983}, "assignee": {"id": 1066}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 592}, "organization": {"id": 115}, "project": {"id": 383, "owner": {"id": 64}, "assignee": {"id": 854}}, "task": {"id": 304, "owner": {"id": 911}, "assignee": {"id": 1037}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 514}, "organization": {"id": 645}, "project": {"id": 318, "owner": {"id": 19}, "assignee": {"id": 853}}, "task": {"id": 342, "owner": {"id": 977}, "assignee": {"id": 1057}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 516}, "organization": {"id": 130}, "project": {"id": 377, "owner": {"id": 92}, "assignee": {"id": 887}}, "task": {"id": 328, "owner": {"id": 962}, "assignee": {"id": 1025}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 569}, "organization": {"id": 694}, "project": {"id": 331, "owner": {"id": 95}, "assignee": {"id": 801}}, "task": {"id": 348, "owner": {"id": 943}, "assignee": {"id": 1053}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 540}, "organization": {"id": 183}, "project": {"id": 361, "owner": {"id": 18}, "assignee": {"id": 824}}, "task": {"id": 377, "owner": {"id": 952}, "assignee": {"id": 1071}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 551}, "organization": {"id": 654}, "project": {"id": 351, "owner": {"id": 17}, "assignee": {"id": 803}}, "task": {"id": 343, "owner": {"id": 982}, "assignee": {"id": 1067}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 526}, "organization": {"id": 176}, "project": {"id": 344, "owner": {"id": 47}, "assignee": {"id": 839}}, "task": {"id": 350, "owner": {"id": 903}, "assignee": {"id": 1059}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 310, "assignee": {"id": 522}, "organization": {"id": 693}, "project": {"id": 394, "owner": {"id": 18}, "assignee": {"id": 858}}, "task": {"id": 391, "owner": {"id": 989}, "assignee": {"id": 1009}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 545}, "organization": {"id": 168}, "project": {"id": 390, "owner": {"id": 90}, "assignee": {"id": 886}}, "task": {"id": 321, "owner": {"id": 984}, "assignee": {"id": 1025}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 570}, "organization": {"id": 664}, "project": {"id": 361, "owner": {"id": 85}, "assignee": {"id": 897}}, "task": {"id": 332, "owner": {"id": 928}, "assignee": {"id": 1035}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 568}, "organization": {"id": 114}, "project": {"id": 386, "owner": {"id": 777}, "assignee": {"id": 22}}, "task": {"id": 300, "owner": {"id": 952}, "assignee": {"id": 1080}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 598}, "organization": {"id": 681}, "project": {"id": 343, "owner": {"id": 770}, "assignee": {"id": 47}}, "task": {"id": 343, "owner": {"id": 942}, "assignee": {"id": 1081}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 507}, "organization": {"id": 139}, "project": {"id": 331, "owner": {"id": 727}, "assignee": {"id": 85}}, "task": {"id": 319, "owner": {"id": 943}, "assignee": {"id": 1043}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 527}, "organization": {"id": 645}, "project": {"id": 396, "owner": {"id": 796}, "assignee": {"id": 52}}, "task": {"id": 371, "owner": {"id": 922}, "assignee": {"id": 1043}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 513}, "organization": {"id": 196}, "project": {"id": 355, "owner": {"id": 745}, "assignee": {"id": 0}}, "task": {"id": 333, "owner": {"id": 920}, "assignee": {"id": 1057}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 569}, "organization": {"id": 648}, "project": {"id": 367, "owner": {"id": 793}, "assignee": {"id": 60}}, "task": {"id": 362, "owner": {"id": 937}, "assignee": {"id": 1009}}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 580}, "organization": {"id": 180}, "project": {"id": 397, "owner": {"id": 722}, "assignee": {"id": 7}}, "task": {"id": 353, "owner": {"id": 922}, "assignee": {"id": 1036}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 563}, "organization": {"id": 689}, "project": {"id": 300, "owner": {"id": 717}, "assignee": {"id": 10}}, "task": {"id": 339, "owner": {"id": 914}, "assignee": {"id": 1028}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 587}, "organization": {"id": 104}, "project": {"id": 320, "owner": {"id": 714}, "assignee": {"id": 70}}, "task": {"id": 309, "owner": {"id": 923}, "assignee": {"id": 1030}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 542}, "organization": {"id": 647}, "project": {"id": 394, "owner": {"id": 723}, "assignee": {"id": 9}}, "task": {"id": 306, "owner": {"id": 969}, "assignee": {"id": 1058}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 597}, "organization": {"id": 117}, "project": {"id": 331, "owner": {"id": 736}, "assignee": {"id": 63}}, "task": {"id": 307, "owner": {"id": 986}, "assignee": {"id": 1021}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 588}, "organization": {"id": 669}, "project": {"id": 391, "owner": {"id": 735}, "assignee": {"id": 18}}, "task": {"id": 364, "owner": {"id": 903}, "assignee": {"id": 1064}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 504}, "organization": {"id": 183}, "project": {"id": 342, "owner": {"id": 745}, "assignee": {"id": 73}}, "task": {"id": 355, "owner": {"id": 956}, "assignee": {"id": 1013}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 569}, "organization": {"id": 666}, "project": {"id": 312, "owner": {"id": 711}, "assignee": {"id": 33}}, "task": {"id": 342, "owner": {"id": 950}, "assignee": {"id": 1052}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "assignee": {"id": 584}, "organization": {"id": 141}, "project": {"id": 306, "owner": {"id": 790}, "assignee": {"id": 70}}, "task": {"id": 300, "owner": {"id": 991}, "assignee": {"id": 1048}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 529}, "organization": {"id": 604}, "project": {"id": 342, "owner": {"id": 781}, "assignee": {"id": 16}}, "task": {"id": 317, "owner": {"id": 986}, "assignee": {"id": 1038}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 585}, "organization": {"id": 115}, "project": {"id": 338, "owner": {"id": 728}, "assignee": {"id": 89}}, "task": {"id": 398, "owner": {"id": 939}, "assignee": {"id": 1023}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 517}, "organization": {"id": 660}, "project": {"id": 398, "owner": {"id": 716}, "assignee": {"id": 66}}, "task": {"id": 322, "owner": {"id": 954}, "assignee": {"id": 1053}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 525}, "organization": {"id": 162}, "project": {"id": 387, "owner": {"id": 744}, "assignee": {"id": 96}}, "task": {"id": 343, "owner": {"id": 972}, "assignee": {"id": 1018}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 580}, "organization": {"id": 640}, "project": {"id": 338, "owner": {"id": 701}, "assignee": {"id": 14}}, "task": {"id": 377, "owner": {"id": 938}, "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": 23, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 541}, "organization": {"id": 177}, "project": {"id": 390, "owner": {"id": 701}, "assignee": {"id": 23}}, "task": {"id": 323, "owner": {"id": 987}, "assignee": {"id": 1000}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 558}, "organization": {"id": 671}, "project": {"id": 383, "owner": {"id": 718}, "assignee": {"id": 45}}, "task": {"id": 312, "owner": {"id": 996}, "assignee": {"id": 1058}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 523}, "organization": {"id": 198}, "project": {"id": 341, "owner": {"id": 705}, "assignee": {"id": 87}}, "task": {"id": 339, "owner": {"id": 992}, "assignee": {"id": 1085}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 565}, "organization": {"id": 673}, "project": {"id": 389, "owner": {"id": 723}, "assignee": {"id": 78}}, "task": {"id": 395, "owner": {"id": 991}, "assignee": {"id": 1012}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 521}, "organization": {"id": 171}, "project": {"id": 387, "owner": {"id": 736}, "assignee": {"id": 97}}, "task": {"id": 300, "owner": {"id": 954}, "assignee": {"id": 1033}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 597}, "organization": {"id": 697}, "project": {"id": 363, "owner": {"id": 719}, "assignee": {"id": 2}}, "task": {"id": 390, "owner": {"id": 917}, "assignee": {"id": 1021}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 594}, "organization": {"id": 145}, "project": {"id": 302, "owner": {"id": 755}, "assignee": {"id": 7}}, "task": {"id": 343, "owner": {"id": 949}, "assignee": {"id": 1017}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 391, "assignee": {"id": 598}, "organization": {"id": 620}, "project": {"id": 337, "owner": {"id": 730}, "assignee": {"id": 89}}, "task": {"id": 318, "owner": {"id": 959}, "assignee": {"id": 1057}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 532}, "organization": {"id": 114}, "project": {"id": 321, "owner": {"id": 788}, "assignee": {"id": 25}}, "task": {"id": 384, "owner": {"id": 996}, "assignee": {"id": 1009}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 578}, "organization": {"id": 646}, "project": {"id": 354, "owner": {"id": 763}, "assignee": {"id": 79}}, "task": {"id": 362, "owner": {"id": 994}, "assignee": {"id": 1011}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 531}, "organization": {"id": 172}, "project": {"id": 338, "owner": {"id": 789}, "assignee": {"id": 43}}, "task": {"id": 300, "owner": {"id": 915}, "assignee": {"id": 1089}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 557}, "organization": {"id": 611}, "project": {"id": 383, "owner": {"id": 702}, "assignee": {"id": 95}}, "task": {"id": 342, "owner": {"id": 909}, "assignee": {"id": 1026}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 562}, "organization": {"id": 142}, "project": {"id": 373, "owner": {"id": 708}, "assignee": {"id": 74}}, "task": {"id": 320, "owner": {"id": 908}, "assignee": {"id": 1082}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 540}, "organization": {"id": 603}, "project": {"id": 338, "owner": {"id": 759}, "assignee": {"id": 6}}, "task": {"id": 322, "owner": {"id": 924}, "assignee": {"id": 1009}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 519}, "organization": {"id": 178}, "project": {"id": 386, "owner": {"id": 716}, "assignee": {"id": 39}}, "task": {"id": 342, "owner": {"id": 979}, "assignee": {"id": 1049}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 587}, "organization": {"id": 683}, "project": {"id": 369, "owner": {"id": 777}, "assignee": {"id": 38}}, "task": {"id": 317, "owner": {"id": 961}, "assignee": {"id": 1016}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 579}, "organization": {"id": 126}, "project": {"id": 328, "owner": {"id": 710}, "assignee": {"id": 64}}, "task": {"id": 358, "owner": {"id": 971}, "assignee": {"id": 1045}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 590}, "organization": {"id": 649}, "project": {"id": 366, "owner": {"id": 767}, "assignee": {"id": 41}}, "task": {"id": 318, "owner": {"id": 969}, "assignee": {"id": 1050}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 556}, "organization": {"id": 184}, "project": {"id": 344, "owner": {"id": 740}, "assignee": {"id": 29}}, "task": {"id": 302, "owner": {"id": 937}, "assignee": {"id": 1055}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 524}, "organization": {"id": 661}, "project": {"id": 389, "owner": {"id": 705}, "assignee": {"id": 6}}, "task": {"id": 339, "owner": {"id": 963}, "assignee": {"id": 1046}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 513}, "organization": {"id": 158}, "project": {"id": 337, "owner": {"id": 787}, "assignee": {"id": 70}}, "task": {"id": 302, "owner": {"id": 997}, "assignee": {"id": 1055}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 584}, "organization": {"id": 695}, "project": {"id": 380, "owner": {"id": 725}, "assignee": {"id": 29}}, "task": {"id": 340, "owner": {"id": 901}, "assignee": {"id": 1098}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 508}, "organization": {"id": 130}, "project": {"id": 389, "owner": {"id": 743}, "assignee": {"id": 78}}, "task": {"id": 384, "owner": {"id": 907}, "assignee": {"id": 1035}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 565}, "organization": {"id": 616}, "project": {"id": 367, "owner": {"id": 712}, "assignee": {"id": 50}}, "task": {"id": 314, "owner": {"id": 929}, "assignee": {"id": 1069}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 503}, "organization": {"id": 101}, "project": {"id": 317, "owner": {"id": 786}, "assignee": {"id": 90}}, "task": {"id": 384, "owner": {"id": 905}, "assignee": {"id": 1089}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 547}, "organization": {"id": 623}, "project": {"id": 309, "owner": {"id": 787}, "assignee": {"id": 96}}, "task": {"id": 383, "owner": {"id": 920}, "assignee": {"id": 1020}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 535}, "organization": {"id": 137}, "project": {"id": 398, "owner": {"id": 710}, "assignee": {"id": 11}}, "task": {"id": 351, "owner": {"id": 923}, "assignee": {"id": 1009}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 550}, "organization": {"id": 623}, "project": {"id": 326, "owner": {"id": 761}, "assignee": {"id": 62}}, "task": {"id": 322, "owner": {"id": 922}, "assignee": {"id": 1010}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 553}, "organization": {"id": 146}, "project": {"id": 337, "owner": {"id": 751}, "assignee": {"id": 60}}, "task": {"id": 301, "owner": {"id": 962}, "assignee": {"id": 1046}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 324, "assignee": {"id": 599}, "organization": {"id": 614}, "project": {"id": 311, "owner": {"id": 723}, "assignee": {"id": 52}}, "task": {"id": 307, "owner": {"id": 914}, "assignee": {"id": 1047}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 543}, "organization": {"id": 167}, "project": {"id": 363, "owner": {"id": 763}, "assignee": {"id": 841}}, "task": {"id": 320, "owner": {"id": 51}, "assignee": {"id": 1002}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 553}, "organization": {"id": 650}, "project": {"id": 335, "owner": {"id": 775}, "assignee": {"id": 823}}, "task": {"id": 322, "owner": {"id": 6}, "assignee": {"id": 1005}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 517}, "organization": {"id": 177}, "project": {"id": 368, "owner": {"id": 799}, "assignee": {"id": 860}}, "task": {"id": 379, "owner": {"id": 8}, "assignee": {"id": 1060}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 550}, "organization": {"id": 643}, "project": {"id": 370, "owner": {"id": 751}, "assignee": {"id": 836}}, "task": {"id": 366, "owner": {"id": 17}, "assignee": {"id": 1078}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 520}, "organization": {"id": 121}, "project": {"id": 326, "owner": {"id": 708}, "assignee": {"id": 841}}, "task": {"id": 303, "owner": {"id": 57}, "assignee": {"id": 1016}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 501}, "organization": {"id": 662}, "project": {"id": 399, "owner": {"id": 733}, "assignee": {"id": 873}}, "task": {"id": 318, "owner": {"id": 69}, "assignee": {"id": 1007}}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 593}, "organization": {"id": 138}, "project": {"id": 346, "owner": {"id": 725}, "assignee": {"id": 890}}, "task": {"id": 327, "owner": {"id": 29}, "assignee": {"id": 1031}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 581}, "organization": {"id": 649}, "project": {"id": 331, "owner": {"id": 735}, "assignee": {"id": 854}}, "task": {"id": 329, "owner": {"id": 1}, "assignee": {"id": 1004}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 513}, "organization": {"id": 113}, "project": {"id": 343, "owner": {"id": 742}, "assignee": {"id": 817}}, "task": {"id": 305, "owner": {"id": 22}, "assignee": {"id": 1016}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 571}, "organization": {"id": 679}, "project": {"id": 379, "owner": {"id": 774}, "assignee": {"id": 828}}, "task": {"id": 328, "owner": {"id": 72}, "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": 22, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 531}, "organization": {"id": 146}, "project": {"id": 342, "owner": {"id": 734}, "assignee": {"id": 838}}, "task": {"id": 316, "owner": {"id": 22}, "assignee": {"id": 1021}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 574}, "organization": {"id": 613}, "project": {"id": 323, "owner": {"id": 740}, "assignee": {"id": 880}}, "task": {"id": 342, "owner": {"id": 33}, "assignee": {"id": 1093}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 584}, "organization": {"id": 125}, "project": {"id": 313, "owner": {"id": 794}, "assignee": {"id": 801}}, "task": {"id": 300, "owner": {"id": 1}, "assignee": {"id": 1065}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 537}, "organization": {"id": 680}, "project": {"id": 380, "owner": {"id": 773}, "assignee": {"id": 839}}, "task": {"id": 321, "owner": {"id": 76}, "assignee": {"id": 1048}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 535}, "organization": {"id": 184}, "project": {"id": 325, "owner": {"id": 733}, "assignee": {"id": 845}}, "task": {"id": 319, "owner": {"id": 23}, "assignee": {"id": 1016}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 574}, "organization": {"id": 600}, "project": {"id": 322, "owner": {"id": 776}, "assignee": {"id": 895}}, "task": {"id": 360, "owner": {"id": 95}, "assignee": {"id": 1013}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 593}, "organization": {"id": 155}, "project": {"id": 369, "owner": {"id": 720}, "assignee": {"id": 852}}, "task": {"id": 312, "owner": {"id": 13}, "assignee": {"id": 1039}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 569}, "organization": {"id": 649}, "project": {"id": 346, "owner": {"id": 719}, "assignee": {"id": 877}}, "task": {"id": 324, "owner": {"id": 5}, "assignee": {"id": 1053}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 578}, "organization": {"id": 140}, "project": {"id": 300, "owner": {"id": 761}, "assignee": {"id": 896}}, "task": {"id": 346, "owner": {"id": 84}, "assignee": {"id": 1005}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 567}, "organization": {"id": 613}, "project": {"id": 332, "owner": {"id": 758}, "assignee": {"id": 872}}, "task": {"id": 345, "owner": {"id": 94}, "assignee": {"id": 1086}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 571}, "organization": {"id": 185}, "project": {"id": 354, "owner": {"id": 741}, "assignee": {"id": 885}}, "task": {"id": 309, "owner": {"id": 60}, "assignee": {"id": 1093}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 542}, "organization": {"id": 673}, "project": {"id": 320, "owner": {"id": 748}, "assignee": {"id": 878}}, "task": {"id": 317, "owner": {"id": 32}, "assignee": {"id": 1010}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 580}, "organization": {"id": 192}, "project": {"id": 395, "owner": {"id": 740}, "assignee": {"id": 857}}, "task": {"id": 398, "owner": {"id": 63}, "assignee": {"id": 1090}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 544}, "organization": {"id": 673}, "project": {"id": 335, "owner": {"id": 723}, "assignee": {"id": 832}}, "task": {"id": 384, "owner": {"id": 89}, "assignee": {"id": 1094}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 533}, "organization": {"id": 181}, "project": {"id": 314, "owner": {"id": 702}, "assignee": {"id": 884}}, "task": {"id": 360, "owner": {"id": 27}, "assignee": {"id": 1083}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 563}, "organization": {"id": 604}, "project": {"id": 328, "owner": {"id": 736}, "assignee": {"id": 806}}, "task": {"id": 370, "owner": {"id": 45}, "assignee": {"id": 1004}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 538}, "organization": {"id": 187}, "project": {"id": 324, "owner": {"id": 751}, "assignee": {"id": 867}}, "task": {"id": 339, "owner": {"id": 9}, "assignee": {"id": 1027}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 537}, "organization": {"id": 649}, "project": {"id": 372, "owner": {"id": 753}, "assignee": {"id": 856}}, "task": {"id": 315, "owner": {"id": 15}, "assignee": {"id": 1079}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 508}, "organization": {"id": 141}, "project": {"id": 370, "owner": {"id": 771}, "assignee": {"id": 807}}, "task": {"id": 391, "owner": {"id": 57}, "assignee": {"id": 1030}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 576}, "organization": {"id": 619}, "project": {"id": 360, "owner": {"id": 725}, "assignee": {"id": 882}}, "task": {"id": 305, "owner": {"id": 63}, "assignee": {"id": 1032}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 563}, "organization": {"id": 137}, "project": {"id": 386, "owner": {"id": 737}, "assignee": {"id": 874}}, "task": {"id": 378, "owner": {"id": 47}, "assignee": {"id": 1062}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 526}, "organization": {"id": 636}, "project": {"id": 317, "owner": {"id": 772}, "assignee": {"id": 873}}, "task": {"id": 316, "owner": {"id": 21}, "assignee": {"id": 1082}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 521}, "organization": {"id": 141}, "project": {"id": 327, "owner": {"id": 761}, "assignee": {"id": 841}}, "task": {"id": 327, "owner": {"id": 13}, "assignee": {"id": 1015}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 589}, "organization": {"id": 672}, "project": {"id": 344, "owner": {"id": 780}, "assignee": {"id": 800}}, "task": {"id": 399, "owner": {"id": 75}, "assignee": {"id": 1027}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 524}, "organization": {"id": 192}, "project": {"id": 354, "owner": {"id": 733}, "assignee": {"id": 888}}, "task": {"id": 311, "owner": {"id": 73}, "assignee": {"id": 1055}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 569}, "organization": {"id": 685}, "project": {"id": 352, "owner": {"id": 713}, "assignee": {"id": 877}}, "task": {"id": 353, "owner": {"id": 90}, "assignee": {"id": 1057}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 539}, "organization": {"id": 192}, "project": {"id": 318, "owner": {"id": 709}, "assignee": {"id": 813}}, "task": {"id": 398, "owner": {"id": 13}, "assignee": {"id": 1097}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 586}, "organization": {"id": 660}, "project": {"id": 342, "owner": {"id": 757}, "assignee": {"id": 875}}, "task": {"id": 312, "owner": {"id": 42}, "assignee": {"id": 1043}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 574}, "organization": {"id": 150}, "project": {"id": 329, "owner": {"id": 710}, "assignee": {"id": 805}}, "task": {"id": 360, "owner": {"id": 93}, "assignee": {"id": 1006}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 543}, "organization": {"id": 615}, "project": {"id": 343, "owner": {"id": 778}, "assignee": {"id": 860}}, "task": {"id": 338, "owner": {"id": 59}, "assignee": {"id": 1016}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 572}, "organization": {"id": 191}, "project": {"id": 306, "owner": {"id": 787}, "assignee": {"id": 811}}, "task": {"id": 384, "owner": {"id": 97}, "assignee": {"id": 1014}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 520}, "organization": {"id": 662}, "project": {"id": 332, "owner": {"id": 776}, "assignee": {"id": 845}}, "task": {"id": 305, "owner": {"id": 69}, "assignee": {"id": 1076}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 562}, "organization": {"id": 115}, "project": {"id": 315, "owner": {"id": 707}, "assignee": {"id": 819}}, "task": {"id": 340, "owner": {"id": 98}, "assignee": {"id": 1061}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 563}, "organization": {"id": 621}, "project": {"id": 372, "owner": {"id": 747}, "assignee": {"id": 886}}, "task": {"id": 374, "owner": {"id": 90}, "assignee": {"id": 1027}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 559}, "organization": {"id": 144}, "project": {"id": 357, "owner": {"id": 755}, "assignee": {"id": 811}}, "task": {"id": 383, "owner": {"id": 63}, "assignee": {"id": 1010}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 559}, "organization": {"id": 611}, "project": {"id": 355, "owner": {"id": 711}, "assignee": {"id": 851}}, "task": {"id": 319, "owner": {"id": 24}, "assignee": {"id": 1046}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 559}, "organization": {"id": 195}, "project": {"id": 323, "owner": {"id": 724}, "assignee": {"id": 833}}, "task": {"id": 397, "owner": {"id": 89}, "assignee": {"id": 1058}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 308, "assignee": {"id": 590}, "organization": {"id": 602}, "project": {"id": 331, "owner": {"id": 786}, "assignee": {"id": 851}}, "task": {"id": 346, "owner": {"id": 16}, "assignee": {"id": 1087}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 533}, "organization": {"id": 185}, "project": {"id": 332, "owner": {"id": 771}, "assignee": {"id": 808}}, "task": {"id": 388, "owner": {"id": 84}, "assignee": {"id": 1020}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 585}, "organization": {"id": 632}, "project": {"id": 346, "owner": {"id": 779}, "assignee": {"id": 890}}, "task": {"id": 340, "owner": {"id": 16}, "assignee": {"id": 1019}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 551}, "organization": {"id": 190}, "project": {"id": 396, "owner": {"id": 768}, "assignee": {"id": 870}}, "task": {"id": 332, "owner": {"id": 930}, "assignee": {"id": 75}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 596}, "organization": {"id": 601}, "project": {"id": 302, "owner": {"id": 743}, "assignee": {"id": 887}}, "task": {"id": 368, "owner": {"id": 999}, "assignee": {"id": 84}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 568}, "organization": {"id": 143}, "project": {"id": 366, "owner": {"id": 743}, "assignee": {"id": 871}}, "task": {"id": 320, "owner": {"id": 902}, "assignee": {"id": 60}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 510}, "organization": {"id": 663}, "project": {"id": 379, "owner": {"id": 719}, "assignee": {"id": 836}}, "task": {"id": 306, "owner": {"id": 951}, "assignee": {"id": 53}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 585}, "organization": {"id": 183}, "project": {"id": 385, "owner": {"id": 771}, "assignee": {"id": 832}}, "task": {"id": 315, "owner": {"id": 964}, "assignee": {"id": 30}}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 534}, "organization": {"id": 668}, "project": {"id": 344, "owner": {"id": 701}, "assignee": {"id": 838}}, "task": {"id": 329, "owner": {"id": 904}, "assignee": {"id": 50}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 597}, "organization": {"id": 106}, "project": {"id": 381, "owner": {"id": 702}, "assignee": {"id": 828}}, "task": {"id": 383, "owner": {"id": 958}, "assignee": {"id": 15}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 548}, "organization": {"id": 691}, "project": {"id": 325, "owner": {"id": 782}, "assignee": {"id": 800}}, "task": {"id": 320, "owner": {"id": 905}, "assignee": {"id": 44}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 544}, "organization": {"id": 177}, "project": {"id": 388, "owner": {"id": 776}, "assignee": {"id": 866}}, "task": {"id": 301, "owner": {"id": 997}, "assignee": {"id": 86}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 563}, "organization": {"id": 658}, "project": {"id": 320, "owner": {"id": 771}, "assignee": {"id": 837}}, "task": {"id": 309, "owner": {"id": 993}, "assignee": {"id": 77}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 540}, "organization": {"id": 178}, "project": {"id": 357, "owner": {"id": 726}, "assignee": {"id": 804}}, "task": {"id": 310, "owner": {"id": 937}, "assignee": {"id": 4}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 575}, "organization": {"id": 686}, "project": {"id": 398, "owner": {"id": 722}, "assignee": {"id": 890}}, "task": {"id": 374, "owner": {"id": 904}, "assignee": {"id": 24}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 535}, "organization": {"id": 141}, "project": {"id": 300, "owner": {"id": 786}, "assignee": {"id": 893}}, "task": {"id": 350, "owner": {"id": 968}, "assignee": {"id": 34}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 523}, "organization": {"id": 625}, "project": {"id": 383, "owner": {"id": 764}, "assignee": {"id": 821}}, "task": {"id": 354, "owner": {"id": 904}, "assignee": {"id": 22}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 579}, "organization": {"id": 135}, "project": {"id": 368, "owner": {"id": 797}, "assignee": {"id": 891}}, "task": {"id": 351, "owner": {"id": 910}, "assignee": {"id": 68}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 536}, "organization": {"id": 667}, "project": {"id": 397, "owner": {"id": 796}, "assignee": {"id": 895}}, "task": {"id": 301, "owner": {"id": 967}, "assignee": {"id": 70}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 571}, "organization": {"id": 119}, "project": {"id": 368, "owner": {"id": 700}, "assignee": {"id": 814}}, "task": {"id": 358, "owner": {"id": 933}, "assignee": {"id": 64}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 594}, "organization": {"id": 609}, "project": {"id": 370, "owner": {"id": 715}, "assignee": {"id": 831}}, "task": {"id": 354, "owner": {"id": 924}, "assignee": {"id": 66}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 578}, "organization": {"id": 188}, "project": {"id": 309, "owner": {"id": 786}, "assignee": {"id": 868}}, "task": {"id": 324, "owner": {"id": 905}, "assignee": {"id": 58}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 584}, "organization": {"id": 632}, "project": {"id": 312, "owner": {"id": 794}, "assignee": {"id": 813}}, "task": {"id": 327, "owner": {"id": 945}, "assignee": {"id": 44}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 552}, "organization": {"id": 198}, "project": {"id": 314, "owner": {"id": 788}, "assignee": {"id": 884}}, "task": {"id": 353, "owner": {"id": 911}, "assignee": {"id": 83}}}} +} + +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": 154, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 542}, "organization": {"id": 613}, "project": {"id": 331, "owner": {"id": 743}, "assignee": {"id": 895}}, "task": {"id": 364, "owner": {"id": 940}, "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": 91, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 508}, "organization": {"id": 116}, "project": {"id": 356, "owner": {"id": 702}, "assignee": {"id": 818}}, "task": {"id": 310, "owner": {"id": 975}, "assignee": {"id": 91}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 541}, "organization": {"id": 632}, "project": {"id": 395, "owner": {"id": 760}, "assignee": {"id": 829}}, "task": {"id": 369, "owner": {"id": 975}, "assignee": {"id": 82}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 512}, "organization": {"id": 120}, "project": {"id": 335, "owner": {"id": 797}, "assignee": {"id": 826}}, "task": {"id": 345, "owner": {"id": 940}, "assignee": {"id": 33}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 523}, "organization": {"id": 672}, "project": {"id": 338, "owner": {"id": 743}, "assignee": {"id": 881}}, "task": {"id": 325, "owner": {"id": 970}, "assignee": {"id": 33}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 549}, "organization": {"id": 157}, "project": {"id": 384, "owner": {"id": 709}, "assignee": {"id": 887}}, "task": {"id": 353, "owner": {"id": 966}, "assignee": {"id": 71}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 546}, "organization": {"id": 691}, "project": {"id": 371, "owner": {"id": 772}, "assignee": {"id": 836}}, "task": {"id": 323, "owner": {"id": 906}, "assignee": {"id": 23}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 524}, "organization": {"id": 118}, "project": {"id": 391, "owner": {"id": 743}, "assignee": {"id": 824}}, "task": {"id": 396, "owner": {"id": 947}, "assignee": {"id": 54}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 536}, "organization": {"id": 690}, "project": {"id": 397, "owner": {"id": 723}, "assignee": {"id": 859}}, "task": {"id": 303, "owner": {"id": 902}, "assignee": {"id": 26}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 553}, "organization": {"id": 142}, "project": {"id": 344, "owner": {"id": 761}, "assignee": {"id": 800}}, "task": {"id": 364, "owner": {"id": 947}, "assignee": {"id": 4}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 512}, "organization": {"id": 607}, "project": {"id": 355, "owner": {"id": 782}, "assignee": {"id": 880}}, "task": {"id": 358, "owner": {"id": 985}, "assignee": {"id": 62}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 597}, "organization": {"id": 112}, "project": {"id": 343, "owner": {"id": 724}, "assignee": {"id": 819}}, "task": {"id": 324, "owner": {"id": 992}, "assignee": {"id": 38}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 503}, "organization": {"id": 664}, "project": {"id": 321, "owner": {"id": 754}, "assignee": {"id": 807}}, "task": {"id": 317, "owner": {"id": 965}, "assignee": {"id": 13}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 567}, "organization": {"id": 109}, "project": {"id": 398, "owner": {"id": 798}, "assignee": {"id": 872}}, "task": {"id": 382, "owner": {"id": 913}, "assignee": {"id": 82}}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 599}, "organization": {"id": 666}, "project": {"id": 332, "owner": {"id": 773}, "assignee": {"id": 820}}, "task": {"id": 332, "owner": {"id": 987}, "assignee": {"id": 51}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 597}, "organization": {"id": 100}, "project": {"id": 366, "owner": {"id": 751}, "assignee": {"id": 827}}, "task": {"id": 371, "owner": {"id": 992}, "assignee": {"id": 38}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 549}, "organization": {"id": 695}, "project": {"id": 338, "owner": {"id": 785}, "assignee": {"id": 877}}, "task": {"id": 334, "owner": {"id": 979}, "assignee": {"id": 28}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 544}, "organization": {"id": 188}, "project": {"id": 332, "owner": {"id": 753}, "assignee": {"id": 874}}, "task": {"id": 317, "owner": {"id": 980}, "assignee": {"id": 38}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 595}, "organization": {"id": 675}, "project": {"id": 338, "owner": {"id": 727}, "assignee": {"id": 800}}, "task": {"id": 360, "owner": {"id": 973}, "assignee": {"id": 49}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 533}, "organization": {"id": 152}, "project": {"id": 346, "owner": {"id": 718}, "assignee": {"id": 805}}, "task": {"id": 371, "owner": {"id": 971}, "assignee": {"id": 5}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 507}, "organization": {"id": 649}, "project": {"id": 388, "owner": {"id": 766}, "assignee": {"id": 812}}, "task": {"id": 310, "owner": {"id": 950}, "assignee": {"id": 12}}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 517}, "organization": {"id": 137}, "project": {"id": 309, "owner": {"id": 798}, "assignee": {"id": 880}}, "task": {"id": 307, "owner": {"id": 984}, "assignee": {"id": 41}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 565}, "organization": {"id": 685}, "project": {"id": 392, "owner": {"id": 799}, "assignee": {"id": 881}}, "task": {"id": 346, "owner": {"id": 918}, "assignee": {"id": 11}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 587}, "organization": {"id": 198}, "project": {"id": 363, "owner": {"id": 702}, "assignee": {"id": 817}}, "task": {"id": 357, "owner": {"id": 954}, "assignee": {"id": 9}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 550}, "organization": {"id": 679}, "project": {"id": 394, "owner": {"id": 784}, "assignee": {"id": 879}}, "task": {"id": 385, "owner": {"id": 913}, "assignee": {"id": 74}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 565}, "organization": {"id": 164}, "project": {"id": 341, "owner": {"id": 727}, "assignee": {"id": 864}}, "task": {"id": 393, "owner": {"id": 921}, "assignee": {"id": 11}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 597}, "organization": {"id": 677}, "project": {"id": 358, "owner": {"id": 741}, "assignee": {"id": 897}}, "task": {"id": 377, "owner": {"id": 904}, "assignee": {"id": 84}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 522}, "organization": {"id": 117}, "project": {"id": 387, "owner": {"id": 742}, "assignee": {"id": 869}}, "task": {"id": 337, "owner": {"id": 951}, "assignee": {"id": 72}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 528}, "organization": {"id": 605}, "project": {"id": 387, "owner": {"id": 763}, "assignee": {"id": 896}}, "task": {"id": 392, "owner": {"id": 930}, "assignee": {"id": 29}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 69}, "organization": {"id": 182}, "project": {"id": 309, "owner": {"id": 720}, "assignee": {"id": 871}}, "task": {"id": 385, "owner": {"id": 963}, "assignee": {"id": 1059}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 86}, "organization": {"id": 644}, "project": {"id": 373, "owner": {"id": 723}, "assignee": {"id": 883}}, "task": {"id": 309, "owner": {"id": 995}, "assignee": {"id": 1020}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 12}, "organization": {"id": 188}, "project": {"id": 372, "owner": {"id": 731}, "assignee": {"id": 873}}, "task": {"id": 311, "owner": {"id": 956}, "assignee": {"id": 1087}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 55}, "organization": {"id": 607}, "project": {"id": 319, "owner": {"id": 717}, "assignee": {"id": 891}}, "task": {"id": 330, "owner": {"id": 942}, "assignee": {"id": 1018}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 94}, "organization": {"id": 114}, "project": {"id": 315, "owner": {"id": 726}, "assignee": {"id": 850}}, "task": {"id": 322, "owner": {"id": 940}, "assignee": {"id": 1028}}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 68}, "organization": {"id": 696}, "project": {"id": 305, "owner": {"id": 729}, "assignee": {"id": 817}}, "task": {"id": 382, "owner": {"id": 959}, "assignee": {"id": 1034}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 86}, "organization": {"id": 151}, "project": {"id": 301, "owner": {"id": 758}, "assignee": {"id": 805}}, "task": {"id": 316, "owner": {"id": 919}, "assignee": {"id": 1028}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 37}, "organization": {"id": 657}, "project": {"id": 384, "owner": {"id": 777}, "assignee": {"id": 890}}, "task": {"id": 308, "owner": {"id": 910}, "assignee": {"id": 1014}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 94}, "organization": {"id": 196}, "project": {"id": 389, "owner": {"id": 779}, "assignee": {"id": 889}}, "task": {"id": 359, "owner": {"id": 901}, "assignee": {"id": 1063}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 22}, "organization": {"id": 694}, "project": {"id": 374, "owner": {"id": 702}, "assignee": {"id": 853}}, "task": {"id": 391, "owner": {"id": 902}, "assignee": {"id": 1047}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 70}, "organization": {"id": 134}, "project": {"id": 322, "owner": {"id": 701}, "assignee": {"id": 822}}, "task": {"id": 399, "owner": {"id": 991}, "assignee": {"id": 1091}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 50}, "organization": {"id": 647}, "project": {"id": 344, "owner": {"id": 700}, "assignee": {"id": 886}}, "task": {"id": 338, "owner": {"id": 936}, "assignee": {"id": 1056}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 74}, "organization": {"id": 192}, "project": {"id": 374, "owner": {"id": 747}, "assignee": {"id": 894}}, "task": {"id": 342, "owner": {"id": 963}, "assignee": {"id": 1062}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 62}, "organization": {"id": 657}, "project": {"id": 336, "owner": {"id": 797}, "assignee": {"id": 881}}, "task": {"id": 386, "owner": {"id": 940}, "assignee": {"id": 1056}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 81}, "organization": {"id": 104}, "project": {"id": 375, "owner": {"id": 759}, "assignee": {"id": 868}}, "task": {"id": 373, "owner": {"id": 989}, "assignee": {"id": 1092}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 35}, "organization": {"id": 680}, "project": {"id": 333, "owner": {"id": 785}, "assignee": {"id": 834}}, "task": {"id": 362, "owner": {"id": 939}, "assignee": {"id": 1008}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 27}, "organization": {"id": 166}, "project": {"id": 327, "owner": {"id": 771}, "assignee": {"id": 892}}, "task": {"id": 387, "owner": {"id": 950}, "assignee": {"id": 1091}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 58}, "organization": {"id": 659}, "project": {"id": 352, "owner": {"id": 721}, "assignee": {"id": 813}}, "task": {"id": 306, "owner": {"id": 968}, "assignee": {"id": 1079}}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 43}, "organization": {"id": 133}, "project": {"id": 321, "owner": {"id": 758}, "assignee": {"id": 869}}, "task": {"id": 354, "owner": {"id": 935}, "assignee": {"id": 1004}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 41}, "organization": {"id": 651}, "project": {"id": 301, "owner": {"id": 757}, "assignee": {"id": 886}}, "task": {"id": 396, "owner": {"id": 981}, "assignee": {"id": 1094}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 8}, "organization": {"id": 159}, "project": {"id": 336, "owner": {"id": 715}, "assignee": {"id": 883}}, "task": {"id": 361, "owner": {"id": 922}, "assignee": {"id": 1071}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 95}, "organization": {"id": 685}, "project": {"id": 302, "owner": {"id": 756}, "assignee": {"id": 821}}, "task": {"id": 317, "owner": {"id": 990}, "assignee": {"id": 1004}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 13}, "organization": {"id": 190}, "project": {"id": 352, "owner": {"id": 794}, "assignee": {"id": 830}}, "task": {"id": 398, "owner": {"id": 916}, "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": 79, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 79}, "organization": {"id": 617}, "project": {"id": 337, "owner": {"id": 730}, "assignee": {"id": 839}}, "task": {"id": 315, "owner": {"id": 992}, "assignee": {"id": 1092}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 62}, "organization": {"id": 137}, "project": {"id": 305, "owner": {"id": 799}, "assignee": {"id": 882}}, "task": {"id": 343, "owner": {"id": 981}, "assignee": {"id": 1097}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 37}, "organization": {"id": 630}, "project": {"id": 350, "owner": {"id": 754}, "assignee": {"id": 848}}, "task": {"id": 317, "owner": {"id": 945}, "assignee": {"id": 1096}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 83}, "organization": {"id": 110}, "project": {"id": 387, "owner": {"id": 708}, "assignee": {"id": 876}}, "task": {"id": 316, "owner": {"id": 973}, "assignee": {"id": 1049}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 47}, "organization": {"id": 612}, "project": {"id": 329, "owner": {"id": 794}, "assignee": {"id": 837}}, "task": {"id": 324, "owner": {"id": 963}, "assignee": {"id": 1054}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 38}, "organization": {"id": 180}, "project": {"id": 306, "owner": {"id": 764}, "assignee": {"id": 861}}, "task": {"id": 302, "owner": {"id": 936}, "assignee": {"id": 1090}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 11}, "organization": {"id": 609}, "project": {"id": 304, "owner": {"id": 764}, "assignee": {"id": 857}}, "task": {"id": 391, "owner": {"id": 923}, "assignee": {"id": 1096}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 43}, "organization": {"id": 175}, "project": {"id": 312, "owner": {"id": 739}, "assignee": {"id": 826}}, "task": {"id": 375, "owner": {"id": 990}, "assignee": {"id": 1015}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 71}, "organization": {"id": 650}, "project": {"id": 310, "owner": {"id": 717}, "assignee": {"id": 889}}, "task": {"id": 338, "owner": {"id": 959}, "assignee": {"id": 1093}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 1}, "organization": {"id": 125}, "project": {"id": 312, "owner": {"id": 730}, "assignee": {"id": 838}}, "task": {"id": 379, "owner": {"id": 983}, "assignee": {"id": 1031}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 93}, "organization": {"id": 621}, "project": {"id": 387, "owner": {"id": 780}, "assignee": {"id": 874}}, "task": {"id": 305, "owner": {"id": 980}, "assignee": {"id": 1048}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 25}, "organization": {"id": 102}, "project": {"id": 347, "owner": {"id": 745}, "assignee": {"id": 824}}, "task": {"id": 361, "owner": {"id": 901}, "assignee": {"id": 1077}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 46}, "organization": {"id": 608}, "project": {"id": 390, "owner": {"id": 750}, "assignee": {"id": 847}}, "task": {"id": 335, "owner": {"id": 904}, "assignee": {"id": 1014}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 70}, "organization": {"id": 114}, "project": {"id": 389, "owner": {"id": 720}, "assignee": {"id": 830}}, "task": {"id": 305, "owner": {"id": 998}, "assignee": {"id": 1009}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 21}, "organization": {"id": 665}, "project": {"id": 354, "owner": {"id": 703}, "assignee": {"id": 870}}, "task": {"id": 327, "owner": {"id": 920}, "assignee": {"id": 1011}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 40}, "organization": {"id": 121}, "project": {"id": 305, "owner": {"id": 796}, "assignee": {"id": 854}}, "task": {"id": 311, "owner": {"id": 925}, "assignee": {"id": 1097}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 93}, "organization": {"id": 647}, "project": {"id": 367, "owner": {"id": 789}, "assignee": {"id": 883}}, "task": {"id": 333, "owner": {"id": 994}, "assignee": {"id": 1082}}}} +} + +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": 136, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 69}, "organization": {"id": 136}, "project": {"id": 336, "owner": {"id": 771}, "assignee": {"id": 811}}, "task": {"id": 340, "owner": {"id": 991}, "assignee": {"id": 1084}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 96}, "organization": {"id": 617}, "project": {"id": 327, "owner": {"id": 799}, "assignee": {"id": 810}}, "task": {"id": 365, "owner": {"id": 917}, "assignee": {"id": 1094}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 3}, "organization": {"id": 140}, "project": {"id": 377, "owner": {"id": 781}, "assignee": {"id": 887}}, "task": {"id": 314, "owner": {"id": 920}, "assignee": {"id": 1038}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 30}, "organization": {"id": 692}, "project": {"id": 344, "owner": {"id": 730}, "assignee": {"id": 808}}, "task": {"id": 317, "owner": {"id": 947}, "assignee": {"id": 1008}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 58}, "organization": {"id": 145}, "project": {"id": 301, "owner": {"id": 793}, "assignee": {"id": 860}}, "task": {"id": 352, "owner": {"id": 938}, "assignee": {"id": 1039}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 0}, "organization": {"id": 620}, "project": {"id": 324, "owner": {"id": 717}, "assignee": {"id": 898}}, "task": {"id": 383, "owner": {"id": 962}, "assignee": {"id": 1040}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 382, "assignee": {"id": 4}, "organization": {"id": 160}, "project": {"id": 326, "owner": {"id": 754}, "assignee": {"id": 849}}, "task": {"id": 342, "owner": {"id": 972}, "assignee": {"id": 1096}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 61}, "organization": {"id": 611}, "project": {"id": 317, "owner": {"id": 778}, "assignee": {"id": 874}}, "task": {"id": 398, "owner": {"id": 911}, "assignee": {"id": 1072}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 53}, "organization": {"id": 144}, "project": {"id": 369, "owner": {"id": 736}, "assignee": {"id": 850}}, "task": {"id": 376, "owner": {"id": 953}, "assignee": {"id": 1099}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 76}, "organization": {"id": 620}, "project": {"id": 313, "owner": {"id": 705}, "assignee": {"id": 824}}, "task": {"id": 303, "owner": {"id": 962}, "assignee": {"id": 1025}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 595}, "organization": {"id": 136}, "project": {"id": 315, "owner": {"id": 747}, "assignee": {"id": 856}}, "task": {"id": 300, "owner": {"id": 904}, "assignee": {"id": 1072}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 545}, "organization": {"id": 685}, "project": {"id": 302, "owner": {"id": 721}, "assignee": {"id": 865}}, "task": {"id": 314, "owner": {"id": 904}, "assignee": {"id": 1061}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 561}, "organization": {"id": 157}, "project": {"id": 386, "owner": {"id": 751}, "assignee": {"id": 839}}, "task": {"id": 337, "owner": {"id": 999}, "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": 10, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 529}, "organization": {"id": 654}, "project": {"id": 338, "owner": {"id": 755}, "assignee": {"id": 813}}, "task": {"id": 388, "owner": {"id": 939}, "assignee": {"id": 1051}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 596}, "organization": {"id": 170}, "project": {"id": 324, "owner": {"id": 788}, "assignee": {"id": 880}}, "task": {"id": 381, "owner": {"id": 943}, "assignee": {"id": 1060}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 514}, "organization": {"id": 645}, "project": {"id": 302, "owner": {"id": 747}, "assignee": {"id": 805}}, "task": {"id": 332, "owner": {"id": 902}, "assignee": {"id": 1068}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 503}, "organization": {"id": 157}, "project": {"id": 365, "owner": {"id": 776}, "assignee": {"id": 811}}, "task": {"id": 340, "owner": {"id": 935}, "assignee": {"id": 1097}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 514}, "organization": {"id": 698}, "project": {"id": 377, "owner": {"id": 774}, "assignee": {"id": 808}}, "task": {"id": 372, "owner": {"id": 948}, "assignee": {"id": 1060}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 544}, "organization": {"id": 152}, "project": {"id": 382, "owner": {"id": 719}, "assignee": {"id": 824}}, "task": {"id": 338, "owner": {"id": 926}, "assignee": {"id": 1047}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 516}, "organization": {"id": 635}, "project": {"id": 348, "owner": {"id": 744}, "assignee": {"id": 884}}, "task": {"id": 386, "owner": {"id": 930}, "assignee": {"id": 1091}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 565}, "organization": {"id": 153}, "project": {"id": 301, "owner": {"id": 789}, "assignee": {"id": 842}}, "task": {"id": 337, "owner": {"id": 918}, "assignee": {"id": 1026}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 549}, "organization": {"id": 617}, "project": {"id": 386, "owner": {"id": 773}, "assignee": {"id": 881}}, "task": {"id": 327, "owner": {"id": 907}, "assignee": {"id": 1011}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 591}, "organization": {"id": 163}, "project": {"id": 381, "owner": {"id": 764}, "assignee": {"id": 882}}, "task": {"id": 315, "owner": {"id": 932}, "assignee": {"id": 1056}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 530}, "organization": {"id": 636}, "project": {"id": 339, "owner": {"id": 705}, "assignee": {"id": 855}}, "task": {"id": 343, "owner": {"id": 993}, "assignee": {"id": 1083}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 557}, "organization": {"id": 146}, "project": {"id": 364, "owner": {"id": 786}, "assignee": {"id": 883}}, "task": {"id": 333, "owner": {"id": 907}, "assignee": {"id": 1057}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 594}, "organization": {"id": 617}, "project": {"id": 352, "owner": {"id": 745}, "assignee": {"id": 872}}, "task": {"id": 371, "owner": {"id": 952}, "assignee": {"id": 1072}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 508}, "organization": {"id": 136}, "project": {"id": 376, "owner": {"id": 773}, "assignee": {"id": 896}}, "task": {"id": 379, "owner": {"id": 952}, "assignee": {"id": 1073}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 580}, "organization": {"id": 647}, "project": {"id": 329, "owner": {"id": 761}, "assignee": {"id": 837}}, "task": {"id": 313, "owner": {"id": 930}, "assignee": {"id": 1028}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 504}, "organization": {"id": 101}, "project": {"id": 304, "owner": {"id": 738}, "assignee": {"id": 888}}, "task": {"id": 303, "owner": {"id": 938}, "assignee": {"id": 1017}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 565}, "organization": {"id": 618}, "project": {"id": 377, "owner": {"id": 796}, "assignee": {"id": 899}}, "task": {"id": 378, "owner": {"id": 962}, "assignee": {"id": 1007}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 311, "assignee": {"id": 594}, "organization": {"id": 188}, "project": {"id": 321, "owner": {"id": 701}, "assignee": {"id": 856}}, "task": {"id": 370, "owner": {"id": 988}, "assignee": {"id": 1011}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 504}, "organization": {"id": 635}, "project": {"id": 305, "owner": {"id": 775}, "assignee": {"id": 879}}, "task": {"id": 303, "owner": {"id": 928}, "assignee": {"id": 1034}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 591}, "organization": {"id": 117}, "project": {"id": 330, "owner": {"id": 740}, "assignee": {"id": 844}}, "task": {"id": 315, "owner": {"id": 929}, "assignee": {"id": 1011}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 571}, "organization": {"id": 668}, "project": {"id": 368, "owner": {"id": 785}, "assignee": {"id": 844}}, "task": {"id": 371, "owner": {"id": 937}, "assignee": {"id": 1045}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 555}, "organization": {"id": 152}, "project": {"id": 375, "owner": {"id": 727}, "assignee": {"id": 818}}, "task": {"id": 340, "owner": {"id": 903}, "assignee": {"id": 1009}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 527}, "organization": {"id": 658}, "project": {"id": 345, "owner": {"id": 792}, "assignee": {"id": 833}}, "task": {"id": 328, "owner": {"id": 991}, "assignee": {"id": 1061}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 518}, "organization": {"id": 197}, "project": {"id": 351, "owner": {"id": 704}, "assignee": {"id": 829}}, "task": {"id": 308, "owner": {"id": 971}, "assignee": {"id": 1024}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 329, "assignee": {"id": 521}, "organization": {"id": 647}, "project": {"id": 396, "owner": {"id": 751}, "assignee": {"id": 810}}, "task": {"id": 386, "owner": {"id": 929}, "assignee": {"id": 1098}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 584}, "organization": {"id": 140}, "project": {"id": 338, "owner": {"id": 709}, "assignee": {"id": 875}}, "task": {"id": 345, "owner": {"id": 967}, "assignee": {"id": 1066}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 582}, "organization": {"id": 605}, "project": {"id": 329, "owner": {"id": 740}, "assignee": {"id": 807}}, "task": {"id": 317, "owner": {"id": 927}, "assignee": {"id": 1049}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 527}, "organization": {"id": 175}, "project": {"id": 311, "owner": {"id": 740}, "assignee": {"id": 852}}, "task": {"id": 303, "owner": {"id": 948}, "assignee": {"id": 1084}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 504}, "organization": {"id": 627}, "project": {"id": 350, "owner": {"id": 728}, "assignee": {"id": 880}}, "task": {"id": 318, "owner": {"id": 943}, "assignee": {"id": 1072}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 586}, "organization": {"id": 127}, "project": {"id": 352, "owner": {"id": 713}, "assignee": {"id": 861}}, "task": {"id": 302, "owner": {"id": 970}, "assignee": {"id": 1088}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 527}, "organization": {"id": 681}, "project": {"id": 365, "owner": {"id": 753}, "assignee": {"id": 899}}, "task": {"id": 379, "owner": {"id": 962}, "assignee": {"id": 1099}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 507}, "organization": {"id": 172}, "project": {"id": 347, "owner": {"id": 718}, "assignee": {"id": 814}}, "task": {"id": 307, "owner": {"id": 953}, "assignee": {"id": 1047}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 592}, "organization": {"id": 624}, "project": {"id": 354, "owner": {"id": 715}, "assignee": {"id": 844}}, "task": {"id": 382, "owner": {"id": 983}, "assignee": {"id": 1050}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 533}, "organization": {"id": 191}, "project": {"id": 373, "owner": {"id": 749}, "assignee": {"id": 866}}, "task": {"id": 397, "owner": {"id": 974}, "assignee": {"id": 1080}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 528}, "organization": {"id": 661}, "project": {"id": 341, "owner": {"id": 770}, "assignee": {"id": 872}}, "task": {"id": 336, "owner": {"id": 966}, "assignee": {"id": 1034}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 506}, "organization": {"id": 118}, "project": {"id": 317, "owner": {"id": 702}, "assignee": {"id": 814}}, "task": {"id": 346, "owner": {"id": 994}, "assignee": {"id": 1020}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 514}, "organization": {"id": 698}, "project": {"id": 340, "owner": {"id": 760}, "assignee": {"id": 850}}, "task": {"id": 339, "owner": {"id": 931}, "assignee": {"id": 1056}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 549}, "organization": {"id": 112}, "project": {"id": 342, "owner": {"id": 778}, "assignee": {"id": 805}}, "task": {"id": 384, "owner": {"id": 950}, "assignee": {"id": 1062}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 586}, "organization": {"id": 672}, "project": {"id": 309, "owner": {"id": 701}, "assignee": {"id": 868}}, "task": {"id": 354, "owner": {"id": 987}, "assignee": {"id": 1070}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 574}, "organization": {"id": 191}, "project": {"id": 342, "owner": {"id": 745}, "assignee": {"id": 832}}, "task": {"id": 362, "owner": {"id": 942}, "assignee": {"id": 1020}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 595}, "organization": {"id": 630}, "project": {"id": 366, "owner": {"id": 707}, "assignee": {"id": 808}}, "task": {"id": 379, "owner": {"id": 917}, "assignee": {"id": 1000}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 571}, "organization": {"id": 119}, "project": {"id": 381, "owner": {"id": 791}, "assignee": {"id": 847}}, "task": {"id": 330, "owner": {"id": 906}, "assignee": {"id": 1074}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 545}, "organization": {"id": 621}, "project": {"id": 330, "owner": {"id": 736}, "assignee": {"id": 846}}, "task": {"id": 377, "owner": {"id": 944}, "assignee": {"id": 1083}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 585}, "organization": {"id": 149}, "project": {"id": 390, "owner": {"id": 708}, "assignee": {"id": 844}}, "task": {"id": 313, "owner": {"id": 993}, "assignee": {"id": 1059}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 594}, "organization": {"id": 664}, "project": {"id": 314, "owner": {"id": 704}, "assignee": {"id": 855}}, "task": {"id": 362, "owner": {"id": 937}, "assignee": {"id": 1061}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 523}, "organization": {"id": 141}, "project": {"id": 350, "owner": {"id": 734}, "assignee": {"id": 867}}, "task": {"id": 327, "owner": {"id": 978}, "assignee": {"id": 1036}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 560}, "organization": {"id": 633}, "project": {"id": 388, "owner": {"id": 769}, "assignee": {"id": 809}}, "task": {"id": 330, "owner": {"id": 950}, "assignee": {"id": 1004}}}} +} + + + +# jobs_test.gen.rego.py +# # Copyright (C) 2021 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# import csv +# import json +# import random +# import sys +# import os +# from itertools import product +# +# +# 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 +# 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 +# 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.csv b/cvat/apps/iam/rules/lambda.csv new file mode 100644 index 00000000..50982136 --- /dev/null +++ b/cvat/apps/iam/rules/lambda.csv @@ -0,0 +1,6 @@ +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/lambda.rego b/cvat/apps/iam/rules/lambda.rego new file mode 100644 index 00000000..dd2201f4 --- /dev/null +++ b/cvat/apps/iam/rules/lambda.rego @@ -0,0 +1,44 @@ +package lambda +import data.utils + +# input: { +# "scope": <"list"|"view"|"call:online"|"call:offline"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# } +# } + +default allow = false +allow { + utils.is_admin +} + +allow { + input.scope == utils.LIST +} + +allow { + input.scope == utils.VIEW +} + +allow { + input.scope == utils.CALL_ONLINE + utils.has_perm(utils.WORKER) +} + +allow { + input.scope == utils.CALL_OFFLINE + utils.has_perm(utils.BUSINESS) +} diff --git a/cvat/apps/iam/rules/lambda_test.gen.rego b/cvat/apps/iam/rules/lambda_test.gen.rego new file mode 100644 index 00000000..25584bbd --- /dev/null +++ b/cvat/apps/iam/rules/lambda_test.gen.rego @@ -0,0 +1,525 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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.csv b/cvat/apps/iam/rules/memberships.csv new file mode 100644 index 00000000..0f559247 --- /dev/null +++ b/cvat/apps/iam/rules/memberships.csv @@ -0,0 +1,11 @@ +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/memberships.rego b/cvat/apps/iam/rules/memberships.rego new file mode 100644 index 00000000..ec97f4f2 --- /dev/null +++ b/cvat/apps/iam/rules/memberships.rego @@ -0,0 +1,102 @@ +package memberships +import data.utils +import data.organizations + +# input: { +# "scope": <"list"|"change:role"|"view"|"delete"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker">, +# "is_active": , +# "user": { "id": }, +# "organization": { "id": } +# } or null +# } + +default allow = false +allow { + utils.is_admin +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_sandbox + qobject := [ {"user": input.auth.user.id}, {"is_active": true}, "&" ] +} else = qobject { + utils.is_admin + org_id := input.auth.organization.id + qobject := [ {"organization": org_id} ] +} else = qobject { + org_id := input.auth.organization.id + qobject := [ {"organization": org_id}, {"is_active": true}, "&" ] +} + +allow { + input.scope == utils.VIEW + input.resource.is_active + utils.is_sandbox + input.resource.user.id == input.auth.user.id +} + +allow { + input.scope == utils.VIEW + input.resource.is_active + organizations.is_member + input.resource.organization.id == input.auth.organization.id +} + +allow { + { utils.CHANGE_ROLE, utils.DELETE }[input.scope] + input.resource.is_active + input.resource.organization.id == input.auth.organization.id + utils.has_perm(utils.USER) + organizations.is_maintainer + not { + organizations.OWNER, + organizations.MAINTAINER + }[input.resource.role] +} + +allow { + { utils.CHANGE_ROLE, utils.DELETE }[input.scope] + input.resource.is_active + input.resource.organization.id == input.auth.organization.id + utils.has_perm(utils.USER) + organizations.is_owner + input.resource.role != organizations.OWNER +} + +allow { + input.scope == utils.DELETE + input.resource.is_active + utils.is_sandbox + input.resource.role != organizations.OWNER + input.resource.user.id == input.auth.user.id + utils.has_perm(utils.WORKER) +} diff --git a/cvat/apps/iam/rules/memberships_test.gen.rego b/cvat/apps/iam/rules/memberships_test.gen.rego new file mode 100644 index 00000000..48726188 --- /dev/null +++ b/cvat/apps/iam/rules/memberships_test.gen.rego @@ -0,0 +1,10756 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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.csv b/cvat/apps/iam/rules/organizations.csv new file mode 100644 index 00000000..e0e389a5 --- /dev/null +++ b/cvat/apps/iam/rules/organizations.csv @@ -0,0 +1,10 @@ +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/organizations.rego b/cvat/apps/iam/rules/organizations.rego new file mode 100644 index 00000000..66b4023d --- /dev/null +++ b/cvat/apps/iam/rules/organizations.rego @@ -0,0 +1,117 @@ +package organizations +import data.utils + +# input: { +# "scope": <"create"|"list"|"update"|"view"|"delete"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": null, +# }, +# "resource": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "num_resources": , +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } +# } + +OWNER := "owner" +MAINTAINER := "maintainer" +SUPERVISOR := "supervisor" +WORKER := "worker" + +is_owner { + input.auth.organization.owner.id == input.auth.user.id + input.auth.organization.user.role == OWNER +} + +is_maintainer { + input.auth.organization.user.role == MAINTAINER +} + +is_staff { + is_owner +} + +is_staff { + is_maintainer +} + +is_member { + input.auth.organization.user.role != null +} + +get_priority(role) = priority { + priority := { + OWNER: 0, + MAINTAINER: 50, + SUPERVISOR: 75, + WORKER: 100 + }[role] +} + +has_perm(role) { + get_priority(input.auth.organization.user.role) <= get_priority(role) +} + +default allow = false +allow { + utils.is_admin +} + +allow { + input.scope == utils.CREATE + input.resource.user.num_resources == 0 + utils.has_perm(utils.USER) +} + +allow { + input.scope == utils.CREATE + utils.has_perm(utils.BUSINESS) +} + +allow { + input.scope == utils.LIST +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin +} else = qobject { + user := input.auth.user + qobject := [ {"owner_id": user.id}, {"members__user_id": user.id}, "|" ] +} + +allow { + input.scope == utils.VIEW + utils.is_resource_owner +} + +allow { + input.scope == utils.VIEW + input.resource.user.role != null +} + +allow { + input.scope == utils.UPDATE + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} + +allow { + input.scope == utils.UPDATE + utils.has_perm(utils.WORKER) + input.resource.user.role == MAINTAINER +} + +allow { + input.scope == utils.DELETE + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} diff --git a/cvat/apps/iam/rules/organizations_test.gen.rego b/cvat/apps/iam/rules/organizations_test.gen.rego new file mode 100644 index 00000000..f9416a9f --- /dev/null +++ b/cvat/apps/iam/rules/organizations_test.gen.rego @@ -0,0 +1,7370 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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.csv b/cvat/apps/iam/rules/projects.csv new file mode 100644 index 00000000..bc03efac --- /dev/null +++ b/cvat/apps/iam/rules/projects.csv @@ -0,0 +1,46 @@ +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 diff --git a/cvat/apps/iam/rules/projects.rego b/cvat/apps/iam/rules/projects.rego new file mode 100644 index 00000000..1aafc077 --- /dev/null +++ b/cvat/apps/iam/rules/projects.rego @@ -0,0 +1,219 @@ +package projects +import data.utils +import data.organizations + +# input: { +# "scope": <"create"|"list"|"update:desc"|"update:owner"|"update:assignee"| +# "view"|"delete"|"export:dataset"|"export:annotations"| +# "import:dataset"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "id": , +# "owner": { "id": }, +# "assignee": { "id": }, +# "organization": { "id": } or null, +# "user": { +# "num_resources": +# } +# } +# } + +default allow = false + +is_project_staff { + utils.is_resource_owner +} + +is_project_staff { + utils.is_resource_assignee +} + +allow { + utils.is_admin +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + utils.is_sandbox + input.resource.user.num_resources < 3 + utils.has_perm(utils.USER) +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + input.resource.user.num_resources < 3 + utils.has_perm(utils.USER) + organizations.has_perm(organizations.SUPERVISOR) +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + utils.is_sandbox + utils.has_perm(utils.BUSINESS) +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.BUSINESS) + organizations.has_perm(organizations.SUPERVISOR) +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_organization + qobject := [ {"organization": input.auth.organization.id} ] +} else = qobject { + utils.is_sandbox + user := input.auth.user + qobject := [ {"owner_id": user.id}, {"assignee_id": user.id}, "|"] +} + +allow { + input.scope == utils.VIEW + utils.is_sandbox + is_project_staff +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + input.scope == utils.VIEW + input.auth.organization.id == input.resource.organization.id + organizations.has_perm(organizations.WORKER) + is_project_staff +} + + +allow { + input.scope == utils.DELETE + utils.is_sandbox + utils.has_perm(utils.WORKER) + utils.is_resource_owner +} + +allow { + input.scope == utils.DELETE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + organizations.is_member + utils.is_resource_owner +} + +allow { + input.scope == utils.DELETE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_staff +} + +allow { + { utils.UPDATE_DESC, utils.IMPORT_DATASET }[input.scope] + utils.is_sandbox + is_project_staff + utils.has_perm(utils.WORKER) +} + +allow { + { utils.UPDATE_DESC, utils.IMPORT_DATASET }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_staff +} + +allow { + { utils.UPDATE_DESC, utils.IMPORT_DATASET }[input.scope] + is_project_staff + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + organizations.is_member +} + +allow { + input.scope == utils.UPDATE_ASSIGNEE + utils.is_sandbox + utils.is_resource_owner + utils.has_perm(utils.WORKER) +} + +allow { + input.scope == utils.UPDATE_ASSIGNEE + input.auth.organization.id == input.resource.organization.id + utils.is_resource_owner + utils.has_perm(utils.WORKER) + organizations.is_member +} + +allow { + input.scope == utils.UPDATE_ASSIGNEE + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_staff +} + +allow { + input.scope == utils.UPDATE_OWNER + input.auth.organization.id == input.resource.organization.id + utils.is_resource_owner + utils.has_perm(utils.WORKER) + organizations.is_staff +} + +allow { + input.scope == utils.UPDATE_OWNER + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.is_staff +} + +allow { + { utils.EXPORT_ANNOTATIONS, utils.EXPORT_DATASET, utils.EXPORT_BACKUP }[input.scope] + utils.is_sandbox + is_project_staff +} + +allow { + { utils.EXPORT_ANNOTATIONS, utils.EXPORT_DATASET, utils.EXPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + organizations.is_member + is_project_staff +} + +allow { + { utils.EXPORT_ANNOTATIONS, utils.EXPORT_DATASET, utils.EXPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} diff --git a/cvat/apps/iam/rules/projects_test.gen.rego b/cvat/apps/iam/rules/projects_test.gen.rego new file mode 100644 index 00000000..1ed6da0d --- /dev/null +++ b/cvat/apps/iam/rules/projects_test.gen.rego @@ -0,0 +1,11467 @@ +package projects + +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": 15, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 15}, "assignee": {"id": 593}, "organization": {"id": 639}}} +} + +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": 41, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 41}, "assignee": {"id": 597}, "organization": {"id": 635}}} +} + +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": 16, "privilege": "user"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 16}, "assignee": {"id": 526}, "organization": {"id": 628}}} +} + +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": 80, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 80}, "assignee": {"id": 547}, "organization": {"id": 647}}} +} + +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": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 44}, "assignee": {"id": 574}, "organization": {"id": 619}}} +} + +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": 11, "privilege": "admin"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 495}, "assignee": {"id": 11}, "organization": {"id": 690}}} +} + +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": 1, "privilege": "business"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 438}, "assignee": {"id": 1}, "organization": {"id": 665}}} +} + +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": 4, "privilege": "user"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 484}, "assignee": {"id": 4}, "organization": {"id": 693}}} +} + +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": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 462}, "assignee": {"id": 76}, "organization": {"id": 651}}} +} + +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": 72, "privilege": "none"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 487}, "assignee": {"id": 72}, "organization": {"id": 652}}} +} + +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": 88, "privilege": "admin"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 411}, "assignee": {"id": 560}, "organization": {"id": 660}}} +} + +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": 85, "privilege": "business"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 475}, "assignee": {"id": 592}, "organization": {"id": 690}}} +} + +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": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 410}, "assignee": {"id": 534}, "organization": {"id": 673}}} +} + +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": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 451}, "assignee": {"id": 582}, "organization": {"id": 669}}} +} + +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": 7, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 484}, "assignee": {"id": 565}, "organization": {"id": 698}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 3}, "assignee": {"id": 572}, "organization": {"id": 698}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 40}, "assignee": {"id": 590}, "organization": {"id": 174}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 24}, "assignee": {"id": 541}, "organization": {"id": 693}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 88}, "assignee": {"id": 563}, "organization": {"id": 143}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 32}, "assignee": {"id": 554}, "organization": {"id": 665}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 9}, "assignee": {"id": 589}, "organization": {"id": 128}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 53}, "assignee": {"id": 519}, "organization": {"id": 657}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 81}, "assignee": {"id": 504}, "organization": {"id": 157}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 19}, "assignee": {"id": 568}, "organization": {"id": 688}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 52}, "assignee": {"id": 585}, "organization": {"id": 156}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 7}, "assignee": {"id": 559}, "organization": {"id": 651}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 91}, "assignee": {"id": 534}, "organization": {"id": 100}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 33}, "assignee": {"id": 566}, "organization": {"id": 609}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 78}, "assignee": {"id": 519}, "organization": {"id": 153}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 74}, "assignee": {"id": 550}, "organization": {"id": 666}}} +} + +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": 169, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 58}, "assignee": {"id": 585}, "organization": {"id": 169}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 13}, "assignee": {"id": 512}, "organization": {"id": 610}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 42}, "assignee": {"id": 582}, "organization": {"id": 144}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 44}, "assignee": {"id": 531}, "organization": {"id": 645}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 75}, "assignee": {"id": 512}, "organization": {"id": 103}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 54}, "assignee": {"id": 569}, "organization": {"id": 690}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 85}, "assignee": {"id": 556}, "organization": {"id": 108}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 15}, "assignee": {"id": 588}, "organization": {"id": 608}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 53}, "assignee": {"id": 529}, "organization": {"id": 135}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 19}, "assignee": {"id": 524}, "organization": {"id": 662}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 51}, "assignee": {"id": 504}, "organization": {"id": 133}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 9}, "assignee": {"id": 595}, "organization": {"id": 686}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 79}, "assignee": {"id": 528}, "organization": {"id": 117}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 43}, "assignee": {"id": 563}, "organization": {"id": 626}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 63}, "assignee": {"id": 585}, "organization": {"id": 126}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 70}, "assignee": {"id": 510}, "organization": {"id": 688}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 89}, "assignee": {"id": 516}, "organization": {"id": 120}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 46}, "assignee": {"id": 507}, "organization": {"id": 676}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 55}, "assignee": {"id": 522}, "organization": {"id": 153}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 80}, "assignee": {"id": 588}, "organization": {"id": 679}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 69}, "assignee": {"id": 523}, "organization": {"id": 173}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 96}, "assignee": {"id": 510}, "organization": {"id": 673}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 72}, "assignee": {"id": 521}, "organization": {"id": 143}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 10}, "assignee": {"id": 581}, "organization": {"id": 627}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 81}, "assignee": {"id": 548}, "organization": {"id": 180}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 85}, "assignee": {"id": 507}, "organization": {"id": 623}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 56}, "assignee": {"id": 586}, "organization": {"id": 172}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 6}, "assignee": {"id": 573}, "organization": {"id": 623}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 99}, "assignee": {"id": 590}, "organization": {"id": 103}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 11}, "assignee": {"id": 576}, "organization": {"id": 682}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 98}, "assignee": {"id": 522}, "organization": {"id": 152}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 52}, "assignee": {"id": 579}, "organization": {"id": 606}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 76}, "assignee": {"id": 539}, "organization": {"id": 178}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 28}, "assignee": {"id": 561}, "organization": {"id": 606}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 62}, "assignee": {"id": 564}, "organization": {"id": 179}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 414}, "assignee": {"id": 5}, "organization": {"id": 630}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 448}, "assignee": {"id": 53}, "organization": {"id": 182}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 467}, "assignee": {"id": 99}, "organization": {"id": 603}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 470}, "assignee": {"id": 47}, "organization": {"id": 179}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 404}, "assignee": {"id": 18}, "organization": {"id": 610}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 467}, "assignee": {"id": 23}, "organization": {"id": 196}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 422}, "assignee": {"id": 71}, "organization": {"id": 671}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 496}, "assignee": {"id": 92}, "organization": {"id": 155}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 430}, "assignee": {"id": 15}, "organization": {"id": 630}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 455}, "assignee": {"id": 12}, "organization": {"id": 185}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 480}, "assignee": {"id": 16}, "organization": {"id": 643}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 468}, "assignee": {"id": 27}, "organization": {"id": 187}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 470}, "assignee": {"id": 61}, "organization": {"id": 697}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 431}, "assignee": {"id": 68}, "organization": {"id": 199}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 454}, "assignee": {"id": 76}, "organization": {"id": 653}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 411}, "assignee": {"id": 56}, "organization": {"id": 153}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 489}, "assignee": {"id": 90}, "organization": {"id": 695}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 470}, "assignee": {"id": 35}, "organization": {"id": 130}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 488}, "assignee": {"id": 2}, "organization": {"id": 696}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 452}, "assignee": {"id": 68}, "organization": {"id": 119}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 493}, "assignee": {"id": 87}, "organization": {"id": 600}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 466}, "assignee": {"id": 74}, "organization": {"id": 134}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 453}, "assignee": {"id": 73}, "organization": {"id": 688}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 431}, "assignee": {"id": 44}, "organization": {"id": 182}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 467}, "assignee": {"id": 64}, "organization": {"id": 618}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 465}, "assignee": {"id": 44}, "organization": {"id": 168}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 423}, "assignee": {"id": 79}, "organization": {"id": 660}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 485}, "assignee": {"id": 54}, "organization": {"id": 193}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 484}, "assignee": {"id": 10}, "organization": {"id": 667}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 416}, "assignee": {"id": 82}, "organization": {"id": 189}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 481}, "assignee": {"id": 27}, "organization": {"id": 640}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 426}, "assignee": {"id": 32}, "organization": {"id": 128}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 497}, "assignee": {"id": 44}, "organization": {"id": 615}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 409}, "assignee": {"id": 8}, "organization": {"id": 164}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 477}, "assignee": {"id": 13}, "organization": {"id": 646}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 483}, "assignee": {"id": 67}, "organization": {"id": 115}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 486}, "assignee": {"id": 28}, "organization": {"id": 690}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 494}, "assignee": {"id": 85}, "organization": {"id": 140}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 458}, "assignee": {"id": 57}, "organization": {"id": 680}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 427}, "assignee": {"id": 90}, "organization": {"id": 110}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 405}, "assignee": {"id": 92}, "organization": {"id": 648}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 420}, "assignee": {"id": 46}, "organization": {"id": 194}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 461}, "assignee": {"id": 87}, "organization": {"id": 676}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 493}, "assignee": {"id": 60}, "organization": {"id": 114}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 459}, "assignee": {"id": 51}, "organization": {"id": 699}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 454}, "assignee": {"id": 28}, "organization": {"id": 111}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 493}, "assignee": {"id": 18}, "organization": {"id": 617}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 497}, "assignee": {"id": 52}, "organization": {"id": 122}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 424}, "assignee": {"id": 42}, "organization": {"id": 647}}} +} + +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": 109, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 449}, "assignee": {"id": 80}, "organization": {"id": 109}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 444}, "assignee": {"id": 539}, "organization": {"id": 604}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 426}, "assignee": {"id": 525}, "organization": {"id": 154}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 400}, "assignee": {"id": 588}, "organization": {"id": 612}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 422}, "assignee": {"id": 523}, "organization": {"id": 166}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 410}, "assignee": {"id": 550}, "organization": {"id": 639}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 459}, "assignee": {"id": 514}, "organization": {"id": 184}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 411}, "assignee": {"id": 523}, "organization": {"id": 619}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 454}, "assignee": {"id": 539}, "organization": {"id": 191}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 461}, "assignee": {"id": 575}, "organization": {"id": 672}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 470}, "assignee": {"id": 583}, "organization": {"id": 198}}} +} + +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": 137, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 496}, "assignee": {"id": 587}, "organization": {"id": 697}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 432}, "assignee": {"id": 598}, "organization": {"id": 193}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 412}, "assignee": {"id": 571}, "organization": {"id": 661}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 438}, "assignee": {"id": 508}, "organization": {"id": 177}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 473}, "assignee": {"id": 557}, "organization": {"id": 685}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 451}, "assignee": {"id": 545}, "organization": {"id": 137}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 456}, "assignee": {"id": 537}, "organization": {"id": 656}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 404}, "assignee": {"id": 550}, "organization": {"id": 166}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 415}, "assignee": {"id": 551}, "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": 51, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 496}, "assignee": {"id": 539}, "organization": {"id": 163}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 417}, "assignee": {"id": 539}, "organization": {"id": 664}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 418}, "assignee": {"id": 584}, "organization": {"id": 191}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 444}, "assignee": {"id": 515}, "organization": {"id": 659}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 496}, "assignee": {"id": 552}, "organization": {"id": 160}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 400}, "assignee": {"id": 574}, "organization": {"id": 660}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 422}, "assignee": {"id": 592}, "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": 193, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 433}, "assignee": {"id": 588}, "organization": {"id": 643}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 492}, "assignee": {"id": 557}, "organization": {"id": 148}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 470}, "assignee": {"id": 597}, "organization": {"id": 693}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 422}, "assignee": {"id": 510}, "organization": {"id": 156}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 434}, "assignee": {"id": 556}, "organization": {"id": 669}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 471}, "assignee": {"id": 527}, "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": 18, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 479}, "assignee": {"id": 524}, "organization": {"id": 656}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 429}, "assignee": {"id": 591}, "organization": {"id": 147}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 463}, "assignee": {"id": 590}, "organization": {"id": 632}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 442}, "assignee": {"id": 533}, "organization": {"id": 159}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 402}, "assignee": {"id": 504}, "organization": {"id": 686}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 435}, "assignee": {"id": 542}, "organization": {"id": 102}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 495}, "assignee": {"id": 579}, "organization": {"id": 625}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 459}, "assignee": {"id": 543}, "organization": {"id": 180}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 484}, "assignee": {"id": 568}, "organization": {"id": 615}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 474}, "assignee": {"id": 552}, "organization": {"id": 134}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 491}, "assignee": {"id": 540}, "organization": {"id": 607}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 471}, "assignee": {"id": 543}, "organization": {"id": 103}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 429}, "assignee": {"id": 526}, "organization": {"id": 602}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 400}, "assignee": {"id": 542}, "organization": {"id": 191}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 483}, "assignee": {"id": 548}, "organization": {"id": 689}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 402}, "assignee": {"id": 587}, "organization": {"id": 157}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 440}, "assignee": {"id": 553}, "organization": {"id": 630}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 493}, "assignee": {"id": 515}, "organization": {"id": 107}}} +} + +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": 88, "privilege": "admin"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 88}, "assignee": {"id": 586}, "organization": {"id": 626}}} +} + +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": 20, "privilege": "business"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 20}, "assignee": {"id": 522}, "organization": {"id": 696}}} +} + +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": 8, "privilege": "user"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 8}, "assignee": {"id": 541}, "organization": {"id": 647}}} +} + +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": 77, "privilege": "worker"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 77}, "assignee": {"id": 548}, "organization": {"id": 627}}} +} + +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": 15, "privilege": "none"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 15}, "assignee": {"id": 519}, "organization": {"id": 693}}} +} + +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": 47, "privilege": "admin"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 429}, "assignee": {"id": 47}, "organization": {"id": 601}}} +} + +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": 57, "privilege": "business"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 426}, "assignee": {"id": 57}, "organization": {"id": 630}}} +} + +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": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 400}, "assignee": {"id": 84}, "organization": {"id": 628}}} +} + +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": 53, "privilege": "worker"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 455}, "assignee": {"id": 53}, "organization": {"id": 694}}} +} + +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": 52, "privilege": "none"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 409}, "assignee": {"id": 52}, "organization": {"id": 620}}} +} + +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": 62, "privilege": "admin"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 455}, "assignee": {"id": 577}, "organization": {"id": 667}}} +} + +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": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 451}, "assignee": {"id": 589}, "organization": {"id": 620}}} +} + +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": 90, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 476}, "assignee": {"id": 537}, "organization": {"id": 604}}} +} + +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": 88, "privilege": "worker"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 451}, "assignee": {"id": 543}, "organization": {"id": 688}}} +} + +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": 7, "privilege": "none"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 429}, "assignee": {"id": 506}, "organization": {"id": 684}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 58}, "assignee": {"id": 554}, "organization": {"id": 615}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 18}, "assignee": {"id": 595}, "organization": {"id": 100}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 29}, "assignee": {"id": 542}, "organization": {"id": 618}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 47}, "assignee": {"id": 526}, "organization": {"id": 110}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 46}, "assignee": {"id": 522}, "organization": {"id": 657}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 91}, "assignee": {"id": 584}, "organization": {"id": 185}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 2}, "assignee": {"id": 546}, "organization": {"id": 659}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 58}, "assignee": {"id": 577}, "organization": {"id": 177}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 33}, "assignee": {"id": 561}, "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": 46, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 46}, "assignee": {"id": 538}, "organization": {"id": 160}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 25}, "assignee": {"id": 593}, "organization": {"id": 624}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 5}, "assignee": {"id": 578}, "organization": {"id": 180}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 37}, "assignee": {"id": 530}, "organization": {"id": 612}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 59}, "assignee": {"id": 553}, "organization": {"id": 101}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 32}, "assignee": {"id": 598}, "organization": {"id": 696}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 20}, "assignee": {"id": 572}, "organization": {"id": 191}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 45}, "assignee": {"id": 517}, "organization": {"id": 697}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 52}, "assignee": {"id": 591}, "organization": {"id": 149}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 34}, "assignee": {"id": 571}, "organization": {"id": 648}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 68}, "assignee": {"id": 594}, "organization": {"id": 148}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 22}, "assignee": {"id": 558}, "organization": {"id": 621}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 53}, "assignee": {"id": 562}, "organization": {"id": 109}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 40}, "assignee": {"id": 511}, "organization": {"id": 656}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 62}, "assignee": {"id": 594}, "organization": {"id": 175}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 67}, "assignee": {"id": 533}, "organization": {"id": 609}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 66}, "assignee": {"id": 544}, "organization": {"id": 160}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 94}, "assignee": {"id": 521}, "organization": {"id": 613}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 8}, "assignee": {"id": 516}, "organization": {"id": 125}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 99}, "assignee": {"id": 503}, "organization": {"id": 692}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 76}, "assignee": {"id": 507}, "organization": {"id": 135}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 11}, "assignee": {"id": 569}, "organization": {"id": 683}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 13}, "assignee": {"id": 593}, "organization": {"id": 124}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 1}, "assignee": {"id": 511}, "organization": {"id": 631}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 37}, "assignee": {"id": 515}, "organization": {"id": 121}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 45}, "assignee": {"id": 502}, "organization": {"id": 646}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 50}, "assignee": {"id": 554}, "organization": {"id": 112}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 17}, "assignee": {"id": 511}, "organization": {"id": 615}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 73}, "assignee": {"id": 550}, "organization": {"id": 103}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 57}, "assignee": {"id": 539}, "organization": {"id": 661}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 13}, "assignee": {"id": 544}, "organization": {"id": 164}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 55}, "assignee": {"id": 523}, "organization": {"id": 611}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 72}, "assignee": {"id": 526}, "organization": {"id": 163}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 85}, "assignee": {"id": 523}, "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": 75, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 75}, "assignee": {"id": 594}, "organization": {"id": 189}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 54}, "assignee": {"id": 564}, "organization": {"id": 659}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 57}, "assignee": {"id": 565}, "organization": {"id": 111}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 93}, "assignee": {"id": 503}, "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": 84, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 84}, "assignee": {"id": 560}, "organization": {"id": 100}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 26}, "assignee": {"id": 542}, "organization": {"id": 676}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 7}, "assignee": {"id": 589}, "organization": {"id": 189}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 432}, "assignee": {"id": 22}, "organization": {"id": 630}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 471}, "assignee": {"id": 2}, "organization": {"id": 192}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 404}, "assignee": {"id": 87}, "organization": {"id": 692}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 434}, "assignee": {"id": 20}, "organization": {"id": 136}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 412}, "assignee": {"id": 26}, "organization": {"id": 677}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 449}, "assignee": {"id": 75}, "organization": {"id": 151}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 407}, "assignee": {"id": 56}, "organization": {"id": 656}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 485}, "assignee": {"id": 38}, "organization": {"id": 124}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 464}, "assignee": {"id": 20}, "organization": {"id": 610}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 489}, "assignee": {"id": 39}, "organization": {"id": 157}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 470}, "assignee": {"id": 17}, "organization": {"id": 627}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 441}, "assignee": {"id": 96}, "organization": {"id": 153}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 464}, "assignee": {"id": 55}, "organization": {"id": 697}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 412}, "assignee": {"id": 3}, "organization": {"id": 105}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 427}, "assignee": {"id": 96}, "organization": {"id": 628}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 462}, "assignee": {"id": 90}, "organization": {"id": 101}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 483}, "assignee": {"id": 35}, "organization": {"id": 681}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 494}, "assignee": {"id": 52}, "organization": {"id": 126}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 461}, "assignee": {"id": 61}, "organization": {"id": 609}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 472}, "assignee": {"id": 50}, "organization": {"id": 198}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 487}, "assignee": {"id": 99}, "organization": {"id": 613}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 483}, "assignee": {"id": 35}, "organization": {"id": 143}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 499}, "assignee": {"id": 82}, "organization": {"id": 660}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 469}, "assignee": {"id": 8}, "organization": {"id": 145}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 410}, "assignee": {"id": 16}, "organization": {"id": 652}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 484}, "assignee": {"id": 91}, "organization": {"id": 185}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 494}, "assignee": {"id": 32}, "organization": {"id": 639}}} +} + +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": 162, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 454}, "assignee": {"id": 74}, "organization": {"id": 162}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 482}, "assignee": {"id": 75}, "organization": {"id": 615}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 410}, "assignee": {"id": 67}, "organization": {"id": 192}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 474}, "assignee": {"id": 97}, "organization": {"id": 634}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 402}, "assignee": {"id": 56}, "organization": {"id": 134}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 489}, "assignee": {"id": 84}, "organization": {"id": 661}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 489}, "assignee": {"id": 4}, "organization": {"id": 178}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 436}, "assignee": {"id": 78}, "organization": {"id": 670}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 496}, "assignee": {"id": 78}, "organization": {"id": 145}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 442}, "assignee": {"id": 98}, "organization": {"id": 605}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 440}, "assignee": {"id": 80}, "organization": {"id": 159}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 448}, "assignee": {"id": 82}, "organization": {"id": 604}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 492}, "assignee": {"id": 64}, "organization": {"id": 179}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 423}, "assignee": {"id": 38}, "organization": {"id": 669}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 415}, "assignee": {"id": 82}, "organization": {"id": 135}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 452}, "assignee": {"id": 75}, "organization": {"id": 687}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 420}, "assignee": {"id": 80}, "organization": {"id": 166}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 422}, "assignee": {"id": 28}, "organization": {"id": 670}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 463}, "assignee": {"id": 15}, "organization": {"id": 102}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 423}, "assignee": {"id": 5}, "organization": {"id": 673}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 418}, "assignee": {"id": 92}, "organization": {"id": 164}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 443}, "assignee": {"id": 51}, "organization": {"id": 698}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 408}, "assignee": {"id": 20}, "organization": {"id": 187}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 444}, "assignee": {"id": 599}, "organization": {"id": 643}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 439}, "assignee": {"id": 598}, "organization": {"id": 158}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 425}, "assignee": {"id": 509}, "organization": {"id": 641}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 411}, "assignee": {"id": 533}, "organization": {"id": 153}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 446}, "assignee": {"id": 575}, "organization": {"id": 600}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 413}, "assignee": {"id": 520}, "organization": {"id": 183}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 485}, "assignee": {"id": 545}, "organization": {"id": 637}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 452}, "assignee": {"id": 562}, "organization": {"id": 193}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 410}, "assignee": {"id": 527}, "organization": {"id": 650}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 493}, "assignee": {"id": 581}, "organization": {"id": 131}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 400}, "assignee": {"id": 576}, "organization": {"id": 642}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 442}, "assignee": {"id": 523}, "organization": {"id": 146}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 424}, "assignee": {"id": 584}, "organization": {"id": 614}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 434}, "assignee": {"id": 565}, "organization": {"id": 147}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 486}, "assignee": {"id": 586}, "organization": {"id": 644}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 417}, "assignee": {"id": 581}, "organization": {"id": 116}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 406}, "assignee": {"id": 524}, "organization": {"id": 693}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 497}, "assignee": {"id": 597}, "organization": {"id": 160}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 446}, "assignee": {"id": 579}, "organization": {"id": 683}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 410}, "assignee": {"id": 562}, "organization": {"id": 118}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 415}, "assignee": {"id": 592}, "organization": {"id": 696}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 486}, "assignee": {"id": 540}, "organization": {"id": 113}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 426}, "assignee": {"id": 513}, "organization": {"id": 603}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 418}, "assignee": {"id": 504}, "organization": {"id": 116}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 400}, "assignee": {"id": 581}, "organization": {"id": 638}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 483}, "assignee": {"id": 567}, "organization": {"id": 137}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 442}, "assignee": {"id": 554}, "organization": {"id": 622}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 435}, "assignee": {"id": 575}, "organization": {"id": 104}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 466}, "assignee": {"id": 535}, "organization": {"id": 638}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 447}, "assignee": {"id": 516}, "organization": {"id": 120}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 436}, "assignee": {"id": 582}, "organization": {"id": 692}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 435}, "assignee": {"id": 559}, "organization": {"id": 113}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 436}, "assignee": {"id": 520}, "organization": {"id": 678}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 481}, "assignee": {"id": 501}, "organization": {"id": 166}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 494}, "assignee": {"id": 583}, "organization": {"id": 622}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 460}, "assignee": {"id": 547}, "organization": {"id": 196}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 412}, "assignee": {"id": 582}, "organization": {"id": 647}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 447}, "assignee": {"id": 547}, "organization": {"id": 174}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 483}, "assignee": {"id": 520}, "organization": {"id": 660}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 424}, "assignee": {"id": 529}, "organization": {"id": 184}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 465}, "assignee": {"id": 500}, "organization": {"id": 617}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 418}, "assignee": {"id": 564}, "organization": {"id": 109}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 402}, "assignee": {"id": 502}, "organization": {"id": 651}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 413}, "assignee": {"id": 566}, "organization": {"id": 111}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 444}, "assignee": {"id": 540}, "organization": {"id": 652}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 445}, "assignee": {"id": 511}, "organization": {"id": 197}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 467}, "assignee": {"id": 595}, "organization": {"id": 625}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 463}, "assignee": {"id": 522}, "organization": {"id": 195}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 401}, "assignee": {"id": 574}, "organization": {"id": 653}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 462}, "assignee": {"id": 552}, "organization": {"id": 123}}} +} + +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": 96, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 96}, "assignee": {"id": 505}, "organization": {"id": 618}, "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": 72, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 72}, "assignee": {"id": 535}, "organization": {"id": 626}, "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": 76, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 76}, "assignee": {"id": 517}, "organization": {"id": 606}, "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": 36, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 36}, "assignee": {"id": 530}, "organization": {"id": 645}, "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": 40, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 40}, "assignee": {"id": 536}, "organization": {"id": 695}, "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": 85, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 85}, "assignee": {"id": 516}, "organization": {"id": 678}, "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": 76, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 76}, "assignee": {"id": 551}, "organization": {"id": 615}, "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": 98, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 98}, "assignee": {"id": 548}, "organization": {"id": 616}, "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": 30, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 30}, "assignee": {"id": 545}, "organization": {"id": 631}, "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": 52, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 52}, "assignee": {"id": 593}, "organization": {"id": 630}, "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": 49, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 49}, "assignee": {"id": 535}, "organization": {"id": 673}, "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": 49, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 49}, "assignee": {"id": 599}, "organization": {"id": 665}, "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": 57, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 57}, "assignee": {"id": 522}, "organization": {"id": 621}, "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": 76, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 76}, "assignee": {"id": 577}, "organization": {"id": 625}, "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": 29, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 29}, "assignee": {"id": 535}, "organization": {"id": 603}, "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": 21, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 21}, "assignee": {"id": 522}, "organization": {"id": 615}, "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": 3, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 3}, "assignee": {"id": 511}, "organization": {"id": 646}, "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": 40, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 40}, "assignee": {"id": 536}, "organization": {"id": 618}, "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": 28, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 28}, "assignee": {"id": 515}, "organization": {"id": 693}, "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": 73, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 73}, "assignee": {"id": 596}, "organization": {"id": 673}, "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": 45, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 423}, "assignee": {"id": 45}, "organization": {"id": 686}, "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": 55, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 449}, "assignee": {"id": 55}, "organization": {"id": 625}, "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": 77, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 475}, "assignee": {"id": 77}, "organization": {"id": 654}, "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": 24, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 444}, "assignee": {"id": 24}, "organization": {"id": 630}, "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": 15, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 496}, "assignee": {"id": 15}, "organization": {"id": 632}, "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": 53, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 447}, "assignee": {"id": 53}, "organization": {"id": 630}, "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": 90, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 401}, "assignee": {"id": 90}, "organization": {"id": 684}, "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": 31, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 410}, "assignee": {"id": 31}, "organization": {"id": 624}, "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": 60, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 482}, "assignee": {"id": 60}, "organization": {"id": 647}, "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": 45, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 430}, "assignee": {"id": 45}, "organization": {"id": 621}, "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": 32, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 400}, "assignee": {"id": 32}, "organization": {"id": 644}, "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": 13, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 452}, "assignee": {"id": 13}, "organization": {"id": 626}, "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": 94, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 455}, "assignee": {"id": 94}, "organization": {"id": 682}, "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": 97, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 446}, "assignee": {"id": 97}, "organization": {"id": 670}, "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": 95, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 450}, "assignee": {"id": 95}, "organization": {"id": 640}, "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": 40, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 461}, "assignee": {"id": 40}, "organization": {"id": 617}, "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": 12, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 454}, "assignee": {"id": 12}, "organization": {"id": 624}, "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": 33, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 494}, "assignee": {"id": 33}, "organization": {"id": 640}, "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": 10, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 494}, "assignee": {"id": 10}, "organization": {"id": 629}, "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": 31, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 472}, "assignee": {"id": 31}, "organization": {"id": 696}, "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": 24, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 422}, "assignee": {"id": 575}, "organization": {"id": 660}, "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": 46, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 467}, "assignee": {"id": 567}, "organization": {"id": 638}, "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": 79, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 452}, "assignee": {"id": 525}, "organization": {"id": 656}, "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": 4, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 430}, "assignee": {"id": 522}, "organization": {"id": 616}, "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": 51, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 407}, "assignee": {"id": 552}, "organization": {"id": 672}, "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": 33, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 421}, "assignee": {"id": 529}, "organization": {"id": 652}, "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": 84, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 431}, "assignee": {"id": 511}, "organization": {"id": 699}, "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": 49, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 405}, "assignee": {"id": 587}, "organization": {"id": 611}, "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": 30, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 439}, "assignee": {"id": 562}, "organization": {"id": 636}, "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": 22, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 439}, "assignee": {"id": 561}, "organization": {"id": 614}, "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": 88, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 462}, "assignee": {"id": 536}, "organization": {"id": 650}, "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": 47, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 441}, "assignee": {"id": 579}, "organization": {"id": 635}, "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": 10, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 417}, "assignee": {"id": 568}, "organization": {"id": 605}, "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": 24, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 482}, "assignee": {"id": 550}, "organization": {"id": 687}, "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": 45, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 447}, "assignee": {"id": 537}, "organization": {"id": 606}, "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": 33, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 409}, "assignee": {"id": 533}, "organization": {"id": 663}, "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": 2, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 469}, "assignee": {"id": 546}, "organization": {"id": 648}, "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": 53, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 468}, "assignee": {"id": 554}, "organization": {"id": 661}, "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": 15, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 479}, "assignee": {"id": 544}, "organization": {"id": 671}, "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": 86, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 415}, "assignee": {"id": 597}, "organization": {"id": 600}, "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": 13, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 519}, "organization": {"id": 645}, "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": 87, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "assignee": {"id": 598}, "organization": {"id": 650}, "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": 88, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 88}, "assignee": {"id": 576}, "organization": {"id": 693}, "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": 24, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 24}, "assignee": {"id": 568}, "organization": {"id": 684}, "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": 97, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 564}, "organization": {"id": 133}, "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": 55, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "assignee": {"id": 595}, "organization": {"id": 186}, "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": 44, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 587}, "organization": {"id": 194}, "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": 9, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 9}, "assignee": {"id": 589}, "organization": {"id": 112}, "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": 65, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 573}, "organization": {"id": 691}, "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": 81, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 81}, "assignee": {"id": 507}, "organization": {"id": 695}, "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": 30, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 501}, "organization": {"id": 625}, "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": 12, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 552}, "organization": {"id": 605}, "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": 40, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 40}, "assignee": {"id": 531}, "organization": {"id": 125}, "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": 85, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 527}, "organization": {"id": 118}, "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": 41, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 534}, "organization": {"id": 164}, "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": 45, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 549}, "organization": {"id": 141}, "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": 41, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 549}, "organization": {"id": 651}, "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": 31, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "assignee": {"id": 582}, "organization": {"id": 622}, "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": 98, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 576}, "organization": {"id": 685}, "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": 2, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 543}, "organization": {"id": 667}, "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": 17, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 17}, "assignee": {"id": 556}, "organization": {"id": 146}, "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": 76, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 76}, "assignee": {"id": 534}, "organization": {"id": 144}, "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": 84, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 524}, "organization": {"id": 188}, "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": 54, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 551}, "organization": {"id": 109}, "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": 65, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 554}, "organization": {"id": 601}, "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": 59, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 59}, "assignee": {"id": 502}, "organization": {"id": 696}, "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": 54, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 552}, "organization": {"id": 690}, "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": 11, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 550}, "organization": {"id": 697}, "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": 87, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 87}, "assignee": {"id": 526}, "organization": {"id": 191}, "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": 51, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 504}, "organization": {"id": 162}, "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": 41, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 530}, "organization": {"id": 164}, "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": 31, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 31}, "assignee": {"id": 505}, "organization": {"id": 141}, "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": 84, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 537}, "organization": {"id": 679}, "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": 50, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 524}, "organization": {"id": 621}, "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": 80, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 505}, "organization": {"id": 649}, "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": 7, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 7}, "assignee": {"id": 580}, "organization": {"id": 655}, "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": 9, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 9}, "assignee": {"id": 532}, "organization": {"id": 125}, "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": 93, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 509}, "organization": {"id": 135}, "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": 42, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "assignee": {"id": 506}, "organization": {"id": 105}, "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": 4, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 4}, "assignee": {"id": 565}, "organization": {"id": 104}, "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": 53, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 53}, "assignee": {"id": 528}, "organization": {"id": 681}, "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": 55, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "assignee": {"id": 521}, "organization": {"id": 612}, "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": 52, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 52}, "assignee": {"id": 591}, "organization": {"id": 624}, "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": 63, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 535}, "organization": {"id": 628}, "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": 12, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 523}, "organization": {"id": 167}, "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": 70, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 532}, "organization": {"id": 193}, "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": 19, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 502}, "organization": {"id": 161}, "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": 92, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 92}, "assignee": {"id": 545}, "organization": {"id": 144}, "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": 1, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 590}, "organization": {"id": 639}, "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": 44, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 544}, "organization": {"id": 673}, "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": 27, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 27}, "assignee": {"id": 518}, "organization": {"id": 659}, "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": 0, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 0}, "assignee": {"id": 529}, "organization": {"id": 640}, "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": 97, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 558}, "organization": {"id": 186}, "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": 56, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 526}, "organization": {"id": 100}, "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": 24, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 24}, "assignee": {"id": 592}, "organization": {"id": 132}, "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": 28, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 512}, "organization": {"id": 143}, "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": 1, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 597}, "organization": {"id": 680}, "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": 93, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 549}, "organization": {"id": 675}, "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": 99, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 557}, "organization": {"id": 639}, "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": 46, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 599}, "organization": {"id": 666}, "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": 8, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 536}, "organization": {"id": 121}, "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": 5, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 586}, "organization": {"id": 176}, "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": 30, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 509}, "organization": {"id": 145}, "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": 80, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 533}, "organization": {"id": 177}, "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": 69, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 69}, "assignee": {"id": 578}, "organization": {"id": 604}, "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": 5, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 527}, "organization": {"id": 679}, "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": 57, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 523}, "organization": {"id": 669}, "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": 42, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 42}, "assignee": {"id": 500}, "organization": {"id": 639}, "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": 21, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 21}, "assignee": {"id": 571}, "organization": {"id": 144}, "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": 129, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 522}, "organization": {"id": 129}, "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": 16, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 535}, "organization": {"id": 170}, "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": 26, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 509}, "organization": {"id": 149}, "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": 94, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 509}, "organization": {"id": 677}, "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": 59, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 59}, "assignee": {"id": 596}, "organization": {"id": 630}, "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": 71, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 551}, "organization": {"id": 615}, "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": 69, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 69}, "assignee": {"id": 590}, "organization": {"id": 636}, "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": 49, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 515}, "organization": {"id": 156}, "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": 65, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 558}, "organization": {"id": 107}, "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": 71, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 560}, "organization": {"id": 184}, "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": 37, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 585}, "organization": {"id": 109}, "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": 39, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 561}, "organization": {"id": 684}, "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": 31, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 31}, "assignee": {"id": 563}, "organization": {"id": 658}, "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": 92, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 92}, "assignee": {"id": 590}, "organization": {"id": 636}, "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": 83, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 588}, "organization": {"id": 642}, "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": 35, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 533}, "organization": {"id": 195}, "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": 95, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 95}, "assignee": {"id": 529}, "organization": {"id": 152}, "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": 89, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 89}, "assignee": {"id": 530}, "organization": {"id": 164}, "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": 74, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 74}, "assignee": {"id": 578}, "organization": {"id": 150}, "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": 10, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 544}, "organization": {"id": 638}, "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": 1, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 504}, "organization": {"id": 699}, "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": 26, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 541}, "organization": {"id": 643}, "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": 80, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 570}, "organization": {"id": 699}, "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": 30, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 523}, "organization": {"id": 182}, "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": 19, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 526}, "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": 67, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 564}, "organization": {"id": 119}, "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": 89, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 89}, "assignee": {"id": 536}, "organization": {"id": 111}, "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": 58, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 500}, "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": 99, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 560}, "organization": {"id": 610}, "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": 98, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 507}, "organization": {"id": 641}, "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": 7, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 7}, "assignee": {"id": 544}, "organization": {"id": 674}, "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": 38, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 506}, "organization": {"id": 156}, "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": 52, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 52}, "assignee": {"id": 584}, "organization": {"id": 153}, "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": 33, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 33}, "assignee": {"id": 530}, "organization": {"id": 174}, "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": 127, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 577}, "organization": {"id": 127}, "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": 94, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 529}, "organization": {"id": 697}, "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": 28, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 513}, "organization": {"id": 623}, "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": 67, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 536}, "organization": {"id": 612}, "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": 92, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 92}, "assignee": {"id": 529}, "organization": {"id": 694}, "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": 59, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 59}, "assignee": {"id": 546}, "organization": {"id": 139}, "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": 80, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 501}, "organization": {"id": 113}, "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": 16, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 576}, "organization": {"id": 140}, "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": 52, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 52}, "assignee": {"id": 582}, "organization": {"id": 197}, "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": 84, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 577}, "organization": {"id": 611}, "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": 54, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 585}, "organization": {"id": 693}, "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": 82, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 521}, "organization": {"id": 687}, "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": 19, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 588}, "organization": {"id": 634}, "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": 66, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 66}, "assignee": {"id": 571}, "organization": {"id": 141}, "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": 42, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "assignee": {"id": 516}, "organization": {"id": 173}, "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": 1, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 584}, "organization": {"id": 192}, "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": 99, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 578}, "organization": {"id": 141}, "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": 21, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 21}, "assignee": {"id": 541}, "organization": {"id": 671}, "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": 35, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 512}, "organization": {"id": 694}, "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": 5, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 559}, "organization": {"id": 681}, "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": 98, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 596}, "organization": {"id": 620}, "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": 17, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 17}, "assignee": {"id": 557}, "organization": {"id": 129}, "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": 89, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 89}, "assignee": {"id": 557}, "organization": {"id": 168}, "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": 76, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 76}, "assignee": {"id": 568}, "organization": {"id": 126}, "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": 13, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 507}, "organization": {"id": 144}, "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": 49, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 539}, "organization": {"id": 618}, "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": 4, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 4}, "assignee": {"id": 594}, "organization": {"id": 659}, "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": 56, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 503}, "organization": {"id": 606}, "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": 49, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 567}, "organization": {"id": 667}, "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": 7, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 7}, "assignee": {"id": 564}, "organization": {"id": 178}, "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": 6, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 6}, "assignee": {"id": 557}, "organization": {"id": 171}, "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": 7, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 7}, "assignee": {"id": 580}, "organization": {"id": 149}, "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": 5, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 571}, "organization": {"id": 116}, "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": 95, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 95}, "assignee": {"id": 531}, "organization": {"id": 685}, "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": 8, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 520}, "organization": {"id": 612}, "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": 77, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 542}, "organization": {"id": 689}, "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": 88, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 88}, "assignee": {"id": 517}, "organization": {"id": 636}, "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": 55, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 55}, "assignee": {"id": 509}, "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": 99, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 500}, "organization": {"id": 126}, "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": 44, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 599}, "organization": {"id": 108}, "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": 90, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 539}, "organization": {"id": 190}, "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": 33, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "assignee": {"id": 598}, "organization": {"id": 653}, "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": 62, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 62}, "assignee": {"id": 526}, "organization": {"id": 645}, "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": 61, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 506}, "organization": {"id": 685}, "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": 31, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 31}, "assignee": {"id": 512}, "organization": {"id": 610}, "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": 68, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 68}, "assignee": {"id": 508}, "organization": {"id": 136}, "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": 79, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 79}, "assignee": {"id": 515}, "organization": {"id": 121}, "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": 21, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 21}, "assignee": {"id": 523}, "organization": {"id": 107}, "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": 26, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 553}, "organization": {"id": 140}, "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": 46, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 513}, "organization": {"id": 625}, "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": 79, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 79}, "assignee": {"id": 529}, "organization": {"id": 684}, "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": 80, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 504}, "organization": {"id": 651}, "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": 93, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 502}, "organization": {"id": 668}, "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": 99, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 598}, "organization": {"id": 144}, "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": 80, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 567}, "organization": {"id": 140}, "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": 16, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 508}, "organization": {"id": 121}, "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": 86, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 86}, "assignee": {"id": 556}, "organization": {"id": 196}, "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": 23, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 526}, "organization": {"id": 668}, "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": 2, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 571}, "organization": {"id": 612}, "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": 19, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 589}, "organization": {"id": 610}, "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": 85, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 535}, "organization": {"id": 695}, "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": 18, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 18}, "assignee": {"id": 537}, "organization": {"id": 169}, "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": 73, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 526}, "organization": {"id": 130}, "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": 7, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 7}, "assignee": {"id": 518}, "organization": {"id": 156}, "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": 19, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 555}, "organization": {"id": 157}, "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": 79, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 79}, "assignee": {"id": 533}, "organization": {"id": 603}, "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": 59, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 59}, "assignee": {"id": 531}, "organization": {"id": 659}, "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": 53, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 53}, "assignee": {"id": 505}, "organization": {"id": 603}, "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": 65, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 503}, "organization": {"id": 626}, "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": 86, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 86}, "assignee": {"id": 575}, "organization": {"id": 127}, "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": 65, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 515}, "organization": {"id": 158}, "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": 43, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 573}, "organization": {"id": 114}, "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": 43, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 550}, "organization": {"id": 174}, "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": 33, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 33}, "assignee": {"id": 572}, "organization": {"id": 666}, "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": 86, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 86}, "assignee": {"id": 596}, "organization": {"id": 676}, "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": 77, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 549}, "organization": {"id": 689}, "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": 43, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 541}, "organization": {"id": 687}, "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": 84, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 504}, "organization": {"id": 160}, "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": 63, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 542}, "organization": {"id": 146}, "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": 85, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 518}, "organization": {"id": 175}, "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": 54, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 542}, "organization": {"id": 127}, "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": 29, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 544}, "organization": {"id": 675}, "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": 27, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 27}, "assignee": {"id": 573}, "organization": {"id": 634}, "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": 98, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 530}, "organization": {"id": 637}, "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": 5, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 551}, "organization": {"id": 646}, "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": 56, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 577}, "organization": {"id": 147}, "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": 112, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 27}, "assignee": {"id": 517}, "organization": {"id": 112}, "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": 83, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 551}, "organization": {"id": 130}, "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": 43, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 566}, "organization": {"id": 115}, "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": 71, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 587}, "organization": {"id": 640}, "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": 12, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 513}, "organization": {"id": 666}, "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": 54, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 524}, "organization": {"id": 609}, "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": 2, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 541}, "organization": {"id": 685}, "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": 28, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 514}, "organization": {"id": 133}, "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": 98, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 504}, "organization": {"id": 153}, "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": 85, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 528}, "organization": {"id": 150}, "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": 16, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 597}, "organization": {"id": 110}, "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": 95, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 95}, "organization": {"id": 698}, "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": 93, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 93}, "organization": {"id": 643}, "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": 5, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 5}, "organization": {"id": 674}, "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": 5, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 5}, "organization": {"id": 628}, "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": 75, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 75}, "organization": {"id": 129}, "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": 84, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 84}, "organization": {"id": 112}, "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": 32, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 32}, "organization": {"id": 153}, "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": 60, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 60}, "organization": {"id": 112}, "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": 31, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 31}, "organization": {"id": 612}, "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": 42, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 42}, "organization": {"id": 682}, "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": 29, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 29}, "organization": {"id": 697}, "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": 59, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 59}, "organization": {"id": 676}, "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": 25, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 25}, "organization": {"id": 150}, "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": 10, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 10}, "organization": {"id": 154}, "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": 2, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 2}, "organization": {"id": 114}, "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": 8, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 8}, "organization": {"id": 140}, "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": 13, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 13}, "organization": {"id": 607}, "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": 49, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 49}, "organization": {"id": 658}, "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": 60, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 60}, "organization": {"id": 677}, "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": 78, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 78}, "organization": {"id": 689}, "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": 5, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 5}, "organization": {"id": 176}, "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": 78, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 78}, "organization": {"id": 134}, "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": 35, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 35}, "organization": {"id": 110}, "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": 83, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 83}, "organization": {"id": 196}, "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": 39, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 39}, "organization": {"id": 686}, "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": 59, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 59}, "organization": {"id": 636}, "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": 62, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 62}, "organization": {"id": 605}, "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": 18, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 18}, "organization": {"id": 655}, "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": 93, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 93}, "organization": {"id": 193}, "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": 1, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 1}, "organization": {"id": 160}, "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": 69, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 69}, "organization": {"id": 182}, "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": 15, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 15}, "organization": {"id": 123}, "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": 72, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 72}, "organization": {"id": 689}, "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": 51, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 51}, "organization": {"id": 676}, "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": 53, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 53}, "organization": {"id": 644}, "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": 57, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 57}, "organization": {"id": 697}, "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": 54, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 54}, "organization": {"id": 178}, "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": 6, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 6}, "organization": {"id": 161}, "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": 0, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 0}, "organization": {"id": 151}, "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": 3, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 3}, "organization": {"id": 196}, "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": 86, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 86}, "organization": {"id": 602}, "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": 60, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 60}, "organization": {"id": 682}, "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": 55, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 55}, "organization": {"id": 652}, "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": 59, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 59}, "organization": {"id": 637}, "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": 47, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 47}, "organization": {"id": 173}, "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": 94, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 94}, "organization": {"id": 121}, "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": 97, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 97}, "organization": {"id": 150}, "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": 56, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 56}, "organization": {"id": 135}, "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": 61, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 61}, "organization": {"id": 661}, "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": 9, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 9}, "organization": {"id": 672}, "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": 17, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 17}, "organization": {"id": 676}, "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": 18, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 18}, "organization": {"id": 684}, "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": 20, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 20}, "organization": {"id": 170}, "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": 37, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 37}, "organization": {"id": 148}, "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": 6, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 6}, "organization": {"id": 193}, "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": 67, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 67}, "organization": {"id": 135}, "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": 84, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 84}, "organization": {"id": 696}, "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": 81, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 81}, "organization": {"id": 686}, "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": 37, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 37}, "organization": {"id": 607}, "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": 31, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 31}, "organization": {"id": 695}, "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": 2, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 2}, "organization": {"id": 109}, "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": 96, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 96}, "organization": {"id": 173}, "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": 58, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 58}, "organization": {"id": 192}, "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": 27, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 27}, "organization": {"id": 171}, "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": 59, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 59}, "organization": {"id": 641}, "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": 16, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 16}, "organization": {"id": 610}, "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": 7, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 7}, "organization": {"id": 628}, "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": 26, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 26}, "organization": {"id": 605}, "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": 34, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 34}, "organization": {"id": 144}, "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": 53, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 53}, "organization": {"id": 140}, "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": 34, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 34}, "organization": {"id": 180}, "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": 83, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 83}, "organization": {"id": 184}, "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": 57, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 57}, "organization": {"id": 689}, "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": 9, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 9}, "organization": {"id": 676}, "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": 24, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 24}, "organization": {"id": 645}, "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": 23, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 23}, "organization": {"id": 668}, "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": 40, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 40}, "organization": {"id": 196}, "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": 2, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 2}, "organization": {"id": 122}, "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": 32, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 32}, "organization": {"id": 148}, "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": 88, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 88}, "organization": {"id": 101}, "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": 26, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 26}, "organization": {"id": 659}, "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": 157, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 18}, "organization": {"id": 663}, "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": 2, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 2}, "organization": {"id": 624}, "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": 58, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 58}, "organization": {"id": 614}, "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": 81, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 81}, "organization": {"id": 151}, "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": 84, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 84}, "organization": {"id": 148}, "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": 66, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 66}, "organization": {"id": 128}, "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": 50, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 50}, "organization": {"id": 108}, "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": 98, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 98}, "organization": {"id": 603}, "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": 12, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 12}, "organization": {"id": 684}, "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": 68, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 68}, "organization": {"id": 600}, "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": 83, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 83}, "organization": {"id": 658}, "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": 81, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 81}, "organization": {"id": 121}, "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": 58, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 58}, "organization": {"id": 153}, "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": 62, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 62}, "organization": {"id": 180}, "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": 40, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 40}, "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": 98, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 98}, "organization": {"id": 681}, "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": 67, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 67}, "organization": {"id": 658}, "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": 63, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 63}, "organization": {"id": 664}, "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": 70, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 70}, "organization": {"id": 650}, "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": 24, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 24}, "organization": {"id": 171}, "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": 79, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 79}, "organization": {"id": 142}, "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": 28, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 28}, "organization": {"id": 147}, "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": 5, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 5}, "organization": {"id": 170}, "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": 64, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 64}, "organization": {"id": 692}, "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": 69, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 69}, "organization": {"id": 657}, "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": 67, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 67}, "organization": {"id": 627}, "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": 92, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 92}, "organization": {"id": 665}, "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": 84, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 84}, "organization": {"id": 142}, "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": 62, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 62}, "organization": {"id": 107}, "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": 40, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 40}, "organization": {"id": 139}, "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": 8, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 8}, "organization": {"id": 174}, "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": 14, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 14}, "organization": {"id": 629}, "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": 88, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 88}, "organization": {"id": 699}, "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": 39, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 39}, "organization": {"id": 631}, "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": 77, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 77}, "organization": {"id": 698}, "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": 61, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 61}, "organization": {"id": 175}, "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": 37, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 37}, "organization": {"id": 112}, "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": 21, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 21}, "organization": {"id": 190}, "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": 15, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 15}, "organization": {"id": 197}, "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": 43, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 43}, "organization": {"id": 623}, "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": 78, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 78}, "organization": {"id": 696}, "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": 13, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 13}, "organization": {"id": 611}, "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": 74, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 74}, "organization": {"id": 694}, "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": 65, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 65}, "organization": {"id": 108}, "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": 50, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 50}, "organization": {"id": 161}, "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": 74, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 74}, "organization": {"id": 123}, "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": 35, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 35}, "organization": {"id": 184}, "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": 33, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 33}, "organization": {"id": 619}, "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": 63, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 63}, "organization": {"id": 633}, "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": 48, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 48}, "organization": {"id": 608}, "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": 24, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 24}, "organization": {"id": 639}, "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": 14, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 14}, "organization": {"id": 118}, "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": 41, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 41}, "organization": {"id": 113}, "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": 21, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 21}, "organization": {"id": 140}, "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": 33, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 33}, "organization": {"id": 179}, "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": 55, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 55}, "organization": {"id": 621}, "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": 7, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 7}, "organization": {"id": 612}, "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": 16, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 16}, "organization": {"id": 649}, "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": 131, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 83}, "organization": {"id": 626}, "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": 2, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 2}, "organization": {"id": 199}, "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": 20, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 20}, "organization": {"id": 112}, "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": 3, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 3}, "organization": {"id": 178}, "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": 9, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 9}, "organization": {"id": 165}, "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": 34, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 34}, "organization": {"id": 673}, "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": 10, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 10}, "organization": {"id": 673}, "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": 35, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 35}, "organization": {"id": 699}, "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": 49, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 49}, "organization": {"id": 602}, "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": 61, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 61}, "organization": {"id": 106}, "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": 76, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 76}, "organization": {"id": 169}, "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": 98, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 98}, "organization": {"id": 137}, "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": 48, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 48}, "organization": {"id": 183}, "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": 30, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 30}, "organization": {"id": 658}, "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": 84, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 84}, "organization": {"id": 640}, "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": 39, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 39}, "organization": {"id": 614}, "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": 33, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 33}, "organization": {"id": 605}, "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": 24, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 24}, "organization": {"id": 167}, "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": 95, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 95}, "organization": {"id": 145}, "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": 11, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 11}, "organization": {"id": 145}, "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": 61, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 61}, "organization": {"id": 185}, "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": 91, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 91}, "organization": {"id": 607}, "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": 43, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 43}, "organization": {"id": 607}, "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": 53, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 53}, "organization": {"id": 697}, "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": 29, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 29}, "organization": {"id": 684}, "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": 57, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 57}, "organization": {"id": 168}, "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": 26, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 26}, "organization": {"id": 131}, "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": 48, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 48}, "organization": {"id": 171}, "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": 69, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 69}, "organization": {"id": 146}, "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": 17, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 17}, "organization": {"id": 699}, "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": 51, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 51}, "organization": {"id": 618}, "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": 67, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 67}, "organization": {"id": 652}, "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": 43, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 43}, "organization": {"id": 653}, "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": 33, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 33}, "organization": {"id": 164}, "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": 59, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 59}, "organization": {"id": 195}, "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": 48, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 48}, "organization": {"id": 199}, "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": 54, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 54}, "organization": {"id": 124}, "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": 46, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 46}, "organization": {"id": 698}, "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": 32, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 32}, "organization": {"id": 604}, "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": 12, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 12}, "organization": {"id": 604}, "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": 40, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 40}, "organization": {"id": 617}, "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": 42, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 42}, "organization": {"id": 131}, "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": 57, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 57}, "organization": {"id": 167}, "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": 43, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 43}, "organization": {"id": 134}, "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": 23, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 23}, "organization": {"id": 111}, "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": 62, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 62}, "organization": {"id": 600}, "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": 2, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 2}, "organization": {"id": 644}, "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": 13, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 13}, "organization": {"id": 675}, "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": 35, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 35}, "organization": {"id": 634}, "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": 64, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 64}, "organization": {"id": 100}, "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": 77, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 77}, "organization": {"id": 121}, "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": 39, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 39}, "organization": {"id": 135}, "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": 86, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 86}, "organization": {"id": 182}, "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": 69, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 69}, "organization": {"id": 680}, "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": 55, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 55}, "organization": {"id": 650}, "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": 24, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 24}, "organization": {"id": 661}, "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": 2, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 2}, "organization": {"id": 682}, "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": 19, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 19}, "organization": {"id": 192}, "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": 57, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 57}, "organization": {"id": 170}, "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": 48, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 48}, "organization": {"id": 158}, "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": 87, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 87}, "organization": {"id": 105}, "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": 57, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 507}, "organization": {"id": 668}, "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": 39, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 505}, "organization": {"id": 666}, "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": 40, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 566}, "organization": {"id": 692}, "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": 53, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 592}, "organization": {"id": 614}, "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": 21, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 585}, "organization": {"id": 106}, "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": 6, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 500}, "organization": {"id": 197}, "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": 68, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 524}, "organization": {"id": 132}, "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": 42, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 518}, "organization": {"id": 185}, "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": 62, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 587}, "organization": {"id": 650}, "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": 28, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 579}, "organization": {"id": 657}, "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": 68, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 503}, "organization": {"id": 694}, "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": 96, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 565}, "organization": {"id": 636}, "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": 14, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 519}, "organization": {"id": 164}, "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": 50, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 553}, "organization": {"id": 132}, "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": 2, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 588}, "organization": {"id": 121}, "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": 48, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 517}, "organization": {"id": 188}, "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": 36, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 556}, "organization": {"id": 628}, "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": 81, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 526}, "organization": {"id": 650}, "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": 16, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 553}, "organization": {"id": 694}, "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": 62, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 558}, "organization": {"id": 642}, "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": 54, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 560}, "organization": {"id": 168}, "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": 17, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 506}, "organization": {"id": 193}, "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": 30, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 525}, "organization": {"id": 144}, "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": 56, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 593}, "organization": {"id": 140}, "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": 73, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 522}, "organization": {"id": 626}, "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": 38, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 559}, "organization": {"id": 647}, "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": 77, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 561}, "organization": {"id": 615}, "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": 19, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 504}, "organization": {"id": 631}, "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": 98, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 566}, "organization": {"id": 131}, "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": 2, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 565}, "organization": {"id": 113}, "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": 48, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 561}, "organization": {"id": 129}, "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": 95, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 571}, "organization": {"id": 158}, "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": 127, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 546}, "organization": {"id": 676}, "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": 56, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 503}, "organization": {"id": 698}, "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": 11, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 540}, "organization": {"id": 656}, "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": 94, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 579}, "organization": {"id": 618}, "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": 58, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 562}, "organization": {"id": 107}, "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": 73, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 502}, "organization": {"id": 110}, "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": 94, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 539}, "organization": {"id": 194}, "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": 6, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 557}, "organization": {"id": 167}, "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": 77, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 547}, "organization": {"id": 652}, "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": 16, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 527}, "organization": {"id": 612}, "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": 88, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 530}, "organization": {"id": 600}, "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": 14, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 565}, "organization": {"id": 615}, "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": 21, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 518}, "organization": {"id": 111}, "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": 19, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 517}, "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": 2, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 547}, "organization": {"id": 148}, "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": 33, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 527}, "organization": {"id": 185}, "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": 18, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 586}, "organization": {"id": 692}, "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": 43, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 529}, "organization": {"id": 691}, "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": 25, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 538}, "organization": {"id": 648}, "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": 51, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 586}, "organization": {"id": 656}, "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": 57, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 501}, "organization": {"id": 112}, "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": 19, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 539}, "organization": {"id": 165}, "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": 41, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 560}, "organization": {"id": 152}, "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": 65, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 574}, "organization": {"id": 171}, "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": 2, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 523}, "organization": {"id": 666}, "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": 22, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 539}, "organization": {"id": 688}, "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": 52, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 504}, "organization": {"id": 658}, "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": 2, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 594}, "organization": {"id": 605}, "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": 84, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 598}, "organization": {"id": 102}, "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": 34, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 552}, "organization": {"id": 109}, "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": 42, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 545}, "organization": {"id": 110}, "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": 96, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 510}, "organization": {"id": 185}, "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": 23, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 543}, "organization": {"id": 636}, "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": 28, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 571}, "organization": {"id": 649}, "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": 10, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 559}, "organization": {"id": 613}, "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": 27, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 541}, "organization": {"id": 640}, "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": 20, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 581}, "organization": {"id": 197}, "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": 33, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 590}, "organization": {"id": 181}, "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": 55, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 514}, "organization": {"id": 173}, "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": 42, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 589}, "organization": {"id": 187}, "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": 36, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 557}, "organization": {"id": 698}, "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": 15, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 506}, "organization": {"id": 615}, "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": 39, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 590}, "organization": {"id": 639}, "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": 50, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 550}, "organization": {"id": 684}, "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": 50, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 516}, "organization": {"id": 175}, "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": 6, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 562}, "organization": {"id": 167}, "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": 68, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 580}, "organization": {"id": 156}, "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": 36, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 595}, "organization": {"id": 113}, "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": 23, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 590}, "organization": {"id": 694}, "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": 48, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 582}, "organization": {"id": 614}, "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": 9, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 527}, "organization": {"id": 683}, "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": 44, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 590}, "organization": {"id": 681}, "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": 26, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 525}, "organization": {"id": 130}, "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": 35, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 518}, "organization": {"id": 142}, "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": 61, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 578}, "organization": {"id": 152}, "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": 65, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 563}, "organization": {"id": 164}, "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": 72, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 539}, "organization": {"id": 636}, "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": 21, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 567}, "organization": {"id": 690}, "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": 50, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 548}, "organization": {"id": 678}, "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": 47, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 529}, "organization": {"id": 678}, "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": 56, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 520}, "organization": {"id": 123}, "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": 49, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 564}, "organization": {"id": 171}, "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": 70, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 576}, "organization": {"id": 133}, "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": 15, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 501}, "organization": {"id": 106}, "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": 51, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 564}, "organization": {"id": 654}, "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": 42, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 533}, "organization": {"id": 648}, "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": 67, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 591}, "organization": {"id": 607}, "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": 76, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 520}, "organization": {"id": 690}, "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": 88, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 568}, "organization": {"id": 177}, "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": 26, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 580}, "organization": {"id": 112}, "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": 60, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 597}, "organization": {"id": 147}, "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": 34, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 596}, "organization": {"id": 143}, "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": 182, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 547}, "organization": {"id": 645}, "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": 36, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 556}, "organization": {"id": 671}, "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": 59, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 517}, "organization": {"id": 697}, "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": 17, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 557}, "organization": {"id": 674}, "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": 67, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 551}, "organization": {"id": 104}, "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": 86, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 598}, "organization": {"id": 174}, "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": 52, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 585}, "organization": {"id": 146}, "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": 17, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 549}, "organization": {"id": 146}, "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": 14, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 524}, "organization": {"id": 651}, "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": 36, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 583}, "organization": {"id": 618}, "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": 74, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 514}, "organization": {"id": 616}, "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": 16, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 501}, "organization": {"id": 602}, "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": 15, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 587}, "organization": {"id": 109}, "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": 21, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 515}, "organization": {"id": 111}, "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": 46, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 566}, "organization": {"id": 152}, "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": 70, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 512}, "organization": {"id": 104}, "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": 36, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 512}, "organization": {"id": 678}, "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": 69, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 568}, "organization": {"id": 688}, "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": 12, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 566}, "organization": {"id": 663}, "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": 22, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 544}, "organization": {"id": 606}, "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": 71, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 509}, "organization": {"id": 194}, "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": 99, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 571}, "organization": {"id": 182}, "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": 54, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 511}, "organization": {"id": 165}, "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": 57, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 596}, "organization": {"id": 165}, "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": 68, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 514}, "organization": {"id": 685}, "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": 37, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 541}, "organization": {"id": 620}, "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": 78, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 505}, "organization": {"id": 676}, "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": 87, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 551}, "organization": {"id": 655}, "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": 82, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 594}, "organization": {"id": 145}, "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": 47, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 586}, "organization": {"id": 185}, "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": 59, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 588}, "organization": {"id": 160}, "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": 63, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 559}, "organization": {"id": 138}, "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": 10, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 514}, "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": 61, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 509}, "organization": {"id": 638}, "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": 14, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 599}, "organization": {"id": 608}, "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": 65, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 549}, "organization": {"id": 668}, "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": 31, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 561}, "organization": {"id": 177}, "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": 64, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 563}, "organization": {"id": 187}, "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": 12, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 501}, "organization": {"id": 129}, "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": 15, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 508}, "organization": {"id": 167}, "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": 78, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 503}, "organization": {"id": 662}, "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": 95, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 597}, "organization": {"id": 668}, "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": 45, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 518}, "organization": {"id": 641}, "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": 36, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 510}, "organization": {"id": 607}, "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": 43, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 524}, "organization": {"id": 183}, "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": 79, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 549}, "organization": {"id": 113}, "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": 95, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 541}, "organization": {"id": 117}, "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": 4, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 565}, "organization": {"id": 130}, "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": 96, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 522}, "organization": {"id": 682}, "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": 88, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 556}, "organization": {"id": 628}, "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": 2, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 553}, "organization": {"id": 624}, "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": 15, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 568}, "organization": {"id": 659}, "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": 56, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 512}, "organization": {"id": 162}, "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": 84, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 558}, "organization": {"id": 134}, "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": 89, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 566}, "organization": {"id": 195}, "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": 9, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 536}, "organization": {"id": 106}, "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": 79, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 527}, "organization": {"id": 645}, "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": 84, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 538}, "organization": {"id": 662}, "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": 57, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 548}, "organization": {"id": 650}, "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": 97, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 549}, "organization": {"id": 647}, "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": 13, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 548}, "organization": {"id": 130}, "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": 97, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 580}, "organization": {"id": 185}, "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": 12, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 579}, "organization": {"id": 155}, "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": 84, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 548}, "organization": {"id": 121}, "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": 37, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 596}, "organization": {"id": 677}, "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": 89, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 590}, "organization": {"id": 695}, "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": 38, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 510}, "organization": {"id": 658}, "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": 49, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 574}, "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": 13, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 573}, "organization": {"id": 122}, "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": 60, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 534}, "organization": {"id": 163}, "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": 32, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 544}, "organization": {"id": 113}, "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": 19, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 515}, "organization": {"id": 100}, "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": 29, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 508}, "organization": {"id": 691}, "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": 31, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 507}, "organization": {"id": 674}, "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": 50, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 519}, "organization": {"id": 635}, "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": 73, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 587}, "organization": {"id": 663}, "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": 60, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 505}, "organization": {"id": 154}, "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": 54, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 522}, "organization": {"id": 134}, "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": 94, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 578}, "organization": {"id": 160}, "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": 36, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 573}, "organization": {"id": 176}, "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": 81, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 566}, "organization": {"id": 640}, "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": 85, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 580}, "organization": {"id": 624}, "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": 61, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 517}, "organization": {"id": 683}, "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": 8, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 547}, "organization": {"id": 696}, "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": 13, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 572}, "organization": {"id": 111}, "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": 67, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 593}, "organization": {"id": 151}, "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": 67, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 558}, "organization": {"id": 100}, "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": 27, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 539}, "organization": {"id": 162}, "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": 5, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 564}, "organization": {"id": 684}, "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": 66, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 546}, "organization": {"id": 650}, "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": 80, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 523}, "organization": {"id": 618}, "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": 7, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 511}, "organization": {"id": 635}, "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": 42, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 546}, "organization": {"id": 111}, "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": 93, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 524}, "organization": {"id": 148}, "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": 68, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 587}, "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": 35, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 575}, "organization": {"id": 128}, "user": {"num_resources": 10}}} +} + +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": 18, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 18}, "assignee": {"id": 599}, "organization": {"id": 660}, "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": 68, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 68}, "assignee": {"id": 536}, "organization": {"id": 602}, "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": 63, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 63}, "assignee": {"id": 559}, "organization": {"id": 681}, "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": 66, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 66}, "assignee": {"id": 528}, "organization": {"id": 655}, "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": 99, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 99}, "assignee": {"id": 599}, "organization": {"id": 611}, "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": 22, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 22}, "assignee": {"id": 583}, "organization": {"id": 643}, "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": 16, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 16}, "assignee": {"id": 547}, "organization": {"id": 607}, "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": 26, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 26}, "assignee": {"id": 579}, "organization": {"id": 698}, "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": 62, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 62}, "assignee": {"id": 585}, "organization": {"id": 699}, "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": 45, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 45}, "assignee": {"id": 522}, "organization": {"id": 694}, "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": 59, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 59}, "assignee": {"id": 591}, "organization": {"id": 616}, "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": 19, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 19}, "assignee": {"id": 514}, "organization": {"id": 690}, "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": 76, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 76}, "assignee": {"id": 543}, "organization": {"id": 610}, "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": 22, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 22}, "assignee": {"id": 517}, "organization": {"id": 632}, "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": 69, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 69}, "assignee": {"id": 529}, "organization": {"id": 621}, "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": 57, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 57}, "assignee": {"id": 576}, "organization": {"id": 625}, "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": 12, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 12}, "assignee": {"id": 529}, "organization": {"id": 666}, "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": 12, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 12}, "assignee": {"id": 570}, "organization": {"id": 699}, "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": 16, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 16}, "assignee": {"id": 506}, "organization": {"id": 667}, "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": 61, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 61}, "assignee": {"id": 576}, "organization": {"id": 661}, "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": 56, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 498}, "assignee": {"id": 56}, "organization": {"id": 644}, "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": 79, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 458}, "assignee": {"id": 79}, "organization": {"id": 618}, "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": 41, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 473}, "assignee": {"id": 41}, "organization": {"id": 642}, "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": 75, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 403}, "assignee": {"id": 75}, "organization": {"id": 662}, "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": 10, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 460}, "assignee": {"id": 10}, "organization": {"id": 691}, "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": 34, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 471}, "assignee": {"id": 34}, "organization": {"id": 639}, "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": 67, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 408}, "assignee": {"id": 67}, "organization": {"id": 603}, "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": 55, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 486}, "assignee": {"id": 55}, "organization": {"id": 668}, "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": 85, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 411}, "assignee": {"id": 85}, "organization": {"id": 600}, "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": 25, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 432}, "assignee": {"id": 25}, "organization": {"id": 694}, "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": 66, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 481}, "assignee": {"id": 66}, "organization": {"id": 654}, "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": 53, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 487}, "assignee": {"id": 53}, "organization": {"id": 608}, "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": 76, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 410}, "assignee": {"id": 76}, "organization": {"id": 633}, "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": 29, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 477}, "assignee": {"id": 29}, "organization": {"id": 638}, "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": 28, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 409}, "assignee": {"id": 28}, "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": 46, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 410}, "assignee": {"id": 46}, "organization": {"id": 603}, "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": 48, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 421}, "assignee": {"id": 48}, "organization": {"id": 618}, "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": 20, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 495}, "assignee": {"id": 20}, "organization": {"id": 690}, "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": 47, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 457}, "assignee": {"id": 47}, "organization": {"id": 605}, "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": 35, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 438}, "assignee": {"id": 35}, "organization": {"id": 680}, "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": 39, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 449}, "assignee": {"id": 565}, "organization": {"id": 614}, "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": 34, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 415}, "assignee": {"id": 590}, "organization": {"id": 648}, "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": 78, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 433}, "assignee": {"id": 523}, "organization": {"id": 659}, "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": 10, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 435}, "assignee": {"id": 529}, "organization": {"id": 651}, "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": 45, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 468}, "assignee": {"id": 557}, "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": 9, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 499}, "assignee": {"id": 515}, "organization": {"id": 600}, "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": 29, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 441}, "assignee": {"id": 542}, "organization": {"id": 680}, "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": 15, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 455}, "assignee": {"id": 507}, "organization": {"id": 618}, "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": 40, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 449}, "assignee": {"id": 554}, "organization": {"id": 616}, "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": 65, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 497}, "assignee": {"id": 503}, "organization": {"id": 677}, "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": 81, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 488}, "assignee": {"id": 525}, "organization": {"id": 657}, "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": 70, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 403}, "assignee": {"id": 594}, "organization": {"id": 610}, "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": 38, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 465}, "assignee": {"id": 520}, "organization": {"id": 612}, "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": 52, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 430}, "assignee": {"id": 566}, "organization": {"id": 694}, "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": 23, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 470}, "assignee": {"id": 529}, "organization": {"id": 607}, "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": 20, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 469}, "assignee": {"id": 510}, "organization": {"id": 664}, "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": 33, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 430}, "assignee": {"id": 599}, "organization": {"id": 608}, "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": 64, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 452}, "assignee": {"id": 527}, "organization": {"id": 602}, "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": 92, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 469}, "assignee": {"id": 506}, "organization": {"id": 610}, "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": 34, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 401}, "assignee": {"id": 569}, "organization": {"id": 698}, "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": 43, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 571}, "organization": {"id": 657}, "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": 16, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 573}, "organization": {"id": 605}, "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": 42, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 42}, "assignee": {"id": 583}, "organization": {"id": 672}, "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": 19, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 581}, "organization": {"id": 696}, "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": 17, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 17}, "assignee": {"id": 577}, "organization": {"id": 152}, "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": 79, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 79}, "assignee": {"id": 544}, "organization": {"id": 139}, "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": 186, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 531}, "organization": {"id": 186}, "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": 39, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 511}, "organization": {"id": 185}, "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": 70, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 578}, "organization": {"id": 622}, "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": 96, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 506}, "organization": {"id": 610}, "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": 51, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 532}, "organization": {"id": 630}, "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": 62, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 62}, "assignee": {"id": 519}, "organization": {"id": 683}, "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": 26, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 540}, "organization": {"id": 145}, "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": 49, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 564}, "organization": {"id": 153}, "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": 34, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 34}, "assignee": {"id": 575}, "organization": {"id": 127}, "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": 57, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 575}, "organization": {"id": 156}, "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": 82, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 530}, "organization": {"id": 682}, "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": 43, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 502}, "organization": {"id": 611}, "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": 64, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 64}, "assignee": {"id": 526}, "organization": {"id": 654}, "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": 0, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 0}, "assignee": {"id": 517}, "organization": {"id": 685}, "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": 8, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 551}, "organization": {"id": 125}, "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": 58, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 561}, "organization": {"id": 121}, "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": 45, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 519}, "organization": {"id": 138}, "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": 4, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 4}, "assignee": {"id": 509}, "organization": {"id": 183}, "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": 73, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 521}, "organization": {"id": 650}, "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": 66, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 66}, "assignee": {"id": 580}, "organization": {"id": 602}, "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": 64, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 64}, "assignee": {"id": 502}, "organization": {"id": 619}, "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": 84, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 560}, "organization": {"id": 673}, "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": 84, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 511}, "organization": {"id": 123}, "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": 30, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 515}, "organization": {"id": 147}, "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": 2, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 568}, "organization": {"id": 103}, "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": 72, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 72}, "assignee": {"id": 518}, "organization": {"id": 104}, "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": 7, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 7}, "assignee": {"id": 536}, "organization": {"id": 693}, "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": 73, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 547}, "organization": {"id": 667}, "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": 3, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 3}, "assignee": {"id": 565}, "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": 66, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 66}, "assignee": {"id": 576}, "organization": {"id": 667}, "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": 11, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 549}, "organization": {"id": 168}, "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": 38, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 596}, "organization": {"id": 168}, "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": 33, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 33}, "assignee": {"id": 515}, "organization": {"id": 187}, "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": 8, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 507}, "organization": {"id": 103}, "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": 70, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 535}, "organization": {"id": 630}, "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": 76, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 76}, "assignee": {"id": 565}, "organization": {"id": 670}, "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": 35, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 550}, "organization": {"id": 680}, "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": 12, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 556}, "organization": {"id": 641}, "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": 24, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 24}, "assignee": {"id": 551}, "organization": {"id": 127}, "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": 94, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 584}, "organization": {"id": 122}, "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": 18, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 18}, "assignee": {"id": 504}, "organization": {"id": 118}, "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": 51, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 559}, "organization": {"id": 148}, "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": 31, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 31}, "assignee": {"id": 573}, "organization": {"id": 641}, "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": 16, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 537}, "organization": {"id": 674}, "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": 90, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 521}, "organization": {"id": 624}, "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": 91, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 91}, "assignee": {"id": 576}, "organization": {"id": 678}, "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": 19, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 516}, "organization": {"id": 141}, "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": 63, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 590}, "organization": {"id": 149}, "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": 75, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 75}, "assignee": {"id": 582}, "organization": {"id": 116}, "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": 63, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 599}, "organization": {"id": 191}, "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": 1, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 548}, "organization": {"id": 648}, "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": 38, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 507}, "organization": {"id": 654}, "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": 45, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 590}, "organization": {"id": 619}, "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": 29, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 555}, "organization": {"id": 660}, "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": 49, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 557}, "organization": {"id": 151}, "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": 4, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 4}, "assignee": {"id": 570}, "organization": {"id": 144}, "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": 63, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 579}, "organization": {"id": 193}, "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": 99, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 527}, "organization": {"id": 156}, "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": 12, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 501}, "organization": {"id": 656}, "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": 32, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 32}, "assignee": {"id": 571}, "organization": {"id": 690}, "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": 12, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 543}, "organization": {"id": 605}, "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": 96, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 517}, "organization": {"id": 646}, "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": 36, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 596}, "organization": {"id": 116}, "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": 77, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 545}, "organization": {"id": 125}, "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": 58, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 576}, "organization": {"id": 171}, "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": 94, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 574}, "organization": {"id": 157}, "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": 41, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 566}, "organization": {"id": 607}, "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": 12, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 535}, "organization": {"id": 635}, "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": 30, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 565}, "organization": {"id": 627}, "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": 44, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 590}, "organization": {"id": 607}, "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": 65, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 596}, "organization": {"id": 168}, "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": 51, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 577}, "organization": {"id": 160}, "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": 23, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 544}, "organization": {"id": 121}, "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": 84, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 515}, "organization": {"id": 184}, "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": 43, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 564}, "organization": {"id": 658}, "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": 141, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 596}, "organization": {"id": 677}, "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": 78, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 510}, "organization": {"id": 664}, "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": 96, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 521}, "organization": {"id": 627}, "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": 71, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 522}, "organization": {"id": 185}, "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": 93, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 554}, "organization": {"id": 105}, "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": 36, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 558}, "organization": {"id": 135}, "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": 50, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 506}, "organization": {"id": 152}, "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": 15, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 15}, "assignee": {"id": 530}, "organization": {"id": 644}, "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": 76, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 76}, "assignee": {"id": 546}, "organization": {"id": 642}, "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": 35, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 581}, "organization": {"id": 655}, "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": 82, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 584}, "organization": {"id": 634}, "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": 15, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 15}, "assignee": {"id": 504}, "organization": {"id": 109}, "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": 9, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 9}, "assignee": {"id": 514}, "organization": {"id": 101}, "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": 73, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 571}, "organization": {"id": 136}, "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": 55, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 55}, "assignee": {"id": 503}, "organization": {"id": 153}, "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": 10, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 502}, "organization": {"id": 679}, "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": 53, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 53}, "assignee": {"id": 550}, "organization": {"id": 636}, "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": 25, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 25}, "assignee": {"id": 546}, "organization": {"id": 682}, "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": 55, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 55}, "assignee": {"id": 513}, "organization": {"id": 655}, "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": 73, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 580}, "organization": {"id": 131}, "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": 10, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 527}, "organization": {"id": 143}, "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": 3, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 3}, "assignee": {"id": 590}, "organization": {"id": 161}, "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": 38, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 565}, "organization": {"id": 186}, "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": 96, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 520}, "organization": {"id": 645}, "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": 30, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 568}, "organization": {"id": 603}, "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": 57, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 518}, "organization": {"id": 671}, "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": 59, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 59}, "assignee": {"id": 506}, "organization": {"id": 645}, "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": 87, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 87}, "assignee": {"id": 531}, "organization": {"id": 194}, "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": 13, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 530}, "organization": {"id": 122}, "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": 72, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 72}, "assignee": {"id": 546}, "organization": {"id": 112}, "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": 29, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 566}, "organization": {"id": 176}, "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": 81, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 81}, "assignee": {"id": 513}, "organization": {"id": 632}, "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": 14, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 580}, "organization": {"id": 645}, "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": 39, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 514}, "organization": {"id": 678}, "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": 27, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 27}, "assignee": {"id": 516}, "organization": {"id": 682}, "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": 64, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 64}, "assignee": {"id": 500}, "organization": {"id": 109}, "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": 61, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 545}, "organization": {"id": 150}, "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": 18, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 18}, "assignee": {"id": 541}, "organization": {"id": 170}, "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": 70, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 551}, "organization": {"id": 125}, "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": 71, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 549}, "organization": {"id": 639}, "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": 97, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 571}, "organization": {"id": 651}, "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": 97, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 590}, "organization": {"id": 676}, "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": 62, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 62}, "assignee": {"id": 544}, "organization": {"id": 631}, "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": 51, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 518}, "organization": {"id": 120}, "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": 16, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 503}, "organization": {"id": 174}, "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": 96, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 504}, "organization": {"id": 172}, "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": 37, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 505}, "organization": {"id": 165}, "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": 52, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 52}, "assignee": {"id": 544}, "organization": {"id": 678}, "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": 58, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 591}, "organization": {"id": 630}, "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": 0, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 0}, "assignee": {"id": 517}, "organization": {"id": 679}, "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": 29, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 598}, "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": 77, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 503}, "organization": {"id": 139}, "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": 83, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 538}, "organization": {"id": 114}, "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": 97, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 591}, "organization": {"id": 158}, "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": 29, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 528}, "organization": {"id": 119}, "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": 97, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 570}, "organization": {"id": 607}, "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": 86, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 86}, "assignee": {"id": 520}, "organization": {"id": 608}, "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": 56, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 561}, "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": 17, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 17}, "assignee": {"id": 500}, "organization": {"id": 657}, "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": 66, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 66}, "assignee": {"id": 570}, "organization": {"id": 146}, "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": 25, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 25}, "assignee": {"id": 504}, "organization": {"id": 153}, "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": 78, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 567}, "organization": {"id": 141}, "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": 61, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 513}, "organization": {"id": 170}, "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": 97, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 585}, "organization": {"id": 681}, "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": 98, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 599}, "organization": {"id": 672}, "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": 15, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 15}, "assignee": {"id": 510}, "organization": {"id": 640}, "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": 99, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 503}, "organization": {"id": 624}, "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": 71, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 592}, "organization": {"id": 133}, "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": 23, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 502}, "organization": {"id": 138}, "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": 97, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 576}, "organization": {"id": 160}, "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": 74, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 74}, "assignee": {"id": 520}, "organization": {"id": 143}, "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": 77, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 501}, "organization": {"id": 625}, "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": 79, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 79}, "assignee": {"id": 593}, "organization": {"id": 657}, "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": 84, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 586}, "organization": {"id": 648}, "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": 32, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 32}, "assignee": {"id": 508}, "organization": {"id": 669}, "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": 95, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 95}, "assignee": {"id": 523}, "organization": {"id": 144}, "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": 23, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 543}, "organization": {"id": 182}, "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": 43, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 533}, "organization": {"id": 161}, "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": 23, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 534}, "organization": {"id": 167}, "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": 16, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 524}, "organization": {"id": 660}, "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": 52, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 52}, "assignee": {"id": 525}, "organization": {"id": 638}, "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": 24, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 24}, "assignee": {"id": 585}, "organization": {"id": 699}, "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": 82, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 555}, "organization": {"id": 667}, "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": 48, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 560}, "organization": {"id": 167}, "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": 164, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "assignee": {"id": 551}, "organization": {"id": 164}, "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": 43, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 558}, "organization": {"id": 166}, "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": 27, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 27}, "assignee": {"id": 594}, "organization": {"id": 177}, "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": 73, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 516}, "organization": {"id": 617}, "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": 90, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 543}, "organization": {"id": 670}, "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": 83, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 532}, "organization": {"id": 633}, "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": 94, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 506}, "organization": {"id": 645}, "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": 14, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 517}, "organization": {"id": 108}, "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": 83, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 596}, "organization": {"id": 189}, "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": 48, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 576}, "organization": {"id": 117}, "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": 57, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 556}, "organization": {"id": 116}, "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": 19, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 519}, "organization": {"id": 626}, "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": 44, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 593}, "organization": {"id": 606}, "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": 43, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 557}, "organization": {"id": 698}, "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": 83, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 500}, "organization": {"id": 676}, "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": 65, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 524}, "organization": {"id": 172}, "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": 11, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 544}, "organization": {"id": 148}, "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": 78, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 584}, "organization": {"id": 175}, "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": 54, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 538}, "organization": {"id": 183}, "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": 14, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 523}, "organization": {"id": 653}, "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": 14, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 511}, "organization": {"id": 637}, "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": 57, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 515}, "organization": {"id": 685}, "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": 5, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 579}, "organization": {"id": 692}, "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": 67, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 569}, "organization": {"id": 177}, "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": 22, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 22}, "assignee": {"id": 547}, "organization": {"id": 131}, "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": 85, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 599}, "organization": {"id": 120}, "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": 93, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 543}, "organization": {"id": 193}, "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": 39, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 544}, "organization": {"id": 649}, "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": 58, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 521}, "organization": {"id": 630}, "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": 87, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 87}, "assignee": {"id": 529}, "organization": {"id": 643}, "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": 36, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 567}, "organization": {"id": 657}, "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": 82, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 513}, "organization": {"id": 148}, "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": 59, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 59}, "assignee": {"id": 508}, "organization": {"id": 171}, "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": 26, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 578}, "organization": {"id": 195}, "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": 42, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "assignee": {"id": 565}, "organization": {"id": 119}, "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": 81, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 81}, "organization": {"id": 609}, "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": 44, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 44}, "organization": {"id": 687}, "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": 24, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 24}, "organization": {"id": 689}, "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": 25, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 25}, "organization": {"id": 650}, "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": 77, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 77}, "organization": {"id": 188}, "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": 1, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 1}, "organization": {"id": 115}, "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": 90, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 90}, "organization": {"id": 117}, "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": 51, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 51}, "organization": {"id": 198}, "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": 58, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 58}, "organization": {"id": 668}, "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": 61, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 61}, "organization": {"id": 688}, "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": 15, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 15}, "organization": {"id": 647}, "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": 4, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 4}, "organization": {"id": 627}, "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": 57, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 57}, "organization": {"id": 170}, "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": 15, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 15}, "organization": {"id": 124}, "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": 95, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 95}, "organization": {"id": 193}, "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": 57, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 57}, "organization": {"id": 136}, "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": 53, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 53}, "organization": {"id": 678}, "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": 11, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 11}, "organization": {"id": 645}, "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": 48, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 48}, "organization": {"id": 670}, "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": 62, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 62}, "organization": {"id": 615}, "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": 45, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 45}, "organization": {"id": 174}, "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": 98, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 98}, "organization": {"id": 154}, "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": 86, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 86}, "organization": {"id": 181}, "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": 78, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 78}, "organization": {"id": 188}, "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": 87, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 87}, "organization": {"id": 697}, "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": 33, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 33}, "organization": {"id": 685}, "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": 59, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 59}, "organization": {"id": 670}, "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": 13, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 13}, "organization": {"id": 610}, "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": 91, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 91}, "organization": {"id": 188}, "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": 82, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 82}, "organization": {"id": 144}, "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": 63, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 63}, "organization": {"id": 155}, "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": 52, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 52}, "organization": {"id": 106}, "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": 55, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 55}, "organization": {"id": 642}, "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": 65, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 65}, "organization": {"id": 676}, "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": 40, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 40}, "organization": {"id": 643}, "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": 90, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 90}, "organization": {"id": 604}, "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": 75, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 75}, "organization": {"id": 161}, "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": 30, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 30}, "organization": {"id": 190}, "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": 85, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 85}, "organization": {"id": 140}, "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": 34, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 34}, "organization": {"id": 125}, "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": 10, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 10}, "organization": {"id": 692}, "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": 46, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 46}, "organization": {"id": 628}, "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": 80, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 80}, "organization": {"id": 601}, "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": 42, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 42}, "organization": {"id": 644}, "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": 23, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 23}, "organization": {"id": 140}, "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": 61, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 61}, "organization": {"id": 180}, "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": 44, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 44}, "organization": {"id": 125}, "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": 1, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 1}, "organization": {"id": 150}, "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": 54, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 54}, "organization": {"id": 665}, "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": 84, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 84}, "organization": {"id": 682}, "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": 34, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 34}, "organization": {"id": 626}, "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": 81, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 81}, "organization": {"id": 644}, "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": 48, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 48}, "organization": {"id": 106}, "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": 23, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 23}, "organization": {"id": 173}, "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": 4, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 4}, "organization": {"id": 195}, "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": 89, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 89}, "organization": {"id": 129}, "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": 56, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 56}, "organization": {"id": 603}, "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": 45, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 45}, "organization": {"id": 676}, "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": 53, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 53}, "organization": {"id": 670}, "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": 44, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 44}, "organization": {"id": 668}, "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": 91, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 91}, "organization": {"id": 172}, "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": 92, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 92}, "organization": {"id": 191}, "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": 52, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 52}, "organization": {"id": 188}, "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": 2, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 2}, "organization": {"id": 185}, "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": 63, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 63}, "organization": {"id": 600}, "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": 97, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 97}, "organization": {"id": 650}, "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": 83, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 83}, "organization": {"id": 682}, "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": 53, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 53}, "organization": {"id": 621}, "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": 83, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 83}, "organization": {"id": 134}, "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": 9, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 9}, "organization": {"id": 181}, "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": 98, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 98}, "organization": {"id": 171}, "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": 0, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 0}, "organization": {"id": 128}, "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": 40, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 40}, "organization": {"id": 638}, "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": 5, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 5}, "organization": {"id": 651}, "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": 37, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 37}, "organization": {"id": 621}, "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": 77, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 77}, "organization": {"id": 625}, "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": 72, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 72}, "organization": {"id": 174}, "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": 88, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 88}, "organization": {"id": 186}, "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": 89, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 89}, "organization": {"id": 159}, "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": 35, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 35}, "organization": {"id": 145}, "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": 86, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 86}, "organization": {"id": 632}, "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": 88, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 88}, "organization": {"id": 682}, "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": 17, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 17}, "organization": {"id": 621}, "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": 49, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 49}, "organization": {"id": 603}, "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": 94, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 94}, "organization": {"id": 119}, "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": 71, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 71}, "organization": {"id": 187}, "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": 35, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 35}, "organization": {"id": 183}, "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": 23, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 23}, "organization": {"id": 136}, "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": 11, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 11}, "organization": {"id": 642}, "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": 7, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 7}, "organization": {"id": 693}, "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": 46, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 46}, "organization": {"id": 642}, "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": 66, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 66}, "organization": {"id": 671}, "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": 61, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 61}, "organization": {"id": 176}, "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": 14, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 14}, "organization": {"id": 197}, "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": 20, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 20}, "organization": {"id": 143}, "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": 90, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 90}, "organization": {"id": 121}, "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": 83, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 83}, "organization": {"id": 627}, "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": 20, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 20}, "organization": {"id": 614}, "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": 31, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 31}, "organization": {"id": 664}, "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": 23, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 23}, "organization": {"id": 653}, "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": 72, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 72}, "organization": {"id": 138}, "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": 52, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 52}, "organization": {"id": 178}, "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": 88, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 88}, "organization": {"id": 114}, "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": 62, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 62}, "organization": {"id": 127}, "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": 85, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 85}, "organization": {"id": 632}, "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": 15, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 15}, "organization": {"id": 610}, "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": 76, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 76}, "organization": {"id": 669}, "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": 60, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 60}, "organization": {"id": 690}, "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": 70, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 70}, "organization": {"id": 129}, "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": 17, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 17}, "organization": {"id": 133}, "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": 2, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 2}, "organization": {"id": 108}, "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": 40, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 40}, "organization": {"id": 198}, "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": 62, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 62}, "organization": {"id": 674}, "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": 2, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 2}, "organization": {"id": 634}, "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": 61, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 61}, "organization": {"id": 607}, "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": 29, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 29}, "organization": {"id": 684}, "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": 33, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 33}, "organization": {"id": 132}, "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": 2, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 2}, "organization": {"id": 143}, "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": 40, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 40}, "organization": {"id": 188}, "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": 49, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 49}, "organization": {"id": 129}, "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": 62, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 62}, "organization": {"id": 619}, "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": 99, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 99}, "organization": {"id": 670}, "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": 51, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 51}, "organization": {"id": 614}, "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": 58, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 58}, "organization": {"id": 610}, "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": 81, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 81}, "organization": {"id": 104}, "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": 17, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 17}, "organization": {"id": 103}, "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": 89, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 89}, "organization": {"id": 163}, "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": 61, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 61}, "organization": {"id": 130}, "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": 18, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 18}, "organization": {"id": 626}, "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": 51, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 51}, "organization": {"id": 667}, "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": 36, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 36}, "organization": {"id": 697}, "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": 45, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 45}, "organization": {"id": 624}, "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": 14, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 14}, "organization": {"id": 148}, "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": 41, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 41}, "organization": {"id": 175}, "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": 81, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 81}, "organization": {"id": 154}, "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": 59, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 59}, "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": 62, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 62}, "organization": {"id": 617}, "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": 2, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 2}, "organization": {"id": 605}, "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": 58, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 58}, "organization": {"id": 676}, "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": 24, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 24}, "organization": {"id": 629}, "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": 5, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 5}, "organization": {"id": 185}, "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": 8, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 8}, "organization": {"id": 111}, "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": 42, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 42}, "organization": {"id": 101}, "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": 63, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 63}, "organization": {"id": 148}, "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": 36, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 36}, "organization": {"id": 623}, "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": 47, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 47}, "organization": {"id": 630}, "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": 77, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 77}, "organization": {"id": 618}, "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": 44, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 44}, "organization": {"id": 623}, "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": 76, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 76}, "organization": {"id": 169}, "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": 33, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 33}, "organization": {"id": 161}, "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": 43, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 43}, "organization": {"id": 117}, "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": 7, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 7}, "organization": {"id": 139}, "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": 39, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 39}, "organization": {"id": 655}, "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": 90, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 90}, "organization": {"id": 634}, "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": 40, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 40}, "organization": {"id": 615}, "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": 98, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 98}, "organization": {"id": 600}, "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": 93, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 93}, "organization": {"id": 157}, "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": 30, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 30}, "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": 44, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 44}, "organization": {"id": 143}, "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": 82, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 82}, "organization": {"id": 159}, "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": 37, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 37}, "organization": {"id": 649}, "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": 38, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 38}, "organization": {"id": 693}, "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": 56, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 56}, "organization": {"id": 637}, "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": 52, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 52}, "organization": {"id": 683}, "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": 13, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 13}, "organization": {"id": 104}, "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": 46, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 46}, "organization": {"id": 164}, "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": 49, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 49}, "organization": {"id": 116}, "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": 68, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 68}, "organization": {"id": 165}, "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": 33, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 33}, "organization": {"id": 694}, "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": 96, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 96}, "organization": {"id": 610}, "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": 1, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 1}, "organization": {"id": 625}, "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": 73, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 73}, "organization": {"id": 602}, "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": 15, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 15}, "organization": {"id": 114}, "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": 78, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 78}, "organization": {"id": 134}, "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": 68, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 68}, "organization": {"id": 114}, "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": 6, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 6}, "organization": {"id": 103}, "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": 153, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 45}, "organization": {"id": 631}, "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": 39, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 39}, "organization": {"id": 649}, "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": 42, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 42}, "organization": {"id": 606}, "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": 84, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 84}, "organization": {"id": 669}, "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": 41, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 41}, "organization": {"id": 197}, "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": 7, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 7}, "organization": {"id": 146}, "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": 57, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 57}, "organization": {"id": 108}, "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": 94, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 94}, "organization": {"id": 127}, "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": 19, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 19}, "organization": {"id": 673}, "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": 21, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 21}, "organization": {"id": 617}, "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": 13, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 13}, "organization": {"id": 686}, "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": 43, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 43}, "organization": {"id": 699}, "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": 37, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 37}, "organization": {"id": 114}, "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": 72, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 72}, "organization": {"id": 108}, "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": 96, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 96}, "organization": {"id": 109}, "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": 60, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 60}, "organization": {"id": 189}, "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": 92, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 92}, "organization": {"id": 694}, "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": 37, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 37}, "organization": {"id": 617}, "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": 94, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 94}, "organization": {"id": 610}, "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": 87, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 87}, "organization": {"id": 682}, "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": 31, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 31}, "organization": {"id": 189}, "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": 24, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 24}, "organization": {"id": 157}, "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": 58, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 58}, "organization": {"id": 106}, "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": 33, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 33}, "organization": {"id": 158}, "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": 40, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 519}, "organization": {"id": 608}, "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": 20, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 532}, "organization": {"id": 631}, "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": 28, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 588}, "organization": {"id": 634}, "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": 4, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 560}, "organization": {"id": 666}, "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": 18, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 586}, "organization": {"id": 188}, "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": 66, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 594}, "organization": {"id": 121}, "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": 86, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 596}, "organization": {"id": 175}, "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": 56, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 573}, "organization": {"id": 176}, "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": 29, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 576}, "organization": {"id": 660}, "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": 5, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 535}, "organization": {"id": 633}, "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": 1, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 573}, "organization": {"id": 628}, "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": 35, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 528}, "organization": {"id": 612}, "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": 21, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 587}, "organization": {"id": 143}, "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": 88, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 566}, "organization": {"id": 102}, "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": 36, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 522}, "organization": {"id": 137}, "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": 97, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 576}, "organization": {"id": 107}, "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": 31, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 560}, "organization": {"id": 608}, "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": 53, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 510}, "organization": {"id": 646}, "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": 32, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 533}, "organization": {"id": 656}, "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": 81, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 573}, "organization": {"id": 687}, "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": 42, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 571}, "organization": {"id": 144}, "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": 85, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 521}, "organization": {"id": 177}, "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": 11, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 516}, "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": 70, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 595}, "organization": {"id": 179}, "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": 97, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 535}, "organization": {"id": 620}, "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": 21, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 534}, "organization": {"id": 652}, "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": 37, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 597}, "organization": {"id": 670}, "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": 57, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 504}, "organization": {"id": 658}, "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": 46, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 592}, "organization": {"id": 154}, "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": 92, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 568}, "organization": {"id": 154}, "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": 46, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 540}, "organization": {"id": 126}, "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": 38, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 516}, "organization": {"id": 138}, "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": 73, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 599}, "organization": {"id": 646}, "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": 4, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 589}, "organization": {"id": 632}, "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": 44, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 553}, "organization": {"id": 643}, "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": 76, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 566}, "organization": {"id": 661}, "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": 7, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 567}, "organization": {"id": 182}, "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": 48, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 585}, "organization": {"id": 101}, "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": 88, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 556}, "organization": {"id": 150}, "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": 33, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 540}, "organization": {"id": 124}, "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": 11, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 500}, "organization": {"id": 656}, "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": 90, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 510}, "organization": {"id": 626}, "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": 55, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 520}, "organization": {"id": 629}, "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": 76, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 512}, "organization": {"id": 630}, "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": 88, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 562}, "organization": {"id": 130}, "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": 10, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 586}, "organization": {"id": 163}, "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": 37, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 536}, "organization": {"id": 119}, "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": 35, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 595}, "organization": {"id": 115}, "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": 67, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 577}, "organization": {"id": 643}, "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": 86, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 504}, "organization": {"id": 615}, "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": 34, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 538}, "organization": {"id": 603}, "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": 74, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 572}, "organization": {"id": 658}, "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": 40, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 522}, "organization": {"id": 147}, "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": 44, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 580}, "organization": {"id": 133}, "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": 72, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 560}, "organization": {"id": 126}, "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": 19, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 514}, "organization": {"id": 199}, "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": 92, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 591}, "organization": {"id": 665}, "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": 9, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 554}, "organization": {"id": 640}, "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": 88, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 567}, "organization": {"id": 657}, "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": 55, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 564}, "organization": {"id": 655}, "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": 32, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 567}, "organization": {"id": 127}, "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": 60, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 515}, "organization": {"id": 132}, "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": 0, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 540}, "organization": {"id": 120}, "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": 70, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 595}, "organization": {"id": 141}, "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": 7, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 553}, "organization": {"id": 609}, "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": 110, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 591}, "organization": {"id": 669}, "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": 54, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 513}, "organization": {"id": 672}, "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": 79, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 548}, "organization": {"id": 609}, "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": 94, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 568}, "organization": {"id": 131}, "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": 33, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 535}, "organization": {"id": 156}, "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": 89, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 592}, "organization": {"id": 158}, "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": 85, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 547}, "organization": {"id": 156}, "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": 56, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 510}, "organization": {"id": 660}, "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": 82, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 563}, "organization": {"id": 670}, "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": 45, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 566}, "organization": {"id": 648}, "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": 94, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 554}, "organization": {"id": 650}, "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": 30, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 537}, "organization": {"id": 157}, "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": 37, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 509}, "organization": {"id": 100}, "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": 91, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 539}, "organization": {"id": 151}, "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": 22, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 551}, "organization": {"id": 158}, "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": 65, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 592}, "organization": {"id": 640}, "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": 70, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 515}, "organization": {"id": 654}, "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": 39, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 529}, "organization": {"id": 619}, "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": 72, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 579}, "organization": {"id": 691}, "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": 25, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 532}, "organization": {"id": 167}, "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": 84, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 598}, "organization": {"id": 154}, "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": 51, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 576}, "organization": {"id": 157}, "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": 46, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 588}, "organization": {"id": 178}, "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": 5, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 562}, "organization": {"id": 664}, "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": 52, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 567}, "organization": {"id": 631}, "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": 9, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 598}, "organization": {"id": 695}, "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": 95, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 592}, "organization": {"id": 635}, "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": 79, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 502}, "organization": {"id": 194}, "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": 60, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 599}, "organization": {"id": 186}, "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": 12, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 576}, "organization": {"id": 151}, "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": 22, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 521}, "organization": {"id": 123}, "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": 41, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 574}, "organization": {"id": 698}, "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": 79, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 507}, "organization": {"id": 623}, "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": 52, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 596}, "organization": {"id": 632}, "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": 27, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 576}, "organization": {"id": 629}, "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": 96, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 552}, "organization": {"id": 171}, "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": 63, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 569}, "organization": {"id": 156}, "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": 6, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 518}, "organization": {"id": 136}, "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": 25, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 596}, "organization": {"id": 148}, "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": 33, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 552}, "organization": {"id": 612}, "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": 22, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 594}, "organization": {"id": 682}, "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": 22, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 542}, "organization": {"id": 681}, "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": 3, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 530}, "organization": {"id": 687}, "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": 79, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 510}, "organization": {"id": 170}, "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": 30, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 593}, "organization": {"id": 139}, "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": 41, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 549}, "organization": {"id": 179}, "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": 90, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 570}, "organization": {"id": 170}, "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": 91, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 522}, "organization": {"id": 677}, "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": 67, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 538}, "organization": {"id": 669}, "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": 98, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 582}, "organization": {"id": 611}, "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": 13, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 582}, "organization": {"id": 643}, "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": 9, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 587}, "organization": {"id": 168}, "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": 96, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 536}, "organization": {"id": 165}, "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": 21, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 583}, "organization": {"id": 175}, "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": 90, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 520}, "organization": {"id": 164}, "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": 61, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 583}, "organization": {"id": 628}, "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": 78, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 503}, "organization": {"id": 685}, "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": 72, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 504}, "organization": {"id": 627}, "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": 12, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 561}, "organization": {"id": 679}, "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": 6, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 507}, "organization": {"id": 167}, "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": 79, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 592}, "organization": {"id": 197}, "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": 55, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 552}, "organization": {"id": 145}, "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": 46, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 538}, "organization": {"id": 127}, "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": 62, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 501}, "organization": {"id": 698}, "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": 96, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 520}, "organization": {"id": 675}, "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": 95, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 563}, "organization": {"id": 651}, "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": 75, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 585}, "organization": {"id": 643}, "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": 93, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 500}, "organization": {"id": 126}, "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": 39, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 541}, "organization": {"id": 127}, "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": 76, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 544}, "organization": {"id": 116}, "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": 2, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 501}, "organization": {"id": 106}, "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": 97, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 521}, "organization": {"id": 678}, "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": 52, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 542}, "organization": {"id": 640}, "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": 86, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 594}, "organization": {"id": 697}, "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": 93, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 549}, "organization": {"id": 617}, "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": 2, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 557}, "organization": {"id": 159}, "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": 23, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 592}, "organization": {"id": 168}, "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": 7, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 531}, "organization": {"id": 157}, "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": 11, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 582}, "organization": {"id": 145}, "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": 45, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 509}, "organization": {"id": 654}, "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": 30, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 555}, "organization": {"id": 609}, "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": 55, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 526}, "organization": {"id": 612}, "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": 97, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 521}, "organization": {"id": 634}, "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": 73, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 502}, "organization": {"id": 160}, "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": 59, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 503}, "organization": {"id": 102}, "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": 18, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 548}, "organization": {"id": 116}, "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": 26, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 597}, "organization": {"id": 167}, "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": 30, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 524}, "organization": {"id": 638}, "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": 32, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 593}, "organization": {"id": 626}, "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": 67, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 571}, "organization": {"id": 692}, "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": 89, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 599}, "organization": {"id": 670}, "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": 56, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 553}, "organization": {"id": 148}, "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": 12, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 589}, "organization": {"id": 184}, "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": 42, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 572}, "organization": {"id": 193}, "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": 43, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 589}, "organization": {"id": 137}, "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": 32, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 543}, "organization": {"id": 612}, "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": 22, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 558}, "organization": {"id": 632}, "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": 94, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 510}, "organization": {"id": 686}, "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": 39, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 552}, "organization": {"id": 614}, "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": 26, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 582}, "organization": {"id": 128}, "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": 71, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 537}, "organization": {"id": 166}, "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": 80, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 519}, "organization": {"id": 182}, "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": 98, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 505}, "organization": {"id": 157}, "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": 49, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 566}, "organization": {"id": 626}, "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": 71, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 548}, "organization": {"id": 628}, "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": 1, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 579}, "organization": {"id": 609}, "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": 6, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 537}, "organization": {"id": 688}, "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": 91, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 513}, "organization": {"id": 140}, "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": 18, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 559}, "organization": {"id": 145}, "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": 29, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 520}, "organization": {"id": 124}, "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": 14, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 544}, "organization": {"id": 132}, "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": 52, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 554}, "organization": {"id": 648}, "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": 41, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 502}, "organization": {"id": 600}, "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": 29, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 568}, "organization": {"id": 604}, "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": 151, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 516}, "organization": {"id": 661}, "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": 74, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 538}, "organization": {"id": 136}, "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": 49, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 501}, "organization": {"id": 158}, "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": 56, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 517}, "organization": {"id": 195}, "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": 85, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 506}, "organization": {"id": 160}, "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": 87, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 541}, "organization": {"id": 611}, "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": 38, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 557}, "organization": {"id": 688}, "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": 25, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 596}, "organization": {"id": 695}, "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": 2, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 557}, "organization": {"id": 664}, "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": 60, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 582}, "organization": {"id": 104}, "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": 38, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 505}, "organization": {"id": 165}, "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": 92, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 564}, "organization": {"id": 109}, "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": 81, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 527}, "organization": {"id": 188}, "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": 76, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 553}, "organization": {"id": 607}, "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": 40, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 532}, "organization": {"id": 637}, "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": 52, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 588}, "organization": {"id": 695}, "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": 40, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 526}, "organization": {"id": 656}, "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": 28, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 531}, "organization": {"id": 129}, "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": 61, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 598}, "organization": {"id": 195}, "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": 25, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 557}, "organization": {"id": 148}, "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": 58, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 539}, "organization": {"id": 160}, "user": {"num_resources": 10}}} +} + +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": 78, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 78}, "assignee": {"id": 575}, "organization": {"id": 691}}} +} + +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": 91, "privilege": "business"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 91}, "assignee": {"id": 574}, "organization": {"id": 663}}} +} + +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": 15, "privilege": "user"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 15}, "assignee": {"id": 513}, "organization": {"id": 697}}} +} + +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": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 89}, "assignee": {"id": 526}, "organization": {"id": 613}}} +} + +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": 28, "privilege": "none"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 28}, "assignee": {"id": 560}, "organization": {"id": 602}}} +} + +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": 42, "privilege": "admin"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 470}, "assignee": {"id": 42}, "organization": {"id": 601}}} +} + +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": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 450}, "assignee": {"id": 55}, "organization": {"id": 696}}} +} + +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": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 465}, "assignee": {"id": 22}, "organization": {"id": 672}}} +} + +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": 88, "privilege": "worker"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 485}, "assignee": {"id": 88}, "organization": {"id": 682}}} +} + +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": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 481}, "assignee": {"id": 96}, "organization": {"id": 676}}} +} + +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": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 456}, "assignee": {"id": 525}, "organization": {"id": 621}}} +} + +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": 96, "privilege": "business"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 411}, "assignee": {"id": 589}, "organization": {"id": 609}}} +} + +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": 92, "privilege": "user"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 442}, "assignee": {"id": 530}, "organization": {"id": 669}}} +} + +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": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 468}, "assignee": {"id": 554}, "organization": {"id": 650}}} +} + +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": 64, "privilege": "none"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 492}, "assignee": {"id": 523}, "organization": {"id": 615}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 22}, "assignee": {"id": 550}, "organization": {"id": 658}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 82}, "assignee": {"id": 584}, "organization": {"id": 177}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 15}, "assignee": {"id": 549}, "organization": {"id": 658}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 18}, "assignee": {"id": 510}, "organization": {"id": 135}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 79}, "assignee": {"id": 555}, "organization": {"id": 650}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 27}, "assignee": {"id": 561}, "organization": {"id": 124}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 11}, "assignee": {"id": 523}, "organization": {"id": 661}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 60}, "assignee": {"id": 525}, "organization": {"id": 129}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 35}, "assignee": {"id": 545}, "organization": {"id": 677}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 42}, "assignee": {"id": 511}, "organization": {"id": 162}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 44}, "assignee": {"id": 585}, "organization": {"id": 601}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 62}, "assignee": {"id": 587}, "organization": {"id": 163}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 44}, "assignee": {"id": 533}, "organization": {"id": 645}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 77}, "assignee": {"id": 585}, "organization": {"id": 147}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 97}, "assignee": {"id": 592}, "organization": {"id": 642}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 92}, "assignee": {"id": 500}, "organization": {"id": 164}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 60}, "assignee": {"id": 534}, "organization": {"id": 637}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 31}, "assignee": {"id": 507}, "organization": {"id": 103}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 31}, "assignee": {"id": 515}, "organization": {"id": 659}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 79}, "assignee": {"id": 533}, "organization": {"id": 145}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 32}, "assignee": {"id": 520}, "organization": {"id": 698}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 71}, "assignee": {"id": 569}, "organization": {"id": 184}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 42}, "assignee": {"id": 533}, "organization": {"id": 680}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 40}, "assignee": {"id": 544}, "organization": {"id": 129}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 19}, "assignee": {"id": 543}, "organization": {"id": 624}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 34}, "assignee": {"id": 557}, "organization": {"id": 162}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 83}, "assignee": {"id": 580}, "organization": {"id": 696}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 61}, "assignee": {"id": 501}, "organization": {"id": 161}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 91}, "assignee": {"id": 538}, "organization": {"id": 671}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 71}, "assignee": {"id": 501}, "organization": {"id": 101}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 70}, "assignee": {"id": 523}, "organization": {"id": 636}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 45}, "assignee": {"id": 518}, "organization": {"id": 123}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 78}, "assignee": {"id": 572}, "organization": {"id": 639}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 22}, "assignee": {"id": 528}, "organization": {"id": 114}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 18}, "assignee": {"id": 530}, "organization": {"id": 657}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 8}, "assignee": {"id": 574}, "organization": {"id": 171}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 12}, "assignee": {"id": 585}, "organization": {"id": 682}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 49}, "assignee": {"id": 540}, "organization": {"id": 119}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 64}, "assignee": {"id": 551}, "organization": {"id": 647}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 3}, "assignee": {"id": 590}, "organization": {"id": 146}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 42}, "assignee": {"id": 508}, "organization": {"id": 673}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 73}, "assignee": {"id": 517}, "organization": {"id": 173}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 43}, "assignee": {"id": 502}, "organization": {"id": 647}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 73}, "assignee": {"id": 553}, "organization": {"id": 198}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 87}, "assignee": {"id": 504}, "organization": {"id": 693}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 74}, "assignee": {"id": 561}, "organization": {"id": 108}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 8}, "assignee": {"id": 579}, "organization": {"id": 697}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 71}, "assignee": {"id": 552}, "organization": {"id": 119}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 50}, "assignee": {"id": 508}, "organization": {"id": 687}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 88}, "assignee": {"id": 570}, "organization": {"id": 188}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 409}, "assignee": {"id": 47}, "organization": {"id": 689}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 401}, "assignee": {"id": 79}, "organization": {"id": 150}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 493}, "assignee": {"id": 13}, "organization": {"id": 676}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 466}, "assignee": {"id": 93}, "organization": {"id": 175}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 454}, "assignee": {"id": 56}, "organization": {"id": 676}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 487}, "assignee": {"id": 2}, "organization": {"id": 118}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 482}, "assignee": {"id": 70}, "organization": {"id": 694}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 462}, "assignee": {"id": 41}, "organization": {"id": 156}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 490}, "assignee": {"id": 8}, "organization": {"id": 664}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 438}, "assignee": {"id": 73}, "organization": {"id": 108}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 468}, "assignee": {"id": 32}, "organization": {"id": 655}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 408}, "assignee": {"id": 24}, "organization": {"id": 164}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 469}, "assignee": {"id": 39}, "organization": {"id": 686}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 471}, "assignee": {"id": 37}, "organization": {"id": 101}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 485}, "assignee": {"id": 0}, "organization": {"id": 680}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 420}, "assignee": {"id": 25}, "organization": {"id": 187}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 474}, "assignee": {"id": 52}, "organization": {"id": 635}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 482}, "assignee": {"id": 20}, "organization": {"id": 148}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 400}, "assignee": {"id": 15}, "organization": {"id": 613}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 441}, "assignee": {"id": 72}, "organization": {"id": 163}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 491}, "assignee": {"id": 86}, "organization": {"id": 631}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 413}, "assignee": {"id": 72}, "organization": {"id": 198}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 466}, "assignee": {"id": 73}, "organization": {"id": 690}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 485}, "assignee": {"id": 31}, "organization": {"id": 138}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 483}, "assignee": {"id": 77}, "organization": {"id": 699}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 471}, "assignee": {"id": 11}, "organization": {"id": 180}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 486}, "assignee": {"id": 73}, "organization": {"id": 648}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 446}, "assignee": {"id": 41}, "organization": {"id": 139}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 462}, "assignee": {"id": 30}, "organization": {"id": 651}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 478}, "assignee": {"id": 28}, "organization": {"id": 111}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 434}, "assignee": {"id": 26}, "organization": {"id": 632}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 403}, "assignee": {"id": 95}, "organization": {"id": 124}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 477}, "assignee": {"id": 94}, "organization": {"id": 641}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 461}, "assignee": {"id": 73}, "organization": {"id": 180}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 480}, "assignee": {"id": 62}, "organization": {"id": 685}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 465}, "assignee": {"id": 12}, "organization": {"id": 164}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 411}, "assignee": {"id": 87}, "organization": {"id": 625}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 401}, "assignee": {"id": 57}, "organization": {"id": 100}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 497}, "assignee": {"id": 75}, "organization": {"id": 647}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 404}, "assignee": {"id": 37}, "organization": {"id": 130}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 436}, "assignee": {"id": 34}, "organization": {"id": 690}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 426}, "assignee": {"id": 55}, "organization": {"id": 141}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 479}, "assignee": {"id": 3}, "organization": {"id": 656}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 434}, "assignee": {"id": 27}, "organization": {"id": 160}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 437}, "assignee": {"id": 74}, "organization": {"id": 630}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 489}, "assignee": {"id": 48}, "organization": {"id": 185}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 494}, "assignee": {"id": 95}, "organization": {"id": 603}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 423}, "assignee": {"id": 43}, "organization": {"id": 143}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 482}, "assignee": {"id": 93}, "organization": {"id": 644}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 441}, "assignee": {"id": 54}, "organization": {"id": 196}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 477}, "assignee": {"id": 521}, "organization": {"id": 610}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 462}, "assignee": {"id": 557}, "organization": {"id": 115}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 458}, "assignee": {"id": 576}, "organization": {"id": 603}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 473}, "assignee": {"id": 578}, "organization": {"id": 142}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 474}, "assignee": {"id": 501}, "organization": {"id": 699}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 481}, "assignee": {"id": 581}, "organization": {"id": 163}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 405}, "assignee": {"id": 542}, "organization": {"id": 616}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 497}, "assignee": {"id": 599}, "organization": {"id": 147}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 434}, "assignee": {"id": 501}, "organization": {"id": 638}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 479}, "assignee": {"id": 513}, "organization": {"id": 178}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 407}, "assignee": {"id": 506}, "organization": {"id": 683}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 458}, "assignee": {"id": 575}, "organization": {"id": 141}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 480}, "assignee": {"id": 541}, "organization": {"id": 666}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 433}, "assignee": {"id": 595}, "organization": {"id": 119}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 470}, "assignee": {"id": 502}, "organization": {"id": 611}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 472}, "assignee": {"id": 514}, "organization": {"id": 150}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 442}, "assignee": {"id": 502}, "organization": {"id": 685}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 423}, "assignee": {"id": 546}, "organization": {"id": 111}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 487}, "assignee": {"id": 577}, "organization": {"id": 691}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 436}, "assignee": {"id": 569}, "organization": {"id": 124}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 462}, "assignee": {"id": 544}, "organization": {"id": 692}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 492}, "assignee": {"id": 516}, "organization": {"id": 190}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 401}, "assignee": {"id": 538}, "organization": {"id": 658}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 448}, "assignee": {"id": 521}, "organization": {"id": 162}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 470}, "assignee": {"id": 533}, "organization": {"id": 654}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 414}, "assignee": {"id": 521}, "organization": {"id": 184}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 452}, "assignee": {"id": 578}, "organization": {"id": 664}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 407}, "assignee": {"id": 512}, "organization": {"id": 155}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 401}, "assignee": {"id": 598}, "organization": {"id": 627}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 438}, "assignee": {"id": 503}, "organization": {"id": 125}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 483}, "assignee": {"id": 586}, "organization": {"id": 684}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 404}, "assignee": {"id": 598}, "organization": {"id": 138}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 408}, "assignee": {"id": 559}, "organization": {"id": 657}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 431}, "assignee": {"id": 512}, "organization": {"id": 155}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 412}, "assignee": {"id": 584}, "organization": {"id": 655}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 489}, "assignee": {"id": 588}, "organization": {"id": 115}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 457}, "assignee": {"id": 533}, "organization": {"id": 695}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 450}, "assignee": {"id": 508}, "organization": {"id": 113}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 410}, "assignee": {"id": 527}, "organization": {"id": 672}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 442}, "assignee": {"id": 563}, "organization": {"id": 174}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 407}, "assignee": {"id": 506}, "organization": {"id": 671}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 443}, "assignee": {"id": 544}, "organization": {"id": 174}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 454}, "assignee": {"id": 575}, "organization": {"id": 678}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 416}, "assignee": {"id": 573}, "organization": {"id": 156}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 481}, "assignee": {"id": 575}, "organization": {"id": 614}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 454}, "assignee": {"id": 533}, "organization": {"id": 161}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 458}, "assignee": {"id": 555}, "organization": {"id": 625}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 475}, "assignee": {"id": 520}, "organization": {"id": 109}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 415}, "assignee": {"id": 581}, "organization": {"id": 630}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 405}, "assignee": {"id": 577}, "organization": {"id": 126}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 66}, "assignee": {"id": 525}, "organization": {"id": 659}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 93}, "assignee": {"id": 525}, "organization": {"id": 623}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 9}, "assignee": {"id": 503}, "organization": {"id": 612}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 81}, "assignee": {"id": 567}, "organization": {"id": 659}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 83}, "assignee": {"id": 532}, "organization": {"id": 634}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 425}, "assignee": {"id": 91}, "organization": {"id": 602}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 436}, "assignee": {"id": 50}, "organization": {"id": 622}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 413}, "assignee": {"id": 17}, "organization": {"id": 690}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 492}, "assignee": {"id": 55}, "organization": {"id": 684}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 447}, "assignee": {"id": 23}, "organization": {"id": 678}}} +} + +test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 487}, "assignee": {"id": 507}, "organization": {"id": 657}}} +} + +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": 23, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 414}, "assignee": {"id": 579}, "organization": {"id": 620}}} +} + +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": 46, "privilege": "user"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 498}, "assignee": {"id": 523}, "organization": {"id": 687}}} +} + +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": 43, "privilege": "worker"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 478}, "assignee": {"id": 520}, "organization": {"id": 604}}} +} + +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": 82, "privilege": "none"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 492}, "assignee": {"id": 578}, "organization": {"id": 665}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 43}, "assignee": {"id": 512}, "organization": {"id": 629}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 23}, "assignee": {"id": 518}, "organization": {"id": 194}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 75}, "assignee": {"id": 555}, "organization": {"id": 628}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 43}, "assignee": {"id": 539}, "organization": {"id": 121}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 86}, "assignee": {"id": 534}, "organization": {"id": 624}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 76}, "assignee": {"id": 580}, "organization": {"id": 199}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 60}, "assignee": {"id": 575}, "organization": {"id": 628}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 55}, "assignee": {"id": 531}, "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": 67, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 67}, "assignee": {"id": 599}, "organization": {"id": 610}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 78}, "assignee": {"id": 556}, "organization": {"id": 191}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 39}, "assignee": {"id": 592}, "organization": {"id": 635}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 41}, "assignee": {"id": 505}, "organization": {"id": 182}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 97}, "assignee": {"id": 545}, "organization": {"id": 686}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 52}, "assignee": {"id": 575}, "organization": {"id": 116}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 65}, "assignee": {"id": 553}, "organization": {"id": 639}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 67}, "assignee": {"id": 507}, "organization": {"id": 137}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 84}, "assignee": {"id": 538}, "organization": {"id": 650}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 44}, "assignee": {"id": 536}, "organization": {"id": 166}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 93}, "assignee": {"id": 586}, "organization": {"id": 604}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 17}, "assignee": {"id": 538}, "organization": {"id": 156}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 32}, "assignee": {"id": 517}, "organization": {"id": 617}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 88}, "assignee": {"id": 568}, "organization": {"id": 111}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 53}, "assignee": {"id": 506}, "organization": {"id": 642}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 98}, "assignee": {"id": 540}, "organization": {"id": 127}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 86}, "assignee": {"id": 523}, "organization": {"id": 665}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 14}, "assignee": {"id": 579}, "organization": {"id": 120}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 40}, "assignee": {"id": 516}, "organization": {"id": 666}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 98}, "assignee": {"id": 523}, "organization": {"id": 196}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 80}, "assignee": {"id": 524}, "organization": {"id": 680}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 95}, "assignee": {"id": 548}, "organization": {"id": 172}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 14}, "assignee": {"id": 529}, "organization": {"id": 683}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 82}, "assignee": {"id": 593}, "organization": {"id": 125}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 53}, "assignee": {"id": 523}, "organization": {"id": 641}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 12}, "assignee": {"id": 588}, "organization": {"id": 164}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 40}, "assignee": {"id": 556}, "organization": {"id": 617}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 56}, "assignee": {"id": 528}, "organization": {"id": 116}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 93}, "assignee": {"id": 582}, "organization": {"id": 648}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 58}, "assignee": {"id": 510}, "organization": {"id": 162}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 16}, "assignee": {"id": 547}, "organization": {"id": 641}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 46}, "assignee": {"id": 575}, "organization": {"id": 111}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 10}, "assignee": {"id": 504}, "organization": {"id": 676}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 16}, "assignee": {"id": 542}, "organization": {"id": 133}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 43}, "assignee": {"id": 592}, "organization": {"id": 689}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 93}, "assignee": {"id": 507}, "organization": {"id": 180}}} +} + +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": 123, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 64}, "assignee": {"id": 544}, "organization": {"id": 608}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 96}, "assignee": {"id": 552}, "organization": {"id": 194}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 38}, "assignee": {"id": 531}, "organization": {"id": 677}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 22}, "assignee": {"id": 572}, "organization": {"id": 129}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 36}, "assignee": {"id": 549}, "organization": {"id": 697}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 28}, "assignee": {"id": 533}, "organization": {"id": 149}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 466}, "assignee": {"id": 11}, "organization": {"id": 679}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 410}, "assignee": {"id": 17}, "organization": {"id": 113}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 494}, "assignee": {"id": 26}, "organization": {"id": 652}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 457}, "assignee": {"id": 80}, "organization": {"id": 121}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 437}, "assignee": {"id": 11}, "organization": {"id": 627}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 438}, "assignee": {"id": 17}, "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": 97, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 400}, "assignee": {"id": 97}, "organization": {"id": 602}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 498}, "assignee": {"id": 99}, "organization": {"id": 194}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 484}, "assignee": {"id": 33}, "organization": {"id": 616}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 421}, "assignee": {"id": 79}, "organization": {"id": 182}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 492}, "assignee": {"id": 25}, "organization": {"id": 651}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 436}, "assignee": {"id": 79}, "organization": {"id": 194}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 492}, "assignee": {"id": 0}, "organization": {"id": 668}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 470}, "assignee": {"id": 8}, "organization": {"id": 123}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 425}, "assignee": {"id": 63}, "organization": {"id": 685}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 499}, "assignee": {"id": 49}, "organization": {"id": 187}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 444}, "assignee": {"id": 52}, "organization": {"id": 609}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 408}, "assignee": {"id": 96}, "organization": {"id": 120}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 452}, "assignee": {"id": 77}, "organization": {"id": 645}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 490}, "assignee": {"id": 44}, "organization": {"id": 103}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 445}, "assignee": {"id": 65}, "organization": {"id": 663}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 401}, "assignee": {"id": 74}, "organization": {"id": 133}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 420}, "assignee": {"id": 49}, "organization": {"id": 653}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 494}, "assignee": {"id": 69}, "organization": {"id": 103}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 452}, "assignee": {"id": 72}, "organization": {"id": 671}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 489}, "assignee": {"id": 21}, "organization": {"id": 142}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 408}, "assignee": {"id": 38}, "organization": {"id": 654}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 434}, "assignee": {"id": 26}, "organization": {"id": 109}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 400}, "assignee": {"id": 55}, "organization": {"id": 630}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 463}, "assignee": {"id": 68}, "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": 62, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 457}, "assignee": {"id": 62}, "organization": {"id": 673}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 411}, "assignee": {"id": 99}, "organization": {"id": 112}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 432}, "assignee": {"id": 31}, "organization": {"id": 612}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 447}, "assignee": {"id": 35}, "organization": {"id": 116}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 429}, "assignee": {"id": 29}, "organization": {"id": 603}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 471}, "assignee": {"id": 20}, "organization": {"id": 141}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 485}, "assignee": {"id": 48}, "organization": {"id": 671}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 446}, "assignee": {"id": 44}, "organization": {"id": 173}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 424}, "assignee": {"id": 24}, "organization": {"id": 625}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 459}, "assignee": {"id": 43}, "organization": {"id": 133}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 481}, "assignee": {"id": 46}, "organization": {"id": 679}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 429}, "assignee": {"id": 81}, "organization": {"id": 167}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 451}, "assignee": {"id": 83}, "organization": {"id": 616}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 499}, "assignee": {"id": 26}, "organization": {"id": 199}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 427}, "assignee": {"id": 60}, "organization": {"id": 661}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 490}, "assignee": {"id": 32}, "organization": {"id": 112}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 492}, "assignee": {"id": 82}, "organization": {"id": 658}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 491}, "assignee": {"id": 75}, "organization": {"id": 156}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 467}, "assignee": {"id": 61}, "organization": {"id": 670}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 496}, "assignee": {"id": 16}, "organization": {"id": 186}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 452}, "assignee": {"id": 526}, "organization": {"id": 615}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 478}, "assignee": {"id": 528}, "organization": {"id": 147}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 420}, "assignee": {"id": 510}, "organization": {"id": 628}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 432}, "assignee": {"id": 597}, "organization": {"id": 110}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 441}, "assignee": {"id": 593}, "organization": {"id": 658}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 434}, "assignee": {"id": 539}, "organization": {"id": 177}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 405}, "assignee": {"id": 552}, "organization": {"id": 657}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 412}, "assignee": {"id": 539}, "organization": {"id": 104}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { + allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 411}, "assignee": {"id": 569}, "organization": {"id": 638}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 469}, "assignee": {"id": 506}, "organization": {"id": 181}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 462}, "assignee": {"id": 595}, "organization": {"id": 689}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 489}, "assignee": {"id": 519}, "organization": {"id": 193}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 474}, "assignee": {"id": 524}, "organization": {"id": 638}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 490}, "assignee": {"id": 539}, "organization": {"id": 185}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 429}, "assignee": {"id": 585}, "organization": {"id": 602}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 406}, "assignee": {"id": 587}, "organization": {"id": 108}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 415}, "assignee": {"id": 547}, "organization": {"id": 655}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 486}, "assignee": {"id": 594}, "organization": {"id": 193}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 493}, "assignee": {"id": 599}, "organization": {"id": 634}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 486}, "assignee": {"id": 564}, "organization": {"id": 176}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 467}, "assignee": {"id": 504}, "organization": {"id": 698}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 498}, "assignee": {"id": 566}, "organization": {"id": 152}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 437}, "assignee": {"id": 570}, "organization": {"id": 600}}} +} + +test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 486}, "assignee": {"id": 590}, "organization": {"id": 174}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 436}, "assignee": {"id": 549}, "organization": {"id": 639}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 414}, "assignee": {"id": 526}, "organization": {"id": 181}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 457}, "assignee": {"id": 556}, "organization": {"id": 608}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 439}, "assignee": {"id": 593}, "organization": {"id": 117}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 464}, "assignee": {"id": 597}, "organization": {"id": 608}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 410}, "assignee": {"id": 589}, "organization": {"id": 185}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 473}, "assignee": {"id": 549}, "organization": {"id": 637}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 410}, "assignee": {"id": 503}, "organization": {"id": 170}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 495}, "assignee": {"id": 548}, "organization": {"id": 672}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 410}, "assignee": {"id": 558}, "organization": {"id": 100}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 411}, "assignee": {"id": 503}, "organization": {"id": 668}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 424}, "assignee": {"id": 577}, "organization": {"id": 105}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 496}, "assignee": {"id": 547}, "organization": {"id": 627}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 413}, "assignee": {"id": 533}, "organization": {"id": 184}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 498}, "assignee": {"id": 543}, "organization": {"id": 647}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 469}, "assignee": {"id": 579}, "organization": {"id": 119}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 471}, "assignee": {"id": 585}, "organization": {"id": 600}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 432}, "assignee": {"id": 564}, "organization": {"id": 111}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 472}, "assignee": {"id": 564}, "organization": {"id": 654}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 481}, "assignee": {"id": 583}, "organization": {"id": 125}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 492}, "assignee": {"id": 572}, "organization": {"id": 605}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 413}, "assignee": {"id": 526}, "organization": {"id": 166}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 464}, "assignee": {"id": 579}, "organization": {"id": 612}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 496}, "assignee": {"id": 585}, "organization": {"id": 138}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 473}, "assignee": {"id": 528}, "organization": {"id": 657}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 419}, "assignee": {"id": 533}, "organization": {"id": 188}}} +} + +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": 73, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 73}, "assignee": {"id": 526}, "organization": {"id": 692}}} +} + +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": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 11}, "assignee": {"id": 584}, "organization": {"id": 667}}} +} + +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": 79, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 79}, "assignee": {"id": 531}, "organization": {"id": 649}}} +} + +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": 58, "privilege": "worker"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 58}, "assignee": {"id": 552}, "organization": {"id": 619}}} +} + +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": 99, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 99}, "assignee": {"id": 525}, "organization": {"id": 680}}} +} + +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": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 461}, "assignee": {"id": 59}, "organization": {"id": 631}}} +} + +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": 30, "privilege": "business"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 493}, "assignee": {"id": 30}, "organization": {"id": 602}}} +} + +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": 33, "privilege": "user"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 479}, "assignee": {"id": 33}, "organization": {"id": 628}}} +} + +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": 29, "privilege": "worker"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 405}, "assignee": {"id": 29}, "organization": {"id": 654}}} +} + +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": 4, "privilege": "none"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 449}, "assignee": {"id": 4}, "organization": {"id": 688}}} +} + +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": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 490}, "assignee": {"id": 548}, "organization": {"id": 670}}} +} + +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": 44, "privilege": "business"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 423}, "assignee": {"id": 587}, "organization": {"id": 664}}} +} + +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": 47, "privilege": "user"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 490}, "assignee": {"id": 524}, "organization": {"id": 624}}} +} + +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": 59, "privilege": "worker"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 404}, "assignee": {"id": 588}, "organization": {"id": 621}}} +} + +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": 37, "privilege": "none"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 417}, "assignee": {"id": 512}, "organization": {"id": 616}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 79}, "assignee": {"id": 506}, "organization": {"id": 606}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 27}, "assignee": {"id": 550}, "organization": {"id": 179}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 7}, "assignee": {"id": 537}, "organization": {"id": 602}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 20}, "assignee": {"id": 507}, "organization": {"id": 177}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 38}, "assignee": {"id": 544}, "organization": {"id": 639}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 78}, "assignee": {"id": 562}, "organization": {"id": 167}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 8}, "assignee": {"id": 552}, "organization": {"id": 681}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 28}, "assignee": {"id": 513}, "organization": {"id": 164}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 60}, "assignee": {"id": 596}, "organization": {"id": 635}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 95}, "assignee": {"id": 593}, "organization": {"id": 148}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 73}, "assignee": {"id": 557}, "organization": {"id": 672}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 59}, "assignee": {"id": 521}, "organization": {"id": 120}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 20}, "assignee": {"id": 557}, "organization": {"id": 696}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 62}, "assignee": {"id": 529}, "organization": {"id": 105}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 61}, "assignee": {"id": 576}, "organization": {"id": 633}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 33}, "assignee": {"id": 593}, "organization": {"id": 103}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 50}, "assignee": {"id": 559}, "organization": {"id": 639}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 33}, "assignee": {"id": 581}, "organization": {"id": 133}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 61}, "assignee": {"id": 509}, "organization": {"id": 622}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 68}, "assignee": {"id": 547}, "organization": {"id": 179}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 32}, "assignee": {"id": 560}, "organization": {"id": 602}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 39}, "assignee": {"id": 517}, "organization": {"id": 142}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 44}, "assignee": {"id": 558}, "organization": {"id": 638}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 72}, "assignee": {"id": 570}, "organization": {"id": 152}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 32}, "assignee": {"id": 548}, "organization": {"id": 652}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 78}, "assignee": {"id": 574}, "organization": {"id": 166}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 45}, "assignee": {"id": 538}, "organization": {"id": 612}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 5}, "assignee": {"id": 511}, "organization": {"id": 186}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 14}, "assignee": {"id": 517}, "organization": {"id": 632}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 66}, "assignee": {"id": 596}, "organization": {"id": 191}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 31}, "assignee": {"id": 579}, "organization": {"id": 639}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 45}, "assignee": {"id": 525}, "organization": {"id": 164}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 41}, "assignee": {"id": 567}, "organization": {"id": 697}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 8}, "assignee": {"id": 549}, "organization": {"id": 177}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 51}, "assignee": {"id": 546}, "organization": {"id": 683}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 97}, "assignee": {"id": 548}, "organization": {"id": 149}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 42}, "assignee": {"id": 527}, "organization": {"id": 650}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 0}, "assignee": {"id": 539}, "organization": {"id": 109}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 15}, "assignee": {"id": 513}, "organization": {"id": 680}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 32}, "assignee": {"id": 575}, "organization": {"id": 123}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 12}, "assignee": {"id": 584}, "organization": {"id": 634}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 46}, "assignee": {"id": 516}, "organization": {"id": 148}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 72}, "assignee": {"id": 533}, "organization": {"id": 682}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 65}, "assignee": {"id": 549}, "organization": {"id": 195}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 34}, "assignee": {"id": 594}, "organization": {"id": 653}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 25}, "assignee": {"id": 584}, "organization": {"id": 124}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 2}, "assignee": {"id": 506}, "organization": {"id": 695}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 31}, "assignee": {"id": 564}, "organization": {"id": 148}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 33}, "assignee": {"id": 593}, "organization": {"id": 670}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 7}, "assignee": {"id": 560}, "organization": {"id": 198}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 456}, "assignee": {"id": 94}, "organization": {"id": 627}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 438}, "assignee": {"id": 14}, "organization": {"id": 151}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 413}, "assignee": {"id": 30}, "organization": {"id": 679}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 418}, "assignee": {"id": 28}, "organization": {"id": 149}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 417}, "assignee": {"id": 47}, "organization": {"id": 687}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 400}, "assignee": {"id": 23}, "organization": {"id": 140}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 417}, "assignee": {"id": 44}, "organization": {"id": 619}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 461}, "assignee": {"id": 41}, "organization": {"id": 140}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 412}, "assignee": {"id": 90}, "organization": {"id": 653}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 466}, "assignee": {"id": 49}, "organization": {"id": 105}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 483}, "assignee": {"id": 74}, "organization": {"id": 640}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 411}, "assignee": {"id": 27}, "organization": {"id": 122}}} +} + +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": 177, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 464}, "assignee": {"id": 44}, "organization": {"id": 683}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 482}, "assignee": {"id": 48}, "organization": {"id": 179}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 471}, "assignee": {"id": 33}, "organization": {"id": 636}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 496}, "assignee": {"id": 33}, "organization": {"id": 102}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 499}, "assignee": {"id": 90}, "organization": {"id": 660}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 408}, "assignee": {"id": 7}, "organization": {"id": 148}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 492}, "assignee": {"id": 48}, "organization": {"id": 693}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 459}, "assignee": {"id": 57}, "organization": {"id": 167}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 403}, "assignee": {"id": 63}, "organization": {"id": 642}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 438}, "assignee": {"id": 83}, "organization": {"id": 145}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 419}, "assignee": {"id": 81}, "organization": {"id": 658}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 488}, "assignee": {"id": 50}, "organization": {"id": 171}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 441}, "assignee": {"id": 11}, "organization": {"id": 604}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 403}, "assignee": {"id": 80}, "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": 43, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 401}, "assignee": {"id": 43}, "organization": {"id": 607}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 426}, "assignee": {"id": 94}, "organization": {"id": 124}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 419}, "assignee": {"id": 91}, "organization": {"id": 661}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 474}, "assignee": {"id": 37}, "organization": {"id": 153}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 412}, "assignee": {"id": 45}, "organization": {"id": 659}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 466}, "assignee": {"id": 15}, "organization": {"id": 180}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 487}, "assignee": {"id": 88}, "organization": {"id": 665}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 488}, "assignee": {"id": 26}, "organization": {"id": 137}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 412}, "assignee": {"id": 54}, "organization": {"id": 677}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 447}, "assignee": {"id": 77}, "organization": {"id": 134}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 484}, "assignee": {"id": 91}, "organization": {"id": 672}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 485}, "assignee": {"id": 1}, "organization": {"id": 199}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 431}, "assignee": {"id": 89}, "organization": {"id": 649}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 401}, "assignee": {"id": 35}, "organization": {"id": 198}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 414}, "assignee": {"id": 9}, "organization": {"id": 688}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 452}, "assignee": {"id": 6}, "organization": {"id": 178}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 473}, "assignee": {"id": 21}, "organization": {"id": 694}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 421}, "assignee": {"id": 79}, "organization": {"id": 192}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 455}, "assignee": {"id": 72}, "organization": {"id": 621}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 402}, "assignee": {"id": 91}, "organization": {"id": 194}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 431}, "assignee": {"id": 55}, "organization": {"id": 642}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 421}, "assignee": {"id": 96}, "organization": {"id": 104}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 439}, "assignee": {"id": 20}, "organization": {"id": 634}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 450}, "assignee": {"id": 3}, "organization": {"id": 181}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 428}, "assignee": {"id": 599}, "organization": {"id": 695}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 469}, "assignee": {"id": 503}, "organization": {"id": 114}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 418}, "assignee": {"id": 515}, "organization": {"id": 639}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 444}, "assignee": {"id": 538}, "organization": {"id": 104}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 449}, "assignee": {"id": 500}, "organization": {"id": 677}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 435}, "assignee": {"id": 594}, "organization": {"id": 191}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 403}, "assignee": {"id": 566}, "organization": {"id": 666}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 482}, "assignee": {"id": 532}, "organization": {"id": 107}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 473}, "assignee": {"id": 509}, "organization": {"id": 632}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 410}, "assignee": {"id": 501}, "organization": {"id": 189}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 429}, "assignee": {"id": 502}, "organization": {"id": 620}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 468}, "assignee": {"id": 508}, "organization": {"id": 116}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 477}, "assignee": {"id": 543}, "organization": {"id": 609}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 481}, "assignee": {"id": 584}, "organization": {"id": 185}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 491}, "assignee": {"id": 580}, "organization": {"id": 692}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 415}, "assignee": {"id": 567}, "organization": {"id": 132}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 421}, "assignee": {"id": 535}, "organization": {"id": 612}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 494}, "assignee": {"id": 593}, "organization": {"id": 161}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 457}, "assignee": {"id": 568}, "organization": {"id": 609}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 435}, "assignee": {"id": 595}, "organization": {"id": 156}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 400}, "assignee": {"id": 541}, "organization": {"id": 612}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 476}, "assignee": {"id": 540}, "organization": {"id": 181}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 460}, "assignee": {"id": 540}, "organization": {"id": 665}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 417}, "assignee": {"id": 538}, "organization": {"id": 107}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 470}, "assignee": {"id": 524}, "organization": {"id": 621}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 460}, "assignee": {"id": 554}, "organization": {"id": 123}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 439}, "assignee": {"id": 561}, "organization": {"id": 629}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 466}, "assignee": {"id": 598}, "organization": {"id": 105}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 428}, "assignee": {"id": 533}, "organization": {"id": 644}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 472}, "assignee": {"id": 560}, "organization": {"id": 126}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 481}, "assignee": {"id": 596}, "organization": {"id": 646}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 432}, "assignee": {"id": 547}, "organization": {"id": 158}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 410}, "assignee": {"id": 528}, "organization": {"id": 601}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 430}, "assignee": {"id": 536}, "organization": {"id": 104}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 471}, "assignee": {"id": 569}, "organization": {"id": 687}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 462}, "assignee": {"id": 538}, "organization": {"id": 109}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 482}, "assignee": {"id": 544}, "organization": {"id": 664}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 463}, "assignee": {"id": 519}, "organization": {"id": 108}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 444}, "assignee": {"id": 533}, "organization": {"id": 666}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 409}, "assignee": {"id": 549}, "organization": {"id": 146}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 414}, "assignee": {"id": 533}, "organization": {"id": 628}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 483}, "assignee": {"id": 561}, "organization": {"id": 148}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 455}, "assignee": {"id": 567}, "organization": {"id": 646}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 478}, "assignee": {"id": 506}, "organization": {"id": 100}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 402}, "assignee": {"id": 503}, "organization": {"id": 624}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 481}, "assignee": {"id": 540}, "organization": {"id": 191}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 455}, "assignee": {"id": 584}, "organization": {"id": 659}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 444}, "assignee": {"id": 549}, "organization": {"id": 140}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 483}, "assignee": {"id": 569}, "organization": {"id": 621}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 411}, "assignee": {"id": 513}, "organization": {"id": 172}}} +} + +test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 99}, "assignee": {"id": 519}, "organization": {"id": 661}}} +} + +test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 10}, "assignee": {"id": 568}, "organization": {"id": 600}}} +} + +test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 3}, "assignee": {"id": 580}, "organization": {"id": 663}}} +} + +test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 10}, "assignee": {"id": 598}, "organization": {"id": 678}}} +} + +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": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 80}, "assignee": {"id": 525}, "organization": {"id": 620}}} +} + +test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 449}, "assignee": {"id": 97}, "organization": {"id": 686}}} +} + +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": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 415}, "assignee": {"id": 68}, "organization": {"id": 606}}} +} + +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": 49, "privilege": "user"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 486}, "assignee": {"id": 49}, "organization": {"id": 674}}} +} + +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": 68, "privilege": "worker"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 492}, "assignee": {"id": 68}, "organization": {"id": 636}}} +} + +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": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 458}, "assignee": {"id": 36}, "organization": {"id": 688}}} +} + +test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 463}, "assignee": {"id": 569}, "organization": {"id": 691}}} +} + +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": 51, "privilege": "business"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 413}, "assignee": {"id": 557}, "organization": {"id": 670}}} +} + +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": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 459}, "assignee": {"id": 568}, "organization": {"id": 628}}} +} + +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": 86, "privilege": "worker"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 453}, "assignee": {"id": 553}, "organization": {"id": 653}}} +} + +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": 53, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 454}, "assignee": {"id": 522}, "organization": {"id": 618}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 97}, "assignee": {"id": 531}, "organization": {"id": 688}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 7}, "assignee": {"id": 541}, "organization": {"id": 152}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 31}, "assignee": {"id": 528}, "organization": {"id": 638}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 86}, "assignee": {"id": 559}, "organization": {"id": 142}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 39}, "assignee": {"id": 597}, "organization": {"id": 670}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 57}, "assignee": {"id": 525}, "organization": {"id": 141}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 26}, "assignee": {"id": 529}, "organization": {"id": 650}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 52}, "assignee": {"id": 514}, "organization": {"id": 179}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 74}, "assignee": {"id": 550}, "organization": {"id": 642}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 54}, "assignee": {"id": 584}, "organization": {"id": 165}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 83}, "assignee": {"id": 554}, "organization": {"id": 662}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 60}, "assignee": {"id": 550}, "organization": {"id": 196}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 98}, "assignee": {"id": 591}, "organization": {"id": 625}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 92}, "assignee": {"id": 529}, "organization": {"id": 198}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 92}, "assignee": {"id": 562}, "organization": {"id": 674}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 58}, "assignee": {"id": 560}, "organization": {"id": 108}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 86}, "assignee": {"id": 583}, "organization": {"id": 646}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 97}, "assignee": {"id": 544}, "organization": {"id": 192}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 23}, "assignee": {"id": 505}, "organization": {"id": 632}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 92}, "assignee": {"id": 569}, "organization": {"id": 162}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 85}, "assignee": {"id": 558}, "organization": {"id": 604}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 97}, "assignee": {"id": 541}, "organization": {"id": 111}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 69}, "assignee": {"id": 581}, "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": 83, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 83}, "assignee": {"id": 596}, "organization": {"id": 103}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 80}, "assignee": {"id": 591}, "organization": {"id": 665}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 15}, "assignee": {"id": 551}, "organization": {"id": 176}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 49}, "assignee": {"id": 575}, "organization": {"id": 660}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 60}, "assignee": {"id": 528}, "organization": {"id": 168}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 82}, "assignee": {"id": 567}, "organization": {"id": 611}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 29}, "assignee": {"id": 595}, "organization": {"id": 115}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 17}, "assignee": {"id": 537}, "organization": {"id": 664}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 99}, "assignee": {"id": 548}, "organization": {"id": 137}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 27}, "assignee": {"id": 535}, "organization": {"id": 684}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 64}, "assignee": {"id": 592}, "organization": {"id": 173}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 79}, "assignee": {"id": 598}, "organization": {"id": 682}}} +} + +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": 175, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 7}, "assignee": {"id": 589}, "organization": {"id": 175}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 13}, "assignee": {"id": 522}, "organization": {"id": 680}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 17}, "assignee": {"id": 516}, "organization": {"id": 157}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 87}, "assignee": {"id": 534}, "organization": {"id": 699}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 52}, "assignee": {"id": 545}, "organization": {"id": 192}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 78}, "assignee": {"id": 532}, "organization": {"id": 607}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 13}, "assignee": {"id": 565}, "organization": {"id": 134}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 25}, "assignee": {"id": 543}, "organization": {"id": 641}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 49}, "assignee": {"id": 540}, "organization": {"id": 126}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 89}, "assignee": {"id": 540}, "organization": {"id": 619}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 32}, "assignee": {"id": 598}, "organization": {"id": 178}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 48}, "assignee": {"id": 505}, "organization": {"id": 644}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 22}, "assignee": {"id": 557}, "organization": {"id": 159}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 16}, "assignee": {"id": 592}, "organization": {"id": 611}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 99}, "assignee": {"id": 542}, "organization": {"id": 164}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 437}, "assignee": {"id": 87}, "organization": {"id": 656}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 429}, "assignee": {"id": 19}, "organization": {"id": 165}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 402}, "assignee": {"id": 89}, "organization": {"id": 609}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 468}, "assignee": {"id": 10}, "organization": {"id": 159}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 465}, "assignee": {"id": 5}, "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": 10, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 467}, "assignee": {"id": 10}, "organization": {"id": 178}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 486}, "assignee": {"id": 55}, "organization": {"id": 665}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 421}, "assignee": {"id": 2}, "organization": {"id": 121}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 466}, "assignee": {"id": 33}, "organization": {"id": 688}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 413}, "assignee": {"id": 54}, "organization": {"id": 168}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 450}, "assignee": {"id": 5}, "organization": {"id": 643}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 411}, "assignee": {"id": 54}, "organization": {"id": 183}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 474}, "assignee": {"id": 13}, "organization": {"id": 617}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 418}, "assignee": {"id": 39}, "organization": {"id": 182}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 449}, "assignee": {"id": 4}, "organization": {"id": 671}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 418}, "assignee": {"id": 88}, "organization": {"id": 121}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 409}, "assignee": {"id": 17}, "organization": {"id": 632}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 476}, "assignee": {"id": 23}, "organization": {"id": 112}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 472}, "assignee": {"id": 50}, "organization": {"id": 627}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 458}, "assignee": {"id": 72}, "organization": {"id": 121}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 450}, "assignee": {"id": 11}, "organization": {"id": 626}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 417}, "assignee": {"id": 26}, "organization": {"id": 112}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 452}, "assignee": {"id": 53}, "organization": {"id": 662}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 478}, "assignee": {"id": 10}, "organization": {"id": 162}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 461}, "assignee": {"id": 86}, "organization": {"id": 604}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 496}, "assignee": {"id": 44}, "organization": {"id": 149}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 442}, "assignee": {"id": 85}, "organization": {"id": 666}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 469}, "assignee": {"id": 51}, "organization": {"id": 171}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 438}, "assignee": {"id": 60}, "organization": {"id": 618}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 449}, "assignee": {"id": 33}, "organization": {"id": 140}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 434}, "assignee": {"id": 34}, "organization": {"id": 602}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 422}, "assignee": {"id": 16}, "organization": {"id": 158}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 468}, "assignee": {"id": 58}, "organization": {"id": 610}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 485}, "assignee": {"id": 36}, "organization": {"id": 123}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 461}, "assignee": {"id": 81}, "organization": {"id": 639}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 440}, "assignee": {"id": 6}, "organization": {"id": 111}}} +} + +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": 185, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 480}, "assignee": {"id": 63}, "organization": {"id": 643}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 402}, "assignee": {"id": 99}, "organization": {"id": 169}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 409}, "assignee": {"id": 42}, "organization": {"id": 687}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 496}, "assignee": {"id": 13}, "organization": {"id": 184}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 481}, "assignee": {"id": 51}, "organization": {"id": 688}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 425}, "assignee": {"id": 90}, "organization": {"id": 126}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 455}, "assignee": {"id": 38}, "organization": {"id": 615}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 494}, "assignee": {"id": 53}, "organization": {"id": 154}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 405}, "assignee": {"id": 12}, "organization": {"id": 631}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 410}, "assignee": {"id": 80}, "organization": {"id": 114}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 431}, "assignee": {"id": 4}, "organization": {"id": 660}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 424}, "assignee": {"id": 54}, "organization": {"id": 198}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 437}, "assignee": {"id": 56}, "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": 82, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 433}, "assignee": {"id": 82}, "organization": {"id": 113}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 446}, "assignee": {"id": 583}, "organization": {"id": 662}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 425}, "assignee": {"id": 589}, "organization": {"id": 128}}} +} + +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": 106, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 422}, "assignee": {"id": 579}, "organization": {"id": 663}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 422}, "assignee": {"id": 592}, "organization": {"id": 193}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 488}, "assignee": {"id": 513}, "organization": {"id": 669}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 440}, "assignee": {"id": 587}, "organization": {"id": 147}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 461}, "assignee": {"id": 587}, "organization": {"id": 699}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 420}, "assignee": {"id": 541}, "organization": {"id": 146}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 459}, "assignee": {"id": 507}, "organization": {"id": 604}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 492}, "assignee": {"id": 556}, "organization": {"id": 110}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 495}, "assignee": {"id": 529}, "organization": {"id": 646}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 439}, "assignee": {"id": 562}, "organization": {"id": 167}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 460}, "assignee": {"id": 546}, "organization": {"id": 600}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 473}, "assignee": {"id": 571}, "organization": {"id": 158}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 401}, "assignee": {"id": 562}, "organization": {"id": 698}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 405}, "assignee": {"id": 589}, "organization": {"id": 151}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 400}, "assignee": {"id": 570}, "organization": {"id": 689}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 471}, "assignee": {"id": 514}, "organization": {"id": 179}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 453}, "assignee": {"id": 576}, "organization": {"id": 670}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 426}, "assignee": {"id": 514}, "organization": {"id": 191}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 438}, "assignee": {"id": 512}, "organization": {"id": 623}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 412}, "assignee": {"id": 577}, "organization": {"id": 135}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 478}, "assignee": {"id": 533}, "organization": {"id": 690}}} +} + +test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { + allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 463}, "assignee": {"id": 590}, "organization": {"id": 129}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 424}, "assignee": {"id": 528}, "organization": {"id": 661}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 438}, "assignee": {"id": 528}, "organization": {"id": 145}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 497}, "assignee": {"id": 566}, "organization": {"id": 678}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 403}, "assignee": {"id": 577}, "organization": {"id": 186}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 497}, "assignee": {"id": 508}, "organization": {"id": 647}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 432}, "assignee": {"id": 526}, "organization": {"id": 152}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 488}, "assignee": {"id": 517}, "organization": {"id": 666}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 495}, "assignee": {"id": 561}, "organization": {"id": 188}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 422}, "assignee": {"id": 539}, "organization": {"id": 624}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 464}, "assignee": {"id": 582}, "organization": {"id": 172}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 444}, "assignee": {"id": 573}, "organization": {"id": 606}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 467}, "assignee": {"id": 539}, "organization": {"id": 146}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 407}, "assignee": {"id": 528}, "organization": {"id": 626}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 472}, "assignee": {"id": 586}, "organization": {"id": 151}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 472}, "assignee": {"id": 579}, "organization": {"id": 677}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 444}, "assignee": {"id": 526}, "organization": {"id": 111}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 451}, "assignee": {"id": 596}, "organization": {"id": 656}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 410}, "assignee": {"id": 529}, "organization": {"id": 131}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 421}, "assignee": {"id": 541}, "organization": {"id": 636}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 489}, "assignee": {"id": 542}, "organization": {"id": 131}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 427}, "assignee": {"id": 529}, "organization": {"id": 635}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 439}, "assignee": {"id": 529}, "organization": {"id": 125}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 433}, "assignee": {"id": 530}, "organization": {"id": 624}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 489}, "assignee": {"id": 579}, "organization": {"id": 128}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 483}, "assignee": {"id": 567}, "organization": {"id": 627}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 401}, "assignee": {"id": 518}, "organization": {"id": 145}}} +} + +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": 0, "privilege": "admin"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 0}, "assignee": {"id": 510}, "organization": {"id": 602}}} +} + +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": 31, "privilege": "business"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 31}, "assignee": {"id": 563}, "organization": {"id": 626}}} +} + +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": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 9}, "assignee": {"id": 585}, "organization": {"id": 673}}} +} + +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": 6, "privilege": "worker"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 6}, "assignee": {"id": 596}, "organization": {"id": 673}}} +} + +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": 48, "privilege": "none"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 48}, "assignee": {"id": 546}, "organization": {"id": 640}}} +} + +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": 6, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 492}, "assignee": {"id": 6}, "organization": {"id": 668}}} +} + +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": 45, "privilege": "business"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 455}, "assignee": {"id": 45}, "organization": {"id": 697}}} +} + +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": 72, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 431}, "assignee": {"id": 72}, "organization": {"id": 654}}} +} + +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": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 495}, "assignee": {"id": 47}, "organization": {"id": 600}}} +} + +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": 0, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 434}, "assignee": {"id": 0}, "organization": {"id": 625}}} +} + +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": 316, "owner": {"id": 410}, "assignee": {"id": 559}, "organization": {"id": 676}}} +} + +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": 50, "privilege": "business"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 455}, "assignee": {"id": 501}, "organization": {"id": 696}}} +} + +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": 95, "privilege": "user"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 447}, "assignee": {"id": 544}, "organization": {"id": 671}}} +} + +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": 70, "privilege": "worker"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 411}, "assignee": {"id": 532}, "organization": {"id": 687}}} +} + +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": 50, "privilege": "none"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 420}, "assignee": {"id": 586}, "organization": {"id": 692}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 39}, "assignee": {"id": 553}, "organization": {"id": 680}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 26}, "assignee": {"id": 563}, "organization": {"id": 129}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 0}, "assignee": {"id": 530}, "organization": {"id": 689}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 66}, "assignee": {"id": 575}, "organization": {"id": 138}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 77}, "assignee": {"id": 572}, "organization": {"id": 600}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 23}, "assignee": {"id": 563}, "organization": {"id": 118}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 68}, "assignee": {"id": 596}, "organization": {"id": 671}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 28}, "assignee": {"id": 549}, "organization": {"id": 122}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 17}, "assignee": {"id": 514}, "organization": {"id": 676}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 5}, "assignee": {"id": 507}, "organization": {"id": 174}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 51}, "assignee": {"id": 575}, "organization": {"id": 641}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 3}, "assignee": {"id": 535}, "organization": {"id": 159}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 73}, "assignee": {"id": 536}, "organization": {"id": 639}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 68}, "assignee": {"id": 516}, "organization": {"id": 111}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 73}, "assignee": {"id": 586}, "organization": {"id": 698}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 84}, "assignee": {"id": 536}, "organization": {"id": 135}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 32}, "assignee": {"id": 506}, "organization": {"id": 605}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 20}, "assignee": {"id": 534}, "organization": {"id": 102}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 84}, "assignee": {"id": 521}, "organization": {"id": 679}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 14}, "assignee": {"id": 513}, "organization": {"id": 193}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 53}, "assignee": {"id": 582}, "organization": {"id": 607}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 52}, "assignee": {"id": 583}, "organization": {"id": 191}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 59}, "assignee": {"id": 569}, "organization": {"id": 651}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 79}, "assignee": {"id": 500}, "organization": {"id": 152}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 59}, "assignee": {"id": 596}, "organization": {"id": 679}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 85}, "assignee": {"id": 542}, "organization": {"id": 106}}} +} + +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": 108, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 74}, "assignee": {"id": 504}, "organization": {"id": 636}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 25}, "assignee": {"id": 552}, "organization": {"id": 124}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 64}, "assignee": {"id": 523}, "organization": {"id": 696}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 61}, "assignee": {"id": 536}, "organization": {"id": 185}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 65}, "assignee": {"id": 538}, "organization": {"id": 666}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 90}, "assignee": {"id": 507}, "organization": {"id": 137}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 63}, "assignee": {"id": 520}, "organization": {"id": 673}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 43}, "assignee": {"id": 590}, "organization": {"id": 175}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 49}, "assignee": {"id": 587}, "organization": {"id": 604}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 97}, "assignee": {"id": 592}, "organization": {"id": 146}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 22}, "assignee": {"id": 591}, "organization": {"id": 665}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 42}, "assignee": {"id": 561}, "organization": {"id": 168}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 5}, "assignee": {"id": 563}, "organization": {"id": 691}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 80}, "assignee": {"id": 583}, "organization": {"id": 144}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 78}, "assignee": {"id": 596}, "organization": {"id": 653}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 93}, "assignee": {"id": 538}, "organization": {"id": 197}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 55}, "assignee": {"id": 554}, "organization": {"id": 685}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 74}, "assignee": {"id": 511}, "organization": {"id": 184}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 15}, "assignee": {"id": 501}, "organization": {"id": 630}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 35}, "assignee": {"id": 512}, "organization": {"id": 147}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 55}, "assignee": {"id": 572}, "organization": {"id": 617}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 59}, "assignee": {"id": 533}, "organization": {"id": 145}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 24}, "assignee": {"id": 531}, "organization": {"id": 665}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 21}, "assignee": {"id": 524}, "organization": {"id": 197}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 437}, "assignee": {"id": 28}, "organization": {"id": 626}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 491}, "assignee": {"id": 51}, "organization": {"id": 153}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 469}, "assignee": {"id": 86}, "organization": {"id": 645}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 452}, "assignee": {"id": 46}, "organization": {"id": 197}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 428}, "assignee": {"id": 19}, "organization": {"id": 629}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 408}, "assignee": {"id": 33}, "organization": {"id": 169}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 483}, "assignee": {"id": 36}, "organization": {"id": 677}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 438}, "assignee": {"id": 61}, "organization": {"id": 128}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 476}, "assignee": {"id": 78}, "organization": {"id": 617}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 447}, "assignee": {"id": 2}, "organization": {"id": 121}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 468}, "assignee": {"id": 51}, "organization": {"id": 643}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 472}, "assignee": {"id": 50}, "organization": {"id": 182}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 445}, "assignee": {"id": 63}, "organization": {"id": 647}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 458}, "assignee": {"id": 58}, "organization": {"id": 176}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 450}, "assignee": {"id": 74}, "organization": {"id": 614}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 479}, "assignee": {"id": 48}, "organization": {"id": 112}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 489}, "assignee": {"id": 40}, "organization": {"id": 657}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 463}, "assignee": {"id": 52}, "organization": {"id": 141}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 496}, "assignee": {"id": 12}, "organization": {"id": 658}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 405}, "assignee": {"id": 27}, "organization": {"id": 193}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 456}, "assignee": {"id": 1}, "organization": {"id": 638}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 475}, "assignee": {"id": 22}, "organization": {"id": 109}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 446}, "assignee": {"id": 74}, "organization": {"id": 602}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 438}, "assignee": {"id": 80}, "organization": {"id": 117}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 437}, "assignee": {"id": 66}, "organization": {"id": 629}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 460}, "assignee": {"id": 71}, "organization": {"id": 159}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 432}, "assignee": {"id": 97}, "organization": {"id": 683}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 498}, "assignee": {"id": 28}, "organization": {"id": 168}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 471}, "assignee": {"id": 51}, "organization": {"id": 688}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 408}, "assignee": {"id": 45}, "organization": {"id": 118}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 440}, "assignee": {"id": 0}, "organization": {"id": 650}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 478}, "assignee": {"id": 68}, "organization": {"id": 187}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 421}, "assignee": {"id": 27}, "organization": {"id": 608}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 414}, "assignee": {"id": 39}, "organization": {"id": 186}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 455}, "assignee": {"id": 54}, "organization": {"id": 693}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 400}, "assignee": {"id": 34}, "organization": {"id": 139}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 441}, "assignee": {"id": 4}, "organization": {"id": 632}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 465}, "assignee": {"id": 79}, "organization": {"id": 108}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 450}, "assignee": {"id": 17}, "organization": {"id": 671}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 485}, "assignee": {"id": 70}, "organization": {"id": 110}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 479}, "assignee": {"id": 70}, "organization": {"id": 640}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 454}, "assignee": {"id": 52}, "organization": {"id": 111}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 455}, "assignee": {"id": 55}, "organization": {"id": 675}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 409}, "assignee": {"id": 34}, "organization": {"id": 165}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 470}, "assignee": {"id": 72}, "organization": {"id": 678}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 421}, "assignee": {"id": 78}, "organization": {"id": 180}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 491}, "assignee": {"id": 96}, "organization": {"id": 673}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 490}, "assignee": {"id": 80}, "organization": {"id": 136}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 454}, "assignee": {"id": 22}, "organization": {"id": 622}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 491}, "assignee": {"id": 52}, "organization": {"id": 198}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 440}, "assignee": {"id": 595}, "organization": {"id": 699}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 437}, "assignee": {"id": 545}, "organization": {"id": 154}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 487}, "assignee": {"id": 542}, "organization": {"id": 663}}} +} + +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": 125, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 406}, "assignee": {"id": 533}, "organization": {"id": 125}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 451}, "assignee": {"id": 533}, "organization": {"id": 614}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 447}, "assignee": {"id": 531}, "organization": {"id": 106}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 450}, "assignee": {"id": 502}, "organization": {"id": 628}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 491}, "assignee": {"id": 564}, "organization": {"id": 159}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 491}, "assignee": {"id": 593}, "organization": {"id": 694}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 489}, "assignee": {"id": 532}, "organization": {"id": 154}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 471}, "assignee": {"id": 569}, "organization": {"id": 604}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 434}, "assignee": {"id": 569}, "organization": {"id": 166}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 445}, "assignee": {"id": 571}, "organization": {"id": 616}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 413}, "assignee": {"id": 574}, "organization": {"id": 140}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 495}, "assignee": {"id": 537}, "organization": {"id": 607}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 403}, "assignee": {"id": 565}, "organization": {"id": 139}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 480}, "assignee": {"id": 554}, "organization": {"id": 617}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 496}, "assignee": {"id": 500}, "organization": {"id": 181}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 475}, "assignee": {"id": 510}, "organization": {"id": 626}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 499}, "assignee": {"id": 581}, "organization": {"id": 167}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 467}, "assignee": {"id": 543}, "organization": {"id": 612}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 417}, "assignee": {"id": 544}, "organization": {"id": 149}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 482}, "assignee": {"id": 596}, "organization": {"id": 650}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 461}, "assignee": {"id": 543}, "organization": {"id": 139}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 434}, "assignee": {"id": 568}, "organization": {"id": 627}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 458}, "assignee": {"id": 500}, "organization": {"id": 149}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 457}, "assignee": {"id": 576}, "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": 85, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 418}, "assignee": {"id": 520}, "organization": {"id": 147}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 481}, "assignee": {"id": 584}, "organization": {"id": 654}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 491}, "assignee": {"id": 583}, "organization": {"id": 158}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 454}, "assignee": {"id": 581}, "organization": {"id": 656}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 441}, "assignee": {"id": 552}, "organization": {"id": 112}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 415}, "assignee": {"id": 587}, "organization": {"id": 686}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 496}, "assignee": {"id": 525}, "organization": {"id": 166}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 463}, "assignee": {"id": 599}, "organization": {"id": 619}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 414}, "assignee": {"id": 598}, "organization": {"id": 121}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 488}, "assignee": {"id": 528}, "organization": {"id": 691}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 463}, "assignee": {"id": 572}, "organization": {"id": 157}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 420}, "assignee": {"id": 507}, "organization": {"id": 669}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 458}, "assignee": {"id": 596}, "organization": {"id": 174}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 431}, "assignee": {"id": 528}, "organization": {"id": 613}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 431}, "assignee": {"id": 543}, "organization": {"id": 182}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 458}, "assignee": {"id": 547}, "organization": {"id": 672}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 482}, "assignee": {"id": 558}, "organization": {"id": 189}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 486}, "assignee": {"id": 502}, "organization": {"id": 691}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 439}, "assignee": {"id": 518}, "organization": {"id": 155}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 443}, "assignee": {"id": 565}, "organization": {"id": 601}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 497}, "assignee": {"id": 566}, "organization": {"id": 114}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 430}, "assignee": {"id": 589}, "organization": {"id": 626}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 410}, "assignee": {"id": 532}, "organization": {"id": 144}}} +} + +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": 24, "privilege": "admin"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 24}, "assignee": {"id": 502}, "organization": {"id": 675}}} +} + +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": 80, "privilege": "business"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 80}, "assignee": {"id": 550}, "organization": {"id": 667}}} +} + +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": 60, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 60}, "assignee": {"id": 519}, "organization": {"id": 651}}} +} + +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": 2, "privilege": "worker"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 2}, "assignee": {"id": 543}, "organization": {"id": 635}}} +} + +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": 5, "privilege": "none"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 5}, "assignee": {"id": 502}, "organization": {"id": 652}}} +} + +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": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 401}, "assignee": {"id": 66}, "organization": {"id": 676}}} +} + +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": 81, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 495}, "assignee": {"id": 81}, "organization": {"id": 669}}} +} + +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": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 464}, "assignee": {"id": 85}, "organization": {"id": 619}}} +} + +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": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 441}, "assignee": {"id": 89}, "organization": {"id": 600}}} +} + +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": 62, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 453}, "assignee": {"id": 62}, "organization": {"id": 642}}} +} + +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": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 489}, "assignee": {"id": 540}, "organization": {"id": 635}}} +} + +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": 14, "privilege": "business"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 462}, "assignee": {"id": 562}, "organization": {"id": 607}}} +} + +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": 94, "privilege": "user"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 427}, "assignee": {"id": 507}, "organization": {"id": 688}}} +} + +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": 40, "privilege": "worker"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 486}, "assignee": {"id": 535}, "organization": {"id": 638}}} +} + +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": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 456}, "assignee": {"id": 530}, "organization": {"id": 674}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 26}, "assignee": {"id": 534}, "organization": {"id": 695}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 43}, "assignee": {"id": 550}, "organization": {"id": 165}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 95}, "assignee": {"id": 577}, "organization": {"id": 636}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 54}, "assignee": {"id": 566}, "organization": {"id": 106}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 39}, "assignee": {"id": 578}, "organization": {"id": 634}}} +} + +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": 119, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 0}, "assignee": {"id": 500}, "organization": {"id": 119}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 6}, "assignee": {"id": 564}, "organization": {"id": 621}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 23}, "assignee": {"id": 514}, "organization": {"id": 162}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 76}, "assignee": {"id": 567}, "organization": {"id": 639}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 84}, "assignee": {"id": 564}, "organization": {"id": 166}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 35}, "assignee": {"id": 546}, "organization": {"id": 641}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 9}, "assignee": {"id": 559}, "organization": {"id": 151}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 45}, "assignee": {"id": 568}, "organization": {"id": 643}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 91}, "assignee": {"id": 535}, "organization": {"id": 186}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 53}, "assignee": {"id": 588}, "organization": {"id": 672}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 11}, "assignee": {"id": 555}, "organization": {"id": 176}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 63}, "assignee": {"id": 583}, "organization": {"id": 698}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 8}, "assignee": {"id": 575}, "organization": {"id": 124}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 25}, "assignee": {"id": 531}, "organization": {"id": 626}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 78}, "assignee": {"id": 510}, "organization": {"id": 183}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 39}, "assignee": {"id": 513}, "organization": {"id": 632}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 39}, "assignee": {"id": 526}, "organization": {"id": 144}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 10}, "assignee": {"id": 568}, "organization": {"id": 603}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 84}, "assignee": {"id": 589}, "organization": {"id": 188}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 52}, "assignee": {"id": 596}, "organization": {"id": 625}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 6}, "assignee": {"id": 539}, "organization": {"id": 159}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 88}, "assignee": {"id": 512}, "organization": {"id": 636}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 67}, "assignee": {"id": 566}, "organization": {"id": 146}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 53}, "assignee": {"id": 512}, "organization": {"id": 625}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 33}, "assignee": {"id": 501}, "organization": {"id": 152}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 81}, "assignee": {"id": 533}, "organization": {"id": 682}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 74}, "assignee": {"id": 579}, "organization": {"id": 161}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 22}, "assignee": {"id": 558}, "organization": {"id": 614}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 81}, "assignee": {"id": 557}, "organization": {"id": 134}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 68}, "assignee": {"id": 547}, "organization": {"id": 670}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 82}, "assignee": {"id": 568}, "organization": {"id": 187}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 90}, "assignee": {"id": 574}, "organization": {"id": 679}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 47}, "assignee": {"id": 558}, "organization": {"id": 133}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 4}, "assignee": {"id": 509}, "organization": {"id": 645}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 77}, "assignee": {"id": 587}, "organization": {"id": 124}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 23}, "assignee": {"id": 593}, "organization": {"id": 614}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 50}, "assignee": {"id": 569}, "organization": {"id": 196}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 37}, "assignee": {"id": 553}, "organization": {"id": 688}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 22}, "assignee": {"id": 547}, "organization": {"id": 183}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 14}, "assignee": {"id": 531}, "organization": {"id": 622}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 83}, "assignee": {"id": 563}, "organization": {"id": 127}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 6}, "assignee": {"id": 528}, "organization": {"id": 656}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 56}, "assignee": {"id": 573}, "organization": {"id": 175}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 82}, "assignee": {"id": 523}, "organization": {"id": 668}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 30}, "assignee": {"id": 555}, "organization": {"id": 183}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 459}, "assignee": {"id": 51}, "organization": {"id": 606}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 447}, "assignee": {"id": 4}, "organization": {"id": 142}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 435}, "assignee": {"id": 21}, "organization": {"id": 692}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 433}, "assignee": {"id": 32}, "organization": {"id": 104}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 426}, "assignee": {"id": 24}, "organization": {"id": 654}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 486}, "assignee": {"id": 1}, "organization": {"id": 134}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 429}, "assignee": {"id": 58}, "organization": {"id": 665}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 415}, "assignee": {"id": 3}, "organization": {"id": 147}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 467}, "assignee": {"id": 58}, "organization": {"id": 612}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 415}, "assignee": {"id": 17}, "organization": {"id": 104}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 478}, "assignee": {"id": 85}, "organization": {"id": 613}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 420}, "assignee": {"id": 1}, "organization": {"id": 162}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 473}, "assignee": {"id": 11}, "organization": {"id": 623}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 457}, "assignee": {"id": 47}, "organization": {"id": 174}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 464}, "assignee": {"id": 59}, "organization": {"id": 632}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 449}, "assignee": {"id": 51}, "organization": {"id": 191}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 457}, "assignee": {"id": 34}, "organization": {"id": 651}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 463}, "assignee": {"id": 99}, "organization": {"id": 119}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 496}, "assignee": {"id": 55}, "organization": {"id": 616}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 499}, "assignee": {"id": 72}, "organization": {"id": 114}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 497}, "assignee": {"id": 7}, "organization": {"id": 698}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 475}, "assignee": {"id": 50}, "organization": {"id": 162}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 410}, "assignee": {"id": 14}, "organization": {"id": 666}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 410}, "assignee": {"id": 26}, "organization": {"id": 116}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 469}, "assignee": {"id": 72}, "organization": {"id": 690}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 423}, "assignee": {"id": 43}, "organization": {"id": 178}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 410}, "assignee": {"id": 79}, "organization": {"id": 609}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 458}, "assignee": {"id": 95}, "organization": {"id": 135}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 439}, "assignee": {"id": 57}, "organization": {"id": 671}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 432}, "assignee": {"id": 9}, "organization": {"id": 194}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 459}, "assignee": {"id": 75}, "organization": {"id": 696}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 482}, "assignee": {"id": 69}, "organization": {"id": 153}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 433}, "assignee": {"id": 94}, "organization": {"id": 617}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 422}, "assignee": {"id": 89}, "organization": {"id": 122}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 452}, "assignee": {"id": 81}, "organization": {"id": 667}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 424}, "assignee": {"id": 26}, "organization": {"id": 143}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 463}, "assignee": {"id": 54}, "organization": {"id": 664}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 428}, "assignee": {"id": 50}, "organization": {"id": 157}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 475}, "assignee": {"id": 33}, "organization": {"id": 624}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 419}, "assignee": {"id": 90}, "organization": {"id": 186}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 470}, "assignee": {"id": 31}, "organization": {"id": 632}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 493}, "assignee": {"id": 82}, "organization": {"id": 128}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 439}, "assignee": {"id": 63}, "organization": {"id": 663}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 416}, "assignee": {"id": 51}, "organization": {"id": 163}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 443}, "assignee": {"id": 71}, "organization": {"id": 627}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 469}, "assignee": {"id": 60}, "organization": {"id": 187}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 491}, "assignee": {"id": 68}, "organization": {"id": 651}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 461}, "assignee": {"id": 44}, "organization": {"id": 100}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 449}, "assignee": {"id": 11}, "organization": {"id": 687}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 406}, "assignee": {"id": 90}, "organization": {"id": 199}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 438}, "assignee": {"id": 504}, "organization": {"id": 624}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 463}, "assignee": {"id": 522}, "organization": {"id": 134}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 407}, "assignee": {"id": 583}, "organization": {"id": 673}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 490}, "assignee": {"id": 548}, "organization": {"id": 105}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 490}, "assignee": {"id": 549}, "organization": {"id": 684}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 433}, "assignee": {"id": 540}, "organization": {"id": 167}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 422}, "assignee": {"id": 573}, "organization": {"id": 661}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 489}, "assignee": {"id": 553}, "organization": {"id": 134}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 427}, "assignee": {"id": 558}, "organization": {"id": 687}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 400}, "assignee": {"id": 541}, "organization": {"id": 177}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 488}, "assignee": {"id": 511}, "organization": {"id": 638}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 400}, "assignee": {"id": 586}, "organization": {"id": 189}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 428}, "assignee": {"id": 534}, "organization": {"id": 633}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 441}, "assignee": {"id": 514}, "organization": {"id": 174}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 477}, "assignee": {"id": 517}, "organization": {"id": 605}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 474}, "assignee": {"id": 507}, "organization": {"id": 113}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 434}, "assignee": {"id": 566}, "organization": {"id": 655}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 489}, "assignee": {"id": 598}, "organization": {"id": 195}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 493}, "assignee": {"id": 549}, "organization": {"id": 617}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 405}, "assignee": {"id": 516}, "organization": {"id": 155}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 484}, "assignee": {"id": 592}, "organization": {"id": 617}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 447}, "assignee": {"id": 500}, "organization": {"id": 131}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 404}, "assignee": {"id": 546}, "organization": {"id": 666}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 460}, "assignee": {"id": 589}, "organization": {"id": 105}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 451}, "assignee": {"id": 570}, "organization": {"id": 642}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 425}, "assignee": {"id": 538}, "organization": {"id": 174}}} +} + +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": 167, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 403}, "assignee": {"id": 546}, "organization": {"id": 626}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 466}, "assignee": {"id": 558}, "organization": {"id": 198}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 493}, "assignee": {"id": 549}, "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": 96, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 463}, "assignee": {"id": 536}, "organization": {"id": 106}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 471}, "assignee": {"id": 543}, "organization": {"id": 664}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 426}, "assignee": {"id": 565}, "organization": {"id": 190}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 497}, "assignee": {"id": 594}, "organization": {"id": 630}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 431}, "assignee": {"id": 536}, "organization": {"id": 174}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 414}, "assignee": {"id": 558}, "organization": {"id": 633}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 485}, "assignee": {"id": 514}, "organization": {"id": 170}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 423}, "assignee": {"id": 564}, "organization": {"id": 693}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 458}, "assignee": {"id": 531}, "organization": {"id": 172}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 410}, "assignee": {"id": 557}, "organization": {"id": 650}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 479}, "assignee": {"id": 582}, "organization": {"id": 100}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 491}, "assignee": {"id": 549}, "organization": {"id": 652}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 472}, "assignee": {"id": 511}, "organization": {"id": 144}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 400}, "assignee": {"id": 540}, "organization": {"id": 611}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 468}, "assignee": {"id": 582}, "organization": {"id": 138}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 476}, "assignee": {"id": 513}, "organization": {"id": 684}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 406}, "assignee": {"id": 556}, "organization": {"id": 193}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 424}, "assignee": {"id": 545}, "organization": {"id": 602}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 406}, "assignee": {"id": 518}, "organization": {"id": 135}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 469}, "assignee": {"id": 595}, "organization": {"id": 614}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 485}, "assignee": {"id": 570}, "organization": {"id": 151}}} +} + +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": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 31}, "assignee": {"id": 550}, "organization": {"id": 682}}} +} + +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": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 79}, "assignee": {"id": 552}, "organization": {"id": 689}}} +} + +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": 66, "privilege": "user"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 66}, "assignee": {"id": 537}, "organization": {"id": 665}}} +} + +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": 6, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 6}, "assignee": {"id": 566}, "organization": {"id": 647}}} +} + +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": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 84}, "assignee": {"id": 525}, "organization": {"id": 645}}} +} + +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": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 481}, "assignee": {"id": 66}, "organization": {"id": 672}}} +} + +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": 37, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 452}, "assignee": {"id": 37}, "organization": {"id": 645}}} +} + +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": 5, "privilege": "user"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 410}, "assignee": {"id": 5}, "organization": {"id": 632}}} +} + +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": 90, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 422}, "assignee": {"id": 90}, "organization": {"id": 664}}} +} + +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": 86, "privilege": "none"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 486}, "assignee": {"id": 86}, "organization": {"id": 615}}} +} + +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": 94, "privilege": "admin"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 463}, "assignee": {"id": 552}, "organization": {"id": 658}}} +} + +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": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 486}, "assignee": {"id": 586}, "organization": {"id": 601}}} +} + +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": 94, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 453}, "assignee": {"id": 592}, "organization": {"id": 698}}} +} + +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": 4, "privilege": "worker"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 466}, "assignee": {"id": 571}, "organization": {"id": 628}}} +} + +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": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 432}, "assignee": {"id": 509}, "organization": {"id": 676}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 30}, "assignee": {"id": 538}, "organization": {"id": 631}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 23}, "assignee": {"id": 543}, "organization": {"id": 187}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 87}, "assignee": {"id": 517}, "organization": {"id": 679}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 55}, "assignee": {"id": 577}, "organization": {"id": 166}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 44}, "assignee": {"id": 510}, "organization": {"id": 611}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 90}, "assignee": {"id": 591}, "organization": {"id": 100}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 78}, "assignee": {"id": 580}, "organization": {"id": 602}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 12}, "assignee": {"id": 576}, "organization": {"id": 196}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 32}, "assignee": {"id": 583}, "organization": {"id": 659}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 42}, "assignee": {"id": 543}, "organization": {"id": 127}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 53}, "assignee": {"id": 557}, "organization": {"id": 662}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 58}, "assignee": {"id": 503}, "organization": {"id": 133}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 64}, "assignee": {"id": 528}, "organization": {"id": 614}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 56}, "assignee": {"id": 587}, "organization": {"id": 108}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 76}, "assignee": {"id": 550}, "organization": {"id": 629}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 36}, "assignee": {"id": 558}, "organization": {"id": 124}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 54}, "assignee": {"id": 599}, "organization": {"id": 653}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 79}, "assignee": {"id": 590}, "organization": {"id": 148}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 87}, "assignee": {"id": 504}, "organization": {"id": 646}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 10}, "assignee": {"id": 577}, "organization": {"id": 135}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 96}, "assignee": {"id": 501}, "organization": {"id": 656}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 26}, "assignee": {"id": 598}, "organization": {"id": 117}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 85}, "assignee": {"id": 519}, "organization": {"id": 633}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 94}, "assignee": {"id": 544}, "organization": {"id": 151}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 1}, "assignee": {"id": 555}, "organization": {"id": 690}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 4}, "assignee": {"id": 572}, "organization": {"id": 178}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 29}, "assignee": {"id": 514}, "organization": {"id": 681}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 71}, "assignee": {"id": 537}, "organization": {"id": 170}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 80}, "assignee": {"id": 538}, "organization": {"id": 627}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 21}, "assignee": {"id": 551}, "organization": {"id": 193}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 74}, "assignee": {"id": 555}, "organization": {"id": 689}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 39}, "assignee": {"id": 509}, "organization": {"id": 122}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 21}, "assignee": {"id": 587}, "organization": {"id": 679}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 7}, "assignee": {"id": 578}, "organization": {"id": 137}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 39}, "assignee": {"id": 571}, "organization": {"id": 693}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 62}, "assignee": {"id": 550}, "organization": {"id": 158}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 52}, "assignee": {"id": 565}, "organization": {"id": 695}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 46}, "assignee": {"id": 538}, "organization": {"id": 195}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 42}, "assignee": {"id": 598}, "organization": {"id": 679}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 79}, "assignee": {"id": 545}, "organization": {"id": 177}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 69}, "assignee": {"id": 554}, "organization": {"id": 675}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 81}, "assignee": {"id": 579}, "organization": {"id": 138}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 46}, "assignee": {"id": 597}, "organization": {"id": 642}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 54}, "assignee": {"id": 508}, "organization": {"id": 165}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 0}, "assignee": {"id": 594}, "organization": {"id": 655}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 88}, "assignee": {"id": 509}, "organization": {"id": 181}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 12}, "assignee": {"id": 565}, "organization": {"id": 678}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 61}, "assignee": {"id": 560}, "organization": {"id": 158}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 16}, "assignee": {"id": 570}, "organization": {"id": 686}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 44}, "assignee": {"id": 597}, "organization": {"id": 183}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 479}, "assignee": {"id": 83}, "organization": {"id": 627}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 411}, "assignee": {"id": 55}, "organization": {"id": 168}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 456}, "assignee": {"id": 89}, "organization": {"id": 675}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 408}, "assignee": {"id": 3}, "organization": {"id": 122}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 495}, "assignee": {"id": 84}, "organization": {"id": 692}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 449}, "assignee": {"id": 72}, "organization": {"id": 136}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 401}, "assignee": {"id": 12}, "organization": {"id": 661}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 433}, "assignee": {"id": 72}, "organization": {"id": 101}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 420}, "assignee": {"id": 83}, "organization": {"id": 651}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 464}, "assignee": {"id": 18}, "organization": {"id": 102}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 416}, "assignee": {"id": 34}, "organization": {"id": 626}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 424}, "assignee": {"id": 90}, "organization": {"id": 197}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 458}, "assignee": {"id": 54}, "organization": {"id": 666}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 491}, "assignee": {"id": 53}, "organization": {"id": 150}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 486}, "assignee": {"id": 25}, "organization": {"id": 684}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 479}, "assignee": {"id": 93}, "organization": {"id": 168}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 453}, "assignee": {"id": 69}, "organization": {"id": 607}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 475}, "assignee": {"id": 15}, "organization": {"id": 122}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 463}, "assignee": {"id": 35}, "organization": {"id": 670}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 401}, "assignee": {"id": 93}, "organization": {"id": 192}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 446}, "assignee": {"id": 7}, "organization": {"id": 691}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 411}, "assignee": {"id": 54}, "organization": {"id": 166}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 486}, "assignee": {"id": 17}, "organization": {"id": 674}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 484}, "assignee": {"id": 62}, "organization": {"id": 165}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 480}, "assignee": {"id": 74}, "organization": {"id": 662}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 477}, "assignee": {"id": 52}, "organization": {"id": 129}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 419}, "assignee": {"id": 94}, "organization": {"id": 666}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 405}, "assignee": {"id": 11}, "organization": {"id": 160}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 496}, "assignee": {"id": 41}, "organization": {"id": 642}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 447}, "assignee": {"id": 91}, "organization": {"id": 177}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 464}, "assignee": {"id": 73}, "organization": {"id": 636}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 480}, "assignee": {"id": 78}, "organization": {"id": 105}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 491}, "assignee": {"id": 60}, "organization": {"id": 678}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 453}, "assignee": {"id": 74}, "organization": {"id": 169}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 413}, "assignee": {"id": 20}, "organization": {"id": 627}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 436}, "assignee": {"id": 36}, "organization": {"id": 198}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 479}, "assignee": {"id": 36}, "organization": {"id": 622}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 441}, "assignee": {"id": 7}, "organization": {"id": 101}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 438}, "assignee": {"id": 39}, "organization": {"id": 611}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 440}, "assignee": {"id": 66}, "organization": {"id": 196}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 414}, "assignee": {"id": 69}, "organization": {"id": 675}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 486}, "assignee": {"id": 56}, "organization": {"id": 183}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 486}, "assignee": {"id": 41}, "organization": {"id": 605}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 498}, "assignee": {"id": 53}, "organization": {"id": 151}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 489}, "assignee": {"id": 61}, "organization": {"id": 641}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 413}, "assignee": {"id": 61}, "organization": {"id": 197}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 406}, "assignee": {"id": 20}, "organization": {"id": 636}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 438}, "assignee": {"id": 34}, "organization": {"id": 168}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 401}, "assignee": {"id": 23}, "organization": {"id": 665}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 480}, "assignee": {"id": 61}, "organization": {"id": 140}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 436}, "assignee": {"id": 502}, "organization": {"id": 633}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 443}, "assignee": {"id": 530}, "organization": {"id": 101}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 403}, "assignee": {"id": 516}, "organization": {"id": 618}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 422}, "assignee": {"id": 528}, "organization": {"id": 161}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 446}, "assignee": {"id": 533}, "organization": {"id": 699}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 494}, "assignee": {"id": 564}, "organization": {"id": 171}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 457}, "assignee": {"id": 554}, "organization": {"id": 679}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 442}, "assignee": {"id": 508}, "organization": {"id": 107}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 472}, "assignee": {"id": 540}, "organization": {"id": 607}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 498}, "assignee": {"id": 557}, "organization": {"id": 150}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 401}, "assignee": {"id": 501}, "organization": {"id": 638}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 474}, "assignee": {"id": 566}, "organization": {"id": 140}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 436}, "assignee": {"id": 541}, "organization": {"id": 698}}} +} + +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": 182, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 409}, "assignee": {"id": 588}, "organization": {"id": 182}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 495}, "assignee": {"id": 561}, "organization": {"id": 645}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 457}, "assignee": {"id": 512}, "organization": {"id": 180}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 467}, "assignee": {"id": 596}, "organization": {"id": 602}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 421}, "assignee": {"id": 544}, "organization": {"id": 186}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 412}, "assignee": {"id": 502}, "organization": {"id": 689}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 422}, "assignee": {"id": 569}, "organization": {"id": 115}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 413}, "assignee": {"id": 559}, "organization": {"id": 672}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 416}, "assignee": {"id": 574}, "organization": {"id": 159}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 451}, "assignee": {"id": 508}, "organization": {"id": 667}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 483}, "assignee": {"id": 574}, "organization": {"id": 151}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 494}, "assignee": {"id": 525}, "organization": {"id": 612}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 469}, "assignee": {"id": 521}, "organization": {"id": 114}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 443}, "assignee": {"id": 593}, "organization": {"id": 617}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 451}, "assignee": {"id": 565}, "organization": {"id": 117}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 468}, "assignee": {"id": 524}, "organization": {"id": 686}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 486}, "assignee": {"id": 584}, "organization": {"id": 178}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 406}, "assignee": {"id": 574}, "organization": {"id": 684}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 446}, "assignee": {"id": 555}, "organization": {"id": 194}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 446}, "assignee": {"id": 515}, "organization": {"id": 652}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 472}, "assignee": {"id": 510}, "organization": {"id": 163}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 464}, "assignee": {"id": 536}, "organization": {"id": 632}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 425}, "assignee": {"id": 594}, "organization": {"id": 183}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 484}, "assignee": {"id": 500}, "organization": {"id": 687}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 437}, "assignee": {"id": 543}, "organization": {"id": 194}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 485}, "assignee": {"id": 504}, "organization": {"id": 628}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 446}, "assignee": {"id": 575}, "organization": {"id": 113}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 469}, "assignee": {"id": 508}, "organization": {"id": 614}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 406}, "assignee": {"id": 556}, "organization": {"id": 158}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 464}, "assignee": {"id": 565}, "organization": {"id": 629}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 473}, "assignee": {"id": 507}, "organization": {"id": 195}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 432}, "assignee": {"id": 573}, "organization": {"id": 601}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 447}, "assignee": {"id": 579}, "organization": {"id": 173}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 496}, "assignee": {"id": 502}, "organization": {"id": 613}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 450}, "assignee": {"id": 551}, "organization": {"id": 170}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 471}, "assignee": {"id": 515}, "organization": {"id": 644}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 454}, "assignee": {"id": 543}, "organization": {"id": 162}}} +} + + + +# projects_test.gen.rego.py +# # Copyright (C) 2021 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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 diff --git a/cvat/apps/iam/rules/restrictions.csv b/cvat/apps/iam/rules/restrictions.csv new file mode 100644 index 00000000..c542bfcf --- /dev/null +++ b/cvat/apps/iam/rules/restrictions.csv @@ -0,0 +1,3 @@ +Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership +view:user-agreements,N/A,N/A,N/A,,POST,/restrictions/user-agreements,N/A,N/A +view:terms-of-use,N/A,N/A,N/A,,GET,/restrictions/terms-of-use,N/A,N/A \ No newline at end of file diff --git a/cvat/apps/iam/rules/server.csv b/cvat/apps/iam/rules/server.csv new file mode 100644 index 00000000..7291fb6c --- /dev/null +++ b/cvat/apps/iam/rules/server.csv @@ -0,0 +1,5 @@ +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/server.rego b/cvat/apps/iam/rules/server.rego new file mode 100644 index 00000000..0b8238ca --- /dev/null +++ b/cvat/apps/iam/rules/server.rego @@ -0,0 +1,39 @@ +package server +import data.utils + +# input: { +# "scope": <"send:logs"|"send:exception"|"view"|"list:content"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# } +# } + +default allow = false +allow { + input.scope == utils.VIEW +} + +allow { + input.scope == utils.SEND_EXCEPTION +} + +allow { + input.scope == utils.SEND_LOGS +} + +allow { + input.scope == utils.LIST_CONTENT + utils.has_perm(utils.WORKER) +} diff --git a/cvat/apps/iam/rules/server_test.gen.rego b/cvat/apps/iam/rules/server_test.gen.rego new file mode 100644 index 00000000..558ac37f --- /dev/null +++ b/cvat/apps/iam/rules/server_test.gen.rego @@ -0,0 +1,556 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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.csv b/cvat/apps/iam/rules/tasks.csv new file mode 100644 index 00000000..32219e78 --- /dev/null +++ b/cvat/apps/iam/rules/tasks.csv @@ -0,0 +1,78 @@ +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 +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 \ No newline at end of file diff --git a/cvat/apps/iam/rules/tasks.rego b/cvat/apps/iam/rules/tasks.rego new file mode 100644 index 00000000..14c356f6 --- /dev/null +++ b/cvat/apps/iam/rules/tasks.rego @@ -0,0 +1,286 @@ +package tasks +import data.utils +import data.organizations + +# input: { +# "scope": <"create"|"create@project"|"view"|"list"|"update:desc"| +# "update:owner"|"update:assignee"|"update:project"|"delete"| +# "view:annotations"|"update:annotations"|"delete:annotations"| +# "export:dataset"|"view:data"|"upload:data"|"export:annotations"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "id": , +# "owner": { "id": }, +# "assignee": { "id": }, +# "organization": { "id": } or null, +# "project": { +# "id": , +# "owner": { "id": }, +# "assignee": { "id": }, +# "organization": { "id": } or null, +# } or null, +# "user": { +# "num_resources": +# } +# } +# } + +is_task_owner { + input.resource.owner.id == input.auth.user.id +} + +is_task_assignee { + input.resource.assignee.id == input.auth.user.id +} + +is_project_owner { + input.resource.project.owner.id == input.auth.user.id +} + +is_project_assignee { + input.resource.project.assignee.id == input.auth.user.id +} + +is_project_staff { + is_project_owner +} + +is_project_staff { + is_project_assignee +} + +is_task_staff { + is_project_staff +} + +is_task_staff { + is_task_owner +} + +is_task_staff { + is_task_assignee +} + +default allow = false + +allow { + utils.is_admin +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + utils.is_sandbox + utils.has_perm(utils.USER) + input.resource.user.num_resources < 10 +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.SUPERVISOR) + input.resource.user.num_resources < 10 +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + utils.is_sandbox + utils.has_perm(utils.BUSINESS) +} + +allow { + { utils.CREATE, utils.IMPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.BUSINESS) + organizations.has_perm(organizations.SUPERVISOR) +} + +allow { + input.scope == utils.CREATE_IN_PROJECT + utils.is_sandbox + utils.has_perm(utils.USER) + input.resource.user.num_resources < 10 + is_project_staff +} + +allow { + input.scope == utils.CREATE_IN_PROJECT + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.SUPERVISOR) + input.resource.user.num_resources < 10 +} + +allow { + input.scope == utils.CREATE_IN_PROJECT + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.WORKER) + is_project_staff + input.resource.user.num_resources < 10 +} + +allow { + input.scope == utils.CREATE_IN_PROJECT + utils.is_sandbox + utils.has_perm(utils.BUSINESS) + is_project_staff +} + +allow { + input.scope == utils.CREATE_IN_PROJECT + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.BUSINESS) + organizations.has_perm(organizations.SUPERVISOR) +} + +allow { + input.scope == utils.CREATE_IN_PROJECT + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.BUSINESS) + organizations.has_perm(organizations.WORKER) + is_project_staff +} + +allow { + input.scope == utils.LIST + utils.is_sandbox +} + +allow { + input.scope == utils.LIST + organizations.is_member +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_admin + utils.is_organization + qobject := [ {"organization": input.auth.organization.id}, + {"project__organization": input.auth.organization.id}, "|"] +} else = qobject { + utils.is_sandbox + user := input.auth.user + qobject := [ {"owner_id": user.id}, {"assignee_id": user.id}, "|", + {"project__owner_id": user.id}, "|", {"project__assignee_id": user.id}, "|"] +} else = qobject { + utils.is_organization + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) + qobject := [ {"organization": input.auth.organization.id}, + {"project__organization": input.auth.organization.id}, "|"] +} else = qobject { + organizations.has_perm(organizations.WORKER) + user := input.auth.user + qobject := [ {"owner_id": user.id}, {"assignee_id": user.id}, "|", + {"project__owner_id": user.id}, "|", {"project__assignee_id": user.id}, "|", + {"organization": input.auth.organization.id}, + {"project__organization": input.auth.organization.id}, "|", "&"] +} + +allow { + { utils.VIEW, utils.VIEW_ANNOTATIONS, utils.EXPORT_DATASET, + utils.VIEW_DATA, utils.EXPORT_ANNOTATIONS, utils.EXPORT_BACKUP }[input.scope] + utils.is_sandbox + is_task_staff +} + +allow { + { utils.VIEW, utils.VIEW_ANNOTATIONS, utils.EXPORT_DATASET, + utils.VIEW_DATA, utils.EXPORT_ANNOTATIONS, utils.EXPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.VIEW, utils.VIEW_ANNOTATIONS, utils.EXPORT_DATASET, + utils.VIEW_DATA, utils.EXPORT_ANNOTATIONS, utils.EXPORT_BACKUP }[input.scope] + input.auth.organization.id == input.resource.organization.id + organizations.has_perm(organizations.WORKER) + is_task_staff +} + +allow { + { utils.UPDATE_DESC, utils.UPDATE_ANNOTATIONS, utils.DELETE_ANNOTATIONS, + utils.UPLOAD_DATA, utils.IMPORT_ANNOTATIONS }[input.scope] + utils.is_sandbox + is_task_staff + utils.has_perm(utils.WORKER) +} + +allow { + { utils.UPDATE_DESC, utils.UPDATE_ANNOTATIONS, utils.DELETE_ANNOTATIONS, + utils.UPLOAD_DATA, utils.IMPORT_ANNOTATIONS }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.UPDATE_DESC, utils.UPDATE_ANNOTATIONS, utils.DELETE_ANNOTATIONS, + utils.UPLOAD_DATA, utils.IMPORT_ANNOTATIONS }[input.scope] + is_task_staff + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + organizations.has_perm(organizations.WORKER) +} + +allow { + { utils.UPDATE_OWNER, utils.UPDATE_ASSIGNEE, utils.UPDATE_PROJECT, + utils.DELETE }[input.scope] + utils.is_sandbox + is_project_staff + utils.has_perm(utils.WORKER) +} + +allow { + { utils.UPDATE_OWNER, utils.UPDATE_ASSIGNEE, utils.UPDATE_PROJECT, + utils.DELETE }[input.scope] + utils.is_sandbox + is_task_owner + utils.has_perm(utils.WORKER) +} + +allow { + { utils.UPDATE_OWNER, utils.UPDATE_ASSIGNEE, utils.UPDATE_PROJECT, + utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.USER) + organizations.has_perm(organizations.MAINTAINER) +} + +allow { + { utils.UPDATE_OWNER, utils.UPDATE_ASSIGNEE, utils.UPDATE_PROJECT, + utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + organizations.has_perm(organizations.WORKER) + is_task_owner +} + +allow { + { utils.UPDATE_OWNER, utils.UPDATE_ASSIGNEE, utils.UPDATE_PROJECT, + utils.DELETE }[input.scope] + input.auth.organization.id == input.resource.organization.id + utils.has_perm(utils.WORKER) + organizations.has_perm(organizations.WORKER) + is_project_staff +} + diff --git a/cvat/apps/iam/rules/tasks_test.gen.rego b/cvat/apps/iam/rules/tasks_test.gen.rego new file mode 100644 index 00000000..9ce0690c --- /dev/null +++ b/cvat/apps/iam/rules/tasks_test.gen.rego @@ -0,0 +1,18785 @@ +package tasks + +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": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 443}, "assignee": {"id": 512}, "organization": {"id": 652}, "project": {"owner": {"id": 97}, "assignee": {"id": 896}, "organization": {"id": 966}}}} +} + +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": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 443}, "assignee": {"id": 581}, "organization": {"id": 654}, "project": {"owner": {"id": 11}, "assignee": {"id": 840}, "organization": {"id": 996}}}} +} + +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": 5, "privilege": "user"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 419}, "assignee": {"id": 535}, "organization": {"id": 601}, "project": {"owner": {"id": 5}, "assignee": {"id": 884}, "organization": {"id": 974}}}} +} + +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": 11, "privilege": "worker"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 451}, "assignee": {"id": 581}, "organization": {"id": 605}, "project": {"owner": {"id": 11}, "assignee": {"id": 821}, "organization": {"id": 998}}}} +} + +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": 63, "privilege": "none"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 415}, "assignee": {"id": 596}, "organization": {"id": 634}, "project": {"owner": {"id": 63}, "assignee": {"id": 880}, "organization": {"id": 938}}}} +} + +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": 14, "privilege": "admin"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 444}, "assignee": {"id": 568}, "organization": {"id": 698}, "project": {"owner": {"id": 776}, "assignee": {"id": 14}, "organization": {"id": 913}}}} +} + +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": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 469}, "assignee": {"id": 523}, "organization": {"id": 628}, "project": {"owner": {"id": 753}, "assignee": {"id": 82}, "organization": {"id": 979}}}} +} + +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": 83, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 450}, "assignee": {"id": 583}, "organization": {"id": 681}, "project": {"owner": {"id": 711}, "assignee": {"id": 83}, "organization": {"id": 920}}}} +} + +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": 84, "privilege": "worker"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 441}, "assignee": {"id": 556}, "organization": {"id": 608}, "project": {"owner": {"id": 759}, "assignee": {"id": 84}, "organization": {"id": 965}}}} +} + +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": 20, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 454}, "assignee": {"id": 543}, "organization": {"id": 670}, "project": {"owner": {"id": 714}, "assignee": {"id": 20}, "organization": {"id": 933}}}} +} + +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": 65, "privilege": "admin"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 65}, "assignee": {"id": 535}, "organization": {"id": 634}, "project": {"owner": {"id": 790}, "assignee": {"id": 878}, "organization": {"id": 960}}}} +} + +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": 15, "privilege": "business"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 15}, "assignee": {"id": 574}, "organization": {"id": 617}, "project": {"owner": {"id": 786}, "assignee": {"id": 885}, "organization": {"id": 964}}}} +} + +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": 25, "privilege": "user"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 25}, "assignee": {"id": 584}, "organization": {"id": 654}, "project": {"owner": {"id": 748}, "assignee": {"id": 887}, "organization": {"id": 963}}}} +} + +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": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 41}, "assignee": {"id": 505}, "organization": {"id": 682}, "project": {"owner": {"id": 729}, "assignee": {"id": 879}, "organization": {"id": 931}}}} +} + +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": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 96}, "assignee": {"id": 586}, "organization": {"id": 633}, "project": {"owner": {"id": 779}, "assignee": {"id": 861}, "organization": {"id": 923}}}} +} + +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": 25, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 479}, "assignee": {"id": 25}, "organization": {"id": 662}, "project": {"owner": {"id": 779}, "assignee": {"id": 822}, "organization": {"id": 923}}}} +} + +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": 31, "privilege": "business"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 479}, "assignee": {"id": 31}, "organization": {"id": 624}, "project": {"owner": {"id": 770}, "assignee": {"id": 899}, "organization": {"id": 980}}}} +} + +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": 82, "privilege": "user"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 473}, "assignee": {"id": 82}, "organization": {"id": 685}, "project": {"owner": {"id": 758}, "assignee": {"id": 845}, "organization": {"id": 986}}}} +} + +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": 67, "privilege": "worker"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 408}, "assignee": {"id": 67}, "organization": {"id": 641}, "project": {"owner": {"id": 725}, "assignee": {"id": 847}, "organization": {"id": 944}}}} +} + +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": 23, "privilege": "none"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 471}, "assignee": {"id": 23}, "organization": {"id": 649}, "project": {"owner": {"id": 736}, "assignee": {"id": 806}, "organization": {"id": 992}}}} +} + +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": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 480}, "assignee": {"id": 597}, "organization": {"id": 667}, "project": {"owner": {"id": 799}, "assignee": {"id": 862}, "organization": {"id": 928}}}} +} + +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": 40, "privilege": "business"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 458}, "assignee": {"id": 588}, "organization": {"id": 651}, "project": {"owner": {"id": 719}, "assignee": {"id": 853}, "organization": {"id": 962}}}} +} + +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": 59, "privilege": "user"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 435}, "assignee": {"id": 533}, "organization": {"id": 608}, "project": {"owner": {"id": 784}, "assignee": {"id": 881}, "organization": {"id": 928}}}} +} + +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": 17, "privilege": "worker"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 473}, "assignee": {"id": 530}, "organization": {"id": 606}, "project": {"owner": {"id": 756}, "assignee": {"id": 825}, "organization": {"id": 956}}}} +} + +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": 73, "privilege": "none"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 482}, "assignee": {"id": 594}, "organization": {"id": 695}, "project": {"owner": {"id": 766}, "assignee": {"id": 890}, "organization": {"id": 966}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 415}, "assignee": {"id": 556}, "organization": {"id": 163}, "project": {"owner": {"id": 27}, "assignee": {"id": 861}, "organization": {"id": 969}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 409}, "assignee": {"id": 542}, "organization": {"id": 674}, "project": {"owner": {"id": 44}, "assignee": {"id": 818}, "organization": {"id": 992}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 495}, "assignee": {"id": 558}, "organization": {"id": 159}, "project": {"owner": {"id": 81}, "assignee": {"id": 804}, "organization": {"id": 962}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 455}, "assignee": {"id": 509}, "organization": {"id": 686}, "project": {"owner": {"id": 49}, "assignee": {"id": 847}, "organization": {"id": 908}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 496}, "assignee": {"id": 551}, "organization": {"id": 148}, "project": {"owner": {"id": 53}, "assignee": {"id": 860}, "organization": {"id": 986}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 482}, "assignee": {"id": 507}, "organization": {"id": 696}, "project": {"owner": {"id": 20}, "assignee": {"id": 890}, "organization": {"id": 957}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 479}, "assignee": {"id": 546}, "organization": {"id": 157}, "project": {"owner": {"id": 34}, "assignee": {"id": 867}, "organization": {"id": 943}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 452}, "assignee": {"id": 514}, "organization": {"id": 682}, "project": {"owner": {"id": 21}, "assignee": {"id": 893}, "organization": {"id": 994}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 421}, "assignee": {"id": 576}, "organization": {"id": 120}, "project": {"owner": {"id": 60}, "assignee": {"id": 835}, "organization": {"id": 989}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 466}, "assignee": {"id": 577}, "organization": {"id": 667}, "project": {"owner": {"id": 69}, "assignee": {"id": 897}, "organization": {"id": 950}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 481}, "assignee": {"id": 569}, "organization": {"id": 158}, "project": {"owner": {"id": 72}, "assignee": {"id": 898}, "organization": {"id": 928}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 481}, "assignee": {"id": 579}, "organization": {"id": 667}, "project": {"owner": {"id": 99}, "assignee": {"id": 858}, "organization": {"id": 993}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 491}, "assignee": {"id": 580}, "organization": {"id": 112}, "project": {"owner": {"id": 31}, "assignee": {"id": 836}, "organization": {"id": 974}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 436}, "assignee": {"id": 559}, "organization": {"id": 655}, "project": {"owner": {"id": 34}, "assignee": {"id": 866}, "organization": {"id": 946}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 491}, "assignee": {"id": 582}, "organization": {"id": 172}, "project": {"owner": {"id": 59}, "assignee": {"id": 800}, "organization": {"id": 916}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 417}, "assignee": {"id": 508}, "organization": {"id": 657}, "project": {"owner": {"id": 73}, "assignee": {"id": 870}, "organization": {"id": 987}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 426}, "assignee": {"id": 593}, "organization": {"id": 177}, "project": {"owner": {"id": 46}, "assignee": {"id": 876}, "organization": {"id": 959}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 474}, "assignee": {"id": 560}, "organization": {"id": 666}, "project": {"owner": {"id": 90}, "assignee": {"id": 822}, "organization": {"id": 994}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 425}, "assignee": {"id": 523}, "organization": {"id": 118}, "project": {"owner": {"id": 39}, "assignee": {"id": 850}, "organization": {"id": 918}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 465}, "assignee": {"id": 585}, "organization": {"id": 633}, "project": {"owner": {"id": 36}, "assignee": {"id": 884}, "organization": {"id": 935}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 459}, "assignee": {"id": 540}, "organization": {"id": 128}, "project": {"owner": {"id": 34}, "assignee": {"id": 839}, "organization": {"id": 920}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 401}, "assignee": {"id": 587}, "organization": {"id": 666}, "project": {"owner": {"id": 73}, "assignee": {"id": 824}, "organization": {"id": 986}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 432}, "assignee": {"id": 522}, "organization": {"id": 160}, "project": {"owner": {"id": 36}, "assignee": {"id": 866}, "organization": {"id": 992}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 492}, "assignee": {"id": 534}, "organization": {"id": 682}, "project": {"owner": {"id": 94}, "assignee": {"id": 860}, "organization": {"id": 998}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 406}, "assignee": {"id": 528}, "organization": {"id": 135}, "project": {"owner": {"id": 0}, "assignee": {"id": 862}, "organization": {"id": 980}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 458}, "assignee": {"id": 566}, "organization": {"id": 619}, "project": {"owner": {"id": 0}, "assignee": {"id": 898}, "organization": {"id": 958}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 408}, "assignee": {"id": 581}, "organization": {"id": 172}, "project": {"owner": {"id": 28}, "assignee": {"id": 809}, "organization": {"id": 919}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 468}, "assignee": {"id": 566}, "organization": {"id": 653}, "project": {"owner": {"id": 50}, "assignee": {"id": 895}, "organization": {"id": 991}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 426}, "assignee": {"id": 523}, "organization": {"id": 133}, "project": {"owner": {"id": 72}, "assignee": {"id": 878}, "organization": {"id": 925}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 450}, "assignee": {"id": 576}, "organization": {"id": 620}, "project": {"owner": {"id": 19}, "assignee": {"id": 848}, "organization": {"id": 944}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 409}, "assignee": {"id": 517}, "organization": {"id": 182}, "project": {"owner": {"id": 45}, "assignee": {"id": 821}, "organization": {"id": 905}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 420}, "assignee": {"id": 519}, "organization": {"id": 650}, "project": {"owner": {"id": 41}, "assignee": {"id": 820}, "organization": {"id": 975}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 420}, "assignee": {"id": 554}, "organization": {"id": 197}, "project": {"owner": {"id": 9}, "assignee": {"id": 853}, "organization": {"id": 915}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 418}, "assignee": {"id": 593}, "organization": {"id": 670}, "project": {"owner": {"id": 84}, "assignee": {"id": 842}, "organization": {"id": 969}}}} +} + +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": 51, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 454}, "assignee": {"id": 576}, "organization": {"id": 123}, "project": {"owner": {"id": 51}, "assignee": {"id": 895}, "organization": {"id": 956}}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 454}, "assignee": {"id": 575}, "organization": {"id": 633}, "project": {"owner": {"id": 8}, "assignee": {"id": 825}, "organization": {"id": 918}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 475}, "assignee": {"id": 522}, "organization": {"id": 100}, "project": {"owner": {"id": 90}, "assignee": {"id": 846}, "organization": {"id": 984}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 465}, "assignee": {"id": 589}, "organization": {"id": 659}, "project": {"owner": {"id": 15}, "assignee": {"id": 810}, "organization": {"id": 936}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 434}, "assignee": {"id": 591}, "organization": {"id": 116}, "project": {"owner": {"id": 99}, "assignee": {"id": 857}, "organization": {"id": 922}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 450}, "assignee": {"id": 510}, "organization": {"id": 624}, "project": {"owner": {"id": 98}, "assignee": {"id": 895}, "organization": {"id": 979}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 402}, "assignee": {"id": 597}, "organization": {"id": 145}, "project": {"owner": {"id": 63}, "assignee": {"id": 808}, "organization": {"id": 984}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 453}, "assignee": {"id": 596}, "organization": {"id": 655}, "project": {"owner": {"id": 68}, "assignee": {"id": 809}, "organization": {"id": 918}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 472}, "assignee": {"id": 564}, "organization": {"id": 102}, "project": {"owner": {"id": 19}, "assignee": {"id": 804}, "organization": {"id": 985}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 486}, "assignee": {"id": 519}, "organization": {"id": 674}, "project": {"owner": {"id": 37}, "assignee": {"id": 869}, "organization": {"id": 913}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 439}, "assignee": {"id": 553}, "organization": {"id": 132}, "project": {"owner": {"id": 91}, "assignee": {"id": 870}, "organization": {"id": 953}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 494}, "assignee": {"id": 595}, "organization": {"id": 645}, "project": {"owner": {"id": 60}, "assignee": {"id": 828}, "organization": {"id": 934}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 422}, "assignee": {"id": 564}, "organization": {"id": 108}, "project": {"owner": {"id": 2}, "assignee": {"id": 862}, "organization": {"id": 929}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 491}, "assignee": {"id": 582}, "organization": {"id": 696}, "project": {"owner": {"id": 90}, "assignee": {"id": 826}, "organization": {"id": 990}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 418}, "assignee": {"id": 508}, "organization": {"id": 149}, "project": {"owner": {"id": 37}, "assignee": {"id": 870}, "organization": {"id": 968}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 418}, "assignee": {"id": 560}, "organization": {"id": 682}, "project": {"owner": {"id": 60}, "assignee": {"id": 822}, "organization": {"id": 935}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 411}, "assignee": {"id": 514}, "organization": {"id": 166}, "project": {"owner": {"id": 793}, "assignee": {"id": 97}, "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": 53, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 455}, "assignee": {"id": 549}, "organization": {"id": 666}, "project": {"owner": {"id": 737}, "assignee": {"id": 53}, "organization": {"id": 943}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 499}, "assignee": {"id": 585}, "organization": {"id": 155}, "project": {"owner": {"id": 700}, "assignee": {"id": 6}, "organization": {"id": 941}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 484}, "assignee": {"id": 579}, "organization": {"id": 680}, "project": {"owner": {"id": 788}, "assignee": {"id": 5}, "organization": {"id": 999}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 484}, "assignee": {"id": 544}, "organization": {"id": 133}, "project": {"owner": {"id": 728}, "assignee": {"id": 97}, "organization": {"id": 984}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 453}, "assignee": {"id": 512}, "organization": {"id": 664}, "project": {"owner": {"id": 748}, "assignee": {"id": 63}, "organization": {"id": 962}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 468}, "assignee": {"id": 538}, "organization": {"id": 157}, "project": {"owner": {"id": 719}, "assignee": {"id": 12}, "organization": {"id": 912}}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 436}, "assignee": {"id": 535}, "organization": {"id": 675}, "project": {"owner": {"id": 790}, "assignee": {"id": 67}, "organization": {"id": 909}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 439}, "assignee": {"id": 589}, "organization": {"id": 126}, "project": {"owner": {"id": 769}, "assignee": {"id": 5}, "organization": {"id": 991}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 414}, "assignee": {"id": 517}, "organization": {"id": 666}, "project": {"owner": {"id": 711}, "assignee": {"id": 41}, "organization": {"id": 992}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 479}, "assignee": {"id": 551}, "organization": {"id": 107}, "project": {"owner": {"id": 753}, "assignee": {"id": 11}, "organization": {"id": 940}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 413}, "assignee": {"id": 578}, "organization": {"id": 617}, "project": {"owner": {"id": 702}, "assignee": {"id": 18}, "organization": {"id": 924}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 447}, "assignee": {"id": 502}, "organization": {"id": 104}, "project": {"owner": {"id": 736}, "assignee": {"id": 7}, "organization": {"id": 967}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 494}, "assignee": {"id": 594}, "organization": {"id": 679}, "project": {"owner": {"id": 721}, "assignee": {"id": 57}, "organization": {"id": 927}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 421}, "assignee": {"id": 552}, "organization": {"id": 188}, "project": {"owner": {"id": 703}, "assignee": {"id": 63}, "organization": {"id": 985}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 424}, "assignee": {"id": 522}, "organization": {"id": 607}, "project": {"owner": {"id": 731}, "assignee": {"id": 14}, "organization": {"id": 924}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 446}, "assignee": {"id": 502}, "organization": {"id": 182}, "project": {"owner": {"id": 707}, "assignee": {"id": 84}, "organization": {"id": 980}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 458}, "assignee": {"id": 537}, "organization": {"id": 618}, "project": {"owner": {"id": 794}, "assignee": {"id": 59}, "organization": {"id": 904}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 483}, "assignee": {"id": 589}, "organization": {"id": 103}, "project": {"owner": {"id": 740}, "assignee": {"id": 78}, "organization": {"id": 976}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 430}, "assignee": {"id": 559}, "organization": {"id": 654}, "project": {"owner": {"id": 737}, "assignee": {"id": 60}, "organization": {"id": 914}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 445}, "assignee": {"id": 535}, "organization": {"id": 179}, "project": {"owner": {"id": 777}, "assignee": {"id": 73}, "organization": {"id": 960}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 444}, "assignee": {"id": 504}, "organization": {"id": 676}, "project": {"owner": {"id": 725}, "assignee": {"id": 9}, "organization": {"id": 910}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 451}, "assignee": {"id": 575}, "organization": {"id": 199}, "project": {"owner": {"id": 728}, "assignee": {"id": 34}, "organization": {"id": 989}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 451}, "assignee": {"id": 546}, "organization": {"id": 605}, "project": {"owner": {"id": 723}, "assignee": {"id": 38}, "organization": {"id": 985}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 462}, "assignee": {"id": 559}, "organization": {"id": 103}, "project": {"owner": {"id": 708}, "assignee": {"id": 69}, "organization": {"id": 932}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 414}, "assignee": {"id": 598}, "organization": {"id": 616}, "project": {"owner": {"id": 748}, "assignee": {"id": 65}, "organization": {"id": 991}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 447}, "assignee": {"id": 557}, "organization": {"id": 113}, "project": {"owner": {"id": 742}, "assignee": {"id": 19}, "organization": {"id": 996}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 499}, "assignee": {"id": 554}, "organization": {"id": 680}, "project": {"owner": {"id": 707}, "assignee": {"id": 96}, "organization": {"id": 968}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 463}, "assignee": {"id": 540}, "organization": {"id": 168}, "project": {"owner": {"id": 770}, "assignee": {"id": 65}, "organization": {"id": 909}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 465}, "assignee": {"id": 551}, "organization": {"id": 624}, "project": {"owner": {"id": 736}, "assignee": {"id": 94}, "organization": {"id": 993}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 477}, "assignee": {"id": 567}, "organization": {"id": 194}, "project": {"owner": {"id": 733}, "assignee": {"id": 78}, "organization": {"id": 916}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 480}, "assignee": {"id": 597}, "organization": {"id": 691}, "project": {"owner": {"id": 745}, "assignee": {"id": 37}, "organization": {"id": 942}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 476}, "assignee": {"id": 519}, "organization": {"id": 137}, "project": {"owner": {"id": 723}, "assignee": {"id": 35}, "organization": {"id": 919}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 458}, "assignee": {"id": 512}, "organization": {"id": 686}, "project": {"owner": {"id": 790}, "assignee": {"id": 44}, "organization": {"id": 927}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 407}, "assignee": {"id": 524}, "organization": {"id": 189}, "project": {"owner": {"id": 756}, "assignee": {"id": 65}, "organization": {"id": 911}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 491}, "assignee": {"id": 555}, "organization": {"id": 628}, "project": {"owner": {"id": 742}, "assignee": {"id": 64}, "organization": {"id": 962}}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 444}, "assignee": {"id": 535}, "organization": {"id": 111}, "project": {"owner": {"id": 756}, "assignee": {"id": 8}, "organization": {"id": 931}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 442}, "assignee": {"id": 535}, "organization": {"id": 657}, "project": {"owner": {"id": 767}, "assignee": {"id": 38}, "organization": {"id": 950}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 432}, "assignee": {"id": 589}, "organization": {"id": 138}, "project": {"owner": {"id": 792}, "assignee": {"id": 29}, "organization": {"id": 938}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 486}, "assignee": {"id": 509}, "organization": {"id": 639}, "project": {"owner": {"id": 743}, "assignee": {"id": 20}, "organization": {"id": 944}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 476}, "assignee": {"id": 502}, "organization": {"id": 164}, "project": {"owner": {"id": 723}, "assignee": {"id": 79}, "organization": {"id": 971}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 412}, "assignee": {"id": 583}, "organization": {"id": 625}, "project": {"owner": {"id": 706}, "assignee": {"id": 64}, "organization": {"id": 951}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 444}, "assignee": {"id": 592}, "organization": {"id": 141}, "project": {"owner": {"id": 709}, "assignee": {"id": 49}, "organization": {"id": 924}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 446}, "assignee": {"id": 581}, "organization": {"id": 634}, "project": {"owner": {"id": 728}, "assignee": {"id": 90}, "organization": {"id": 951}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 419}, "assignee": {"id": 530}, "organization": {"id": 171}, "project": {"owner": {"id": 751}, "assignee": {"id": 95}, "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": 88, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 446}, "assignee": {"id": 551}, "organization": {"id": 616}, "project": {"owner": {"id": 740}, "assignee": {"id": 88}, "organization": {"id": 907}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 413}, "assignee": {"id": 563}, "organization": {"id": 167}, "project": {"owner": {"id": 794}, "assignee": {"id": 11}, "organization": {"id": 982}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 454}, "assignee": {"id": 508}, "organization": {"id": 641}, "project": {"owner": {"id": 723}, "assignee": {"id": 81}, "organization": {"id": 938}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 498}, "assignee": {"id": 530}, "organization": {"id": 192}, "project": {"owner": {"id": 742}, "assignee": {"id": 50}, "organization": {"id": 980}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 462}, "assignee": {"id": 564}, "organization": {"id": 682}, "project": {"owner": {"id": 716}, "assignee": {"id": 16}, "organization": {"id": 980}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 65}, "assignee": {"id": 555}, "organization": {"id": 165}, "project": {"owner": {"id": 727}, "assignee": {"id": 835}, "organization": {"id": 960}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 85}, "assignee": {"id": 529}, "organization": {"id": 626}, "project": {"owner": {"id": 741}, "assignee": {"id": 809}, "organization": {"id": 919}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 12}, "assignee": {"id": 583}, "organization": {"id": 150}, "project": {"owner": {"id": 766}, "assignee": {"id": 878}, "organization": {"id": 960}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 56}, "assignee": {"id": 599}, "organization": {"id": 600}, "project": {"owner": {"id": 703}, "assignee": {"id": 815}, "organization": {"id": 954}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 78}, "assignee": {"id": 522}, "organization": {"id": 107}, "project": {"owner": {"id": 710}, "assignee": {"id": 894}, "organization": {"id": 953}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 93}, "assignee": {"id": 514}, "organization": {"id": 669}, "project": {"owner": {"id": 719}, "assignee": {"id": 848}, "organization": {"id": 949}}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 82}, "assignee": {"id": 541}, "organization": {"id": 191}, "project": {"owner": {"id": 704}, "assignee": {"id": 872}, "organization": {"id": 936}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 45}, "assignee": {"id": 516}, "organization": {"id": 623}, "project": {"owner": {"id": 789}, "assignee": {"id": 873}, "organization": {"id": 974}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 63}, "assignee": {"id": 550}, "organization": {"id": 161}, "project": {"owner": {"id": 733}, "assignee": {"id": 894}, "organization": {"id": 999}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 96}, "assignee": {"id": 524}, "organization": {"id": 689}, "project": {"owner": {"id": 798}, "assignee": {"id": 852}, "organization": {"id": 936}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 94}, "assignee": {"id": 553}, "organization": {"id": 192}, "project": {"owner": {"id": 743}, "assignee": {"id": 847}, "organization": {"id": 916}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 68}, "assignee": {"id": 538}, "organization": {"id": 626}, "project": {"owner": {"id": 766}, "assignee": {"id": 836}, "organization": {"id": 938}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 28}, "assignee": {"id": 578}, "organization": {"id": 109}, "project": {"owner": {"id": 743}, "assignee": {"id": 861}, "organization": {"id": 937}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 51}, "assignee": {"id": 579}, "organization": {"id": 639}, "project": {"owner": {"id": 753}, "assignee": {"id": 838}, "organization": {"id": 970}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 3}, "assignee": {"id": 525}, "organization": {"id": 172}, "project": {"owner": {"id": 713}, "assignee": {"id": 872}, "organization": {"id": 944}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 81}, "assignee": {"id": 507}, "organization": {"id": 672}, "project": {"owner": {"id": 753}, "assignee": {"id": 846}, "organization": {"id": 907}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 94}, "assignee": {"id": 593}, "organization": {"id": 152}, "project": {"owner": {"id": 772}, "assignee": {"id": 868}, "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": 57, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 57}, "assignee": {"id": 515}, "organization": {"id": 679}, "project": {"owner": {"id": 790}, "assignee": {"id": 836}, "organization": {"id": 900}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 25}, "assignee": {"id": 548}, "organization": {"id": 170}, "project": {"owner": {"id": 741}, "assignee": {"id": 821}, "organization": {"id": 964}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 98}, "assignee": {"id": 565}, "organization": {"id": 690}, "project": {"owner": {"id": 719}, "assignee": {"id": 823}, "organization": {"id": 940}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 36}, "assignee": {"id": 562}, "organization": {"id": 187}, "project": {"owner": {"id": 719}, "assignee": {"id": 821}, "organization": {"id": 904}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 83}, "assignee": {"id": 584}, "organization": {"id": 641}, "project": {"owner": {"id": 730}, "assignee": {"id": 814}, "organization": {"id": 981}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 44}, "assignee": {"id": 562}, "organization": {"id": 169}, "project": {"owner": {"id": 787}, "assignee": {"id": 858}, "organization": {"id": 949}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 42}, "assignee": {"id": 590}, "organization": {"id": 673}, "project": {"owner": {"id": 704}, "assignee": {"id": 855}, "organization": {"id": 940}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 5}, "assignee": {"id": 534}, "organization": {"id": 188}, "project": {"owner": {"id": 786}, "assignee": {"id": 822}, "organization": {"id": 935}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 50}, "assignee": {"id": 567}, "organization": {"id": 666}, "project": {"owner": {"id": 711}, "assignee": {"id": 818}, "organization": {"id": 913}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 60}, "assignee": {"id": 551}, "organization": {"id": 157}, "project": {"owner": {"id": 778}, "assignee": {"id": 827}, "organization": {"id": 985}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 94}, "assignee": {"id": 543}, "organization": {"id": 654}, "project": {"owner": {"id": 787}, "assignee": {"id": 885}, "organization": {"id": 986}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 32}, "assignee": {"id": 513}, "organization": {"id": 151}, "project": {"owner": {"id": 743}, "assignee": {"id": 857}, "organization": {"id": 950}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 16}, "assignee": {"id": 553}, "organization": {"id": 683}, "project": {"owner": {"id": 720}, "assignee": {"id": 830}, "organization": {"id": 972}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 2}, "assignee": {"id": 593}, "organization": {"id": 118}, "project": {"owner": {"id": 701}, "assignee": {"id": 868}, "organization": {"id": 929}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 30}, "assignee": {"id": 512}, "organization": {"id": 672}, "project": {"owner": {"id": 799}, "assignee": {"id": 819}, "organization": {"id": 911}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 59}, "assignee": {"id": 586}, "organization": {"id": 131}, "project": {"owner": {"id": 729}, "assignee": {"id": 855}, "organization": {"id": 963}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 66}, "assignee": {"id": 539}, "organization": {"id": 625}, "project": {"owner": {"id": 738}, "assignee": {"id": 840}, "organization": {"id": 960}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 13}, "assignee": {"id": 538}, "organization": {"id": 159}, "project": {"owner": {"id": 701}, "assignee": {"id": 868}, "organization": {"id": 992}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 1}, "assignee": {"id": 571}, "organization": {"id": 635}, "project": {"owner": {"id": 762}, "assignee": {"id": 891}, "organization": {"id": 975}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 47}, "assignee": {"id": 547}, "organization": {"id": 140}, "project": {"owner": {"id": 739}, "assignee": {"id": 837}, "organization": {"id": 927}}}} +} + +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": 182, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 62}, "assignee": {"id": 592}, "organization": {"id": 602}, "project": {"owner": {"id": 707}, "assignee": {"id": 895}, "organization": {"id": 955}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 9}, "assignee": {"id": 561}, "organization": {"id": 157}, "project": {"owner": {"id": 792}, "assignee": {"id": 838}, "organization": {"id": 902}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 50}, "assignee": {"id": 589}, "organization": {"id": 631}, "project": {"owner": {"id": 766}, "assignee": {"id": 821}, "organization": {"id": 948}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 74}, "assignee": {"id": 572}, "organization": {"id": 111}, "project": {"owner": {"id": 732}, "assignee": {"id": 886}, "organization": {"id": 938}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 80}, "assignee": {"id": 576}, "organization": {"id": 635}, "project": {"owner": {"id": 763}, "assignee": {"id": 846}, "organization": {"id": 932}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 56}, "assignee": {"id": 599}, "organization": {"id": 158}, "project": {"owner": {"id": 758}, "assignee": {"id": 827}, "organization": {"id": 918}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 11}, "assignee": {"id": 511}, "organization": {"id": 676}, "project": {"owner": {"id": 764}, "assignee": {"id": 834}, "organization": {"id": 947}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 32}, "assignee": {"id": 558}, "organization": {"id": 109}, "project": {"owner": {"id": 745}, "assignee": {"id": 812}, "organization": {"id": 945}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 28}, "assignee": {"id": 585}, "organization": {"id": 623}, "project": {"owner": {"id": 706}, "assignee": {"id": 884}, "organization": {"id": 903}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 71}, "assignee": {"id": 524}, "organization": {"id": 158}, "project": {"owner": {"id": 700}, "assignee": {"id": 818}, "organization": {"id": 953}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 96}, "assignee": {"id": 513}, "organization": {"id": 608}, "project": {"owner": {"id": 713}, "assignee": {"id": 854}, "organization": {"id": 927}}}} +} + +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": 197, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 21}, "assignee": {"id": 527}, "organization": {"id": 197}, "project": {"owner": {"id": 766}, "assignee": {"id": 849}, "organization": {"id": 940}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 4}, "assignee": {"id": 527}, "organization": {"id": 621}, "project": {"owner": {"id": 769}, "assignee": {"id": 878}, "organization": {"id": 933}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 476}, "assignee": {"id": 58}, "organization": {"id": 175}, "project": {"owner": {"id": 718}, "assignee": {"id": 897}, "organization": {"id": 989}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 426}, "assignee": {"id": 19}, "organization": {"id": 643}, "project": {"owner": {"id": 777}, "assignee": {"id": 822}, "organization": {"id": 944}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 463}, "assignee": {"id": 71}, "organization": {"id": 147}, "project": {"owner": {"id": 718}, "assignee": {"id": 842}, "organization": {"id": 936}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 425}, "assignee": {"id": 33}, "organization": {"id": 601}, "project": {"owner": {"id": 791}, "assignee": {"id": 818}, "organization": {"id": 998}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 420}, "assignee": {"id": 35}, "organization": {"id": 198}, "project": {"owner": {"id": 701}, "assignee": {"id": 825}, "organization": {"id": 984}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 457}, "assignee": {"id": 51}, "organization": {"id": 624}, "project": {"owner": {"id": 744}, "assignee": {"id": 813}, "organization": {"id": 934}}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 461}, "assignee": {"id": 67}, "organization": {"id": 178}, "project": {"owner": {"id": 786}, "assignee": {"id": 825}, "organization": {"id": 942}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 461}, "assignee": {"id": 37}, "organization": {"id": 628}, "project": {"owner": {"id": 737}, "assignee": {"id": 857}, "organization": {"id": 996}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 487}, "assignee": {"id": 52}, "organization": {"id": 171}, "project": {"owner": {"id": 788}, "assignee": {"id": 815}, "organization": {"id": 950}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 441}, "assignee": {"id": 49}, "organization": {"id": 695}, "project": {"owner": {"id": 723}, "assignee": {"id": 878}, "organization": {"id": 996}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 405}, "assignee": {"id": 29}, "organization": {"id": 133}, "project": {"owner": {"id": 702}, "assignee": {"id": 878}, "organization": {"id": 912}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 448}, "assignee": {"id": 27}, "organization": {"id": 664}, "project": {"owner": {"id": 799}, "assignee": {"id": 829}, "organization": {"id": 971}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 410}, "assignee": {"id": 49}, "organization": {"id": 123}, "project": {"owner": {"id": 771}, "assignee": {"id": 881}, "organization": {"id": 980}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 449}, "assignee": {"id": 94}, "organization": {"id": 622}, "project": {"owner": {"id": 700}, "assignee": {"id": 861}, "organization": {"id": 928}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 457}, "assignee": {"id": 29}, "organization": {"id": 165}, "project": {"owner": {"id": 772}, "assignee": {"id": 801}, "organization": {"id": 924}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 469}, "assignee": {"id": 76}, "organization": {"id": 625}, "project": {"owner": {"id": 743}, "assignee": {"id": 875}, "organization": {"id": 988}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 452}, "assignee": {"id": 78}, "organization": {"id": 152}, "project": {"owner": {"id": 761}, "assignee": {"id": 863}, "organization": {"id": 921}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 490}, "assignee": {"id": 53}, "organization": {"id": 654}, "project": {"owner": {"id": 735}, "assignee": {"id": 857}, "organization": {"id": 922}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 481}, "assignee": {"id": 79}, "organization": {"id": 116}, "project": {"owner": {"id": 711}, "assignee": {"id": 810}, "organization": {"id": 906}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 478}, "assignee": {"id": 35}, "organization": {"id": 648}, "project": {"owner": {"id": 783}, "assignee": {"id": 847}, "organization": {"id": 904}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 496}, "assignee": {"id": 84}, "organization": {"id": 174}, "project": {"owner": {"id": 728}, "assignee": {"id": 860}, "organization": {"id": 934}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 434}, "assignee": {"id": 18}, "organization": {"id": 679}, "project": {"owner": {"id": 788}, "assignee": {"id": 839}, "organization": {"id": 925}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 481}, "assignee": {"id": 21}, "organization": {"id": 169}, "project": {"owner": {"id": 779}, "assignee": {"id": 857}, "organization": {"id": 914}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 418}, "assignee": {"id": 51}, "organization": {"id": 679}, "project": {"owner": {"id": 738}, "assignee": {"id": 873}, "organization": {"id": 927}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 449}, "assignee": {"id": 52}, "organization": {"id": 140}, "project": {"owner": {"id": 738}, "assignee": {"id": 874}, "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": 56, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 433}, "assignee": {"id": 56}, "organization": {"id": 601}, "project": {"owner": {"id": 754}, "assignee": {"id": 856}, "organization": {"id": 905}}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 425}, "assignee": {"id": 90}, "organization": {"id": 145}, "project": {"owner": {"id": 755}, "assignee": {"id": 836}, "organization": {"id": 997}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 490}, "assignee": {"id": 89}, "organization": {"id": 609}, "project": {"owner": {"id": 710}, "assignee": {"id": 878}, "organization": {"id": 912}}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 430}, "assignee": {"id": 90}, "organization": {"id": 105}, "project": {"owner": {"id": 709}, "assignee": {"id": 818}, "organization": {"id": 989}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 439}, "assignee": {"id": 3}, "organization": {"id": 624}, "project": {"owner": {"id": 711}, "assignee": {"id": 842}, "organization": {"id": 990}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 434}, "assignee": {"id": 37}, "organization": {"id": 190}, "project": {"owner": {"id": 709}, "assignee": {"id": 889}, "organization": {"id": 965}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 410}, "assignee": {"id": 40}, "organization": {"id": 680}, "project": {"owner": {"id": 797}, "assignee": {"id": 801}, "organization": {"id": 938}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 496}, "assignee": {"id": 6}, "organization": {"id": 121}, "project": {"owner": {"id": 794}, "assignee": {"id": 804}, "organization": {"id": 905}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 433}, "assignee": {"id": 62}, "organization": {"id": 693}, "project": {"owner": {"id": 713}, "assignee": {"id": 892}, "organization": {"id": 961}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 432}, "assignee": {"id": 29}, "organization": {"id": 166}, "project": {"owner": {"id": 708}, "assignee": {"id": 829}, "organization": {"id": 998}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 426}, "assignee": {"id": 65}, "organization": {"id": 679}, "project": {"owner": {"id": 749}, "assignee": {"id": 806}, "organization": {"id": 905}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 494}, "assignee": {"id": 82}, "organization": {"id": 159}, "project": {"owner": {"id": 729}, "assignee": {"id": 844}, "organization": {"id": 932}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 469}, "assignee": {"id": 79}, "organization": {"id": 639}, "project": {"owner": {"id": 798}, "assignee": {"id": 864}, "organization": {"id": 930}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 438}, "assignee": {"id": 10}, "organization": {"id": 116}, "project": {"owner": {"id": 706}, "assignee": {"id": 885}, "organization": {"id": 941}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 461}, "assignee": {"id": 93}, "organization": {"id": 634}, "project": {"owner": {"id": 765}, "assignee": {"id": 887}, "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": 70, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 495}, "assignee": {"id": 70}, "organization": {"id": 103}, "project": {"owner": {"id": 751}, "assignee": {"id": 816}, "organization": {"id": 982}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 417}, "assignee": {"id": 90}, "organization": {"id": 672}, "project": {"owner": {"id": 751}, "assignee": {"id": 853}, "organization": {"id": 987}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 447}, "assignee": {"id": 59}, "organization": {"id": 169}, "project": {"owner": {"id": 727}, "assignee": {"id": 856}, "organization": {"id": 960}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 466}, "assignee": {"id": 42}, "organization": {"id": 652}, "project": {"owner": {"id": 770}, "assignee": {"id": 861}, "organization": {"id": 992}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 445}, "assignee": {"id": 59}, "organization": {"id": 122}, "project": {"owner": {"id": 737}, "assignee": {"id": 856}, "organization": {"id": 902}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 412}, "assignee": {"id": 51}, "organization": {"id": 603}, "project": {"owner": {"id": 744}, "assignee": {"id": 865}, "organization": {"id": 926}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 462}, "assignee": {"id": 19}, "organization": {"id": 195}, "project": {"owner": {"id": 778}, "assignee": {"id": 816}, "organization": {"id": 912}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 405}, "assignee": {"id": 8}, "organization": {"id": 663}, "project": {"owner": {"id": 714}, "assignee": {"id": 844}, "organization": {"id": 936}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 402}, "assignee": {"id": 61}, "organization": {"id": 166}, "project": {"owner": {"id": 754}, "assignee": {"id": 893}, "organization": {"id": 958}}}} +} + +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": 179, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 490}, "assignee": {"id": 93}, "organization": {"id": 660}, "project": {"owner": {"id": 740}, "assignee": {"id": 888}, "organization": {"id": 902}}}} +} + +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": 175, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 465}, "assignee": {"id": 540}, "organization": {"id": 175}, "project": {"owner": {"id": 741}, "assignee": {"id": 887}, "organization": {"id": 901}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 401}, "assignee": {"id": 579}, "organization": {"id": 671}, "project": {"owner": {"id": 758}, "assignee": {"id": 814}, "organization": {"id": 902}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 423}, "assignee": {"id": 571}, "organization": {"id": 101}, "project": {"owner": {"id": 709}, "assignee": {"id": 860}, "organization": {"id": 927}}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 490}, "assignee": {"id": 502}, "organization": {"id": 638}, "project": {"owner": {"id": 731}, "assignee": {"id": 864}, "organization": {"id": 912}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 466}, "assignee": {"id": 597}, "organization": {"id": 195}, "project": {"owner": {"id": 753}, "assignee": {"id": 870}, "organization": {"id": 958}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 474}, "assignee": {"id": 597}, "organization": {"id": 667}, "project": {"owner": {"id": 797}, "assignee": {"id": 864}, "organization": {"id": 985}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 424}, "assignee": {"id": 549}, "organization": {"id": 186}, "project": {"owner": {"id": 749}, "assignee": {"id": 856}, "organization": {"id": 984}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 436}, "assignee": {"id": 586}, "organization": {"id": 610}, "project": {"owner": {"id": 761}, "assignee": {"id": 804}, "organization": {"id": 902}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 422}, "assignee": {"id": 589}, "organization": {"id": 154}, "project": {"owner": {"id": 794}, "assignee": {"id": 874}, "organization": {"id": 994}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 470}, "assignee": {"id": 523}, "organization": {"id": 610}, "project": {"owner": {"id": 740}, "assignee": {"id": 865}, "organization": {"id": 960}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 414}, "assignee": {"id": 510}, "organization": {"id": 163}, "project": {"owner": {"id": 735}, "assignee": {"id": 883}, "organization": {"id": 921}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 443}, "assignee": {"id": 544}, "organization": {"id": 622}, "project": {"owner": {"id": 776}, "assignee": {"id": 854}, "organization": {"id": 958}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 411}, "assignee": {"id": 578}, "organization": {"id": 141}, "project": {"owner": {"id": 763}, "assignee": {"id": 821}, "organization": {"id": 918}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 423}, "assignee": {"id": 573}, "organization": {"id": 626}, "project": {"owner": {"id": 747}, "assignee": {"id": 898}, "organization": {"id": 997}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 419}, "assignee": {"id": 533}, "organization": {"id": 136}, "project": {"owner": {"id": 781}, "assignee": {"id": 893}, "organization": {"id": 990}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 453}, "assignee": {"id": 595}, "organization": {"id": 693}, "project": {"owner": {"id": 701}, "assignee": {"id": 875}, "organization": {"id": 955}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 423}, "assignee": {"id": 536}, "organization": {"id": 134}, "project": {"owner": {"id": 712}, "assignee": {"id": 855}, "organization": {"id": 946}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 468}, "assignee": {"id": 542}, "organization": {"id": 644}, "project": {"owner": {"id": 778}, "assignee": {"id": 847}, "organization": {"id": 982}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 462}, "assignee": {"id": 516}, "organization": {"id": 116}, "project": {"owner": {"id": 780}, "assignee": {"id": 803}, "organization": {"id": 917}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 444}, "assignee": {"id": 555}, "organization": {"id": 640}, "project": {"owner": {"id": 758}, "assignee": {"id": 828}, "organization": {"id": 968}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 455}, "assignee": {"id": 505}, "organization": {"id": 199}, "project": {"owner": {"id": 772}, "assignee": {"id": 849}, "organization": {"id": 967}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 460}, "assignee": {"id": 573}, "organization": {"id": 666}, "project": {"owner": {"id": 795}, "assignee": {"id": 854}, "organization": {"id": 961}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 422}, "assignee": {"id": 559}, "organization": {"id": 156}, "project": {"owner": {"id": 788}, "assignee": {"id": 875}, "organization": {"id": 966}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 429}, "assignee": {"id": 508}, "organization": {"id": 689}, "project": {"owner": {"id": 758}, "assignee": {"id": 850}, "organization": {"id": 950}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 413}, "assignee": {"id": 508}, "organization": {"id": 150}, "project": {"owner": {"id": 770}, "assignee": {"id": 827}, "organization": {"id": 972}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 456}, "assignee": {"id": 554}, "organization": {"id": 644}, "project": {"owner": {"id": 759}, "assignee": {"id": 887}, "organization": {"id": 983}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 497}, "assignee": {"id": 589}, "organization": {"id": 171}, "project": {"owner": {"id": 716}, "assignee": {"id": 846}, "organization": {"id": 919}}}} +} + +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": 196, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 481}, "assignee": {"id": 563}, "organization": {"id": 652}, "project": {"owner": {"id": 772}, "assignee": {"id": 846}, "organization": {"id": 979}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 453}, "assignee": {"id": 564}, "organization": {"id": 169}, "project": {"owner": {"id": 717}, "assignee": {"id": 880}, "organization": {"id": 962}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 498}, "assignee": {"id": 557}, "organization": {"id": 657}, "project": {"owner": {"id": 757}, "assignee": {"id": 817}, "organization": {"id": 989}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 485}, "assignee": {"id": 569}, "organization": {"id": 161}, "project": {"owner": {"id": 705}, "assignee": {"id": 846}, "organization": {"id": 976}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 448}, "assignee": {"id": 571}, "organization": {"id": 690}, "project": {"owner": {"id": 745}, "assignee": {"id": 861}, "organization": {"id": 979}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 438}, "assignee": {"id": 580}, "organization": {"id": 158}, "project": {"owner": {"id": 790}, "assignee": {"id": 804}, "organization": {"id": 986}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 406}, "assignee": {"id": 593}, "organization": {"id": 603}, "project": {"owner": {"id": 717}, "assignee": {"id": 868}, "organization": {"id": 900}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 450}, "assignee": {"id": 528}, "organization": {"id": 127}, "project": {"owner": {"id": 712}, "assignee": {"id": 864}, "organization": {"id": 928}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 492}, "assignee": {"id": 577}, "organization": {"id": 699}, "project": {"owner": {"id": 721}, "assignee": {"id": 855}, "organization": {"id": 915}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 471}, "assignee": {"id": 524}, "organization": {"id": 185}, "project": {"owner": {"id": 749}, "assignee": {"id": 886}, "organization": {"id": 943}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 483}, "assignee": {"id": 572}, "organization": {"id": 615}, "project": {"owner": {"id": 762}, "assignee": {"id": 895}, "organization": {"id": 975}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 431}, "assignee": {"id": 518}, "organization": {"id": 192}, "project": {"owner": {"id": 788}, "assignee": {"id": 848}, "organization": {"id": 962}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 401}, "assignee": {"id": 574}, "organization": {"id": 623}, "project": {"owner": {"id": 774}, "assignee": {"id": 803}, "organization": {"id": 987}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 435}, "assignee": {"id": 513}, "organization": {"id": 132}, "project": {"owner": {"id": 706}, "assignee": {"id": 820}, "organization": {"id": 986}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 453}, "assignee": {"id": 579}, "organization": {"id": 618}, "project": {"owner": {"id": 702}, "assignee": {"id": 805}, "organization": {"id": 988}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 417}, "assignee": {"id": 561}, "organization": {"id": 108}, "project": {"owner": {"id": 769}, "assignee": {"id": 864}, "organization": {"id": 951}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 411}, "assignee": {"id": 540}, "organization": {"id": 654}, "project": {"owner": {"id": 733}, "assignee": {"id": 847}, "organization": {"id": 953}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 451}, "assignee": {"id": 530}, "organization": {"id": 163}, "project": {"owner": {"id": 786}, "assignee": {"id": 830}, "organization": {"id": 995}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 460}, "assignee": {"id": 558}, "organization": {"id": 639}, "project": {"owner": {"id": 747}, "assignee": {"id": 865}, "organization": {"id": 902}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 474}, "assignee": {"id": 536}, "organization": {"id": 160}, "project": {"owner": {"id": 783}, "assignee": {"id": 835}, "organization": {"id": 957}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 414}, "assignee": {"id": 590}, "organization": {"id": 679}, "project": {"owner": {"id": 713}, "assignee": {"id": 807}, "organization": {"id": 913}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 440}, "assignee": {"id": 582}, "organization": {"id": 135}, "project": {"owner": {"id": 755}, "assignee": {"id": 862}, "organization": {"id": 967}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 431}, "assignee": {"id": 529}, "organization": {"id": 684}, "project": {"owner": {"id": 722}, "assignee": {"id": 842}, "organization": {"id": 985}}}} +} + +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": 26, "privilege": "admin"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 428}, "assignee": {"id": 564}, "organization": {"id": 642}, "project": {"owner": {"id": 26}, "assignee": {"id": 891}, "organization": {"id": 904}}}} +} + +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": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 429}, "assignee": {"id": 593}, "organization": {"id": 606}, "project": {"owner": {"id": 68}, "assignee": {"id": 829}, "organization": {"id": 988}}}} +} + +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": 36, "privilege": "user"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 420}, "assignee": {"id": 587}, "organization": {"id": 604}, "project": {"owner": {"id": 36}, "assignee": {"id": 887}, "organization": {"id": 991}}}} +} + +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": 17, "privilege": "worker"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 474}, "assignee": {"id": 521}, "organization": {"id": 670}, "project": {"owner": {"id": 17}, "assignee": {"id": 862}, "organization": {"id": 989}}}} +} + +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": 73, "privilege": "none"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 429}, "assignee": {"id": 521}, "organization": {"id": 692}, "project": {"owner": {"id": 73}, "assignee": {"id": 860}, "organization": {"id": 971}}}} +} + +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": 57, "privilege": "admin"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 460}, "assignee": {"id": 567}, "organization": {"id": 604}, "project": {"owner": {"id": 702}, "assignee": {"id": 57}, "organization": {"id": 975}}}} +} + +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": 46, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 450}, "assignee": {"id": 579}, "organization": {"id": 604}, "project": {"owner": {"id": 779}, "assignee": {"id": 46}, "organization": {"id": 924}}}} +} + +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": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 433}, "assignee": {"id": 544}, "organization": {"id": 617}, "project": {"owner": {"id": 716}, "assignee": {"id": 17}, "organization": {"id": 979}}}} +} + +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": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 421}, "assignee": {"id": 586}, "organization": {"id": 651}, "project": {"owner": {"id": 714}, "assignee": {"id": 42}, "organization": {"id": 926}}}} +} + +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": 83, "privilege": "none"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 457}, "assignee": {"id": 558}, "organization": {"id": 683}, "project": {"owner": {"id": 729}, "assignee": {"id": 83}, "organization": {"id": 998}}}} +} + +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": 67, "privilege": "admin"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 67}, "assignee": {"id": 516}, "organization": {"id": 695}, "project": {"owner": {"id": 784}, "assignee": {"id": 846}, "organization": {"id": 963}}}} +} + +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": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 55}, "assignee": {"id": 561}, "organization": {"id": 617}, "project": {"owner": {"id": 718}, "assignee": {"id": 856}, "organization": {"id": 982}}}} +} + +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": 72, "privilege": "user"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 72}, "assignee": {"id": 577}, "organization": {"id": 624}, "project": {"owner": {"id": 708}, "assignee": {"id": 875}, "organization": {"id": 905}}}} +} + +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": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 73}, "assignee": {"id": 512}, "organization": {"id": 650}, "project": {"owner": {"id": 728}, "assignee": {"id": 875}, "organization": {"id": 976}}}} +} + +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": 81, "privilege": "none"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 81}, "assignee": {"id": 531}, "organization": {"id": 610}, "project": {"owner": {"id": 782}, "assignee": {"id": 846}, "organization": {"id": 911}}}} +} + +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": 12, "privilege": "admin"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 479}, "assignee": {"id": 12}, "organization": {"id": 642}, "project": {"owner": {"id": 731}, "assignee": {"id": 835}, "organization": {"id": 988}}}} +} + +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": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 448}, "assignee": {"id": 11}, "organization": {"id": 625}, "project": {"owner": {"id": 793}, "assignee": {"id": 809}, "organization": {"id": 945}}}} +} + +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": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 431}, "assignee": {"id": 2}, "organization": {"id": 679}, "project": {"owner": {"id": 788}, "assignee": {"id": 887}, "organization": {"id": 921}}}} +} + +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": 35, "privilege": "worker"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 425}, "assignee": {"id": 35}, "organization": {"id": 630}, "project": {"owner": {"id": 732}, "assignee": {"id": 865}, "organization": {"id": 937}}}} +} + +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": 50, "privilege": "none"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 411}, "assignee": {"id": 50}, "organization": {"id": 649}, "project": {"owner": {"id": 766}, "assignee": {"id": 809}, "organization": {"id": 966}}}} +} + +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": 28, "privilege": "admin"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 431}, "assignee": {"id": 540}, "organization": {"id": 643}, "project": {"owner": {"id": 759}, "assignee": {"id": 879}, "organization": {"id": 979}}}} +} + +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": 36, "privilege": "business"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 402}, "assignee": {"id": 594}, "organization": {"id": 611}, "project": {"owner": {"id": 757}, "assignee": {"id": 872}, "organization": {"id": 912}}}} +} + +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": 92, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 403}, "assignee": {"id": 567}, "organization": {"id": 650}, "project": {"owner": {"id": 709}, "assignee": {"id": 804}, "organization": {"id": 915}}}} +} + +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": 55, "privilege": "worker"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 403}, "assignee": {"id": 506}, "organization": {"id": 600}, "project": {"owner": {"id": 711}, "assignee": {"id": 866}, "organization": {"id": 962}}}} +} + +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": 63, "privilege": "none"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 452}, "assignee": {"id": 597}, "organization": {"id": 609}, "project": {"owner": {"id": 726}, "assignee": {"id": 886}, "organization": {"id": 927}}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 462}, "assignee": {"id": 543}, "organization": {"id": 141}, "project": {"owner": {"id": 67}, "assignee": {"id": 819}, "organization": {"id": 976}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 486}, "assignee": {"id": 556}, "organization": {"id": 652}, "project": {"owner": {"id": 75}, "assignee": {"id": 890}, "organization": {"id": 953}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 405}, "assignee": {"id": 552}, "organization": {"id": 148}, "project": {"owner": {"id": 40}, "assignee": {"id": 852}, "organization": {"id": 936}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 449}, "assignee": {"id": 508}, "organization": {"id": 696}, "project": {"owner": {"id": 31}, "assignee": {"id": 892}, "organization": {"id": 948}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 454}, "assignee": {"id": 554}, "organization": {"id": 192}, "project": {"owner": {"id": 2}, "assignee": {"id": 818}, "organization": {"id": 950}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 479}, "assignee": {"id": 559}, "organization": {"id": 672}, "project": {"owner": {"id": 46}, "assignee": {"id": 896}, "organization": {"id": 930}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 404}, "assignee": {"id": 576}, "organization": {"id": 184}, "project": {"owner": {"id": 46}, "assignee": {"id": 888}, "organization": {"id": 978}}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 417}, "assignee": {"id": 516}, "organization": {"id": 689}, "project": {"owner": {"id": 28}, "assignee": {"id": 898}, "organization": {"id": 974}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 405}, "assignee": {"id": 554}, "organization": {"id": 134}, "project": {"owner": {"id": 92}, "assignee": {"id": 863}, "organization": {"id": 956}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 474}, "assignee": {"id": 552}, "organization": {"id": 661}, "project": {"owner": {"id": 8}, "assignee": {"id": 818}, "organization": {"id": 973}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 461}, "assignee": {"id": 510}, "organization": {"id": 105}, "project": {"owner": {"id": 10}, "assignee": {"id": 808}, "organization": {"id": 924}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 435}, "assignee": {"id": 548}, "organization": {"id": 696}, "project": {"owner": {"id": 78}, "assignee": {"id": 824}, "organization": {"id": 945}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 445}, "assignee": {"id": 594}, "organization": {"id": 113}, "project": {"owner": {"id": 4}, "assignee": {"id": 888}, "organization": {"id": 924}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 454}, "assignee": {"id": 528}, "organization": {"id": 641}, "project": {"owner": {"id": 22}, "assignee": {"id": 857}, "organization": {"id": 995}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 467}, "assignee": {"id": 531}, "organization": {"id": 151}, "project": {"owner": {"id": 82}, "assignee": {"id": 826}, "organization": {"id": 988}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 423}, "assignee": {"id": 527}, "organization": {"id": 631}, "project": {"owner": {"id": 54}, "assignee": {"id": 826}, "organization": {"id": 933}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 418}, "assignee": {"id": 574}, "organization": {"id": 183}, "project": {"owner": {"id": 13}, "assignee": {"id": 883}, "organization": {"id": 986}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 454}, "assignee": {"id": 537}, "organization": {"id": 673}, "project": {"owner": {"id": 44}, "assignee": {"id": 820}, "organization": {"id": 922}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 471}, "assignee": {"id": 557}, "organization": {"id": 196}, "project": {"owner": {"id": 98}, "assignee": {"id": 800}, "organization": {"id": 941}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 433}, "assignee": {"id": 547}, "organization": {"id": 639}, "project": {"owner": {"id": 9}, "assignee": {"id": 897}, "organization": {"id": 907}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 462}, "assignee": {"id": 573}, "organization": {"id": 122}, "project": {"owner": {"id": 94}, "assignee": {"id": 821}, "organization": {"id": 991}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 478}, "assignee": {"id": 593}, "organization": {"id": 669}, "project": {"owner": {"id": 12}, "assignee": {"id": 864}, "organization": {"id": 960}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 497}, "assignee": {"id": 527}, "organization": {"id": 170}, "project": {"owner": {"id": 85}, "assignee": {"id": 872}, "organization": {"id": 990}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 439}, "assignee": {"id": 572}, "organization": {"id": 660}, "project": {"owner": {"id": 79}, "assignee": {"id": 818}, "organization": {"id": 918}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 422}, "assignee": {"id": 583}, "organization": {"id": 105}, "project": {"owner": {"id": 9}, "assignee": {"id": 882}, "organization": {"id": 935}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 408}, "assignee": {"id": 564}, "organization": {"id": 698}, "project": {"owner": {"id": 20}, "assignee": {"id": 871}, "organization": {"id": 916}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 400}, "assignee": {"id": 552}, "organization": {"id": 176}, "project": {"owner": {"id": 13}, "assignee": {"id": 830}, "organization": {"id": 964}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 443}, "assignee": {"id": 518}, "organization": {"id": 629}, "project": {"owner": {"id": 23}, "assignee": {"id": 868}, "organization": {"id": 998}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 418}, "assignee": {"id": 533}, "organization": {"id": 190}, "project": {"owner": {"id": 94}, "assignee": {"id": 866}, "organization": {"id": 906}}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 436}, "assignee": {"id": 553}, "organization": {"id": 679}, "project": {"owner": {"id": 40}, "assignee": {"id": 887}, "organization": {"id": 967}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 416}, "assignee": {"id": 557}, "organization": {"id": 141}, "project": {"owner": {"id": 56}, "assignee": {"id": 868}, "organization": {"id": 989}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 412}, "assignee": {"id": 582}, "organization": {"id": 628}, "project": {"owner": {"id": 56}, "assignee": {"id": 817}, "organization": {"id": 961}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 402}, "assignee": {"id": 572}, "organization": {"id": 102}, "project": {"owner": {"id": 10}, "assignee": {"id": 816}, "organization": {"id": 903}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 445}, "assignee": {"id": 553}, "organization": {"id": 621}, "project": {"owner": {"id": 87}, "assignee": {"id": 820}, "organization": {"id": 951}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 451}, "assignee": {"id": 585}, "organization": {"id": 127}, "project": {"owner": {"id": 86}, "assignee": {"id": 846}, "organization": {"id": 912}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 499}, "assignee": {"id": 571}, "organization": {"id": 692}, "project": {"owner": {"id": 81}, "assignee": {"id": 844}, "organization": {"id": 982}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 490}, "assignee": {"id": 545}, "organization": {"id": 175}, "project": {"owner": {"id": 49}, "assignee": {"id": 887}, "organization": {"id": 960}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 480}, "assignee": {"id": 522}, "organization": {"id": 648}, "project": {"owner": {"id": 88}, "assignee": {"id": 885}, "organization": {"id": 958}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 416}, "assignee": {"id": 506}, "organization": {"id": 117}, "project": {"owner": {"id": 16}, "assignee": {"id": 833}, "organization": {"id": 952}}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 417}, "assignee": {"id": 551}, "organization": {"id": 666}, "project": {"owner": {"id": 76}, "assignee": {"id": 806}, "organization": {"id": 956}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 474}, "assignee": {"id": 564}, "organization": {"id": 191}, "project": {"owner": {"id": 24}, "assignee": {"id": 864}, "organization": {"id": 974}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 464}, "assignee": {"id": 560}, "organization": {"id": 644}, "project": {"owner": {"id": 34}, "assignee": {"id": 882}, "organization": {"id": 953}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 428}, "assignee": {"id": 545}, "organization": {"id": 173}, "project": {"owner": {"id": 37}, "assignee": {"id": 819}, "organization": {"id": 956}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 482}, "assignee": {"id": 511}, "organization": {"id": 632}, "project": {"owner": {"id": 12}, "assignee": {"id": 871}, "organization": {"id": 988}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 481}, "assignee": {"id": 571}, "organization": {"id": 111}, "project": {"owner": {"id": 46}, "assignee": {"id": 839}, "organization": {"id": 951}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 407}, "assignee": {"id": 528}, "organization": {"id": 690}, "project": {"owner": {"id": 96}, "assignee": {"id": 878}, "organization": {"id": 904}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 406}, "assignee": {"id": 506}, "organization": {"id": 148}, "project": {"owner": {"id": 20}, "assignee": {"id": 828}, "organization": {"id": 901}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 437}, "assignee": {"id": 506}, "organization": {"id": 687}, "project": {"owner": {"id": 47}, "assignee": {"id": 858}, "organization": {"id": 972}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 486}, "assignee": {"id": 553}, "organization": {"id": 192}, "project": {"owner": {"id": 76}, "assignee": {"id": 887}, "organization": {"id": 925}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 497}, "assignee": {"id": 592}, "organization": {"id": 645}, "project": {"owner": {"id": 65}, "assignee": {"id": 899}, "organization": {"id": 914}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 433}, "assignee": {"id": 540}, "organization": {"id": 168}, "project": {"owner": {"id": 755}, "assignee": {"id": 40}, "organization": {"id": 947}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 467}, "assignee": {"id": 511}, "organization": {"id": 629}, "project": {"owner": {"id": 799}, "assignee": {"id": 39}, "organization": {"id": 932}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 410}, "assignee": {"id": 553}, "organization": {"id": 158}, "project": {"owner": {"id": 738}, "assignee": {"id": 55}, "organization": {"id": 942}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 435}, "assignee": {"id": 537}, "organization": {"id": 624}, "project": {"owner": {"id": 738}, "assignee": {"id": 92}, "organization": {"id": 957}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 455}, "assignee": {"id": 556}, "organization": {"id": 150}, "project": {"owner": {"id": 729}, "assignee": {"id": 31}, "organization": {"id": 963}}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 460}, "assignee": {"id": 506}, "organization": {"id": 609}, "project": {"owner": {"id": 700}, "assignee": {"id": 76}, "organization": {"id": 981}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 491}, "assignee": {"id": 543}, "organization": {"id": 172}, "project": {"owner": {"id": 734}, "assignee": {"id": 10}, "organization": {"id": 937}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 491}, "assignee": {"id": 531}, "organization": {"id": 665}, "project": {"owner": {"id": 764}, "assignee": {"id": 57}, "organization": {"id": 910}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 437}, "assignee": {"id": 532}, "organization": {"id": 122}, "project": {"owner": {"id": 781}, "assignee": {"id": 33}, "organization": {"id": 938}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 494}, "assignee": {"id": 571}, "organization": {"id": 607}, "project": {"owner": {"id": 787}, "assignee": {"id": 33}, "organization": {"id": 900}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 482}, "assignee": {"id": 580}, "organization": {"id": 135}, "project": {"owner": {"id": 796}, "assignee": {"id": 26}, "organization": {"id": 901}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 460}, "assignee": {"id": 599}, "organization": {"id": 680}, "project": {"owner": {"id": 777}, "assignee": {"id": 60}, "organization": {"id": 948}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 472}, "assignee": {"id": 504}, "organization": {"id": 116}, "project": {"owner": {"id": 734}, "assignee": {"id": 18}, "organization": {"id": 911}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 488}, "assignee": {"id": 520}, "organization": {"id": 605}, "project": {"owner": {"id": 716}, "assignee": {"id": 12}, "organization": {"id": 922}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 464}, "assignee": {"id": 594}, "organization": {"id": 147}, "project": {"owner": {"id": 774}, "assignee": {"id": 99}, "organization": {"id": 938}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 408}, "assignee": {"id": 509}, "organization": {"id": 695}, "project": {"owner": {"id": 764}, "assignee": {"id": 37}, "organization": {"id": 907}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 416}, "assignee": {"id": 545}, "organization": {"id": 124}, "project": {"owner": {"id": 792}, "assignee": {"id": 97}, "organization": {"id": 985}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 463}, "assignee": {"id": 501}, "organization": {"id": 633}, "project": {"owner": {"id": 720}, "assignee": {"id": 78}, "organization": {"id": 941}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 413}, "assignee": {"id": 575}, "organization": {"id": 191}, "project": {"owner": {"id": 737}, "assignee": {"id": 10}, "organization": {"id": 909}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 430}, "assignee": {"id": 561}, "organization": {"id": 660}, "project": {"owner": {"id": 775}, "assignee": {"id": 21}, "organization": {"id": 931}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 415}, "assignee": {"id": 528}, "organization": {"id": 176}, "project": {"owner": {"id": 764}, "assignee": {"id": 50}, "organization": {"id": 906}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 470}, "assignee": {"id": 557}, "organization": {"id": 674}, "project": {"owner": {"id": 700}, "assignee": {"id": 39}, "organization": {"id": 966}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 457}, "assignee": {"id": 583}, "organization": {"id": 106}, "project": {"owner": {"id": 731}, "assignee": {"id": 34}, "organization": {"id": 928}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 413}, "assignee": {"id": 592}, "organization": {"id": 675}, "project": {"owner": {"id": 791}, "assignee": {"id": 69}, "organization": {"id": 969}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 483}, "assignee": {"id": 526}, "organization": {"id": 186}, "project": {"owner": {"id": 747}, "assignee": {"id": 49}, "organization": {"id": 965}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 400}, "assignee": {"id": 574}, "organization": {"id": 693}, "project": {"owner": {"id": 761}, "assignee": {"id": 86}, "organization": {"id": 989}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 447}, "assignee": {"id": 566}, "organization": {"id": 165}, "project": {"owner": {"id": 782}, "assignee": {"id": 68}, "organization": {"id": 923}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 474}, "assignee": {"id": 574}, "organization": {"id": 654}, "project": {"owner": {"id": 757}, "assignee": {"id": 31}, "organization": {"id": 906}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 450}, "assignee": {"id": 570}, "organization": {"id": 115}, "project": {"owner": {"id": 720}, "assignee": {"id": 42}, "organization": {"id": 965}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 455}, "assignee": {"id": 514}, "organization": {"id": 638}, "project": {"owner": {"id": 796}, "assignee": {"id": 64}, "organization": {"id": 941}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 448}, "assignee": {"id": 519}, "organization": {"id": 155}, "project": {"owner": {"id": 737}, "assignee": {"id": 33}, "organization": {"id": 971}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 438}, "assignee": {"id": 584}, "organization": {"id": 647}, "project": {"owner": {"id": 754}, "assignee": {"id": 86}, "organization": {"id": 997}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 485}, "assignee": {"id": 568}, "organization": {"id": 150}, "project": {"owner": {"id": 716}, "assignee": {"id": 32}, "organization": {"id": 934}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 476}, "assignee": {"id": 549}, "organization": {"id": 611}, "project": {"owner": {"id": 752}, "assignee": {"id": 86}, "organization": {"id": 926}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 410}, "assignee": {"id": 531}, "organization": {"id": 169}, "project": {"owner": {"id": 759}, "assignee": {"id": 22}, "organization": {"id": 922}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 468}, "assignee": {"id": 517}, "organization": {"id": 685}, "project": {"owner": {"id": 793}, "assignee": {"id": 97}, "organization": {"id": 905}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 487}, "assignee": {"id": 565}, "organization": {"id": 191}, "project": {"owner": {"id": 746}, "assignee": {"id": 77}, "organization": {"id": 953}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 401}, "assignee": {"id": 563}, "organization": {"id": 665}, "project": {"owner": {"id": 733}, "assignee": {"id": 80}, "organization": {"id": 913}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 487}, "assignee": {"id": 583}, "organization": {"id": 153}, "project": {"owner": {"id": 782}, "assignee": {"id": 4}, "organization": {"id": 959}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 405}, "assignee": {"id": 593}, "organization": {"id": 690}, "project": {"owner": {"id": 708}, "assignee": {"id": 33}, "organization": {"id": 931}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 440}, "assignee": {"id": 593}, "organization": {"id": 106}, "project": {"owner": {"id": 747}, "assignee": {"id": 62}, "organization": {"id": 940}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 496}, "assignee": {"id": 574}, "organization": {"id": 642}, "project": {"owner": {"id": 795}, "assignee": {"id": 54}, "organization": {"id": 958}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 484}, "assignee": {"id": 513}, "organization": {"id": 109}, "project": {"owner": {"id": 767}, "assignee": {"id": 76}, "organization": {"id": 997}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 415}, "assignee": {"id": 577}, "organization": {"id": 621}, "project": {"owner": {"id": 724}, "assignee": {"id": 20}, "organization": {"id": 932}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 462}, "assignee": {"id": 502}, "organization": {"id": 181}, "project": {"owner": {"id": 737}, "assignee": {"id": 10}, "organization": {"id": 921}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 445}, "assignee": {"id": 543}, "organization": {"id": 663}, "project": {"owner": {"id": 790}, "assignee": {"id": 42}, "organization": {"id": 971}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 458}, "assignee": {"id": 503}, "organization": {"id": 108}, "project": {"owner": {"id": 724}, "assignee": {"id": 45}, "organization": {"id": 920}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 445}, "assignee": {"id": 552}, "organization": {"id": 634}, "project": {"owner": {"id": 768}, "assignee": {"id": 79}, "organization": {"id": 902}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 442}, "assignee": {"id": 548}, "organization": {"id": 177}, "project": {"owner": {"id": 776}, "assignee": {"id": 9}, "organization": {"id": 943}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 444}, "assignee": {"id": 521}, "organization": {"id": 638}, "project": {"owner": {"id": 734}, "assignee": {"id": 31}, "organization": {"id": 970}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 37}, "assignee": {"id": 504}, "organization": {"id": 196}, "project": {"owner": {"id": 733}, "assignee": {"id": 851}, "organization": {"id": 988}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 53}, "assignee": {"id": 506}, "organization": {"id": 637}, "project": {"owner": {"id": 701}, "assignee": {"id": 868}, "organization": {"id": 934}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 55}, "assignee": {"id": 595}, "organization": {"id": 102}, "project": {"owner": {"id": 779}, "assignee": {"id": 808}, "organization": {"id": 989}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 11}, "assignee": {"id": 568}, "organization": {"id": 655}, "project": {"owner": {"id": 743}, "assignee": {"id": 873}, "organization": {"id": 932}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 58}, "assignee": {"id": 543}, "organization": {"id": 155}, "project": {"owner": {"id": 740}, "assignee": {"id": 829}, "organization": {"id": 932}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 94}, "assignee": {"id": 567}, "organization": {"id": 620}, "project": {"owner": {"id": 775}, "assignee": {"id": 864}, "organization": {"id": 982}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 20}, "assignee": {"id": 511}, "organization": {"id": 134}, "project": {"owner": {"id": 722}, "assignee": {"id": 801}, "organization": {"id": 969}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 98}, "assignee": {"id": 594}, "organization": {"id": 671}, "project": {"owner": {"id": 723}, "assignee": {"id": 855}, "organization": {"id": 921}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 49}, "assignee": {"id": 594}, "organization": {"id": 166}, "project": {"owner": {"id": 799}, "assignee": {"id": 886}, "organization": {"id": 983}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 61}, "assignee": {"id": 565}, "organization": {"id": 685}, "project": {"owner": {"id": 735}, "assignee": {"id": 870}, "organization": {"id": 954}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 49}, "assignee": {"id": 595}, "organization": {"id": 195}, "project": {"owner": {"id": 747}, "assignee": {"id": 806}, "organization": {"id": 934}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 10}, "assignee": {"id": 589}, "organization": {"id": 649}, "project": {"owner": {"id": 702}, "assignee": {"id": 894}, "organization": {"id": 902}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 34}, "assignee": {"id": 521}, "organization": {"id": 161}, "project": {"owner": {"id": 792}, "assignee": {"id": 821}, "organization": {"id": 924}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 36}, "assignee": {"id": 568}, "organization": {"id": 687}, "project": {"owner": {"id": 703}, "assignee": {"id": 831}, "organization": {"id": 932}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 83}, "assignee": {"id": 568}, "organization": {"id": 185}, "project": {"owner": {"id": 713}, "assignee": {"id": 852}, "organization": {"id": 973}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 95}, "assignee": {"id": 582}, "organization": {"id": 666}, "project": {"owner": {"id": 723}, "assignee": {"id": 880}, "organization": {"id": 923}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 37}, "assignee": {"id": 547}, "organization": {"id": 119}, "project": {"owner": {"id": 797}, "assignee": {"id": 818}, "organization": {"id": 916}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 69}, "assignee": {"id": 593}, "organization": {"id": 633}, "project": {"owner": {"id": 766}, "assignee": {"id": 800}, "organization": {"id": 953}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 70}, "assignee": {"id": 519}, "organization": {"id": 151}, "project": {"owner": {"id": 735}, "assignee": {"id": 833}, "organization": {"id": 951}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 36}, "assignee": {"id": 567}, "organization": {"id": 644}, "project": {"owner": {"id": 796}, "assignee": {"id": 864}, "organization": {"id": 954}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 52}, "assignee": {"id": 589}, "organization": {"id": 147}, "project": {"owner": {"id": 718}, "assignee": {"id": 849}, "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": 97, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 97}, "assignee": {"id": 533}, "organization": {"id": 629}, "project": {"owner": {"id": 773}, "assignee": {"id": 861}, "organization": {"id": 913}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 20}, "assignee": {"id": 539}, "organization": {"id": 132}, "project": {"owner": {"id": 776}, "assignee": {"id": 895}, "organization": {"id": 931}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 46}, "assignee": {"id": 599}, "organization": {"id": 632}, "project": {"owner": {"id": 753}, "assignee": {"id": 830}, "organization": {"id": 916}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 58}, "assignee": {"id": 596}, "organization": {"id": 129}, "project": {"owner": {"id": 731}, "assignee": {"id": 824}, "organization": {"id": 907}}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 53}, "assignee": {"id": 586}, "organization": {"id": 621}, "project": {"owner": {"id": 776}, "assignee": {"id": 896}, "organization": {"id": 908}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 41}, "assignee": {"id": 501}, "organization": {"id": 121}, "project": {"owner": {"id": 798}, "assignee": {"id": 837}, "organization": {"id": 970}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 18}, "assignee": {"id": 508}, "organization": {"id": 636}, "project": {"owner": {"id": 713}, "assignee": {"id": 874}, "organization": {"id": 946}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 84}, "assignee": {"id": 535}, "organization": {"id": 103}, "project": {"owner": {"id": 765}, "assignee": {"id": 804}, "organization": {"id": 963}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 12}, "assignee": {"id": 571}, "organization": {"id": 667}, "project": {"owner": {"id": 731}, "assignee": {"id": 802}, "organization": {"id": 929}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 96}, "assignee": {"id": 562}, "organization": {"id": 182}, "project": {"owner": {"id": 738}, "assignee": {"id": 861}, "organization": {"id": 957}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 64}, "assignee": {"id": 562}, "organization": {"id": 687}, "project": {"owner": {"id": 790}, "assignee": {"id": 882}, "organization": {"id": 948}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 48}, "assignee": {"id": 506}, "organization": {"id": 161}, "project": {"owner": {"id": 790}, "assignee": {"id": 831}, "organization": {"id": 941}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 47}, "assignee": {"id": 503}, "organization": {"id": 604}, "project": {"owner": {"id": 713}, "assignee": {"id": 871}, "organization": {"id": 981}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 46}, "assignee": {"id": 518}, "organization": {"id": 157}, "project": {"owner": {"id": 744}, "assignee": {"id": 810}, "organization": {"id": 913}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 83}, "assignee": {"id": 594}, "organization": {"id": 664}, "project": {"owner": {"id": 792}, "assignee": {"id": 805}, "organization": {"id": 988}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 46}, "assignee": {"id": 572}, "organization": {"id": 174}, "project": {"owner": {"id": 772}, "assignee": {"id": 833}, "organization": {"id": 974}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 28}, "assignee": {"id": 523}, "organization": {"id": 645}, "project": {"owner": {"id": 705}, "assignee": {"id": 816}, "organization": {"id": 927}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 45}, "assignee": {"id": 589}, "organization": {"id": 131}, "project": {"owner": {"id": 769}, "assignee": {"id": 822}, "organization": {"id": 959}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 23}, "assignee": {"id": 529}, "organization": {"id": 671}, "project": {"owner": {"id": 721}, "assignee": {"id": 870}, "organization": {"id": 906}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 6}, "assignee": {"id": 504}, "organization": {"id": 183}, "project": {"owner": {"id": 776}, "assignee": {"id": 887}, "organization": {"id": 920}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 19}, "assignee": {"id": 550}, "organization": {"id": 667}, "project": {"owner": {"id": 714}, "assignee": {"id": 877}, "organization": {"id": 929}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 52}, "assignee": {"id": 542}, "organization": {"id": 131}, "project": {"owner": {"id": 713}, "assignee": {"id": 897}, "organization": {"id": 979}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 35}, "assignee": {"id": 584}, "organization": {"id": 682}, "project": {"owner": {"id": 726}, "assignee": {"id": 878}, "organization": {"id": 914}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 78}, "assignee": {"id": 570}, "organization": {"id": 111}, "project": {"owner": {"id": 731}, "assignee": {"id": 800}, "organization": {"id": 955}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 90}, "assignee": {"id": 553}, "organization": {"id": 634}, "project": {"owner": {"id": 794}, "assignee": {"id": 897}, "organization": {"id": 949}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 67}, "assignee": {"id": 545}, "organization": {"id": 184}, "project": {"owner": {"id": 724}, "assignee": {"id": 872}, "organization": {"id": 948}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 52}, "assignee": {"id": 533}, "organization": {"id": 665}, "project": {"owner": {"id": 724}, "assignee": {"id": 832}, "organization": {"id": 911}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 55}, "assignee": {"id": 592}, "organization": {"id": 177}, "project": {"owner": {"id": 727}, "assignee": {"id": 899}, "organization": {"id": 975}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 9}, "assignee": {"id": 576}, "organization": {"id": 652}, "project": {"owner": {"id": 753}, "assignee": {"id": 810}, "organization": {"id": 984}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 428}, "assignee": {"id": 39}, "organization": {"id": 154}, "project": {"owner": {"id": 778}, "assignee": {"id": 880}, "organization": {"id": 990}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 439}, "assignee": {"id": 19}, "organization": {"id": 626}, "project": {"owner": {"id": 794}, "assignee": {"id": 801}, "organization": {"id": 927}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 498}, "assignee": {"id": 66}, "organization": {"id": 199}, "project": {"owner": {"id": 716}, "assignee": {"id": 857}, "organization": {"id": 964}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 419}, "assignee": {"id": 66}, "organization": {"id": 692}, "project": {"owner": {"id": 742}, "assignee": {"id": 814}, "organization": {"id": 955}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 404}, "assignee": {"id": 3}, "organization": {"id": 143}, "project": {"owner": {"id": 763}, "assignee": {"id": 899}, "organization": {"id": 917}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 496}, "assignee": {"id": 23}, "organization": {"id": 693}, "project": {"owner": {"id": 790}, "assignee": {"id": 849}, "organization": {"id": 924}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 420}, "assignee": {"id": 72}, "organization": {"id": 153}, "project": {"owner": {"id": 783}, "assignee": {"id": 850}, "organization": {"id": 997}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 437}, "assignee": {"id": 34}, "organization": {"id": 670}, "project": {"owner": {"id": 725}, "assignee": {"id": 816}, "organization": {"id": 983}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 434}, "assignee": {"id": 12}, "organization": {"id": 182}, "project": {"owner": {"id": 763}, "assignee": {"id": 848}, "organization": {"id": 962}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 489}, "assignee": {"id": 63}, "organization": {"id": 684}, "project": {"owner": {"id": 773}, "assignee": {"id": 837}, "organization": {"id": 984}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 421}, "assignee": {"id": 21}, "organization": {"id": 121}, "project": {"owner": {"id": 754}, "assignee": {"id": 802}, "organization": {"id": 991}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 488}, "assignee": {"id": 42}, "organization": {"id": 698}, "project": {"owner": {"id": 767}, "assignee": {"id": 830}, "organization": {"id": 953}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 406}, "assignee": {"id": 39}, "organization": {"id": 137}, "project": {"owner": {"id": 702}, "assignee": {"id": 816}, "organization": {"id": 926}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 474}, "assignee": {"id": 53}, "organization": {"id": 695}, "project": {"owner": {"id": 741}, "assignee": {"id": 880}, "organization": {"id": 905}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 415}, "assignee": {"id": 31}, "organization": {"id": 198}, "project": {"owner": {"id": 754}, "assignee": {"id": 867}, "organization": {"id": 992}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 491}, "assignee": {"id": 78}, "organization": {"id": 639}, "project": {"owner": {"id": 763}, "assignee": {"id": 812}, "organization": {"id": 940}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 464}, "assignee": {"id": 62}, "organization": {"id": 151}, "project": {"owner": {"id": 759}, "assignee": {"id": 853}, "organization": {"id": 918}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 444}, "assignee": {"id": 13}, "organization": {"id": 644}, "project": {"owner": {"id": 727}, "assignee": {"id": 875}, "organization": {"id": 951}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 420}, "assignee": {"id": 2}, "organization": {"id": 180}, "project": {"owner": {"id": 716}, "assignee": {"id": 842}, "organization": {"id": 913}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 477}, "assignee": {"id": 49}, "organization": {"id": 668}, "project": {"owner": {"id": 780}, "assignee": {"id": 819}, "organization": {"id": 956}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 417}, "assignee": {"id": 72}, "organization": {"id": 172}, "project": {"owner": {"id": 752}, "assignee": {"id": 800}, "organization": {"id": 917}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 419}, "assignee": {"id": 33}, "organization": {"id": 665}, "project": {"owner": {"id": 717}, "assignee": {"id": 816}, "organization": {"id": 922}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 431}, "assignee": {"id": 38}, "organization": {"id": 128}, "project": {"owner": {"id": 798}, "assignee": {"id": 867}, "organization": {"id": 909}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 485}, "assignee": {"id": 29}, "organization": {"id": 685}, "project": {"owner": {"id": 759}, "assignee": {"id": 804}, "organization": {"id": 944}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 499}, "assignee": {"id": 88}, "organization": {"id": 143}, "project": {"owner": {"id": 729}, "assignee": {"id": 850}, "organization": {"id": 987}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 447}, "assignee": {"id": 76}, "organization": {"id": 611}, "project": {"owner": {"id": 748}, "assignee": {"id": 894}, "organization": {"id": 952}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 483}, "assignee": {"id": 6}, "organization": {"id": 104}, "project": {"owner": {"id": 785}, "assignee": {"id": 827}, "organization": {"id": 911}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 402}, "assignee": {"id": 96}, "organization": {"id": 613}, "project": {"owner": {"id": 703}, "assignee": {"id": 813}, "organization": {"id": 947}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 402}, "assignee": {"id": 91}, "organization": {"id": 181}, "project": {"owner": {"id": 779}, "assignee": {"id": 850}, "organization": {"id": 973}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 400}, "assignee": {"id": 87}, "organization": {"id": 658}, "project": {"owner": {"id": 738}, "assignee": {"id": 842}, "organization": {"id": 980}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 444}, "assignee": {"id": 74}, "organization": {"id": 151}, "project": {"owner": {"id": 769}, "assignee": {"id": 869}, "organization": {"id": 984}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 435}, "assignee": {"id": 13}, "organization": {"id": 691}, "project": {"owner": {"id": 703}, "assignee": {"id": 863}, "organization": {"id": 966}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 408}, "assignee": {"id": 32}, "organization": {"id": 146}, "project": {"owner": {"id": 782}, "assignee": {"id": 841}, "organization": {"id": 920}}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 402}, "assignee": {"id": 26}, "organization": {"id": 671}, "project": {"owner": {"id": 779}, "assignee": {"id": 807}, "organization": {"id": 973}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 433}, "assignee": {"id": 38}, "organization": {"id": 103}, "project": {"owner": {"id": 764}, "assignee": {"id": 894}, "organization": {"id": 905}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 426}, "assignee": {"id": 19}, "organization": {"id": 612}, "project": {"owner": {"id": 742}, "assignee": {"id": 871}, "organization": {"id": 998}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 483}, "assignee": {"id": 74}, "organization": {"id": 190}, "project": {"owner": {"id": 765}, "assignee": {"id": 806}, "organization": {"id": 926}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 472}, "assignee": {"id": 19}, "organization": {"id": 613}, "project": {"owner": {"id": 724}, "assignee": {"id": 817}, "organization": {"id": 903}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 444}, "assignee": {"id": 68}, "organization": {"id": 124}, "project": {"owner": {"id": 756}, "assignee": {"id": 857}, "organization": {"id": 948}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 408}, "assignee": {"id": 41}, "organization": {"id": 600}, "project": {"owner": {"id": 702}, "assignee": {"id": 868}, "organization": {"id": 916}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 488}, "assignee": {"id": 6}, "organization": {"id": 184}, "project": {"owner": {"id": 737}, "assignee": {"id": 810}, "organization": {"id": 999}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 449}, "assignee": {"id": 26}, "organization": {"id": 617}, "project": {"owner": {"id": 717}, "assignee": {"id": 846}, "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": 60, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 429}, "assignee": {"id": 60}, "organization": {"id": 123}, "project": {"owner": {"id": 719}, "assignee": {"id": 873}, "organization": {"id": 926}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 467}, "assignee": {"id": 4}, "organization": {"id": 636}, "project": {"owner": {"id": 796}, "assignee": {"id": 847}, "organization": {"id": 973}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 411}, "assignee": {"id": 43}, "organization": {"id": 103}, "project": {"owner": {"id": 766}, "assignee": {"id": 816}, "organization": {"id": 947}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 483}, "assignee": {"id": 52}, "organization": {"id": 662}, "project": {"owner": {"id": 762}, "assignee": {"id": 890}, "organization": {"id": 911}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 457}, "assignee": {"id": 65}, "organization": {"id": 112}, "project": {"owner": {"id": 767}, "assignee": {"id": 893}, "organization": {"id": 918}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 425}, "assignee": {"id": 53}, "organization": {"id": 678}, "project": {"owner": {"id": 716}, "assignee": {"id": 890}, "organization": {"id": 970}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 470}, "assignee": {"id": 38}, "organization": {"id": 127}, "project": {"owner": {"id": 713}, "assignee": {"id": 851}, "organization": {"id": 946}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 431}, "assignee": {"id": 27}, "organization": {"id": 673}, "project": {"owner": {"id": 790}, "assignee": {"id": 860}, "organization": {"id": 967}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 479}, "assignee": {"id": 501}, "organization": {"id": 140}, "project": {"owner": {"id": 716}, "assignee": {"id": 853}, "organization": {"id": 987}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 496}, "assignee": {"id": 528}, "organization": {"id": 637}, "project": {"owner": {"id": 773}, "assignee": {"id": 871}, "organization": {"id": 983}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 461}, "assignee": {"id": 589}, "organization": {"id": 111}, "project": {"owner": {"id": 722}, "assignee": {"id": 861}, "organization": {"id": 976}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 490}, "assignee": {"id": 536}, "organization": {"id": 627}, "project": {"owner": {"id": 789}, "assignee": {"id": 832}, "organization": {"id": 927}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 493}, "assignee": {"id": 578}, "organization": {"id": 111}, "project": {"owner": {"id": 740}, "assignee": {"id": 862}, "organization": {"id": 932}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 416}, "assignee": {"id": 548}, "organization": {"id": 679}, "project": {"owner": {"id": 767}, "assignee": {"id": 813}, "organization": {"id": 915}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 436}, "assignee": {"id": 590}, "organization": {"id": 187}, "project": {"owner": {"id": 721}, "assignee": {"id": 840}, "organization": {"id": 946}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 463}, "assignee": {"id": 511}, "organization": {"id": 661}, "project": {"owner": {"id": 756}, "assignee": {"id": 852}, "organization": {"id": 995}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 425}, "assignee": {"id": 584}, "organization": {"id": 144}, "project": {"owner": {"id": 710}, "assignee": {"id": 898}, "organization": {"id": 940}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 478}, "assignee": {"id": 516}, "organization": {"id": 657}, "project": {"owner": {"id": 741}, "assignee": {"id": 896}, "organization": {"id": 907}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 455}, "assignee": {"id": 523}, "organization": {"id": 126}, "project": {"owner": {"id": 784}, "assignee": {"id": 804}, "organization": {"id": 997}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 493}, "assignee": {"id": 515}, "organization": {"id": 658}, "project": {"owner": {"id": 757}, "assignee": {"id": 879}, "organization": {"id": 955}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 419}, "assignee": {"id": 597}, "organization": {"id": 151}, "project": {"owner": {"id": 705}, "assignee": {"id": 866}, "organization": {"id": 946}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 459}, "assignee": {"id": 599}, "organization": {"id": 609}, "project": {"owner": {"id": 730}, "assignee": {"id": 835}, "organization": {"id": 935}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 431}, "assignee": {"id": 574}, "organization": {"id": 158}, "project": {"owner": {"id": 795}, "assignee": {"id": 848}, "organization": {"id": 932}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 496}, "assignee": {"id": 563}, "organization": {"id": 628}, "project": {"owner": {"id": 772}, "assignee": {"id": 808}, "organization": {"id": 923}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 448}, "assignee": {"id": 523}, "organization": {"id": 189}, "project": {"owner": {"id": 786}, "assignee": {"id": 849}, "organization": {"id": 913}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 477}, "assignee": {"id": 545}, "organization": {"id": 643}, "project": {"owner": {"id": 756}, "assignee": {"id": 861}, "organization": {"id": 939}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 427}, "assignee": {"id": 582}, "organization": {"id": 108}, "project": {"owner": {"id": 765}, "assignee": {"id": 867}, "organization": {"id": 900}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 460}, "assignee": {"id": 516}, "organization": {"id": 645}, "project": {"owner": {"id": 743}, "assignee": {"id": 811}, "organization": {"id": 962}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 438}, "assignee": {"id": 532}, "organization": {"id": 122}, "project": {"owner": {"id": 734}, "assignee": {"id": 840}, "organization": {"id": 927}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 440}, "assignee": {"id": 560}, "organization": {"id": 673}, "project": {"owner": {"id": 768}, "assignee": {"id": 807}, "organization": {"id": 925}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 486}, "assignee": {"id": 551}, "organization": {"id": 170}, "project": {"owner": {"id": 706}, "assignee": {"id": 850}, "organization": {"id": 997}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 443}, "assignee": {"id": 506}, "organization": {"id": 628}, "project": {"owner": {"id": 790}, "assignee": {"id": 846}, "organization": {"id": 912}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 495}, "assignee": {"id": 540}, "organization": {"id": 176}, "project": {"owner": {"id": 739}, "assignee": {"id": 835}, "organization": {"id": 913}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 461}, "assignee": {"id": 565}, "organization": {"id": 660}, "project": {"owner": {"id": 799}, "assignee": {"id": 898}, "organization": {"id": 905}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 408}, "assignee": {"id": 500}, "organization": {"id": 178}, "project": {"owner": {"id": 708}, "assignee": {"id": 822}, "organization": {"id": 998}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 485}, "assignee": {"id": 546}, "organization": {"id": 693}, "project": {"owner": {"id": 779}, "assignee": {"id": 837}, "organization": {"id": 926}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 410}, "assignee": {"id": 528}, "organization": {"id": 165}, "project": {"owner": {"id": 729}, "assignee": {"id": 810}, "organization": {"id": 956}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 444}, "assignee": {"id": 520}, "organization": {"id": 649}, "project": {"owner": {"id": 760}, "assignee": {"id": 883}, "organization": {"id": 945}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 433}, "assignee": {"id": 569}, "organization": {"id": 105}, "project": {"owner": {"id": 751}, "assignee": {"id": 867}, "organization": {"id": 971}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 429}, "assignee": {"id": 557}, "organization": {"id": 604}, "project": {"owner": {"id": 737}, "assignee": {"id": 893}, "organization": {"id": 999}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 447}, "assignee": {"id": 552}, "organization": {"id": 180}, "project": {"owner": {"id": 711}, "assignee": {"id": 883}, "organization": {"id": 954}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 480}, "assignee": {"id": 550}, "organization": {"id": 649}, "project": {"owner": {"id": 794}, "assignee": {"id": 856}, "organization": {"id": 909}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 414}, "assignee": {"id": 508}, "organization": {"id": 170}, "project": {"owner": {"id": 712}, "assignee": {"id": 835}, "organization": {"id": 914}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 482}, "assignee": {"id": 568}, "organization": {"id": 601}, "project": {"owner": {"id": 707}, "assignee": {"id": 858}, "organization": {"id": 949}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 480}, "assignee": {"id": 520}, "organization": {"id": 176}, "project": {"owner": {"id": 769}, "assignee": {"id": 899}, "organization": {"id": 910}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 493}, "assignee": {"id": 588}, "organization": {"id": 673}, "project": {"owner": {"id": 776}, "assignee": {"id": 827}, "organization": {"id": 942}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 424}, "assignee": {"id": 561}, "organization": {"id": 134}, "project": {"owner": {"id": 778}, "assignee": {"id": 819}, "organization": {"id": 918}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 417}, "assignee": {"id": 532}, "organization": {"id": 606}, "project": {"owner": {"id": 798}, "assignee": {"id": 806}, "organization": {"id": 951}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 432}, "assignee": {"id": 542}, "organization": {"id": 102}, "project": {"owner": {"id": 774}, "assignee": {"id": 855}, "organization": {"id": 978}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 466}, "assignee": {"id": 575}, "organization": {"id": 693}, "project": {"owner": {"id": 771}, "assignee": {"id": 892}, "organization": {"id": 965}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 494}, "assignee": {"id": 578}, "organization": {"id": 155}, "project": {"owner": {"id": 783}, "assignee": {"id": 803}, "organization": {"id": 959}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 477}, "assignee": {"id": 530}, "organization": {"id": 610}, "project": {"owner": {"id": 738}, "assignee": {"id": 873}, "organization": {"id": 937}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 414}, "assignee": {"id": 522}, "organization": {"id": 116}, "project": {"owner": {"id": 750}, "assignee": {"id": 889}, "organization": {"id": 921}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 488}, "assignee": {"id": 545}, "organization": {"id": 663}, "project": {"owner": {"id": 718}, "assignee": {"id": 822}, "organization": {"id": 934}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 461}, "assignee": {"id": 575}, "organization": {"id": 101}, "project": {"owner": {"id": 786}, "assignee": {"id": 832}, "organization": {"id": 966}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 462}, "assignee": {"id": 533}, "organization": {"id": 662}, "project": {"owner": {"id": 783}, "assignee": {"id": 882}, "organization": {"id": 902}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 484}, "assignee": {"id": 557}, "organization": {"id": 102}, "project": {"owner": {"id": 774}, "assignee": {"id": 813}, "organization": {"id": 948}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 442}, "assignee": {"id": 579}, "organization": {"id": 651}, "project": {"owner": {"id": 720}, "assignee": {"id": 878}, "organization": {"id": 902}}}} +} + +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": 74, "privilege": "admin"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 434}, "assignee": {"id": 511}, "organization": {"id": 620}, "project": {"owner": {"id": 74}, "assignee": {"id": 865}, "organization": {"id": 949}}}} +} + +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": 53, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 403}, "assignee": {"id": 569}, "organization": {"id": 652}, "project": {"owner": {"id": 53}, "assignee": {"id": 849}, "organization": {"id": 956}}}} +} + +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": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 422}, "assignee": {"id": 501}, "organization": {"id": 606}, "project": {"owner": {"id": 29}, "assignee": {"id": 897}, "organization": {"id": 973}}}} +} + +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": 305, "owner": {"id": 406}, "assignee": {"id": 579}, "organization": {"id": 665}, "project": {"owner": {"id": 41}, "assignee": {"id": 806}, "organization": {"id": 934}}}} +} + +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": 79, "privilege": "none"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 494}, "assignee": {"id": 500}, "organization": {"id": 638}, "project": {"owner": {"id": 79}, "assignee": {"id": 860}, "organization": {"id": 963}}}} +} + +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": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 445}, "assignee": {"id": 524}, "organization": {"id": 630}, "project": {"owner": {"id": 721}, "assignee": {"id": 66}, "organization": {"id": 998}}}} +} + +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": 12, "privilege": "business"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 484}, "assignee": {"id": 542}, "organization": {"id": 639}, "project": {"owner": {"id": 746}, "assignee": {"id": 12}, "organization": {"id": 918}}}} +} + +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": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 422}, "assignee": {"id": 506}, "organization": {"id": 679}, "project": {"owner": {"id": 710}, "assignee": {"id": 22}, "organization": {"id": 911}}}} +} + +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": 99, "privilege": "worker"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 470}, "assignee": {"id": 596}, "organization": {"id": 687}, "project": {"owner": {"id": 774}, "assignee": {"id": 99}, "organization": {"id": 991}}}} +} + +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": 42, "privilege": "none"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 421}, "assignee": {"id": 595}, "organization": {"id": 654}, "project": {"owner": {"id": 778}, "assignee": {"id": 42}, "organization": {"id": 900}}}} +} + +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": 3, "privilege": "admin"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 3}, "assignee": {"id": 598}, "organization": {"id": 616}, "project": {"owner": {"id": 728}, "assignee": {"id": 844}, "organization": {"id": 971}}}} +} + +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": 13, "privilege": "business"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 13}, "assignee": {"id": 549}, "organization": {"id": 683}, "project": {"owner": {"id": 716}, "assignee": {"id": 857}, "organization": {"id": 973}}}} +} + +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": 46, "privilege": "user"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 46}, "assignee": {"id": 580}, "organization": {"id": 677}, "project": {"owner": {"id": 721}, "assignee": {"id": 884}, "organization": {"id": 959}}}} +} + +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": 72, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 72}, "assignee": {"id": 534}, "organization": {"id": 614}, "project": {"owner": {"id": 744}, "assignee": {"id": 810}, "organization": {"id": 960}}}} +} + +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": 34, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 34}, "assignee": {"id": 521}, "organization": {"id": 653}, "project": {"owner": {"id": 710}, "assignee": {"id": 893}, "organization": {"id": 900}}}} +} + +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": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 453}, "assignee": {"id": 51}, "organization": {"id": 617}, "project": {"owner": {"id": 782}, "assignee": {"id": 832}, "organization": {"id": 963}}}} +} + +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": 46, "privilege": "business"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 417}, "assignee": {"id": 46}, "organization": {"id": 688}, "project": {"owner": {"id": 703}, "assignee": {"id": 823}, "organization": {"id": 995}}}} +} + +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": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 451}, "assignee": {"id": 88}, "organization": {"id": 608}, "project": {"owner": {"id": 779}, "assignee": {"id": 870}, "organization": {"id": 968}}}} +} + +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": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 424}, "assignee": {"id": 64}, "organization": {"id": 632}, "project": {"owner": {"id": 713}, "assignee": {"id": 850}, "organization": {"id": 913}}}} +} + +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": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 475}, "assignee": {"id": 16}, "organization": {"id": 645}, "project": {"owner": {"id": 762}, "assignee": {"id": 828}, "organization": {"id": 971}}}} +} + +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": 79, "privilege": "admin"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 447}, "assignee": {"id": 556}, "organization": {"id": 633}, "project": {"owner": {"id": 711}, "assignee": {"id": 807}, "organization": {"id": 963}}}} +} + +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": 58, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 426}, "assignee": {"id": 526}, "organization": {"id": 631}, "project": {"owner": {"id": 783}, "assignee": {"id": 881}, "organization": {"id": 959}}}} +} + +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": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 419}, "assignee": {"id": 520}, "organization": {"id": 643}, "project": {"owner": {"id": 775}, "assignee": {"id": 821}, "organization": {"id": 913}}}} +} + +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": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 418}, "assignee": {"id": 593}, "organization": {"id": 649}, "project": {"owner": {"id": 716}, "assignee": {"id": 858}, "organization": {"id": 975}}}} +} + +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": 76, "privilege": "none"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 496}, "assignee": {"id": 527}, "organization": {"id": 658}, "project": {"owner": {"id": 702}, "assignee": {"id": 883}, "organization": {"id": 955}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 430}, "assignee": {"id": 521}, "organization": {"id": 104}, "project": {"owner": {"id": 0}, "assignee": {"id": 847}, "organization": {"id": 907}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 403}, "assignee": {"id": 564}, "organization": {"id": 612}, "project": {"owner": {"id": 11}, "assignee": {"id": 816}, "organization": {"id": 983}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 441}, "assignee": {"id": 517}, "organization": {"id": 198}, "project": {"owner": {"id": 24}, "assignee": {"id": 886}, "organization": {"id": 980}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 427}, "assignee": {"id": 543}, "organization": {"id": 659}, "project": {"owner": {"id": 79}, "assignee": {"id": 827}, "organization": {"id": 981}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 495}, "assignee": {"id": 524}, "organization": {"id": 132}, "project": {"owner": {"id": 5}, "assignee": {"id": 804}, "organization": {"id": 983}}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 446}, "assignee": {"id": 584}, "organization": {"id": 650}, "project": {"owner": {"id": 7}, "assignee": {"id": 800}, "organization": {"id": 984}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 471}, "assignee": {"id": 580}, "organization": {"id": 196}, "project": {"owner": {"id": 98}, "assignee": {"id": 824}, "organization": {"id": 985}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 485}, "assignee": {"id": 528}, "organization": {"id": 658}, "project": {"owner": {"id": 3}, "assignee": {"id": 860}, "organization": {"id": 938}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 476}, "assignee": {"id": 516}, "organization": {"id": 190}, "project": {"owner": {"id": 23}, "assignee": {"id": 887}, "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": 14, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 405}, "assignee": {"id": 599}, "organization": {"id": 685}, "project": {"owner": {"id": 14}, "assignee": {"id": 811}, "organization": {"id": 931}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 495}, "assignee": {"id": 572}, "organization": {"id": 126}, "project": {"owner": {"id": 32}, "assignee": {"id": 846}, "organization": {"id": 930}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 494}, "assignee": {"id": 585}, "organization": {"id": 668}, "project": {"owner": {"id": 91}, "assignee": {"id": 832}, "organization": {"id": 937}}}} +} + +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": 121, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 414}, "assignee": {"id": 595}, "organization": {"id": 121}, "project": {"owner": {"id": 38}, "assignee": {"id": 812}, "organization": {"id": 993}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 481}, "assignee": {"id": 547}, "organization": {"id": 666}, "project": {"owner": {"id": 60}, "assignee": {"id": 806}, "organization": {"id": 900}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 413}, "assignee": {"id": 580}, "organization": {"id": 185}, "project": {"owner": {"id": 97}, "assignee": {"id": 843}, "organization": {"id": 963}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 484}, "assignee": {"id": 508}, "organization": {"id": 616}, "project": {"owner": {"id": 28}, "assignee": {"id": 870}, "organization": {"id": 934}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 420}, "assignee": {"id": 523}, "organization": {"id": 150}, "project": {"owner": {"id": 85}, "assignee": {"id": 845}, "organization": {"id": 992}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 477}, "assignee": {"id": 565}, "organization": {"id": 681}, "project": {"owner": {"id": 87}, "assignee": {"id": 831}, "organization": {"id": 985}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 419}, "assignee": {"id": 503}, "organization": {"id": 177}, "project": {"owner": {"id": 88}, "assignee": {"id": 837}, "organization": {"id": 983}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 438}, "assignee": {"id": 553}, "organization": {"id": 623}, "project": {"owner": {"id": 41}, "assignee": {"id": 800}, "organization": {"id": 952}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 473}, "assignee": {"id": 557}, "organization": {"id": 189}, "project": {"owner": {"id": 46}, "assignee": {"id": 890}, "organization": {"id": 950}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 486}, "assignee": {"id": 527}, "organization": {"id": 607}, "project": {"owner": {"id": 82}, "assignee": {"id": 882}, "organization": {"id": 916}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 466}, "assignee": {"id": 557}, "organization": {"id": 178}, "project": {"owner": {"id": 6}, "assignee": {"id": 857}, "organization": {"id": 933}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 412}, "assignee": {"id": 586}, "organization": {"id": 622}, "project": {"owner": {"id": 97}, "assignee": {"id": 857}, "organization": {"id": 944}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 465}, "assignee": {"id": 572}, "organization": {"id": 106}, "project": {"owner": {"id": 72}, "assignee": {"id": 821}, "organization": {"id": 939}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 442}, "assignee": {"id": 503}, "organization": {"id": 648}, "project": {"owner": {"id": 18}, "assignee": {"id": 805}, "organization": {"id": 940}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 461}, "assignee": {"id": 582}, "organization": {"id": 111}, "project": {"owner": {"id": 2}, "assignee": {"id": 821}, "organization": {"id": 909}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 404}, "assignee": {"id": 503}, "organization": {"id": 632}, "project": {"owner": {"id": 44}, "assignee": {"id": 807}, "organization": {"id": 930}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 471}, "assignee": {"id": 511}, "organization": {"id": 182}, "project": {"owner": {"id": 19}, "assignee": {"id": 840}, "organization": {"id": 902}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 460}, "assignee": {"id": 530}, "organization": {"id": 669}, "project": {"owner": {"id": 20}, "assignee": {"id": 800}, "organization": {"id": 982}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 400}, "assignee": {"id": 533}, "organization": {"id": 130}, "project": {"owner": {"id": 40}, "assignee": {"id": 888}, "organization": {"id": 992}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 447}, "assignee": {"id": 577}, "organization": {"id": 655}, "project": {"owner": {"id": 6}, "assignee": {"id": 853}, "organization": {"id": 992}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 487}, "assignee": {"id": 503}, "organization": {"id": 145}, "project": {"owner": {"id": 52}, "assignee": {"id": 870}, "organization": {"id": 965}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 446}, "assignee": {"id": 591}, "organization": {"id": 610}, "project": {"owner": {"id": 44}, "assignee": {"id": 886}, "organization": {"id": 911}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 465}, "assignee": {"id": 543}, "organization": {"id": 164}, "project": {"owner": {"id": 37}, "assignee": {"id": 842}, "organization": {"id": 906}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 454}, "assignee": {"id": 521}, "organization": {"id": 687}, "project": {"owner": {"id": 91}, "assignee": {"id": 831}, "organization": {"id": 960}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 476}, "assignee": {"id": 586}, "organization": {"id": 118}, "project": {"owner": {"id": 75}, "assignee": {"id": 878}, "organization": {"id": 951}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 439}, "assignee": {"id": 591}, "organization": {"id": 600}, "project": {"owner": {"id": 17}, "assignee": {"id": 889}, "organization": {"id": 948}}}} +} + +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": 185, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 434}, "assignee": {"id": 509}, "organization": {"id": 185}, "project": {"owner": {"id": 43}, "assignee": {"id": 822}, "organization": {"id": 930}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 463}, "assignee": {"id": 590}, "organization": {"id": 680}, "project": {"owner": {"id": 18}, "assignee": {"id": 851}, "organization": {"id": 945}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 433}, "assignee": {"id": 574}, "organization": {"id": 162}, "project": {"owner": {"id": 55}, "assignee": {"id": 830}, "organization": {"id": 932}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 432}, "assignee": {"id": 590}, "organization": {"id": 671}, "project": {"owner": {"id": 83}, "assignee": {"id": 853}, "organization": {"id": 990}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 410}, "assignee": {"id": 544}, "organization": {"id": 188}, "project": {"owner": {"id": 43}, "assignee": {"id": 837}, "organization": {"id": 905}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 438}, "assignee": {"id": 538}, "organization": {"id": 653}, "project": {"owner": {"id": 91}, "assignee": {"id": 859}, "organization": {"id": 909}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 402}, "assignee": {"id": 513}, "organization": {"id": 154}, "project": {"owner": {"id": 60}, "assignee": {"id": 897}, "organization": {"id": 969}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 467}, "assignee": {"id": 556}, "organization": {"id": 622}, "project": {"owner": {"id": 85}, "assignee": {"id": 873}, "organization": {"id": 985}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 410}, "assignee": {"id": 541}, "organization": {"id": 180}, "project": {"owner": {"id": 98}, "assignee": {"id": 847}, "organization": {"id": 920}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 436}, "assignee": {"id": 544}, "organization": {"id": 670}, "project": {"owner": {"id": 54}, "assignee": {"id": 850}, "organization": {"id": 928}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 452}, "assignee": {"id": 551}, "organization": {"id": 191}, "project": {"owner": {"id": 55}, "assignee": {"id": 883}, "organization": {"id": 911}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 483}, "assignee": {"id": 522}, "organization": {"id": 642}, "project": {"owner": {"id": 62}, "assignee": {"id": 800}, "organization": {"id": 921}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 428}, "assignee": {"id": 591}, "organization": {"id": 122}, "project": {"owner": {"id": 751}, "assignee": {"id": 55}, "organization": {"id": 913}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 462}, "assignee": {"id": 558}, "organization": {"id": 698}, "project": {"owner": {"id": 778}, "assignee": {"id": 37}, "organization": {"id": 958}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 416}, "assignee": {"id": 527}, "organization": {"id": 187}, "project": {"owner": {"id": 704}, "assignee": {"id": 98}, "organization": {"id": 947}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 429}, "assignee": {"id": 535}, "organization": {"id": 658}, "project": {"owner": {"id": 725}, "assignee": {"id": 5}, "organization": {"id": 927}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 436}, "assignee": {"id": 554}, "organization": {"id": 112}, "project": {"owner": {"id": 732}, "assignee": {"id": 14}, "organization": {"id": 978}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 490}, "assignee": {"id": 570}, "organization": {"id": 615}, "project": {"owner": {"id": 718}, "assignee": {"id": 85}, "organization": {"id": 900}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 406}, "assignee": {"id": 597}, "organization": {"id": 159}, "project": {"owner": {"id": 784}, "assignee": {"id": 92}, "organization": {"id": 921}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 462}, "assignee": {"id": 599}, "organization": {"id": 603}, "project": {"owner": {"id": 729}, "assignee": {"id": 47}, "organization": {"id": 912}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 406}, "assignee": {"id": 504}, "organization": {"id": 159}, "project": {"owner": {"id": 799}, "assignee": {"id": 57}, "organization": {"id": 909}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 422}, "assignee": {"id": 559}, "organization": {"id": 619}, "project": {"owner": {"id": 712}, "assignee": {"id": 90}, "organization": {"id": 920}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 421}, "assignee": {"id": 531}, "organization": {"id": 192}, "project": {"owner": {"id": 782}, "assignee": {"id": 9}, "organization": {"id": 917}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 492}, "assignee": {"id": 590}, "organization": {"id": 691}, "project": {"owner": {"id": 724}, "assignee": {"id": 41}, "organization": {"id": 991}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 445}, "assignee": {"id": 537}, "organization": {"id": 165}, "project": {"owner": {"id": 743}, "assignee": {"id": 83}, "organization": {"id": 948}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 485}, "assignee": {"id": 525}, "organization": {"id": 621}, "project": {"owner": {"id": 702}, "assignee": {"id": 53}, "organization": {"id": 901}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 416}, "assignee": {"id": 560}, "organization": {"id": 122}, "project": {"owner": {"id": 754}, "assignee": {"id": 75}, "organization": {"id": 945}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 493}, "assignee": {"id": 586}, "organization": {"id": 601}, "project": {"owner": {"id": 724}, "assignee": {"id": 30}, "organization": {"id": 984}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 414}, "assignee": {"id": 519}, "organization": {"id": 102}, "project": {"owner": {"id": 746}, "assignee": {"id": 4}, "organization": {"id": 984}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 473}, "assignee": {"id": 534}, "organization": {"id": 660}, "project": {"owner": {"id": 728}, "assignee": {"id": 27}, "organization": {"id": 968}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 405}, "assignee": {"id": 541}, "organization": {"id": 154}, "project": {"owner": {"id": 705}, "assignee": {"id": 78}, "organization": {"id": 981}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 480}, "assignee": {"id": 549}, "organization": {"id": 612}, "project": {"owner": {"id": 707}, "assignee": {"id": 33}, "organization": {"id": 958}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 413}, "assignee": {"id": 529}, "organization": {"id": 137}, "project": {"owner": {"id": 799}, "assignee": {"id": 58}, "organization": {"id": 993}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 423}, "assignee": {"id": 537}, "organization": {"id": 652}, "project": {"owner": {"id": 766}, "assignee": {"id": 51}, "organization": {"id": 966}}}} +} + +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": 177, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 489}, "assignee": {"id": 578}, "organization": {"id": 177}, "project": {"owner": {"id": 736}, "assignee": {"id": 0}, "organization": {"id": 961}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 471}, "assignee": {"id": 530}, "organization": {"id": 685}, "project": {"owner": {"id": 726}, "assignee": {"id": 11}, "organization": {"id": 924}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 425}, "assignee": {"id": 501}, "organization": {"id": 109}, "project": {"owner": {"id": 791}, "assignee": {"id": 62}, "organization": {"id": 919}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 460}, "assignee": {"id": 573}, "organization": {"id": 610}, "project": {"owner": {"id": 783}, "assignee": {"id": 69}, "organization": {"id": 919}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 498}, "assignee": {"id": 544}, "organization": {"id": 104}, "project": {"owner": {"id": 754}, "assignee": {"id": 21}, "organization": {"id": 956}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 495}, "assignee": {"id": 533}, "organization": {"id": 689}, "project": {"owner": {"id": 704}, "assignee": {"id": 92}, "organization": {"id": 936}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 476}, "assignee": {"id": 572}, "organization": {"id": 148}, "project": {"owner": {"id": 726}, "assignee": {"id": 61}, "organization": {"id": 926}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 412}, "assignee": {"id": 541}, "organization": {"id": 677}, "project": {"owner": {"id": 722}, "assignee": {"id": 78}, "organization": {"id": 988}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 480}, "assignee": {"id": 597}, "organization": {"id": 129}, "project": {"owner": {"id": 790}, "assignee": {"id": 15}, "organization": {"id": 936}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 467}, "assignee": {"id": 573}, "organization": {"id": 689}, "project": {"owner": {"id": 714}, "assignee": {"id": 97}, "organization": {"id": 913}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 494}, "assignee": {"id": 548}, "organization": {"id": 121}, "project": {"owner": {"id": 784}, "assignee": {"id": 91}, "organization": {"id": 996}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 474}, "assignee": {"id": 581}, "organization": {"id": 681}, "project": {"owner": {"id": 737}, "assignee": {"id": 98}, "organization": {"id": 964}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 456}, "assignee": {"id": 506}, "organization": {"id": 176}, "project": {"owner": {"id": 728}, "assignee": {"id": 42}, "organization": {"id": 976}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 437}, "assignee": {"id": 596}, "organization": {"id": 624}, "project": {"owner": {"id": 773}, "assignee": {"id": 71}, "organization": {"id": 915}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 416}, "assignee": {"id": 525}, "organization": {"id": 180}, "project": {"owner": {"id": 720}, "assignee": {"id": 94}, "organization": {"id": 976}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 427}, "assignee": {"id": 553}, "organization": {"id": 624}, "project": {"owner": {"id": 713}, "assignee": {"id": 35}, "organization": {"id": 913}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 491}, "assignee": {"id": 507}, "organization": {"id": 151}, "project": {"owner": {"id": 749}, "assignee": {"id": 27}, "organization": {"id": 902}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 418}, "assignee": {"id": 506}, "organization": {"id": 603}, "project": {"owner": {"id": 762}, "assignee": {"id": 4}, "organization": {"id": 936}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 477}, "assignee": {"id": 532}, "organization": {"id": 175}, "project": {"owner": {"id": 766}, "assignee": {"id": 85}, "organization": {"id": 959}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 427}, "assignee": {"id": 554}, "organization": {"id": 668}, "project": {"owner": {"id": 735}, "assignee": {"id": 74}, "organization": {"id": 994}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 401}, "assignee": {"id": 535}, "organization": {"id": 187}, "project": {"owner": {"id": 789}, "assignee": {"id": 30}, "organization": {"id": 982}}}} +} + +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": 107, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 486}, "assignee": {"id": 500}, "organization": {"id": 655}, "project": {"owner": {"id": 790}, "assignee": {"id": 84}, "organization": {"id": 995}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 441}, "assignee": {"id": 582}, "organization": {"id": 197}, "project": {"owner": {"id": 794}, "assignee": {"id": 0}, "organization": {"id": 944}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 451}, "assignee": {"id": 540}, "organization": {"id": 681}, "project": {"owner": {"id": 758}, "assignee": {"id": 44}, "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": 38, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 448}, "assignee": {"id": 523}, "organization": {"id": 111}, "project": {"owner": {"id": 727}, "assignee": {"id": 38}, "organization": {"id": 970}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 418}, "assignee": {"id": 500}, "organization": {"id": 644}, "project": {"owner": {"id": 723}, "assignee": {"id": 4}, "organization": {"id": 990}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 463}, "assignee": {"id": 513}, "organization": {"id": 104}, "project": {"owner": {"id": 717}, "assignee": {"id": 61}, "organization": {"id": 999}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 488}, "assignee": {"id": 506}, "organization": {"id": 670}, "project": {"owner": {"id": 798}, "assignee": {"id": 95}, "organization": {"id": 930}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 72}, "assignee": {"id": 520}, "organization": {"id": 140}, "project": {"owner": {"id": 732}, "assignee": {"id": 830}, "organization": {"id": 914}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 81}, "assignee": {"id": 550}, "organization": {"id": 663}, "project": {"owner": {"id": 745}, "assignee": {"id": 862}, "organization": {"id": 965}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 71}, "assignee": {"id": 520}, "organization": {"id": 143}, "project": {"owner": {"id": 799}, "assignee": {"id": 816}, "organization": {"id": 997}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 39}, "assignee": {"id": 580}, "organization": {"id": 692}, "project": {"owner": {"id": 706}, "assignee": {"id": 838}, "organization": {"id": 954}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 79}, "assignee": {"id": 515}, "organization": {"id": 177}, "project": {"owner": {"id": 723}, "assignee": {"id": 854}, "organization": {"id": 998}}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 87}, "assignee": {"id": 584}, "organization": {"id": 693}, "project": {"owner": {"id": 710}, "assignee": {"id": 808}, "organization": {"id": 970}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 30}, "assignee": {"id": 516}, "organization": {"id": 166}, "project": {"owner": {"id": 731}, "assignee": {"id": 805}, "organization": {"id": 990}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 24}, "assignee": {"id": 505}, "organization": {"id": 667}, "project": {"owner": {"id": 793}, "assignee": {"id": 829}, "organization": {"id": 965}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 32}, "assignee": {"id": 553}, "organization": {"id": 185}, "project": {"owner": {"id": 741}, "assignee": {"id": 827}, "organization": {"id": 921}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 9}, "assignee": {"id": 597}, "organization": {"id": 620}, "project": {"owner": {"id": 796}, "assignee": {"id": 895}, "organization": {"id": 937}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 85}, "assignee": {"id": 502}, "organization": {"id": 110}, "project": {"owner": {"id": 798}, "assignee": {"id": 875}, "organization": {"id": 919}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 62}, "assignee": {"id": 513}, "organization": {"id": 686}, "project": {"owner": {"id": 710}, "assignee": {"id": 888}, "organization": {"id": 949}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 21}, "assignee": {"id": 503}, "organization": {"id": 182}, "project": {"owner": {"id": 776}, "assignee": {"id": 873}, "organization": {"id": 979}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 55}, "assignee": {"id": 593}, "organization": {"id": 655}, "project": {"owner": {"id": 785}, "assignee": {"id": 869}, "organization": {"id": 980}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 32}, "assignee": {"id": 507}, "organization": {"id": 153}, "project": {"owner": {"id": 777}, "assignee": {"id": 896}, "organization": {"id": 958}}}} +} + +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": 196, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 49}, "assignee": {"id": 590}, "organization": {"id": 661}, "project": {"owner": {"id": 719}, "assignee": {"id": 895}, "organization": {"id": 934}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 76}, "assignee": {"id": 589}, "organization": {"id": 101}, "project": {"owner": {"id": 756}, "assignee": {"id": 840}, "organization": {"id": 934}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 89}, "assignee": {"id": 541}, "organization": {"id": 604}, "project": {"owner": {"id": 770}, "assignee": {"id": 821}, "organization": {"id": 942}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 24}, "assignee": {"id": 519}, "organization": {"id": 123}, "project": {"owner": {"id": 783}, "assignee": {"id": 810}, "organization": {"id": 941}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 6}, "assignee": {"id": 502}, "organization": {"id": 675}, "project": {"owner": {"id": 768}, "assignee": {"id": 886}, "organization": {"id": 950}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 55}, "assignee": {"id": 505}, "organization": {"id": 173}, "project": {"owner": {"id": 762}, "assignee": {"id": 815}, "organization": {"id": 922}}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 90}, "assignee": {"id": 585}, "organization": {"id": 664}, "project": {"owner": {"id": 799}, "assignee": {"id": 814}, "organization": {"id": 992}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 38}, "assignee": {"id": 596}, "organization": {"id": 113}, "project": {"owner": {"id": 771}, "assignee": {"id": 834}, "organization": {"id": 956}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 3}, "assignee": {"id": 511}, "organization": {"id": 603}, "project": {"owner": {"id": 796}, "assignee": {"id": 875}, "organization": {"id": 995}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 78}, "assignee": {"id": 560}, "organization": {"id": 118}, "project": {"owner": {"id": 798}, "assignee": {"id": 837}, "organization": {"id": 918}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 57}, "assignee": {"id": 595}, "organization": {"id": 658}, "project": {"owner": {"id": 756}, "assignee": {"id": 865}, "organization": {"id": 990}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 92}, "assignee": {"id": 507}, "organization": {"id": 138}, "project": {"owner": {"id": 721}, "assignee": {"id": 870}, "organization": {"id": 934}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 37}, "assignee": {"id": 567}, "organization": {"id": 603}, "project": {"owner": {"id": 713}, "assignee": {"id": 867}, "organization": {"id": 952}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 6}, "assignee": {"id": 534}, "organization": {"id": 167}, "project": {"owner": {"id": 778}, "assignee": {"id": 882}, "organization": {"id": 933}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 10}, "assignee": {"id": 570}, "organization": {"id": 672}, "project": {"owner": {"id": 766}, "assignee": {"id": 840}, "organization": {"id": 954}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 65}, "assignee": {"id": 511}, "organization": {"id": 161}, "project": {"owner": {"id": 752}, "assignee": {"id": 884}, "organization": {"id": 956}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 41}, "assignee": {"id": 587}, "organization": {"id": 689}, "project": {"owner": {"id": 756}, "assignee": {"id": 850}, "organization": {"id": 924}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 74}, "assignee": {"id": 510}, "organization": {"id": 192}, "project": {"owner": {"id": 777}, "assignee": {"id": 859}, "organization": {"id": 972}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 42}, "assignee": {"id": 559}, "organization": {"id": 606}, "project": {"owner": {"id": 789}, "assignee": {"id": 866}, "organization": {"id": 951}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 29}, "assignee": {"id": 531}, "organization": {"id": 131}, "project": {"owner": {"id": 701}, "assignee": {"id": 871}, "organization": {"id": 983}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 78}, "assignee": {"id": 551}, "organization": {"id": 629}, "project": {"owner": {"id": 740}, "assignee": {"id": 833}, "organization": {"id": 969}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 50}, "assignee": {"id": 556}, "organization": {"id": 185}, "project": {"owner": {"id": 775}, "assignee": {"id": 819}, "organization": {"id": 976}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 33}, "assignee": {"id": 530}, "organization": {"id": 645}, "project": {"owner": {"id": 726}, "assignee": {"id": 870}, "organization": {"id": 991}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 65}, "assignee": {"id": 592}, "organization": {"id": 177}, "project": {"owner": {"id": 734}, "assignee": {"id": 874}, "organization": {"id": 929}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 96}, "assignee": {"id": 539}, "organization": {"id": 648}, "project": {"owner": {"id": 750}, "assignee": {"id": 811}, "organization": {"id": 920}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 67}, "assignee": {"id": 509}, "organization": {"id": 169}, "project": {"owner": {"id": 748}, "assignee": {"id": 840}, "organization": {"id": 991}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 7}, "assignee": {"id": 596}, "organization": {"id": 673}, "project": {"owner": {"id": 761}, "assignee": {"id": 811}, "organization": {"id": 903}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 29}, "assignee": {"id": 574}, "organization": {"id": 142}, "project": {"owner": {"id": 739}, "assignee": {"id": 824}, "organization": {"id": 936}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 85}, "assignee": {"id": 582}, "organization": {"id": 694}, "project": {"owner": {"id": 779}, "assignee": {"id": 805}, "organization": {"id": 931}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 56}, "assignee": {"id": 531}, "organization": {"id": 134}, "project": {"owner": {"id": 792}, "assignee": {"id": 898}, "organization": {"id": 919}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 81}, "assignee": {"id": 511}, "organization": {"id": 601}, "project": {"owner": {"id": 728}, "assignee": {"id": 807}, "organization": {"id": 905}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 63}, "assignee": {"id": 574}, "organization": {"id": 195}, "project": {"owner": {"id": 731}, "assignee": {"id": 829}, "organization": {"id": 902}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 70}, "assignee": {"id": 589}, "organization": {"id": 620}, "project": {"owner": {"id": 749}, "assignee": {"id": 817}, "organization": {"id": 906}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 58}, "assignee": {"id": 578}, "organization": {"id": 181}, "project": {"owner": {"id": 797}, "assignee": {"id": 896}, "organization": {"id": 928}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 42}, "assignee": {"id": 521}, "organization": {"id": 632}, "project": {"owner": {"id": 793}, "assignee": {"id": 811}, "organization": {"id": 913}}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 482}, "assignee": {"id": 67}, "organization": {"id": 110}, "project": {"owner": {"id": 774}, "assignee": {"id": 824}, "organization": {"id": 918}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 466}, "assignee": {"id": 4}, "organization": {"id": 694}, "project": {"owner": {"id": 730}, "assignee": {"id": 898}, "organization": {"id": 945}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 492}, "assignee": {"id": 47}, "organization": {"id": 173}, "project": {"owner": {"id": 776}, "assignee": {"id": 862}, "organization": {"id": 992}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 421}, "assignee": {"id": 27}, "organization": {"id": 677}, "project": {"owner": {"id": 773}, "assignee": {"id": 802}, "organization": {"id": 928}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 480}, "assignee": {"id": 92}, "organization": {"id": 177}, "project": {"owner": {"id": 755}, "assignee": {"id": 889}, "organization": {"id": 972}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 417}, "assignee": {"id": 55}, "organization": {"id": 620}, "project": {"owner": {"id": 702}, "assignee": {"id": 876}, "organization": {"id": 950}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 402}, "assignee": {"id": 65}, "organization": {"id": 167}, "project": {"owner": {"id": 769}, "assignee": {"id": 885}, "organization": {"id": 927}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 473}, "assignee": {"id": 90}, "organization": {"id": 670}, "project": {"owner": {"id": 762}, "assignee": {"id": 853}, "organization": {"id": 929}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 443}, "assignee": {"id": 31}, "organization": {"id": 161}, "project": {"owner": {"id": 767}, "assignee": {"id": 826}, "organization": {"id": 951}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 448}, "assignee": {"id": 84}, "organization": {"id": 647}, "project": {"owner": {"id": 785}, "assignee": {"id": 847}, "organization": {"id": 914}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 425}, "assignee": {"id": 53}, "organization": {"id": 129}, "project": {"owner": {"id": 722}, "assignee": {"id": 823}, "organization": {"id": 929}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 493}, "assignee": {"id": 88}, "organization": {"id": 690}, "project": {"owner": {"id": 794}, "assignee": {"id": 845}, "organization": {"id": 954}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 499}, "assignee": {"id": 91}, "organization": {"id": 160}, "project": {"owner": {"id": 728}, "assignee": {"id": 804}, "organization": {"id": 999}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 404}, "assignee": {"id": 82}, "organization": {"id": 636}, "project": {"owner": {"id": 786}, "assignee": {"id": 841}, "organization": {"id": 964}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 447}, "assignee": {"id": 73}, "organization": {"id": 144}, "project": {"owner": {"id": 790}, "assignee": {"id": 835}, "organization": {"id": 935}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 476}, "assignee": {"id": 57}, "organization": {"id": 684}, "project": {"owner": {"id": 731}, "assignee": {"id": 813}, "organization": {"id": 993}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 428}, "assignee": {"id": 52}, "organization": {"id": 146}, "project": {"owner": {"id": 743}, "assignee": {"id": 895}, "organization": {"id": 925}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 456}, "assignee": {"id": 23}, "organization": {"id": 604}, "project": {"owner": {"id": 722}, "assignee": {"id": 860}, "organization": {"id": 958}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 477}, "assignee": {"id": 78}, "organization": {"id": 131}, "project": {"owner": {"id": 785}, "assignee": {"id": 819}, "organization": {"id": 984}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 422}, "assignee": {"id": 38}, "organization": {"id": 660}, "project": {"owner": {"id": 772}, "assignee": {"id": 863}, "organization": {"id": 989}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 483}, "assignee": {"id": 56}, "organization": {"id": 169}, "project": {"owner": {"id": 764}, "assignee": {"id": 859}, "organization": {"id": 900}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 455}, "assignee": {"id": 37}, "organization": {"id": 681}, "project": {"owner": {"id": 787}, "assignee": {"id": 829}, "organization": {"id": 905}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 476}, "assignee": {"id": 56}, "organization": {"id": 161}, "project": {"owner": {"id": 726}, "assignee": {"id": 842}, "organization": {"id": 951}}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 460}, "assignee": {"id": 1}, "organization": {"id": 674}, "project": {"owner": {"id": 787}, "assignee": {"id": 811}, "organization": {"id": 957}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 493}, "assignee": {"id": 85}, "organization": {"id": 121}, "project": {"owner": {"id": 793}, "assignee": {"id": 833}, "organization": {"id": 966}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 413}, "assignee": {"id": 36}, "organization": {"id": 658}, "project": {"owner": {"id": 741}, "assignee": {"id": 801}, "organization": {"id": 932}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 418}, "assignee": {"id": 81}, "organization": {"id": 183}, "project": {"owner": {"id": 745}, "assignee": {"id": 886}, "organization": {"id": 951}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 494}, "assignee": {"id": 64}, "organization": {"id": 654}, "project": {"owner": {"id": 712}, "assignee": {"id": 807}, "organization": {"id": 906}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 416}, "assignee": {"id": 43}, "organization": {"id": 187}, "project": {"owner": {"id": 751}, "assignee": {"id": 837}, "organization": {"id": 919}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 451}, "assignee": {"id": 72}, "organization": {"id": 639}, "project": {"owner": {"id": 743}, "assignee": {"id": 833}, "organization": {"id": 957}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 465}, "assignee": {"id": 24}, "organization": {"id": 193}, "project": {"owner": {"id": 782}, "assignee": {"id": 804}, "organization": {"id": 946}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 474}, "assignee": {"id": 29}, "organization": {"id": 634}, "project": {"owner": {"id": 732}, "assignee": {"id": 897}, "organization": {"id": 962}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 421}, "assignee": {"id": 45}, "organization": {"id": 114}, "project": {"owner": {"id": 721}, "assignee": {"id": 826}, "organization": {"id": 921}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 435}, "assignee": {"id": 2}, "organization": {"id": 656}, "project": {"owner": {"id": 717}, "assignee": {"id": 872}, "organization": {"id": 940}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 456}, "assignee": {"id": 97}, "organization": {"id": 152}, "project": {"owner": {"id": 759}, "assignee": {"id": 831}, "organization": {"id": 983}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 439}, "assignee": {"id": 89}, "organization": {"id": 606}, "project": {"owner": {"id": 734}, "assignee": {"id": 851}, "organization": {"id": 930}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 453}, "assignee": {"id": 94}, "organization": {"id": 139}, "project": {"owner": {"id": 787}, "assignee": {"id": 805}, "organization": {"id": 972}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 413}, "assignee": {"id": 50}, "organization": {"id": 645}, "project": {"owner": {"id": 727}, "assignee": {"id": 864}, "organization": {"id": 911}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 419}, "assignee": {"id": 1}, "organization": {"id": 154}, "project": {"owner": {"id": 711}, "assignee": {"id": 855}, "organization": {"id": 934}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 496}, "assignee": {"id": 53}, "organization": {"id": 645}, "project": {"owner": {"id": 798}, "assignee": {"id": 848}, "organization": {"id": 913}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 482}, "assignee": {"id": 83}, "organization": {"id": 156}, "project": {"owner": {"id": 702}, "assignee": {"id": 877}, "organization": {"id": 912}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 433}, "assignee": {"id": 60}, "organization": {"id": 621}, "project": {"owner": {"id": 799}, "assignee": {"id": 893}, "organization": {"id": 956}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 467}, "assignee": {"id": 77}, "organization": {"id": 150}, "project": {"owner": {"id": 780}, "assignee": {"id": 825}, "organization": {"id": 998}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 491}, "assignee": {"id": 37}, "organization": {"id": 647}, "project": {"owner": {"id": 713}, "assignee": {"id": 878}, "organization": {"id": 928}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 477}, "assignee": {"id": 8}, "organization": {"id": 105}, "project": {"owner": {"id": 727}, "assignee": {"id": 815}, "organization": {"id": 986}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 447}, "assignee": {"id": 16}, "organization": {"id": 697}, "project": {"owner": {"id": 741}, "assignee": {"id": 868}, "organization": {"id": 991}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 452}, "assignee": {"id": 78}, "organization": {"id": 114}, "project": {"owner": {"id": 736}, "assignee": {"id": 813}, "organization": {"id": 992}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 448}, "assignee": {"id": 10}, "organization": {"id": 639}, "project": {"owner": {"id": 742}, "assignee": {"id": 836}, "organization": {"id": 911}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 483}, "assignee": {"id": 35}, "organization": {"id": 104}, "project": {"owner": {"id": 723}, "assignee": {"id": 865}, "organization": {"id": 906}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 418}, "assignee": {"id": 85}, "organization": {"id": 657}, "project": {"owner": {"id": 798}, "assignee": {"id": 897}, "organization": {"id": 908}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 498}, "assignee": {"id": 510}, "organization": {"id": 128}, "project": {"owner": {"id": 756}, "assignee": {"id": 899}, "organization": {"id": 958}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 458}, "assignee": {"id": 537}, "organization": {"id": 679}, "project": {"owner": {"id": 709}, "assignee": {"id": 816}, "organization": {"id": 948}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 416}, "assignee": {"id": 583}, "organization": {"id": 184}, "project": {"owner": {"id": 752}, "assignee": {"id": 881}, "organization": {"id": 953}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 489}, "assignee": {"id": 529}, "organization": {"id": 645}, "project": {"owner": {"id": 712}, "assignee": {"id": 816}, "organization": {"id": 946}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 425}, "assignee": {"id": 511}, "organization": {"id": 125}, "project": {"owner": {"id": 789}, "assignee": {"id": 849}, "organization": {"id": 992}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 458}, "assignee": {"id": 566}, "organization": {"id": 612}, "project": {"owner": {"id": 725}, "assignee": {"id": 879}, "organization": {"id": 980}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 486}, "assignee": {"id": 518}, "organization": {"id": 108}, "project": {"owner": {"id": 776}, "assignee": {"id": 821}, "organization": {"id": 975}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 476}, "assignee": {"id": 506}, "organization": {"id": 627}, "project": {"owner": {"id": 724}, "assignee": {"id": 881}, "organization": {"id": 974}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 496}, "assignee": {"id": 522}, "organization": {"id": 115}, "project": {"owner": {"id": 794}, "assignee": {"id": 814}, "organization": {"id": 941}}}} +} + +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": 162, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 431}, "assignee": {"id": 576}, "organization": {"id": 692}, "project": {"owner": {"id": 757}, "assignee": {"id": 816}, "organization": {"id": 926}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 460}, "assignee": {"id": 507}, "organization": {"id": 160}, "project": {"owner": {"id": 738}, "assignee": {"id": 865}, "organization": {"id": 986}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 471}, "assignee": {"id": 519}, "organization": {"id": 614}, "project": {"owner": {"id": 775}, "assignee": {"id": 870}, "organization": {"id": 933}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 456}, "assignee": {"id": 590}, "organization": {"id": 101}, "project": {"owner": {"id": 728}, "assignee": {"id": 851}, "organization": {"id": 956}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 426}, "assignee": {"id": 510}, "organization": {"id": 647}, "project": {"owner": {"id": 737}, "assignee": {"id": 846}, "organization": {"id": 910}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 464}, "assignee": {"id": 504}, "organization": {"id": 155}, "project": {"owner": {"id": 755}, "assignee": {"id": 841}, "organization": {"id": 984}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 409}, "assignee": {"id": 515}, "organization": {"id": 649}, "project": {"owner": {"id": 719}, "assignee": {"id": 896}, "organization": {"id": 974}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 427}, "assignee": {"id": 507}, "organization": {"id": 162}, "project": {"owner": {"id": 786}, "assignee": {"id": 824}, "organization": {"id": 999}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 470}, "assignee": {"id": 559}, "organization": {"id": 670}, "project": {"owner": {"id": 731}, "assignee": {"id": 897}, "organization": {"id": 953}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 426}, "assignee": {"id": 552}, "organization": {"id": 116}, "project": {"owner": {"id": 740}, "assignee": {"id": 821}, "organization": {"id": 961}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 417}, "assignee": {"id": 534}, "organization": {"id": 644}, "project": {"owner": {"id": 701}, "assignee": {"id": 865}, "organization": {"id": 902}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 431}, "assignee": {"id": 599}, "organization": {"id": 123}, "project": {"owner": {"id": 762}, "assignee": {"id": 814}, "organization": {"id": 938}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 407}, "assignee": {"id": 559}, "organization": {"id": 669}, "project": {"owner": {"id": 742}, "assignee": {"id": 817}, "organization": {"id": 902}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 431}, "assignee": {"id": 505}, "organization": {"id": 133}, "project": {"owner": {"id": 798}, "assignee": {"id": 807}, "organization": {"id": 980}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 439}, "assignee": {"id": 515}, "organization": {"id": 610}, "project": {"owner": {"id": 711}, "assignee": {"id": 860}, "organization": {"id": 982}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 416}, "assignee": {"id": 507}, "organization": {"id": 177}, "project": {"owner": {"id": 772}, "assignee": {"id": 835}, "organization": {"id": 916}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 487}, "assignee": {"id": 577}, "organization": {"id": 633}, "project": {"owner": {"id": 796}, "assignee": {"id": 847}, "organization": {"id": 957}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 472}, "assignee": {"id": 595}, "organization": {"id": 163}, "project": {"owner": {"id": 777}, "assignee": {"id": 863}, "organization": {"id": 913}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 402}, "assignee": {"id": 539}, "organization": {"id": 639}, "project": {"owner": {"id": 741}, "assignee": {"id": 869}, "organization": {"id": 901}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 443}, "assignee": {"id": 534}, "organization": {"id": 172}, "project": {"owner": {"id": 700}, "assignee": {"id": 821}, "organization": {"id": 951}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 409}, "assignee": {"id": 516}, "organization": {"id": 639}, "project": {"owner": {"id": 718}, "assignee": {"id": 859}, "organization": {"id": 907}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 460}, "assignee": {"id": 564}, "organization": {"id": 147}, "project": {"owner": {"id": 711}, "assignee": {"id": 854}, "organization": {"id": 953}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 412}, "assignee": {"id": 514}, "organization": {"id": 692}, "project": {"owner": {"id": 739}, "assignee": {"id": 836}, "organization": {"id": 987}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 417}, "assignee": {"id": 565}, "organization": {"id": 137}, "project": {"owner": {"id": 712}, "assignee": {"id": 878}, "organization": {"id": 994}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 453}, "assignee": {"id": 532}, "organization": {"id": 675}, "project": {"owner": {"id": 796}, "assignee": {"id": 855}, "organization": {"id": 932}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 463}, "assignee": {"id": 508}, "organization": {"id": 102}, "project": {"owner": {"id": 750}, "assignee": {"id": 899}, "organization": {"id": 981}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 405}, "assignee": {"id": 531}, "organization": {"id": 600}, "project": {"owner": {"id": 719}, "assignee": {"id": 841}, "organization": {"id": 979}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 450}, "assignee": {"id": 590}, "organization": {"id": 129}, "project": {"owner": {"id": 778}, "assignee": {"id": 875}, "organization": {"id": 965}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 481}, "assignee": {"id": 514}, "organization": {"id": 660}, "project": {"owner": {"id": 790}, "assignee": {"id": 894}, "organization": {"id": 956}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 447}, "assignee": {"id": 501}, "organization": {"id": 101}, "project": {"owner": {"id": 727}, "assignee": {"id": 818}, "organization": {"id": 959}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 466}, "assignee": {"id": 531}, "organization": {"id": 621}, "project": {"owner": {"id": 787}, "assignee": {"id": 862}, "organization": {"id": 951}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 445}, "assignee": {"id": 587}, "organization": {"id": 191}, "project": {"owner": {"id": 797}, "assignee": {"id": 819}, "organization": {"id": 990}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 485}, "assignee": {"id": 569}, "organization": {"id": 699}, "project": {"owner": {"id": 746}, "assignee": {"id": 886}, "organization": {"id": 978}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 430}, "assignee": {"id": 508}, "organization": {"id": 197}, "project": {"owner": {"id": 783}, "assignee": {"id": 816}, "organization": {"id": 978}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 471}, "assignee": {"id": 567}, "organization": {"id": 678}, "project": {"owner": {"id": 752}, "assignee": {"id": 818}, "organization": {"id": 931}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 403}, "assignee": {"id": 500}, "organization": {"id": 162}, "project": {"owner": {"id": 779}, "assignee": {"id": 897}, "organization": {"id": 907}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 474}, "assignee": {"id": 586}, "organization": {"id": 622}, "project": {"owner": {"id": 723}, "assignee": {"id": 859}, "organization": {"id": 914}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 403}, "assignee": {"id": 507}, "organization": {"id": 150}, "project": {"owner": {"id": 737}, "assignee": {"id": 875}, "organization": {"id": 918}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 444}, "assignee": {"id": 506}, "organization": {"id": 602}, "project": {"owner": {"id": 712}, "assignee": {"id": 832}, "organization": {"id": 923}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 446}, "assignee": {"id": 597}, "organization": {"id": 166}, "project": {"owner": {"id": 757}, "assignee": {"id": 804}, "organization": {"id": 998}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 420}, "assignee": {"id": 599}, "organization": {"id": 690}, "project": {"owner": {"id": 737}, "assignee": {"id": 832}, "organization": {"id": 928}}}} +} + +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": 68, "privilege": "admin"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 408}, "assignee": {"id": 596}, "organization": {"id": 651}, "project": {"owner": {"id": 68}, "assignee": {"id": 821}, "organization": {"id": 938}}}} +} + +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": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 457}, "assignee": {"id": 543}, "organization": {"id": 600}, "project": {"owner": {"id": 65}, "assignee": {"id": 842}, "organization": {"id": 962}}}} +} + +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": 68, "privilege": "user"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 454}, "assignee": {"id": 504}, "organization": {"id": 601}, "project": {"owner": {"id": 68}, "assignee": {"id": 867}, "organization": {"id": 928}}}} +} + +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": 50, "privilege": "worker"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 434}, "assignee": {"id": 588}, "organization": {"id": 671}, "project": {"owner": {"id": 50}, "assignee": {"id": 806}, "organization": {"id": 994}}}} +} + +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": 50, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 426}, "assignee": {"id": 526}, "organization": {"id": 652}, "project": {"owner": {"id": 50}, "assignee": {"id": 853}, "organization": {"id": 907}}}} +} + +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": 98, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 465}, "assignee": {"id": 580}, "organization": {"id": 667}, "project": {"owner": {"id": 702}, "assignee": {"id": 98}, "organization": {"id": 949}}}} +} + +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": 2, "privilege": "business"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 419}, "assignee": {"id": 516}, "organization": {"id": 660}, "project": {"owner": {"id": 784}, "assignee": {"id": 2}, "organization": {"id": 995}}}} +} + +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": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 437}, "assignee": {"id": 554}, "organization": {"id": 683}, "project": {"owner": {"id": 719}, "assignee": {"id": 85}, "organization": {"id": 982}}}} +} + +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": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 457}, "assignee": {"id": 595}, "organization": {"id": 610}, "project": {"owner": {"id": 728}, "assignee": {"id": 64}, "organization": {"id": 965}}}} +} + +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": 12, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 403}, "assignee": {"id": 598}, "organization": {"id": 672}, "project": {"owner": {"id": 745}, "assignee": {"id": 12}, "organization": {"id": 967}}}} +} + +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": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 59}, "assignee": {"id": 563}, "organization": {"id": 650}, "project": {"owner": {"id": 717}, "assignee": {"id": 835}, "organization": {"id": 930}}}} +} + +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": 59, "privilege": "business"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 59}, "assignee": {"id": 561}, "organization": {"id": 631}, "project": {"owner": {"id": 733}, "assignee": {"id": 836}, "organization": {"id": 988}}}} +} + +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": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 2}, "assignee": {"id": 593}, "organization": {"id": 687}, "project": {"owner": {"id": 751}, "assignee": {"id": 814}, "organization": {"id": 916}}}} +} + +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": 43, "privilege": "worker"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 43}, "assignee": {"id": 565}, "organization": {"id": 608}, "project": {"owner": {"id": 719}, "assignee": {"id": 825}, "organization": {"id": 950}}}} +} + +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": 65, "privilege": "none"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 65}, "assignee": {"id": 553}, "organization": {"id": 676}, "project": {"owner": {"id": 759}, "assignee": {"id": 852}, "organization": {"id": 958}}}} +} + +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": 20, "privilege": "admin"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 437}, "assignee": {"id": 20}, "organization": {"id": 671}, "project": {"owner": {"id": 784}, "assignee": {"id": 817}, "organization": {"id": 952}}}} +} + +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": 9, "privilege": "business"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 421}, "assignee": {"id": 9}, "organization": {"id": 688}, "project": {"owner": {"id": 730}, "assignee": {"id": 852}, "organization": {"id": 915}}}} +} + +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": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 420}, "assignee": {"id": 43}, "organization": {"id": 647}, "project": {"owner": {"id": 700}, "assignee": {"id": 805}, "organization": {"id": 964}}}} +} + +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": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 422}, "assignee": {"id": 56}, "organization": {"id": 676}, "project": {"owner": {"id": 779}, "assignee": {"id": 835}, "organization": {"id": 952}}}} +} + +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": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 475}, "assignee": {"id": 46}, "organization": {"id": 636}, "project": {"owner": {"id": 707}, "assignee": {"id": 816}, "organization": {"id": 980}}}} +} + +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": 91, "privilege": "admin"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 453}, "assignee": {"id": 547}, "organization": {"id": 610}, "project": {"owner": {"id": 768}, "assignee": {"id": 837}, "organization": {"id": 973}}}} +} + +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": 71, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 481}, "assignee": {"id": 567}, "organization": {"id": 621}, "project": {"owner": {"id": 739}, "assignee": {"id": 885}, "organization": {"id": 987}}}} +} + +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": 15, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 407}, "assignee": {"id": 543}, "organization": {"id": 676}, "project": {"owner": {"id": 788}, "assignee": {"id": 812}, "organization": {"id": 978}}}} +} + +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": 55, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 455}, "assignee": {"id": 547}, "organization": {"id": 656}, "project": {"owner": {"id": 743}, "assignee": {"id": 877}, "organization": {"id": 984}}}} +} + +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": 69, "privilege": "none"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 432}, "assignee": {"id": 577}, "organization": {"id": 601}, "project": {"owner": {"id": 749}, "assignee": {"id": 813}, "organization": {"id": 916}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 454}, "assignee": {"id": 594}, "organization": {"id": 150}, "project": {"owner": {"id": 58}, "assignee": {"id": 883}, "organization": {"id": 979}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 477}, "assignee": {"id": 533}, "organization": {"id": 624}, "project": {"owner": {"id": 45}, "assignee": {"id": 850}, "organization": {"id": 962}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 497}, "assignee": {"id": 577}, "organization": {"id": 161}, "project": {"owner": {"id": 10}, "assignee": {"id": 854}, "organization": {"id": 978}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 440}, "assignee": {"id": 532}, "organization": {"id": 691}, "project": {"owner": {"id": 35}, "assignee": {"id": 851}, "organization": {"id": 916}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 446}, "assignee": {"id": 581}, "organization": {"id": 196}, "project": {"owner": {"id": 27}, "assignee": {"id": 848}, "organization": {"id": 910}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 453}, "assignee": {"id": 599}, "organization": {"id": 647}, "project": {"owner": {"id": 97}, "assignee": {"id": 833}, "organization": {"id": 916}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 474}, "assignee": {"id": 559}, "organization": {"id": 140}, "project": {"owner": {"id": 48}, "assignee": {"id": 851}, "organization": {"id": 988}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 411}, "assignee": {"id": 548}, "organization": {"id": 658}, "project": {"owner": {"id": 19}, "assignee": {"id": 823}, "organization": {"id": 973}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 498}, "assignee": {"id": 532}, "organization": {"id": 198}, "project": {"owner": {"id": 49}, "assignee": {"id": 833}, "organization": {"id": 935}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 410}, "assignee": {"id": 584}, "organization": {"id": 671}, "project": {"owner": {"id": 57}, "assignee": {"id": 812}, "organization": {"id": 948}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 448}, "assignee": {"id": 501}, "organization": {"id": 108}, "project": {"owner": {"id": 31}, "assignee": {"id": 814}, "organization": {"id": 991}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 447}, "assignee": {"id": 562}, "organization": {"id": 670}, "project": {"owner": {"id": 83}, "assignee": {"id": 810}, "organization": {"id": 964}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 443}, "assignee": {"id": 526}, "organization": {"id": 132}, "project": {"owner": {"id": 30}, "assignee": {"id": 802}, "organization": {"id": 989}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 462}, "assignee": {"id": 520}, "organization": {"id": 683}, "project": {"owner": {"id": 95}, "assignee": {"id": 812}, "organization": {"id": 994}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 434}, "assignee": {"id": 539}, "organization": {"id": 192}, "project": {"owner": {"id": 2}, "assignee": {"id": 892}, "organization": {"id": 993}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 428}, "assignee": {"id": 590}, "organization": {"id": 627}, "project": {"owner": {"id": 63}, "assignee": {"id": 864}, "organization": {"id": 995}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 462}, "assignee": {"id": 594}, "organization": {"id": 167}, "project": {"owner": {"id": 51}, "assignee": {"id": 852}, "organization": {"id": 915}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 493}, "assignee": {"id": 502}, "organization": {"id": 676}, "project": {"owner": {"id": 4}, "assignee": {"id": 877}, "organization": {"id": 946}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 485}, "assignee": {"id": 531}, "organization": {"id": 177}, "project": {"owner": {"id": 64}, "assignee": {"id": 841}, "organization": {"id": 981}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 458}, "assignee": {"id": 543}, "organization": {"id": 690}, "project": {"owner": {"id": 72}, "assignee": {"id": 860}, "organization": {"id": 993}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 433}, "assignee": {"id": 593}, "organization": {"id": 132}, "project": {"owner": {"id": 5}, "assignee": {"id": 887}, "organization": {"id": 963}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 414}, "assignee": {"id": 582}, "organization": {"id": 650}, "project": {"owner": {"id": 79}, "assignee": {"id": 879}, "organization": {"id": 984}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 477}, "assignee": {"id": 560}, "organization": {"id": 154}, "project": {"owner": {"id": 10}, "assignee": {"id": 816}, "organization": {"id": 933}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 480}, "assignee": {"id": 518}, "organization": {"id": 690}, "project": {"owner": {"id": 37}, "assignee": {"id": 882}, "organization": {"id": 958}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 491}, "assignee": {"id": 572}, "organization": {"id": 155}, "project": {"owner": {"id": 83}, "assignee": {"id": 839}, "organization": {"id": 994}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 474}, "assignee": {"id": 589}, "organization": {"id": 668}, "project": {"owner": {"id": 86}, "assignee": {"id": 861}, "organization": {"id": 901}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 416}, "assignee": {"id": 546}, "organization": {"id": 190}, "project": {"owner": {"id": 50}, "assignee": {"id": 864}, "organization": {"id": 902}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 428}, "assignee": {"id": 548}, "organization": {"id": 606}, "project": {"owner": {"id": 20}, "assignee": {"id": 891}, "organization": {"id": 928}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 482}, "assignee": {"id": 595}, "organization": {"id": 167}, "project": {"owner": {"id": 94}, "assignee": {"id": 852}, "organization": {"id": 940}}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 424}, "assignee": {"id": 540}, "organization": {"id": 618}, "project": {"owner": {"id": 24}, "assignee": {"id": 882}, "organization": {"id": 915}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 424}, "assignee": {"id": 543}, "organization": {"id": 139}, "project": {"owner": {"id": 25}, "assignee": {"id": 820}, "organization": {"id": 943}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 423}, "assignee": {"id": 575}, "organization": {"id": 631}, "project": {"owner": {"id": 43}, "assignee": {"id": 826}, "organization": {"id": 994}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 478}, "assignee": {"id": 587}, "organization": {"id": 167}, "project": {"owner": {"id": 19}, "assignee": {"id": 884}, "organization": {"id": 980}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 442}, "assignee": {"id": 562}, "organization": {"id": 667}, "project": {"owner": {"id": 27}, "assignee": {"id": 858}, "organization": {"id": 910}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 483}, "assignee": {"id": 537}, "organization": {"id": 102}, "project": {"owner": {"id": 5}, "assignee": {"id": 841}, "organization": {"id": 964}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 425}, "assignee": {"id": 505}, "organization": {"id": 632}, "project": {"owner": {"id": 44}, "assignee": {"id": 848}, "organization": {"id": 911}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 400}, "assignee": {"id": 589}, "organization": {"id": 140}, "project": {"owner": {"id": 93}, "assignee": {"id": 836}, "organization": {"id": 938}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 487}, "assignee": {"id": 542}, "organization": {"id": 638}, "project": {"owner": {"id": 81}, "assignee": {"id": 847}, "organization": {"id": 974}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 489}, "assignee": {"id": 572}, "organization": {"id": 157}, "project": {"owner": {"id": 73}, "assignee": {"id": 834}, "organization": {"id": 904}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 451}, "assignee": {"id": 564}, "organization": {"id": 665}, "project": {"owner": {"id": 66}, "assignee": {"id": 869}, "organization": {"id": 970}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 473}, "assignee": {"id": 514}, "organization": {"id": 105}, "project": {"owner": {"id": 76}, "assignee": {"id": 837}, "organization": {"id": 946}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 487}, "assignee": {"id": 568}, "organization": {"id": 647}, "project": {"owner": {"id": 86}, "assignee": {"id": 805}, "organization": {"id": 928}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 408}, "assignee": {"id": 560}, "organization": {"id": 197}, "project": {"owner": {"id": 44}, "assignee": {"id": 846}, "organization": {"id": 913}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 442}, "assignee": {"id": 589}, "organization": {"id": 639}, "project": {"owner": {"id": 39}, "assignee": {"id": 874}, "organization": {"id": 939}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 490}, "assignee": {"id": 550}, "organization": {"id": 181}, "project": {"owner": {"id": 92}, "assignee": {"id": 872}, "organization": {"id": 917}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 449}, "assignee": {"id": 513}, "organization": {"id": 635}, "project": {"owner": {"id": 55}, "assignee": {"id": 864}, "organization": {"id": 922}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 466}, "assignee": {"id": 506}, "organization": {"id": 122}, "project": {"owner": {"id": 3}, "assignee": {"id": 865}, "organization": {"id": 934}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 465}, "assignee": {"id": 577}, "organization": {"id": 681}, "project": {"owner": {"id": 46}, "assignee": {"id": 802}, "organization": {"id": 964}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 404}, "assignee": {"id": 580}, "organization": {"id": 116}, "project": {"owner": {"id": 28}, "assignee": {"id": 816}, "organization": {"id": 990}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 482}, "assignee": {"id": 530}, "organization": {"id": 628}, "project": {"owner": {"id": 68}, "assignee": {"id": 880}, "organization": {"id": 994}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 405}, "assignee": {"id": 560}, "organization": {"id": 114}, "project": {"owner": {"id": 705}, "assignee": {"id": 13}, "organization": {"id": 957}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 498}, "assignee": {"id": 518}, "organization": {"id": 625}, "project": {"owner": {"id": 734}, "assignee": {"id": 86}, "organization": {"id": 968}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 439}, "assignee": {"id": 598}, "organization": {"id": 102}, "project": {"owner": {"id": 754}, "assignee": {"id": 95}, "organization": {"id": 954}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 484}, "assignee": {"id": 572}, "organization": {"id": 619}, "project": {"owner": {"id": 778}, "assignee": {"id": 20}, "organization": {"id": 981}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 477}, "assignee": {"id": 504}, "organization": {"id": 193}, "project": {"owner": {"id": 709}, "assignee": {"id": 31}, "organization": {"id": 991}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 416}, "assignee": {"id": 568}, "organization": {"id": 682}, "project": {"owner": {"id": 753}, "assignee": {"id": 0}, "organization": {"id": 975}}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 481}, "assignee": {"id": 563}, "organization": {"id": 190}, "project": {"owner": {"id": 739}, "assignee": {"id": 50}, "organization": {"id": 919}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 486}, "assignee": {"id": 595}, "organization": {"id": 626}, "project": {"owner": {"id": 774}, "assignee": {"id": 25}, "organization": {"id": 995}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 450}, "assignee": {"id": 590}, "organization": {"id": 178}, "project": {"owner": {"id": 780}, "assignee": {"id": 42}, "organization": {"id": 941}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 484}, "assignee": {"id": 522}, "organization": {"id": 662}, "project": {"owner": {"id": 782}, "assignee": {"id": 61}, "organization": {"id": 901}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 443}, "assignee": {"id": 513}, "organization": {"id": 105}, "project": {"owner": {"id": 721}, "assignee": {"id": 56}, "organization": {"id": 969}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 493}, "assignee": {"id": 524}, "organization": {"id": 676}, "project": {"owner": {"id": 748}, "assignee": {"id": 24}, "organization": {"id": 921}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 492}, "assignee": {"id": 530}, "organization": {"id": 148}, "project": {"owner": {"id": 767}, "assignee": {"id": 13}, "organization": {"id": 975}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 476}, "assignee": {"id": 554}, "organization": {"id": 626}, "project": {"owner": {"id": 713}, "assignee": {"id": 45}, "organization": {"id": 978}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 475}, "assignee": {"id": 574}, "organization": {"id": 160}, "project": {"owner": {"id": 729}, "assignee": {"id": 47}, "organization": {"id": 952}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 419}, "assignee": {"id": 578}, "organization": {"id": 605}, "project": {"owner": {"id": 774}, "assignee": {"id": 47}, "organization": {"id": 961}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 450}, "assignee": {"id": 561}, "organization": {"id": 172}, "project": {"owner": {"id": 762}, "assignee": {"id": 3}, "organization": {"id": 966}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 477}, "assignee": {"id": 511}, "organization": {"id": 662}, "project": {"owner": {"id": 774}, "assignee": {"id": 99}, "organization": {"id": 927}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 433}, "assignee": {"id": 522}, "organization": {"id": 150}, "project": {"owner": {"id": 729}, "assignee": {"id": 34}, "organization": {"id": 915}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 443}, "assignee": {"id": 598}, "organization": {"id": 638}, "project": {"owner": {"id": 757}, "assignee": {"id": 26}, "organization": {"id": 990}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 499}, "assignee": {"id": 596}, "organization": {"id": 181}, "project": {"owner": {"id": 765}, "assignee": {"id": 19}, "organization": {"id": 956}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 449}, "assignee": {"id": 574}, "organization": {"id": 640}, "project": {"owner": {"id": 733}, "assignee": {"id": 32}, "organization": {"id": 947}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 476}, "assignee": {"id": 519}, "organization": {"id": 176}, "project": {"owner": {"id": 784}, "assignee": {"id": 74}, "organization": {"id": 991}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 445}, "assignee": {"id": 568}, "organization": {"id": 648}, "project": {"owner": {"id": 728}, "assignee": {"id": 17}, "organization": {"id": 985}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 431}, "assignee": {"id": 551}, "organization": {"id": 155}, "project": {"owner": {"id": 755}, "assignee": {"id": 12}, "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": 27, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 400}, "assignee": {"id": 516}, "organization": {"id": 644}, "project": {"owner": {"id": 712}, "assignee": {"id": 27}, "organization": {"id": 960}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 437}, "assignee": {"id": 525}, "organization": {"id": 146}, "project": {"owner": {"id": 761}, "assignee": {"id": 13}, "organization": {"id": 965}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 425}, "assignee": {"id": 533}, "organization": {"id": 630}, "project": {"owner": {"id": 712}, "assignee": {"id": 89}, "organization": {"id": 999}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 449}, "assignee": {"id": 537}, "organization": {"id": 184}, "project": {"owner": {"id": 758}, "assignee": {"id": 92}, "organization": {"id": 934}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 441}, "assignee": {"id": 521}, "organization": {"id": 646}, "project": {"owner": {"id": 764}, "assignee": {"id": 47}, "organization": {"id": 999}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 422}, "assignee": {"id": 570}, "organization": {"id": 118}, "project": {"owner": {"id": 772}, "assignee": {"id": 50}, "organization": {"id": 908}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 408}, "assignee": {"id": 502}, "organization": {"id": 677}, "project": {"owner": {"id": 759}, "assignee": {"id": 50}, "organization": {"id": 930}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 411}, "assignee": {"id": 553}, "organization": {"id": 178}, "project": {"owner": {"id": 728}, "assignee": {"id": 49}, "organization": {"id": 959}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 410}, "assignee": {"id": 530}, "organization": {"id": 663}, "project": {"owner": {"id": 749}, "assignee": {"id": 60}, "organization": {"id": 907}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 460}, "assignee": {"id": 542}, "organization": {"id": 104}, "project": {"owner": {"id": 784}, "assignee": {"id": 78}, "organization": {"id": 933}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 416}, "assignee": {"id": 552}, "organization": {"id": 603}, "project": {"owner": {"id": 740}, "assignee": {"id": 11}, "organization": {"id": 932}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 440}, "assignee": {"id": 541}, "organization": {"id": 140}, "project": {"owner": {"id": 766}, "assignee": {"id": 39}, "organization": {"id": 982}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 413}, "assignee": {"id": 571}, "organization": {"id": 679}, "project": {"owner": {"id": 731}, "assignee": {"id": 53}, "organization": {"id": 958}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 415}, "assignee": {"id": 599}, "organization": {"id": 100}, "project": {"owner": {"id": 734}, "assignee": {"id": 49}, "organization": {"id": 904}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 421}, "assignee": {"id": 558}, "organization": {"id": 661}, "project": {"owner": {"id": 729}, "assignee": {"id": 42}, "organization": {"id": 988}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 426}, "assignee": {"id": 576}, "organization": {"id": 197}, "project": {"owner": {"id": 735}, "assignee": {"id": 19}, "organization": {"id": 963}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 403}, "assignee": {"id": 509}, "organization": {"id": 600}, "project": {"owner": {"id": 737}, "assignee": {"id": 73}, "organization": {"id": 946}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 430}, "assignee": {"id": 598}, "organization": {"id": 175}, "project": {"owner": {"id": 794}, "assignee": {"id": 54}, "organization": {"id": 954}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 486}, "assignee": {"id": 502}, "organization": {"id": 694}, "project": {"owner": {"id": 780}, "assignee": {"id": 87}, "organization": {"id": 950}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 471}, "assignee": {"id": 567}, "organization": {"id": 156}, "project": {"owner": {"id": 729}, "assignee": {"id": 87}, "organization": {"id": 980}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 430}, "assignee": {"id": 542}, "organization": {"id": 683}, "project": {"owner": {"id": 735}, "assignee": {"id": 17}, "organization": {"id": 936}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 469}, "assignee": {"id": 517}, "organization": {"id": 146}, "project": {"owner": {"id": 760}, "assignee": {"id": 2}, "organization": {"id": 910}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 432}, "assignee": {"id": 592}, "organization": {"id": 691}, "project": {"owner": {"id": 798}, "assignee": {"id": 46}, "organization": {"id": 933}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 465}, "assignee": {"id": 511}, "organization": {"id": 170}, "project": {"owner": {"id": 752}, "assignee": {"id": 14}, "organization": {"id": 986}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 418}, "assignee": {"id": 533}, "organization": {"id": 691}, "project": {"owner": {"id": 785}, "assignee": {"id": 87}, "organization": {"id": 973}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 17}, "assignee": {"id": 580}, "organization": {"id": 197}, "project": {"owner": {"id": 753}, "assignee": {"id": 802}, "organization": {"id": 968}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 40}, "assignee": {"id": 514}, "organization": {"id": 604}, "project": {"owner": {"id": 797}, "assignee": {"id": 890}, "organization": {"id": 927}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 55}, "assignee": {"id": 543}, "organization": {"id": 181}, "project": {"owner": {"id": 740}, "assignee": {"id": 817}, "organization": {"id": 979}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 64}, "assignee": {"id": 591}, "organization": {"id": 670}, "project": {"owner": {"id": 715}, "assignee": {"id": 895}, "organization": {"id": 910}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 77}, "assignee": {"id": 594}, "organization": {"id": 182}, "project": {"owner": {"id": 735}, "assignee": {"id": 836}, "organization": {"id": 981}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 22}, "assignee": {"id": 591}, "organization": {"id": 683}, "project": {"owner": {"id": 736}, "assignee": {"id": 823}, "organization": {"id": 970}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 69}, "assignee": {"id": 597}, "organization": {"id": 102}, "project": {"owner": {"id": 780}, "assignee": {"id": 803}, "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": 79, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 79}, "assignee": {"id": 516}, "organization": {"id": 666}, "project": {"owner": {"id": 706}, "assignee": {"id": 881}, "organization": {"id": 969}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 43}, "assignee": {"id": 528}, "organization": {"id": 116}, "project": {"owner": {"id": 728}, "assignee": {"id": 874}, "organization": {"id": 956}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 48}, "assignee": {"id": 576}, "organization": {"id": 663}, "project": {"owner": {"id": 787}, "assignee": {"id": 868}, "organization": {"id": 907}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 9}, "assignee": {"id": 535}, "organization": {"id": 104}, "project": {"owner": {"id": 742}, "assignee": {"id": 849}, "organization": {"id": 961}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 86}, "assignee": {"id": 518}, "organization": {"id": 614}, "project": {"owner": {"id": 711}, "assignee": {"id": 809}, "organization": {"id": 968}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 13}, "assignee": {"id": 591}, "organization": {"id": 142}, "project": {"owner": {"id": 769}, "assignee": {"id": 814}, "organization": {"id": 927}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 35}, "assignee": {"id": 557}, "organization": {"id": 691}, "project": {"owner": {"id": 781}, "assignee": {"id": 807}, "organization": {"id": 973}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 14}, "assignee": {"id": 528}, "organization": {"id": 184}, "project": {"owner": {"id": 700}, "assignee": {"id": 866}, "organization": {"id": 998}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 57}, "assignee": {"id": 507}, "organization": {"id": 641}, "project": {"owner": {"id": 705}, "assignee": {"id": 876}, "organization": {"id": 907}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 28}, "assignee": {"id": 524}, "organization": {"id": 177}, "project": {"owner": {"id": 712}, "assignee": {"id": 858}, "organization": {"id": 942}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 57}, "assignee": {"id": 507}, "organization": {"id": 637}, "project": {"owner": {"id": 715}, "assignee": {"id": 892}, "organization": {"id": 923}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 42}, "assignee": {"id": 542}, "organization": {"id": 167}, "project": {"owner": {"id": 745}, "assignee": {"id": 818}, "organization": {"id": 989}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 58}, "assignee": {"id": 561}, "organization": {"id": 656}, "project": {"owner": {"id": 711}, "assignee": {"id": 855}, "organization": {"id": 962}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 41}, "assignee": {"id": 559}, "organization": {"id": 173}, "project": {"owner": {"id": 708}, "assignee": {"id": 864}, "organization": {"id": 964}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 64}, "assignee": {"id": 529}, "organization": {"id": 639}, "project": {"owner": {"id": 716}, "assignee": {"id": 853}, "organization": {"id": 902}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 75}, "assignee": {"id": 535}, "organization": {"id": 174}, "project": {"owner": {"id": 746}, "assignee": {"id": 808}, "organization": {"id": 960}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 70}, "assignee": {"id": 558}, "organization": {"id": 630}, "project": {"owner": {"id": 758}, "assignee": {"id": 892}, "organization": {"id": 999}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 85}, "assignee": {"id": 579}, "organization": {"id": 141}, "project": {"owner": {"id": 756}, "assignee": {"id": 877}, "organization": {"id": 967}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 63}, "assignee": {"id": 555}, "organization": {"id": 627}, "project": {"owner": {"id": 768}, "assignee": {"id": 800}, "organization": {"id": 900}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 23}, "assignee": {"id": 542}, "organization": {"id": 144}, "project": {"owner": {"id": 718}, "assignee": {"id": 858}, "organization": {"id": 953}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 69}, "assignee": {"id": 565}, "organization": {"id": 644}, "project": {"owner": {"id": 745}, "assignee": {"id": 825}, "organization": {"id": 944}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 27}, "assignee": {"id": 576}, "organization": {"id": 132}, "project": {"owner": {"id": 722}, "assignee": {"id": 859}, "organization": {"id": 906}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 76}, "assignee": {"id": 576}, "organization": {"id": 648}, "project": {"owner": {"id": 710}, "assignee": {"id": 851}, "organization": {"id": 973}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 84}, "assignee": {"id": 570}, "organization": {"id": 179}, "project": {"owner": {"id": 709}, "assignee": {"id": 806}, "organization": {"id": 956}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 52}, "assignee": {"id": 510}, "organization": {"id": 621}, "project": {"owner": {"id": 790}, "assignee": {"id": 875}, "organization": {"id": 949}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 22}, "assignee": {"id": 579}, "organization": {"id": 187}, "project": {"owner": {"id": 705}, "assignee": {"id": 810}, "organization": {"id": 991}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 63}, "assignee": {"id": 582}, "organization": {"id": 671}, "project": {"owner": {"id": 762}, "assignee": {"id": 848}, "organization": {"id": 934}}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 12}, "assignee": {"id": 556}, "organization": {"id": 194}, "project": {"owner": {"id": 795}, "assignee": {"id": 836}, "organization": {"id": 953}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 57}, "assignee": {"id": 581}, "organization": {"id": 621}, "project": {"owner": {"id": 735}, "assignee": {"id": 872}, "organization": {"id": 957}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 57}, "assignee": {"id": 559}, "organization": {"id": 186}, "project": {"owner": {"id": 710}, "assignee": {"id": 818}, "organization": {"id": 908}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 54}, "assignee": {"id": 503}, "organization": {"id": 639}, "project": {"owner": {"id": 784}, "assignee": {"id": 836}, "organization": {"id": 932}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 28}, "assignee": {"id": 562}, "organization": {"id": 153}, "project": {"owner": {"id": 723}, "assignee": {"id": 898}, "organization": {"id": 959}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 81}, "assignee": {"id": 582}, "organization": {"id": 672}, "project": {"owner": {"id": 774}, "assignee": {"id": 862}, "organization": {"id": 996}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 13}, "assignee": {"id": 576}, "organization": {"id": 187}, "project": {"owner": {"id": 772}, "assignee": {"id": 873}, "organization": {"id": 921}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 93}, "assignee": {"id": 529}, "organization": {"id": 623}, "project": {"owner": {"id": 792}, "assignee": {"id": 872}, "organization": {"id": 984}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 6}, "assignee": {"id": 566}, "organization": {"id": 173}, "project": {"owner": {"id": 778}, "assignee": {"id": 896}, "organization": {"id": 997}}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 41}, "assignee": {"id": 568}, "organization": {"id": 612}, "project": {"owner": {"id": 742}, "assignee": {"id": 871}, "organization": {"id": 962}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 40}, "assignee": {"id": 592}, "organization": {"id": 158}, "project": {"owner": {"id": 787}, "assignee": {"id": 821}, "organization": {"id": 907}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 0}, "assignee": {"id": 511}, "organization": {"id": 622}, "project": {"owner": {"id": 712}, "assignee": {"id": 809}, "organization": {"id": 945}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 23}, "assignee": {"id": 599}, "organization": {"id": 106}, "project": {"owner": {"id": 759}, "assignee": {"id": 892}, "organization": {"id": 947}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 18}, "assignee": {"id": 509}, "organization": {"id": 691}, "project": {"owner": {"id": 737}, "assignee": {"id": 882}, "organization": {"id": 971}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 67}, "assignee": {"id": 501}, "organization": {"id": 173}, "project": {"owner": {"id": 735}, "assignee": {"id": 808}, "organization": {"id": 999}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 75}, "assignee": {"id": 542}, "organization": {"id": 627}, "project": {"owner": {"id": 739}, "assignee": {"id": 837}, "organization": {"id": 915}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 438}, "assignee": {"id": 32}, "organization": {"id": 105}, "project": {"owner": {"id": 727}, "assignee": {"id": 871}, "organization": {"id": 941}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 446}, "assignee": {"id": 18}, "organization": {"id": 637}, "project": {"owner": {"id": 792}, "assignee": {"id": 813}, "organization": {"id": 900}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 491}, "assignee": {"id": 80}, "organization": {"id": 128}, "project": {"owner": {"id": 751}, "assignee": {"id": 846}, "organization": {"id": 946}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 468}, "assignee": {"id": 47}, "organization": {"id": 661}, "project": {"owner": {"id": 736}, "assignee": {"id": 847}, "organization": {"id": 908}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 447}, "assignee": {"id": 91}, "organization": {"id": 199}, "project": {"owner": {"id": 759}, "assignee": {"id": 825}, "organization": {"id": 904}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 492}, "assignee": {"id": 0}, "organization": {"id": 627}, "project": {"owner": {"id": 781}, "assignee": {"id": 893}, "organization": {"id": 908}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 489}, "assignee": {"id": 2}, "organization": {"id": 178}, "project": {"owner": {"id": 763}, "assignee": {"id": 825}, "organization": {"id": 955}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 429}, "assignee": {"id": 39}, "organization": {"id": 655}, "project": {"owner": {"id": 779}, "assignee": {"id": 853}, "organization": {"id": 909}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 405}, "assignee": {"id": 52}, "organization": {"id": 134}, "project": {"owner": {"id": 723}, "assignee": {"id": 841}, "organization": {"id": 924}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 419}, "assignee": {"id": 41}, "organization": {"id": 674}, "project": {"owner": {"id": 703}, "assignee": {"id": 863}, "organization": {"id": 933}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 454}, "assignee": {"id": 4}, "organization": {"id": 158}, "project": {"owner": {"id": 717}, "assignee": {"id": 809}, "organization": {"id": 979}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 402}, "assignee": {"id": 78}, "organization": {"id": 626}, "project": {"owner": {"id": 711}, "assignee": {"id": 845}, "organization": {"id": 904}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 471}, "assignee": {"id": 77}, "organization": {"id": 116}, "project": {"owner": {"id": 790}, "assignee": {"id": 894}, "organization": {"id": 976}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 447}, "assignee": {"id": 32}, "organization": {"id": 666}, "project": {"owner": {"id": 707}, "assignee": {"id": 860}, "organization": {"id": 953}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 498}, "assignee": {"id": 87}, "organization": {"id": 138}, "project": {"owner": {"id": 797}, "assignee": {"id": 892}, "organization": {"id": 967}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 411}, "assignee": {"id": 27}, "organization": {"id": 637}, "project": {"owner": {"id": 757}, "assignee": {"id": 893}, "organization": {"id": 935}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 459}, "assignee": {"id": 11}, "organization": {"id": 113}, "project": {"owner": {"id": 716}, "assignee": {"id": 890}, "organization": {"id": 942}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 445}, "assignee": {"id": 25}, "organization": {"id": 627}, "project": {"owner": {"id": 758}, "assignee": {"id": 846}, "organization": {"id": 925}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 456}, "assignee": {"id": 66}, "organization": {"id": 181}, "project": {"owner": {"id": 748}, "assignee": {"id": 864}, "organization": {"id": 900}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 498}, "assignee": {"id": 22}, "organization": {"id": 600}, "project": {"owner": {"id": 753}, "assignee": {"id": 834}, "organization": {"id": 978}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 478}, "assignee": {"id": 62}, "organization": {"id": 179}, "project": {"owner": {"id": 715}, "assignee": {"id": 825}, "organization": {"id": 926}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 491}, "assignee": {"id": 32}, "organization": {"id": 657}, "project": {"owner": {"id": 760}, "assignee": {"id": 805}, "organization": {"id": 943}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 402}, "assignee": {"id": 65}, "organization": {"id": 180}, "project": {"owner": {"id": 776}, "assignee": {"id": 850}, "organization": {"id": 979}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 423}, "assignee": {"id": 3}, "organization": {"id": 609}, "project": {"owner": {"id": 716}, "assignee": {"id": 890}, "organization": {"id": 959}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 447}, "assignee": {"id": 19}, "organization": {"id": 116}, "project": {"owner": {"id": 703}, "assignee": {"id": 832}, "organization": {"id": 949}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 404}, "assignee": {"id": 10}, "organization": {"id": 624}, "project": {"owner": {"id": 744}, "assignee": {"id": 852}, "organization": {"id": 969}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 457}, "assignee": {"id": 60}, "organization": {"id": 188}, "project": {"owner": {"id": 762}, "assignee": {"id": 800}, "organization": {"id": 920}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 498}, "assignee": {"id": 45}, "organization": {"id": 604}, "project": {"owner": {"id": 722}, "assignee": {"id": 890}, "organization": {"id": 973}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 435}, "assignee": {"id": 68}, "organization": {"id": 150}, "project": {"owner": {"id": 736}, "assignee": {"id": 870}, "organization": {"id": 973}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 410}, "assignee": {"id": 6}, "organization": {"id": 657}, "project": {"owner": {"id": 769}, "assignee": {"id": 875}, "organization": {"id": 946}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 441}, "assignee": {"id": 92}, "organization": {"id": 156}, "project": {"owner": {"id": 766}, "assignee": {"id": 860}, "organization": {"id": 961}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 441}, "assignee": {"id": 89}, "organization": {"id": 654}, "project": {"owner": {"id": 776}, "assignee": {"id": 842}, "organization": {"id": 974}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 412}, "assignee": {"id": 61}, "organization": {"id": 150}, "project": {"owner": {"id": 711}, "assignee": {"id": 885}, "organization": {"id": 942}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 422}, "assignee": {"id": 6}, "organization": {"id": 665}, "project": {"owner": {"id": 794}, "assignee": {"id": 822}, "organization": {"id": 985}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 407}, "assignee": {"id": 57}, "organization": {"id": 109}, "project": {"owner": {"id": 717}, "assignee": {"id": 838}, "organization": {"id": 952}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 420}, "assignee": {"id": 56}, "organization": {"id": 687}, "project": {"owner": {"id": 777}, "assignee": {"id": 808}, "organization": {"id": 958}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 402}, "assignee": {"id": 64}, "organization": {"id": 174}, "project": {"owner": {"id": 780}, "assignee": {"id": 816}, "organization": {"id": 961}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 472}, "assignee": {"id": 41}, "organization": {"id": 699}, "project": {"owner": {"id": 766}, "assignee": {"id": 885}, "organization": {"id": 935}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 492}, "assignee": {"id": 47}, "organization": {"id": 144}, "project": {"owner": {"id": 727}, "assignee": {"id": 878}, "organization": {"id": 910}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 467}, "assignee": {"id": 74}, "organization": {"id": 691}, "project": {"owner": {"id": 724}, "assignee": {"id": 843}, "organization": {"id": 966}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 499}, "assignee": {"id": 15}, "organization": {"id": 147}, "project": {"owner": {"id": 757}, "assignee": {"id": 846}, "organization": {"id": 977}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 415}, "assignee": {"id": 92}, "organization": {"id": 631}, "project": {"owner": {"id": 792}, "assignee": {"id": 871}, "organization": {"id": 904}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 450}, "assignee": {"id": 83}, "organization": {"id": 174}, "project": {"owner": {"id": 797}, "assignee": {"id": 856}, "organization": {"id": 949}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 482}, "assignee": {"id": 35}, "organization": {"id": 647}, "project": {"owner": {"id": 798}, "assignee": {"id": 805}, "organization": {"id": 903}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 461}, "assignee": {"id": 89}, "organization": {"id": 117}, "project": {"owner": {"id": 708}, "assignee": {"id": 832}, "organization": {"id": 969}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 428}, "assignee": {"id": 15}, "organization": {"id": 671}, "project": {"owner": {"id": 776}, "assignee": {"id": 811}, "organization": {"id": 973}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 485}, "assignee": {"id": 21}, "organization": {"id": 177}, "project": {"owner": {"id": 700}, "assignee": {"id": 800}, "organization": {"id": 993}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 465}, "assignee": {"id": 45}, "organization": {"id": 613}, "project": {"owner": {"id": 704}, "assignee": {"id": 896}, "organization": {"id": 957}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 451}, "assignee": {"id": 64}, "organization": {"id": 137}, "project": {"owner": {"id": 748}, "assignee": {"id": 884}, "organization": {"id": 977}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 474}, "assignee": {"id": 0}, "organization": {"id": 624}, "project": {"owner": {"id": 745}, "assignee": {"id": 870}, "organization": {"id": 998}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 466}, "assignee": {"id": 585}, "organization": {"id": 169}, "project": {"owner": {"id": 797}, "assignee": {"id": 836}, "organization": {"id": 962}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 440}, "assignee": {"id": 503}, "organization": {"id": 636}, "project": {"owner": {"id": 744}, "assignee": {"id": 861}, "organization": {"id": 998}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 443}, "assignee": {"id": 583}, "organization": {"id": 167}, "project": {"owner": {"id": 773}, "assignee": {"id": 815}, "organization": {"id": 978}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 413}, "assignee": {"id": 583}, "organization": {"id": 696}, "project": {"owner": {"id": 765}, "assignee": {"id": 829}, "organization": {"id": 999}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 412}, "assignee": {"id": 553}, "organization": {"id": 138}, "project": {"owner": {"id": 701}, "assignee": {"id": 865}, "organization": {"id": 924}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 418}, "assignee": {"id": 529}, "organization": {"id": 698}, "project": {"owner": {"id": 781}, "assignee": {"id": 805}, "organization": {"id": 954}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 464}, "assignee": {"id": 523}, "organization": {"id": 120}, "project": {"owner": {"id": 792}, "assignee": {"id": 813}, "organization": {"id": 958}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 461}, "assignee": {"id": 585}, "organization": {"id": 679}, "project": {"owner": {"id": 728}, "assignee": {"id": 850}, "organization": {"id": 960}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 461}, "assignee": {"id": 573}, "organization": {"id": 166}, "project": {"owner": {"id": 714}, "assignee": {"id": 836}, "organization": {"id": 972}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 458}, "assignee": {"id": 545}, "organization": {"id": 674}, "project": {"owner": {"id": 787}, "assignee": {"id": 841}, "organization": {"id": 941}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 447}, "assignee": {"id": 503}, "organization": {"id": 190}, "project": {"owner": {"id": 757}, "assignee": {"id": 891}, "organization": {"id": 991}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 473}, "assignee": {"id": 517}, "organization": {"id": 600}, "project": {"owner": {"id": 743}, "assignee": {"id": 892}, "organization": {"id": 965}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 406}, "assignee": {"id": 599}, "organization": {"id": 109}, "project": {"owner": {"id": 762}, "assignee": {"id": 808}, "organization": {"id": 908}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 450}, "assignee": {"id": 504}, "organization": {"id": 618}, "project": {"owner": {"id": 706}, "assignee": {"id": 889}, "organization": {"id": 932}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 436}, "assignee": {"id": 570}, "organization": {"id": 112}, "project": {"owner": {"id": 778}, "assignee": {"id": 804}, "organization": {"id": 944}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 425}, "assignee": {"id": 573}, "organization": {"id": 678}, "project": {"owner": {"id": 785}, "assignee": {"id": 867}, "organization": {"id": 974}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 492}, "assignee": {"id": 554}, "organization": {"id": 194}, "project": {"owner": {"id": 729}, "assignee": {"id": 892}, "organization": {"id": 994}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 432}, "assignee": {"id": 593}, "organization": {"id": 664}, "project": {"owner": {"id": 749}, "assignee": {"id": 894}, "organization": {"id": 943}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 473}, "assignee": {"id": 562}, "organization": {"id": 100}, "project": {"owner": {"id": 738}, "assignee": {"id": 881}, "organization": {"id": 958}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 495}, "assignee": {"id": 568}, "organization": {"id": 627}, "project": {"owner": {"id": 779}, "assignee": {"id": 857}, "organization": {"id": 944}}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 414}, "assignee": {"id": 535}, "organization": {"id": 129}, "project": {"owner": {"id": 713}, "assignee": {"id": 865}, "organization": {"id": 988}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 466}, "assignee": {"id": 561}, "organization": {"id": 602}, "project": {"owner": {"id": 797}, "assignee": {"id": 899}, "organization": {"id": 969}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 413}, "assignee": {"id": 574}, "organization": {"id": 126}, "project": {"owner": {"id": 775}, "assignee": {"id": 860}, "organization": {"id": 926}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 487}, "assignee": {"id": 590}, "organization": {"id": 675}, "project": {"owner": {"id": 763}, "assignee": {"id": 818}, "organization": {"id": 963}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 496}, "assignee": {"id": 550}, "organization": {"id": 144}, "project": {"owner": {"id": 733}, "assignee": {"id": 881}, "organization": {"id": 956}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 484}, "assignee": {"id": 513}, "organization": {"id": 617}, "project": {"owner": {"id": 774}, "assignee": {"id": 831}, "organization": {"id": 960}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 477}, "assignee": {"id": 568}, "organization": {"id": 177}, "project": {"owner": {"id": 742}, "assignee": {"id": 882}, "organization": {"id": 978}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 447}, "assignee": {"id": 505}, "organization": {"id": 636}, "project": {"owner": {"id": 741}, "assignee": {"id": 825}, "organization": {"id": 940}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 427}, "assignee": {"id": 529}, "organization": {"id": 157}, "project": {"owner": {"id": 729}, "assignee": {"id": 853}, "organization": {"id": 932}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 485}, "assignee": {"id": 550}, "organization": {"id": 633}, "project": {"owner": {"id": 719}, "assignee": {"id": 846}, "organization": {"id": 991}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 465}, "assignee": {"id": 569}, "organization": {"id": 156}, "project": {"owner": {"id": 720}, "assignee": {"id": 887}, "organization": {"id": 922}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 439}, "assignee": {"id": 539}, "organization": {"id": 625}, "project": {"owner": {"id": 769}, "assignee": {"id": 807}, "organization": {"id": 918}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 450}, "assignee": {"id": 510}, "organization": {"id": 183}, "project": {"owner": {"id": 742}, "assignee": {"id": 810}, "organization": {"id": 920}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 436}, "assignee": {"id": 530}, "organization": {"id": 684}, "project": {"owner": {"id": 729}, "assignee": {"id": 889}, "organization": {"id": 961}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 451}, "assignee": {"id": 571}, "organization": {"id": 169}, "project": {"owner": {"id": 787}, "assignee": {"id": 840}, "organization": {"id": 964}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 447}, "assignee": {"id": 540}, "organization": {"id": 698}, "project": {"owner": {"id": 720}, "assignee": {"id": 882}, "organization": {"id": 914}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 475}, "assignee": {"id": 533}, "organization": {"id": 196}, "project": {"owner": {"id": 762}, "assignee": {"id": 872}, "organization": {"id": 978}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 484}, "assignee": {"id": 587}, "organization": {"id": 669}, "project": {"owner": {"id": 799}, "assignee": {"id": 852}, "organization": {"id": 989}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 406}, "assignee": {"id": 526}, "organization": {"id": 110}, "project": {"owner": {"id": 744}, "assignee": {"id": 882}, "organization": {"id": 906}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 413}, "assignee": {"id": 550}, "organization": {"id": 636}, "project": {"owner": {"id": 704}, "assignee": {"id": 843}, "organization": {"id": 999}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 492}, "assignee": {"id": 572}, "organization": {"id": 125}, "project": {"owner": {"id": 701}, "assignee": {"id": 841}, "organization": {"id": 912}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 457}, "assignee": {"id": 516}, "organization": {"id": 618}, "project": {"owner": {"id": 728}, "assignee": {"id": 847}, "organization": {"id": 952}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 422}, "assignee": {"id": 595}, "organization": {"id": 163}, "project": {"owner": {"id": 733}, "assignee": {"id": 852}, "organization": {"id": 999}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 407}, "assignee": {"id": 580}, "organization": {"id": 602}, "project": {"owner": {"id": 730}, "assignee": {"id": 898}, "organization": {"id": 992}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 450}, "assignee": {"id": 541}, "organization": {"id": 145}, "project": {"owner": {"id": 728}, "assignee": {"id": 858}, "organization": {"id": 984}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 433}, "assignee": {"id": 503}, "organization": {"id": 618}, "project": {"owner": {"id": 796}, "assignee": {"id": 884}, "organization": {"id": 972}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 495}, "assignee": {"id": 565}, "organization": {"id": 195}, "project": {"owner": {"id": 754}, "assignee": {"id": 831}, "organization": {"id": 938}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 400}, "assignee": {"id": 569}, "organization": {"id": 613}, "project": {"owner": {"id": 716}, "assignee": {"id": 864}, "organization": {"id": 950}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 490}, "assignee": {"id": 571}, "organization": {"id": 164}, "project": {"owner": {"id": 719}, "assignee": {"id": 893}, "organization": {"id": 970}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 431}, "assignee": {"id": 579}, "organization": {"id": 654}, "project": {"owner": {"id": 740}, "assignee": {"id": 819}, "organization": {"id": 901}}}} +} + +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": 33, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 462}, "assignee": {"id": 557}, "organization": {"id": 647}, "project": {"owner": {"id": 33}, "assignee": {"id": 833}, "organization": {"id": 979}}, "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": 11, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 460}, "assignee": {"id": 568}, "organization": {"id": 696}, "project": {"owner": {"id": 11}, "assignee": {"id": 827}, "organization": {"id": 950}}, "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": 96, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 403}, "assignee": {"id": 517}, "organization": {"id": 633}, "project": {"owner": {"id": 96}, "assignee": {"id": 835}, "organization": {"id": 978}}, "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": 77, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 482}, "assignee": {"id": 587}, "organization": {"id": 689}, "project": {"owner": {"id": 77}, "assignee": {"id": 846}, "organization": {"id": 970}}, "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": 1, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 494}, "assignee": {"id": 579}, "organization": {"id": 691}, "project": {"owner": {"id": 1}, "assignee": {"id": 814}, "organization": {"id": 902}}, "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": 74, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 461}, "assignee": {"id": 500}, "organization": {"id": 642}, "project": {"owner": {"id": 74}, "assignee": {"id": 883}, "organization": {"id": 995}}, "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": 68, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 494}, "assignee": {"id": 526}, "organization": {"id": 691}, "project": {"owner": {"id": 68}, "assignee": {"id": 844}, "organization": {"id": 917}}, "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": 52, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 487}, "assignee": {"id": 500}, "organization": {"id": 609}, "project": {"owner": {"id": 52}, "assignee": {"id": 839}, "organization": {"id": 962}}, "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": 59, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 403}, "assignee": {"id": 561}, "organization": {"id": 616}, "project": {"owner": {"id": 59}, "assignee": {"id": 881}, "organization": {"id": 903}}, "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": 70, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 457}, "assignee": {"id": 535}, "organization": {"id": 637}, "project": {"owner": {"id": 70}, "assignee": {"id": 861}, "organization": {"id": 985}}, "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": 81, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 481}, "assignee": {"id": 566}, "organization": {"id": 659}, "project": {"owner": {"id": 81}, "assignee": {"id": 824}, "organization": {"id": 922}}, "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": 21, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 496}, "assignee": {"id": 558}, "organization": {"id": 688}, "project": {"owner": {"id": 21}, "assignee": {"id": 852}, "organization": {"id": 911}}, "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": 67, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 478}, "assignee": {"id": 599}, "organization": {"id": 672}, "project": {"owner": {"id": 67}, "assignee": {"id": 832}, "organization": {"id": 961}}, "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": 93, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 497}, "assignee": {"id": 502}, "organization": {"id": 628}, "project": {"owner": {"id": 93}, "assignee": {"id": 813}, "organization": {"id": 915}}, "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": 32, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 437}, "assignee": {"id": 560}, "organization": {"id": 635}, "project": {"owner": {"id": 32}, "assignee": {"id": 802}, "organization": {"id": 926}}, "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": 62, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 492}, "assignee": {"id": 514}, "organization": {"id": 621}, "project": {"owner": {"id": 759}, "assignee": {"id": 62}, "organization": {"id": 940}}, "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": 87, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 418}, "assignee": {"id": 588}, "organization": {"id": 658}, "project": {"owner": {"id": 725}, "assignee": {"id": 87}, "organization": {"id": 954}}, "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": 1, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 400}, "assignee": {"id": 534}, "organization": {"id": 607}, "project": {"owner": {"id": 774}, "assignee": {"id": 1}, "organization": {"id": 966}}, "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": 15, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 425}, "assignee": {"id": 506}, "organization": {"id": 632}, "project": {"owner": {"id": 794}, "assignee": {"id": 15}, "organization": {"id": 963}}, "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": 15, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 431}, "assignee": {"id": 589}, "organization": {"id": 624}, "project": {"owner": {"id": 784}, "assignee": {"id": 15}, "organization": {"id": 941}}, "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": 79, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 472}, "assignee": {"id": 521}, "organization": {"id": 681}, "project": {"owner": {"id": 754}, "assignee": {"id": 79}, "organization": {"id": 971}}, "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": 1, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 488}, "assignee": {"id": 558}, "organization": {"id": 683}, "project": {"owner": {"id": 733}, "assignee": {"id": 1}, "organization": {"id": 996}}, "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": 19, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 442}, "assignee": {"id": 516}, "organization": {"id": 661}, "project": {"owner": {"id": 735}, "assignee": {"id": 19}, "organization": {"id": 969}}, "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": 76, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 456}, "assignee": {"id": 513}, "organization": {"id": 695}, "project": {"owner": {"id": 719}, "assignee": {"id": 76}, "organization": {"id": 919}}, "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": 88, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 493}, "assignee": {"id": 530}, "organization": {"id": 660}, "project": {"owner": {"id": 761}, "assignee": {"id": 88}, "organization": {"id": 952}}, "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": 49, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 441}, "assignee": {"id": 526}, "organization": {"id": 656}, "project": {"owner": {"id": 753}, "assignee": {"id": 49}, "organization": {"id": 962}}, "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": 25, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 461}, "assignee": {"id": 558}, "organization": {"id": 656}, "project": {"owner": {"id": 750}, "assignee": {"id": 25}, "organization": {"id": 924}}, "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": 64, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 448}, "assignee": {"id": 563}, "organization": {"id": 671}, "project": {"owner": {"id": 716}, "assignee": {"id": 64}, "organization": {"id": 914}}, "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": 10, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 410}, "assignee": {"id": 552}, "organization": {"id": 647}, "project": {"owner": {"id": 713}, "assignee": {"id": 10}, "organization": {"id": 992}}, "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": 30, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 437}, "assignee": {"id": 500}, "organization": {"id": 667}, "project": {"owner": {"id": 707}, "assignee": {"id": 30}, "organization": {"id": 984}}, "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": 0, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 458}, "assignee": {"id": 594}, "organization": {"id": 671}, "project": {"owner": {"id": 755}, "assignee": {"id": 834}, "organization": {"id": 985}}, "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": 81, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 449}, "assignee": {"id": 588}, "organization": {"id": 644}, "project": {"owner": {"id": 736}, "assignee": {"id": 864}, "organization": {"id": 927}}, "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": 30, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 459}, "assignee": {"id": 549}, "organization": {"id": 620}, "project": {"owner": {"id": 720}, "assignee": {"id": 894}, "organization": {"id": 910}}, "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": 58, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 495}, "assignee": {"id": 556}, "organization": {"id": 654}, "project": {"owner": {"id": 790}, "assignee": {"id": 822}, "organization": {"id": 946}}, "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": 36, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 430}, "assignee": {"id": 555}, "organization": {"id": 649}, "project": {"owner": {"id": 709}, "assignee": {"id": 831}, "organization": {"id": 989}}, "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": 13, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 472}, "assignee": {"id": 597}, "organization": {"id": 663}, "project": {"owner": {"id": 763}, "assignee": {"id": 859}, "organization": {"id": 914}}, "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": 26, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 436}, "assignee": {"id": 578}, "organization": {"id": 686}, "project": {"owner": {"id": 741}, "assignee": {"id": 844}, "organization": {"id": 966}}, "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": 91, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 475}, "assignee": {"id": 590}, "organization": {"id": 663}, "project": {"owner": {"id": 702}, "assignee": {"id": 860}, "organization": {"id": 922}}, "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": 84, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 476}, "assignee": {"id": 564}, "organization": {"id": 631}, "project": {"owner": {"id": 708}, "assignee": {"id": 807}, "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": 8, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 424}, "assignee": {"id": 540}, "organization": {"id": 608}, "project": {"owner": {"id": 775}, "assignee": {"id": 874}, "organization": {"id": 964}}, "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": 72, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 438}, "assignee": {"id": 565}, "organization": {"id": 655}, "project": {"owner": {"id": 705}, "assignee": {"id": 899}, "organization": {"id": 905}}, "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": 47, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 407}, "assignee": {"id": 557}, "organization": {"id": 648}, "project": {"owner": {"id": 759}, "assignee": {"id": 857}, "organization": {"id": 994}}, "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": 89, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 473}, "assignee": {"id": 501}, "organization": {"id": 664}, "project": {"owner": {"id": 716}, "assignee": {"id": 887}, "organization": {"id": 930}}, "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": 25, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 497}, "assignee": {"id": 517}, "organization": {"id": 613}, "project": {"owner": {"id": 736}, "assignee": {"id": 872}, "organization": {"id": 948}}, "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": 56, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 409}, "assignee": {"id": 541}, "organization": {"id": 649}, "project": {"owner": {"id": 756}, "assignee": {"id": 895}, "organization": {"id": 970}}, "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": 32, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 579}, "organization": {"id": 150}, "project": {"owner": {"id": 32}, "assignee": {"id": 823}, "organization": {"id": 936}}, "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": 30, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 506}, "organization": {"id": 153}, "project": {"owner": {"id": 30}, "assignee": {"id": 869}, "organization": {"id": 938}}, "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": 77, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 577}, "organization": {"id": 188}, "project": {"owner": {"id": 77}, "assignee": {"id": 822}, "organization": {"id": 985}}, "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": 21, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 588}, "organization": {"id": 668}, "project": {"owner": {"id": 21}, "assignee": {"id": 868}, "organization": {"id": 900}}, "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": 49, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 508}, "organization": {"id": 640}, "project": {"owner": {"id": 49}, "assignee": {"id": 824}, "organization": {"id": 963}}, "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": 61, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 503}, "organization": {"id": 650}, "project": {"owner": {"id": 61}, "assignee": {"id": 806}, "organization": {"id": 942}}, "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": 68, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 537}, "organization": {"id": 108}, "project": {"owner": {"id": 68}, "assignee": {"id": 807}, "organization": {"id": 997}}, "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": 84, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 508}, "organization": {"id": 122}, "project": {"owner": {"id": 84}, "assignee": {"id": 881}, "organization": {"id": 901}}, "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": 16, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 569}, "organization": {"id": 173}, "project": {"owner": {"id": 16}, "assignee": {"id": 888}, "organization": {"id": 971}}, "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": 83, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 573}, "organization": {"id": 610}, "project": {"owner": {"id": 83}, "assignee": {"id": 868}, "organization": {"id": 919}}, "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": 49, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 534}, "organization": {"id": 628}, "project": {"owner": {"id": 49}, "assignee": {"id": 840}, "organization": {"id": 992}}, "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": 9, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 524}, "organization": {"id": 660}, "project": {"owner": {"id": 9}, "assignee": {"id": 802}, "organization": {"id": 978}}, "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": 72, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 513}, "organization": {"id": 175}, "project": {"owner": {"id": 72}, "assignee": {"id": 823}, "organization": {"id": 922}}, "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": 64, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 521}, "organization": {"id": 162}, "project": {"owner": {"id": 64}, "assignee": {"id": 808}, "organization": {"id": 914}}, "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": 99, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 585}, "organization": {"id": 125}, "project": {"owner": {"id": 99}, "assignee": {"id": 858}, "organization": {"id": 910}}, "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": 4, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 580}, "organization": {"id": 616}, "project": {"owner": {"id": 4}, "assignee": {"id": 812}, "organization": {"id": 940}}, "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": 5, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 501}, "organization": {"id": 647}, "project": {"owner": {"id": 5}, "assignee": {"id": 868}, "organization": {"id": 909}}, "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": 32, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 521}, "organization": {"id": 651}, "project": {"owner": {"id": 32}, "assignee": {"id": 850}, "organization": {"id": 959}}, "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": 56, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 559}, "organization": {"id": 146}, "project": {"owner": {"id": 56}, "assignee": {"id": 862}, "organization": {"id": 904}}, "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": 17, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 501}, "organization": {"id": 189}, "project": {"owner": {"id": 17}, "assignee": {"id": 812}, "organization": {"id": 926}}, "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": 9, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 599}, "organization": {"id": 105}, "project": {"owner": {"id": 9}, "assignee": {"id": 843}, "organization": {"id": 922}}, "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": 27, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 582}, "organization": {"id": 654}, "project": {"owner": {"id": 27}, "assignee": {"id": 824}, "organization": {"id": 909}}, "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": 19, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 542}, "organization": {"id": 601}, "project": {"owner": {"id": 19}, "assignee": {"id": 803}, "organization": {"id": 902}}, "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": 1, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 539}, "organization": {"id": 670}, "project": {"owner": {"id": 1}, "assignee": {"id": 844}, "organization": {"id": 984}}, "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": 87, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 552}, "organization": {"id": 102}, "project": {"owner": {"id": 87}, "assignee": {"id": 817}, "organization": {"id": 984}}, "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": 29, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 503}, "organization": {"id": 123}, "project": {"owner": {"id": 29}, "assignee": {"id": 858}, "organization": {"id": 959}}, "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": 80, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 557}, "organization": {"id": 162}, "project": {"owner": {"id": 80}, "assignee": {"id": 873}, "organization": {"id": 934}}, "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": 44, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 522}, "organization": {"id": 630}, "project": {"owner": {"id": 44}, "assignee": {"id": 804}, "organization": {"id": 988}}, "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": 17, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 592}, "organization": {"id": 604}, "project": {"owner": {"id": 17}, "assignee": {"id": 865}, "organization": {"id": 944}}, "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": 44, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 509}, "organization": {"id": 664}, "project": {"owner": {"id": 44}, "assignee": {"id": 802}, "organization": {"id": 981}}, "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": 48, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 515}, "organization": {"id": 177}, "project": {"owner": {"id": 48}, "assignee": {"id": 841}, "organization": {"id": 955}}, "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": 74, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 554}, "organization": {"id": 140}, "project": {"owner": {"id": 74}, "assignee": {"id": 873}, "organization": {"id": 971}}, "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": 42, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 532}, "organization": {"id": 101}, "project": {"owner": {"id": 42}, "assignee": {"id": 892}, "organization": {"id": 975}}, "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": 87, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 557}, "organization": {"id": 612}, "project": {"owner": {"id": 87}, "assignee": {"id": 846}, "organization": {"id": 931}}, "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": 44, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 521}, "organization": {"id": 605}, "project": {"owner": {"id": 44}, "assignee": {"id": 813}, "organization": {"id": 977}}, "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": 34, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 527}, "organization": {"id": 603}, "project": {"owner": {"id": 34}, "assignee": {"id": 821}, "organization": {"id": 964}}, "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": 10, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 537}, "organization": {"id": 188}, "project": {"owner": {"id": 10}, "assignee": {"id": 834}, "organization": {"id": 917}}, "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": 6, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 519}, "organization": {"id": 119}, "project": {"owner": {"id": 6}, "assignee": {"id": 875}, "organization": {"id": 900}}, "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": 15, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 516}, "organization": {"id": 169}, "project": {"owner": {"id": 15}, "assignee": {"id": 826}, "organization": {"id": 975}}, "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": 83, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 588}, "organization": {"id": 623}, "project": {"owner": {"id": 83}, "assignee": {"id": 878}, "organization": {"id": 903}}, "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": 77, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 519}, "organization": {"id": 697}, "project": {"owner": {"id": 77}, "assignee": {"id": 888}, "organization": {"id": 927}}, "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": 67, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 540}, "organization": {"id": 629}, "project": {"owner": {"id": 67}, "assignee": {"id": 859}, "organization": {"id": 997}}, "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": 59, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 541}, "organization": {"id": 152}, "project": {"owner": {"id": 59}, "assignee": {"id": 806}, "organization": {"id": 907}}, "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": 39, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 511}, "organization": {"id": 159}, "project": {"owner": {"id": 39}, "assignee": {"id": 860}, "organization": {"id": 985}}, "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": 82, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 544}, "organization": {"id": 150}, "project": {"owner": {"id": 82}, "assignee": {"id": 821}, "organization": {"id": 984}}, "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": 5, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 508}, "organization": {"id": 608}, "project": {"owner": {"id": 5}, "assignee": {"id": 834}, "organization": {"id": 934}}, "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": 42, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 546}, "organization": {"id": 690}, "project": {"owner": {"id": 42}, "assignee": {"id": 814}, "organization": {"id": 986}}, "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": 14, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 549}, "organization": {"id": 606}, "project": {"owner": {"id": 14}, "assignee": {"id": 884}, "organization": {"id": 918}}, "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": 50, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 576}, "organization": {"id": 161}, "project": {"owner": {"id": 50}, "assignee": {"id": 884}, "organization": {"id": 941}}, "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": 23, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 511}, "organization": {"id": 138}, "project": {"owner": {"id": 23}, "assignee": {"id": 862}, "organization": {"id": 901}}, "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": 4, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 526}, "organization": {"id": 112}, "project": {"owner": {"id": 4}, "assignee": {"id": 826}, "organization": {"id": 994}}, "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": 34, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 536}, "organization": {"id": 677}, "project": {"owner": {"id": 34}, "assignee": {"id": 830}, "organization": {"id": 983}}, "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": 79, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 500}, "organization": {"id": 647}, "project": {"owner": {"id": 79}, "assignee": {"id": 839}, "organization": {"id": 935}}, "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": 92, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 514}, "organization": {"id": 637}, "project": {"owner": {"id": 92}, "assignee": {"id": 801}, "organization": {"id": 957}}, "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": 18, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 544}, "organization": {"id": 115}, "project": {"owner": {"id": 18}, "assignee": {"id": 814}, "organization": {"id": 923}}, "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": 20, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 516}, "organization": {"id": 107}, "project": {"owner": {"id": 20}, "assignee": {"id": 802}, "organization": {"id": 929}}, "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": 20, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 570}, "organization": {"id": 188}, "project": {"owner": {"id": 20}, "assignee": {"id": 850}, "organization": {"id": 928}}, "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": 20, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 565}, "organization": {"id": 693}, "project": {"owner": {"id": 20}, "assignee": {"id": 808}, "organization": {"id": 945}}, "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": 76, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 520}, "organization": {"id": 659}, "project": {"owner": {"id": 76}, "assignee": {"id": 893}, "organization": {"id": 964}}, "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": 80, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 582}, "organization": {"id": 660}, "project": {"owner": {"id": 80}, "assignee": {"id": 867}, "organization": {"id": 940}}, "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": 4, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 572}, "organization": {"id": 160}, "project": {"owner": {"id": 4}, "assignee": {"id": 893}, "organization": {"id": 942}}, "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": 27, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 596}, "organization": {"id": 188}, "project": {"owner": {"id": 27}, "assignee": {"id": 861}, "organization": {"id": 988}}, "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": 10, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 586}, "organization": {"id": 100}, "project": {"owner": {"id": 10}, "assignee": {"id": 846}, "organization": {"id": 992}}, "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": 99, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 527}, "organization": {"id": 680}, "project": {"owner": {"id": 99}, "assignee": {"id": 867}, "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": 19, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 561}, "organization": {"id": 608}, "project": {"owner": {"id": 19}, "assignee": {"id": 815}, "organization": {"id": 979}}, "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": 190, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 584}, "organization": {"id": 633}, "project": {"owner": {"id": 10}, "assignee": {"id": 827}, "organization": {"id": 963}}, "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": 97, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 535}, "organization": {"id": 157}, "project": {"owner": {"id": 97}, "assignee": {"id": 832}, "organization": {"id": 921}}, "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": 36, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 539}, "organization": {"id": 152}, "project": {"owner": {"id": 36}, "assignee": {"id": 828}, "organization": {"id": 945}}, "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": 64, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 534}, "organization": {"id": 168}, "project": {"owner": {"id": 64}, "assignee": {"id": 819}, "organization": {"id": 956}}, "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": 10, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 563}, "organization": {"id": 617}, "project": {"owner": {"id": 10}, "assignee": {"id": 833}, "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_FALSE { + not allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 563}, "organization": {"id": 667}, "project": {"owner": {"id": 27}, "assignee": {"id": 807}, "organization": {"id": 938}}, "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": 78, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 510}, "organization": {"id": 634}, "project": {"owner": {"id": 78}, "assignee": {"id": 875}, "organization": {"id": 911}}, "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": 56, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 556}, "organization": {"id": 124}, "project": {"owner": {"id": 56}, "assignee": {"id": 870}, "organization": {"id": 983}}, "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": 46, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 590}, "organization": {"id": 178}, "project": {"owner": {"id": 46}, "assignee": {"id": 843}, "organization": {"id": 904}}, "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": 80, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 509}, "organization": {"id": 168}, "project": {"owner": {"id": 80}, "assignee": {"id": 854}, "organization": {"id": 969}}, "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": 7, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 553}, "organization": {"id": 665}, "project": {"owner": {"id": 7}, "assignee": {"id": 819}, "organization": {"id": 947}}, "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": 96, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 539}, "organization": {"id": 628}, "project": {"owner": {"id": 96}, "assignee": {"id": 860}, "organization": {"id": 940}}, "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": 31, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 592}, "organization": {"id": 669}, "project": {"owner": {"id": 31}, "assignee": {"id": 802}, "organization": {"id": 992}}, "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": 51, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 576}, "organization": {"id": 155}, "project": {"owner": {"id": 51}, "assignee": {"id": 864}, "organization": {"id": 929}}, "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": 21, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 522}, "organization": {"id": 156}, "project": {"owner": {"id": 21}, "assignee": {"id": 827}, "organization": {"id": 916}}, "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": 99, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 583}, "organization": {"id": 157}, "project": {"owner": {"id": 99}, "assignee": {"id": 807}, "organization": {"id": 902}}, "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": 24, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 590}, "organization": {"id": 671}, "project": {"owner": {"id": 24}, "assignee": {"id": 877}, "organization": {"id": 957}}, "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": 40, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 569}, "organization": {"id": 657}, "project": {"owner": {"id": 40}, "assignee": {"id": 811}, "organization": {"id": 972}}, "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": 69, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 500}, "organization": {"id": 688}, "project": {"owner": {"id": 69}, "assignee": {"id": 816}, "organization": {"id": 922}}, "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": 10, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 529}, "organization": {"id": 162}, "project": {"owner": {"id": 10}, "assignee": {"id": 849}, "organization": {"id": 924}}, "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": 82, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 579}, "organization": {"id": 197}, "project": {"owner": {"id": 82}, "assignee": {"id": 881}, "organization": {"id": 986}}, "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": 29, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 581}, "organization": {"id": 121}, "project": {"owner": {"id": 29}, "assignee": {"id": 856}, "organization": {"id": 915}}, "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": 96, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 588}, "organization": {"id": 605}, "project": {"owner": {"id": 96}, "assignee": {"id": 885}, "organization": {"id": 985}}, "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": 64, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 526}, "organization": {"id": 624}, "project": {"owner": {"id": 64}, "assignee": {"id": 842}, "organization": {"id": 909}}, "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": 13, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 530}, "organization": {"id": 616}, "project": {"owner": {"id": 13}, "assignee": {"id": 828}, "organization": {"id": 940}}, "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": 6, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 521}, "organization": {"id": 110}, "project": {"owner": {"id": 6}, "assignee": {"id": 873}, "organization": {"id": 969}}, "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": 72, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 522}, "organization": {"id": 193}, "project": {"owner": {"id": 72}, "assignee": {"id": 871}, "organization": {"id": 937}}, "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": 62, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 591}, "organization": {"id": 101}, "project": {"owner": {"id": 62}, "assignee": {"id": 883}, "organization": {"id": 906}}, "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": 45, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 544}, "organization": {"id": 636}, "project": {"owner": {"id": 45}, "assignee": {"id": 840}, "organization": {"id": 977}}, "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": 85, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 558}, "organization": {"id": 602}, "project": {"owner": {"id": 85}, "assignee": {"id": 854}, "organization": {"id": 983}}, "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": 25, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 595}, "organization": {"id": 611}, "project": {"owner": {"id": 25}, "assignee": {"id": 855}, "organization": {"id": 911}}, "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": 69, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 514}, "organization": {"id": 178}, "project": {"owner": {"id": 69}, "assignee": {"id": 802}, "organization": {"id": 951}}, "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": 36, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 520}, "organization": {"id": 180}, "project": {"owner": {"id": 36}, "assignee": {"id": 805}, "organization": {"id": 951}}, "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": 35, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 516}, "organization": {"id": 112}, "project": {"owner": {"id": 35}, "assignee": {"id": 857}, "organization": {"id": 954}}, "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": 0, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 517}, "organization": {"id": 689}, "project": {"owner": {"id": 0}, "assignee": {"id": 844}, "organization": {"id": 954}}, "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": 14, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 570}, "organization": {"id": 672}, "project": {"owner": {"id": 14}, "assignee": {"id": 845}, "organization": {"id": 968}}, "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": 16, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 552}, "organization": {"id": 634}, "project": {"owner": {"id": 16}, "assignee": {"id": 801}, "organization": {"id": 968}}, "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": 99, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 577}, "organization": {"id": 109}, "project": {"owner": {"id": 99}, "assignee": {"id": 838}, "organization": {"id": 917}}, "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": 52, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 564}, "organization": {"id": 142}, "project": {"owner": {"id": 52}, "assignee": {"id": 815}, "organization": {"id": 935}}, "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": 28, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 579}, "organization": {"id": 109}, "project": {"owner": {"id": 28}, "assignee": {"id": 802}, "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": 79, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 525}, "organization": {"id": 659}, "project": {"owner": {"id": 79}, "assignee": {"id": 858}, "organization": {"id": 953}}, "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": 59, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 589}, "organization": {"id": 673}, "project": {"owner": {"id": 59}, "assignee": {"id": 893}, "organization": {"id": 964}}, "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": 199, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 510}, "organization": {"id": 613}, "project": {"owner": {"id": 85}, "assignee": {"id": 890}, "organization": {"id": 944}}, "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": 5, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 583}, "organization": {"id": 196}, "project": {"owner": {"id": 5}, "assignee": {"id": 841}, "organization": {"id": 998}}, "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": 1, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 595}, "organization": {"id": 162}, "project": {"owner": {"id": 1}, "assignee": {"id": 895}, "organization": {"id": 984}}, "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": 90, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 594}, "organization": {"id": 114}, "project": {"owner": {"id": 90}, "assignee": {"id": 830}, "organization": {"id": 920}}, "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": 46, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 534}, "organization": {"id": 629}, "project": {"owner": {"id": 46}, "assignee": {"id": 817}, "organization": {"id": 950}}, "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": 38, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 554}, "organization": {"id": 619}, "project": {"owner": {"id": 38}, "assignee": {"id": 859}, "organization": {"id": 976}}, "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": 83, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 573}, "organization": {"id": 681}, "project": {"owner": {"id": 83}, "assignee": {"id": 834}, "organization": {"id": 986}}, "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": 4, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 569}, "organization": {"id": 146}, "project": {"owner": {"id": 4}, "assignee": {"id": 890}, "organization": {"id": 916}}, "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": 40, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 529}, "organization": {"id": 121}, "project": {"owner": {"id": 40}, "assignee": {"id": 817}, "organization": {"id": 966}}, "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": 84, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 516}, "organization": {"id": 163}, "project": {"owner": {"id": 84}, "assignee": {"id": 851}, "organization": {"id": 938}}, "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": 64, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 592}, "organization": {"id": 654}, "project": {"owner": {"id": 64}, "assignee": {"id": 804}, "organization": {"id": 974}}, "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": 54, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 567}, "organization": {"id": 662}, "project": {"owner": {"id": 54}, "assignee": {"id": 816}, "organization": {"id": 917}}, "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": 92, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 550}, "organization": {"id": 645}, "project": {"owner": {"id": 92}, "assignee": {"id": 861}, "organization": {"id": 946}}, "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": 97, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 536}, "organization": {"id": 180}, "project": {"owner": {"id": 97}, "assignee": {"id": 862}, "organization": {"id": 974}}, "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": 34, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 564}, "organization": {"id": 196}, "project": {"owner": {"id": 34}, "assignee": {"id": 801}, "organization": {"id": 947}}, "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": 52, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 585}, "organization": {"id": 102}, "project": {"owner": {"id": 52}, "assignee": {"id": 886}, "organization": {"id": 975}}, "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": 28, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 512}, "organization": {"id": 648}, "project": {"owner": {"id": 28}, "assignee": {"id": 886}, "organization": {"id": 996}}, "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": 47, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 552}, "organization": {"id": 625}, "project": {"owner": {"id": 47}, "assignee": {"id": 878}, "organization": {"id": 900}}, "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": 68, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 568}, "organization": {"id": 667}, "project": {"owner": {"id": 68}, "assignee": {"id": 869}, "organization": {"id": 951}}, "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": 72, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 554}, "organization": {"id": 192}, "project": {"owner": {"id": 72}, "assignee": {"id": 896}, "organization": {"id": 991}}, "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": 27, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 586}, "organization": {"id": 101}, "project": {"owner": {"id": 27}, "assignee": {"id": 888}, "organization": {"id": 914}}, "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": 66, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 510}, "organization": {"id": 193}, "project": {"owner": {"id": 66}, "assignee": {"id": 856}, "organization": {"id": 920}}, "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": 59, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 550}, "organization": {"id": 610}, "project": {"owner": {"id": 59}, "assignee": {"id": 878}, "organization": {"id": 991}}, "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": 47, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 550}, "organization": {"id": 661}, "project": {"owner": {"id": 47}, "assignee": {"id": 810}, "organization": {"id": 947}}, "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": 89, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 508}, "organization": {"id": 629}, "project": {"owner": {"id": 89}, "assignee": {"id": 873}, "organization": {"id": 946}}, "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": 80, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 599}, "organization": {"id": 133}, "project": {"owner": {"id": 80}, "assignee": {"id": 868}, "organization": {"id": 934}}, "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": 24, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 584}, "organization": {"id": 124}, "project": {"owner": {"id": 24}, "assignee": {"id": 807}, "organization": {"id": 912}}, "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": 92, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 515}, "organization": {"id": 186}, "project": {"owner": {"id": 92}, "assignee": {"id": 862}, "organization": {"id": 962}}, "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": 46, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 557}, "organization": {"id": 635}, "project": {"owner": {"id": 46}, "assignee": {"id": 842}, "organization": {"id": 986}}, "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": 19, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 573}, "organization": {"id": 679}, "project": {"owner": {"id": 19}, "assignee": {"id": 877}, "organization": {"id": 908}}, "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": 12, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 595}, "organization": {"id": 655}, "project": {"owner": {"id": 12}, "assignee": {"id": 814}, "organization": {"id": 918}}, "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": 44, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 568}, "organization": {"id": 183}, "project": {"owner": {"id": 44}, "assignee": {"id": 845}, "organization": {"id": 921}}, "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": 21, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 550}, "organization": {"id": 175}, "project": {"owner": {"id": 21}, "assignee": {"id": 865}, "organization": {"id": 951}}, "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": 45, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 535}, "organization": {"id": 119}, "project": {"owner": {"id": 45}, "assignee": {"id": 899}, "organization": {"id": 997}}, "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": 65, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 562}, "organization": {"id": 667}, "project": {"owner": {"id": 65}, "assignee": {"id": 820}, "organization": {"id": 923}}, "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": 44, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 536}, "organization": {"id": 662}, "project": {"owner": {"id": 44}, "assignee": {"id": 847}, "organization": {"id": 930}}, "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": 67, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 558}, "organization": {"id": 653}, "project": {"owner": {"id": 67}, "assignee": {"id": 867}, "organization": {"id": 976}}, "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": 9, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 541}, "organization": {"id": 185}, "project": {"owner": {"id": 9}, "assignee": {"id": 897}, "organization": {"id": 965}}, "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": 49, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 593}, "organization": {"id": 119}, "project": {"owner": {"id": 49}, "assignee": {"id": 801}, "organization": {"id": 914}}, "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": 88, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 534}, "organization": {"id": 137}, "project": {"owner": {"id": 88}, "assignee": {"id": 898}, "organization": {"id": 989}}, "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": 41, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 523}, "organization": {"id": 608}, "project": {"owner": {"id": 41}, "assignee": {"id": 892}, "organization": {"id": 917}}, "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": 98, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 542}, "organization": {"id": 671}, "project": {"owner": {"id": 98}, "assignee": {"id": 809}, "organization": {"id": 960}}, "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": 7, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 523}, "organization": {"id": 676}, "project": {"owner": {"id": 7}, "assignee": {"id": 845}, "organization": {"id": 992}}, "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": 64, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 534}, "organization": {"id": 106}, "project": {"owner": {"id": 732}, "assignee": {"id": 64}, "organization": {"id": 947}}, "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": 48, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 557}, "organization": {"id": 116}, "project": {"owner": {"id": 796}, "assignee": {"id": 48}, "organization": {"id": 972}}, "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": 39, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 585}, "organization": {"id": 194}, "project": {"owner": {"id": 763}, "assignee": {"id": 39}, "organization": {"id": 911}}, "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": 48, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 547}, "organization": {"id": 652}, "project": {"owner": {"id": 738}, "assignee": {"id": 48}, "organization": {"id": 966}}, "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": 93, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 529}, "organization": {"id": 657}, "project": {"owner": {"id": 737}, "assignee": {"id": 93}, "organization": {"id": 940}}, "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": 63, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 549}, "organization": {"id": 682}, "project": {"owner": {"id": 779}, "assignee": {"id": 63}, "organization": {"id": 933}}, "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": 70, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 589}, "organization": {"id": 157}, "project": {"owner": {"id": 705}, "assignee": {"id": 70}, "organization": {"id": 996}}, "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": 50, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 543}, "organization": {"id": 182}, "project": {"owner": {"id": 757}, "assignee": {"id": 50}, "organization": {"id": 933}}, "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": 80, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 563}, "organization": {"id": 168}, "project": {"owner": {"id": 789}, "assignee": {"id": 80}, "organization": {"id": 944}}, "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": 78, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 545}, "organization": {"id": 640}, "project": {"owner": {"id": 701}, "assignee": {"id": 78}, "organization": {"id": 920}}, "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": 52, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 518}, "organization": {"id": 609}, "project": {"owner": {"id": 705}, "assignee": {"id": 52}, "organization": {"id": 902}}, "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": 82, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 535}, "organization": {"id": 613}, "project": {"owner": {"id": 704}, "assignee": {"id": 82}, "organization": {"id": 989}}, "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": 68, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 568}, "organization": {"id": 123}, "project": {"owner": {"id": 742}, "assignee": {"id": 68}, "organization": {"id": 927}}, "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": 70, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 559}, "organization": {"id": 184}, "project": {"owner": {"id": 713}, "assignee": {"id": 70}, "organization": {"id": 943}}, "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": 66, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 590}, "organization": {"id": 158}, "project": {"owner": {"id": 764}, "assignee": {"id": 66}, "organization": {"id": 986}}, "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": 25, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 588}, "organization": {"id": 645}, "project": {"owner": {"id": 780}, "assignee": {"id": 25}, "organization": {"id": 909}}, "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": 60, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 545}, "organization": {"id": 600}, "project": {"owner": {"id": 771}, "assignee": {"id": 60}, "organization": {"id": 937}}, "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": 23, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 516}, "organization": {"id": 676}, "project": {"owner": {"id": 788}, "assignee": {"id": 23}, "organization": {"id": 947}}, "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": 93, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 543}, "organization": {"id": 102}, "project": {"owner": {"id": 708}, "assignee": {"id": 93}, "organization": {"id": 974}}, "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": 16, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 581}, "organization": {"id": 113}, "project": {"owner": {"id": 798}, "assignee": {"id": 16}, "organization": {"id": 916}}, "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": 88, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 511}, "organization": {"id": 111}, "project": {"owner": {"id": 772}, "assignee": {"id": 88}, "organization": {"id": 937}}, "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": 49, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 549}, "organization": {"id": 653}, "project": {"owner": {"id": 790}, "assignee": {"id": 49}, "organization": {"id": 946}}, "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": 29, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 523}, "organization": {"id": 615}, "project": {"owner": {"id": 747}, "assignee": {"id": 29}, "organization": {"id": 974}}, "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": 10, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 549}, "organization": {"id": 684}, "project": {"owner": {"id": 703}, "assignee": {"id": 10}, "organization": {"id": 913}}, "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": 47, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 578}, "organization": {"id": 121}, "project": {"owner": {"id": 710}, "assignee": {"id": 47}, "organization": {"id": 990}}, "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": 60, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 592}, "organization": {"id": 127}, "project": {"owner": {"id": 747}, "assignee": {"id": 60}, "organization": {"id": 920}}, "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": 30, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 546}, "organization": {"id": 183}, "project": {"owner": {"id": 714}, "assignee": {"id": 30}, "organization": {"id": 906}}, "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": 50, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 551}, "organization": {"id": 664}, "project": {"owner": {"id": 703}, "assignee": {"id": 50}, "organization": {"id": 923}}, "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": 51, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 511}, "organization": {"id": 655}, "project": {"owner": {"id": 716}, "assignee": {"id": 51}, "organization": {"id": 955}}, "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": 45, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 553}, "organization": {"id": 672}, "project": {"owner": {"id": 705}, "assignee": {"id": 45}, "organization": {"id": 926}}, "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": 87, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 584}, "organization": {"id": 113}, "project": {"owner": {"id": 750}, "assignee": {"id": 87}, "organization": {"id": 910}}, "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": 21, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 587}, "organization": {"id": 146}, "project": {"owner": {"id": 706}, "assignee": {"id": 21}, "organization": {"id": 901}}, "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": 93, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 573}, "organization": {"id": 139}, "project": {"owner": {"id": 706}, "assignee": {"id": 93}, "organization": {"id": 968}}, "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": 43, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 546}, "organization": {"id": 631}, "project": {"owner": {"id": 747}, "assignee": {"id": 43}, "organization": {"id": 920}}, "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": 89, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 520}, "organization": {"id": 633}, "project": {"owner": {"id": 774}, "assignee": {"id": 89}, "organization": {"id": 982}}, "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": 50, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 516}, "organization": {"id": 610}, "project": {"owner": {"id": 711}, "assignee": {"id": 50}, "organization": {"id": 998}}, "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": 40, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 512}, "organization": {"id": 167}, "project": {"owner": {"id": 754}, "assignee": {"id": 40}, "organization": {"id": 903}}, "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": 39, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 563}, "organization": {"id": 168}, "project": {"owner": {"id": 724}, "assignee": {"id": 39}, "organization": {"id": 923}}, "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": 58, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 558}, "organization": {"id": 143}, "project": {"owner": {"id": 781}, "assignee": {"id": 58}, "organization": {"id": 971}}, "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": 28, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 591}, "organization": {"id": 611}, "project": {"owner": {"id": 796}, "assignee": {"id": 28}, "organization": {"id": 944}}, "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": 19, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 578}, "organization": {"id": 656}, "project": {"owner": {"id": 781}, "assignee": {"id": 19}, "organization": {"id": 947}}, "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": 25, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 567}, "organization": {"id": 673}, "project": {"owner": {"id": 723}, "assignee": {"id": 25}, "organization": {"id": 933}}, "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": 40, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 570}, "organization": {"id": 164}, "project": {"owner": {"id": 791}, "assignee": {"id": 40}, "organization": {"id": 944}}, "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": 63, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 585}, "organization": {"id": 171}, "project": {"owner": {"id": 782}, "assignee": {"id": 63}, "organization": {"id": 932}}, "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": 64, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 502}, "organization": {"id": 139}, "project": {"owner": {"id": 724}, "assignee": {"id": 64}, "organization": {"id": 950}}, "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": 62, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 552}, "organization": {"id": 600}, "project": {"owner": {"id": 797}, "assignee": {"id": 62}, "organization": {"id": 945}}, "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": 10, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 513}, "organization": {"id": 685}, "project": {"owner": {"id": 786}, "assignee": {"id": 10}, "organization": {"id": 929}}, "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": 43, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 528}, "organization": {"id": 648}, "project": {"owner": {"id": 710}, "assignee": {"id": 43}, "organization": {"id": 903}}, "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": 94, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 531}, "organization": {"id": 115}, "project": {"owner": {"id": 753}, "assignee": {"id": 94}, "organization": {"id": 981}}, "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": 39, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 597}, "organization": {"id": 177}, "project": {"owner": {"id": 724}, "assignee": {"id": 39}, "organization": {"id": 955}}, "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": 86, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 597}, "organization": {"id": 176}, "project": {"owner": {"id": 759}, "assignee": {"id": 86}, "organization": {"id": 916}}, "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": 25, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 576}, "organization": {"id": 617}, "project": {"owner": {"id": 777}, "assignee": {"id": 25}, "organization": {"id": 983}}, "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": 115, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 578}, "organization": {"id": 628}, "project": {"owner": {"id": 786}, "assignee": {"id": 20}, "organization": {"id": 973}}, "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": 88, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 564}, "organization": {"id": 687}, "project": {"owner": {"id": 764}, "assignee": {"id": 88}, "organization": {"id": 954}}, "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": 30, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 505}, "organization": {"id": 136}, "project": {"owner": {"id": 725}, "assignee": {"id": 30}, "organization": {"id": 993}}, "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": 40, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 544}, "organization": {"id": 172}, "project": {"owner": {"id": 776}, "assignee": {"id": 40}, "organization": {"id": 976}}, "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": 29, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 514}, "organization": {"id": 139}, "project": {"owner": {"id": 742}, "assignee": {"id": 29}, "organization": {"id": 918}}, "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": 37, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 526}, "organization": {"id": 621}, "project": {"owner": {"id": 787}, "assignee": {"id": 37}, "organization": {"id": 950}}, "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": 2, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 539}, "organization": {"id": 691}, "project": {"owner": {"id": 797}, "assignee": {"id": 2}, "organization": {"id": 919}}, "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": 26, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 564}, "organization": {"id": 685}, "project": {"owner": {"id": 727}, "assignee": {"id": 26}, "organization": {"id": 908}}, "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": 75, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 524}, "organization": {"id": 112}, "project": {"owner": {"id": 797}, "assignee": {"id": 75}, "organization": {"id": 972}}, "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": 63, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 597}, "organization": {"id": 176}, "project": {"owner": {"id": 734}, "assignee": {"id": 63}, "organization": {"id": 914}}, "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": 34, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 527}, "organization": {"id": 106}, "project": {"owner": {"id": 773}, "assignee": {"id": 34}, "organization": {"id": 993}}, "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": 21, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 583}, "organization": {"id": 693}, "project": {"owner": {"id": 707}, "assignee": {"id": 21}, "organization": {"id": 934}}, "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": 10, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 527}, "organization": {"id": 699}, "project": {"owner": {"id": 760}, "assignee": {"id": 10}, "organization": {"id": 970}}, "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": 31, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 597}, "organization": {"id": 615}, "project": {"owner": {"id": 702}, "assignee": {"id": 31}, "organization": {"id": 964}}, "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": 70, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 532}, "organization": {"id": 171}, "project": {"owner": {"id": 703}, "assignee": {"id": 70}, "organization": {"id": 976}}, "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": 63, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 586}, "organization": {"id": 168}, "project": {"owner": {"id": 736}, "assignee": {"id": 63}, "organization": {"id": 930}}, "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": 95, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 574}, "organization": {"id": 193}, "project": {"owner": {"id": 771}, "assignee": {"id": 95}, "organization": {"id": 925}}, "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": 29, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 547}, "organization": {"id": 697}, "project": {"owner": {"id": 728}, "assignee": {"id": 29}, "organization": {"id": 961}}, "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": 64, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 550}, "organization": {"id": 662}, "project": {"owner": {"id": 726}, "assignee": {"id": 64}, "organization": {"id": 913}}, "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": 58, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 548}, "organization": {"id": 609}, "project": {"owner": {"id": 733}, "assignee": {"id": 58}, "organization": {"id": 911}}, "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": 12, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 562}, "organization": {"id": 157}, "project": {"owner": {"id": 760}, "assignee": {"id": 12}, "organization": {"id": 936}}, "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": 13, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 521}, "organization": {"id": 168}, "project": {"owner": {"id": 700}, "assignee": {"id": 13}, "organization": {"id": 915}}, "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": 85, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 539}, "organization": {"id": 154}, "project": {"owner": {"id": 711}, "assignee": {"id": 85}, "organization": {"id": 961}}, "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": 12, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 534}, "organization": {"id": 654}, "project": {"owner": {"id": 752}, "assignee": {"id": 12}, "organization": {"id": 995}}, "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": 1, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 537}, "organization": {"id": 653}, "project": {"owner": {"id": 773}, "assignee": {"id": 1}, "organization": {"id": 961}}, "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": 58, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 508}, "organization": {"id": 616}, "project": {"owner": {"id": 734}, "assignee": {"id": 58}, "organization": {"id": 913}}, "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": 69, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 532}, "organization": {"id": 135}, "project": {"owner": {"id": 763}, "assignee": {"id": 69}, "organization": {"id": 924}}, "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": 14, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 527}, "organization": {"id": 158}, "project": {"owner": {"id": 711}, "assignee": {"id": 14}, "organization": {"id": 997}}, "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": 97, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 567}, "organization": {"id": 173}, "project": {"owner": {"id": 736}, "assignee": {"id": 97}, "organization": {"id": 940}}, "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": 85, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 531}, "organization": {"id": 655}, "project": {"owner": {"id": 712}, "assignee": {"id": 85}, "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_FALSE { + not allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 549}, "organization": {"id": 699}, "project": {"owner": {"id": 703}, "assignee": {"id": 2}, "organization": {"id": 992}}, "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": 63, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 575}, "organization": {"id": 621}, "project": {"owner": {"id": 784}, "assignee": {"id": 63}, "organization": {"id": 952}}, "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": 52, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 520}, "organization": {"id": 102}, "project": {"owner": {"id": 701}, "assignee": {"id": 52}, "organization": {"id": 930}}, "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": 48, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 557}, "organization": {"id": 159}, "project": {"owner": {"id": 751}, "assignee": {"id": 48}, "organization": {"id": 930}}, "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": 71, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 579}, "organization": {"id": 162}, "project": {"owner": {"id": 760}, "assignee": {"id": 71}, "organization": {"id": 968}}, "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": 1, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 589}, "organization": {"id": 681}, "project": {"owner": {"id": 797}, "assignee": {"id": 1}, "organization": {"id": 907}}, "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": 6, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 578}, "organization": {"id": 607}, "project": {"owner": {"id": 744}, "assignee": {"id": 6}, "organization": {"id": 975}}, "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": 10, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 539}, "organization": {"id": 617}, "project": {"owner": {"id": 766}, "assignee": {"id": 10}, "organization": {"id": 978}}, "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": 61, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 529}, "organization": {"id": 172}, "project": {"owner": {"id": 752}, "assignee": {"id": 61}, "organization": {"id": 918}}, "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": 82, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 585}, "organization": {"id": 128}, "project": {"owner": {"id": 724}, "assignee": {"id": 82}, "organization": {"id": 902}}, "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": 17, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 519}, "organization": {"id": 121}, "project": {"owner": {"id": 776}, "assignee": {"id": 17}, "organization": {"id": 901}}, "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": 6, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 561}, "organization": {"id": 635}, "project": {"owner": {"id": 780}, "assignee": {"id": 6}, "organization": {"id": 908}}, "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": 14, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 569}, "organization": {"id": 689}, "project": {"owner": {"id": 741}, "assignee": {"id": 14}, "organization": {"id": 921}}, "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": 34, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 500}, "organization": {"id": 647}, "project": {"owner": {"id": 746}, "assignee": {"id": 34}, "organization": {"id": 906}}, "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": 78, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 587}, "organization": {"id": 137}, "project": {"owner": {"id": 707}, "assignee": {"id": 78}, "organization": {"id": 964}}, "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": 30, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 518}, "organization": {"id": 126}, "project": {"owner": {"id": 702}, "assignee": {"id": 30}, "organization": {"id": 990}}, "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": 64, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 502}, "organization": {"id": 161}, "project": {"owner": {"id": 760}, "assignee": {"id": 64}, "organization": {"id": 968}}, "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": 26, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 591}, "organization": {"id": 632}, "project": {"owner": {"id": 738}, "assignee": {"id": 26}, "organization": {"id": 954}}, "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": 18, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 530}, "organization": {"id": 692}, "project": {"owner": {"id": 799}, "assignee": {"id": 18}, "organization": {"id": 966}}, "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": 35, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 568}, "organization": {"id": 603}, "project": {"owner": {"id": 735}, "assignee": {"id": 35}, "organization": {"id": 985}}, "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": 53, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 512}, "organization": {"id": 122}, "project": {"owner": {"id": 790}, "assignee": {"id": 53}, "organization": {"id": 984}}, "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": 86, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 559}, "organization": {"id": 199}, "project": {"owner": {"id": 741}, "assignee": {"id": 86}, "organization": {"id": 962}}, "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": 78, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 501}, "organization": {"id": 125}, "project": {"owner": {"id": 718}, "assignee": {"id": 78}, "organization": {"id": 917}}, "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": 20, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 515}, "organization": {"id": 685}, "project": {"owner": {"id": 771}, "assignee": {"id": 20}, "organization": {"id": 916}}, "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": 5, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 518}, "organization": {"id": 667}, "project": {"owner": {"id": 768}, "assignee": {"id": 5}, "organization": {"id": 982}}, "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": 13, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 571}, "organization": {"id": 663}, "project": {"owner": {"id": 761}, "assignee": {"id": 13}, "organization": {"id": 929}}, "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": 63, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 582}, "organization": {"id": 143}, "project": {"owner": {"id": 766}, "assignee": {"id": 63}, "organization": {"id": 974}}, "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": 90, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 598}, "organization": {"id": 196}, "project": {"owner": {"id": 775}, "assignee": {"id": 90}, "organization": {"id": 925}}, "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": 99, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 555}, "organization": {"id": 114}, "project": {"owner": {"id": 750}, "assignee": {"id": 99}, "organization": {"id": 962}}, "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": 19, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 557}, "organization": {"id": 641}, "project": {"owner": {"id": 765}, "assignee": {"id": 19}, "organization": {"id": 905}}, "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": 49, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 591}, "organization": {"id": 694}, "project": {"owner": {"id": 796}, "assignee": {"id": 49}, "organization": {"id": 930}}, "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": 196, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 511}, "organization": {"id": 610}, "project": {"owner": {"id": 760}, "assignee": {"id": 86}, "organization": {"id": 962}}, "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": 26, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 528}, "organization": {"id": 157}, "project": {"owner": {"id": 711}, "assignee": {"id": 26}, "organization": {"id": 905}}, "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": 83, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 597}, "organization": {"id": 179}, "project": {"owner": {"id": 736}, "assignee": {"id": 83}, "organization": {"id": 986}}, "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": 32, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 516}, "organization": {"id": 198}, "project": {"owner": {"id": 781}, "assignee": {"id": 32}, "organization": {"id": 994}}, "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": 65, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 580}, "organization": {"id": 635}, "project": {"owner": {"id": 715}, "assignee": {"id": 65}, "organization": {"id": 965}}, "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": 13, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 530}, "organization": {"id": 693}, "project": {"owner": {"id": 794}, "assignee": {"id": 13}, "organization": {"id": 924}}, "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": 41, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 591}, "organization": {"id": 682}, "project": {"owner": {"id": 712}, "assignee": {"id": 41}, "organization": {"id": 985}}, "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": 15, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 511}, "organization": {"id": 193}, "project": {"owner": {"id": 726}, "assignee": {"id": 15}, "organization": {"id": 953}}, "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": 7, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 552}, "organization": {"id": 165}, "project": {"owner": {"id": 781}, "assignee": {"id": 7}, "organization": {"id": 916}}, "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": 8, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 577}, "organization": {"id": 190}, "project": {"owner": {"id": 758}, "assignee": {"id": 8}, "organization": {"id": 926}}, "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": 2, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 545}, "organization": {"id": 649}, "project": {"owner": {"id": 760}, "assignee": {"id": 2}, "organization": {"id": 929}}, "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": 37, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 578}, "organization": {"id": 667}, "project": {"owner": {"id": 701}, "assignee": {"id": 37}, "organization": {"id": 993}}, "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": 86, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 551}, "organization": {"id": 603}, "project": {"owner": {"id": 768}, "assignee": {"id": 86}, "organization": {"id": 947}}, "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": 75, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 590}, "organization": {"id": 160}, "project": {"owner": {"id": 734}, "assignee": {"id": 75}, "organization": {"id": 931}}, "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": 61, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 551}, "organization": {"id": 125}, "project": {"owner": {"id": 716}, "assignee": {"id": 61}, "organization": {"id": 919}}, "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": 99, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 506}, "organization": {"id": 165}, "project": {"owner": {"id": 788}, "assignee": {"id": 99}, "organization": {"id": 982}}, "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": 99, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 526}, "organization": {"id": 664}, "project": {"owner": {"id": 719}, "assignee": {"id": 99}, "organization": {"id": 938}}, "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": 1, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 523}, "organization": {"id": 667}, "project": {"owner": {"id": 771}, "assignee": {"id": 1}, "organization": {"id": 905}}, "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": 61, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 568}, "organization": {"id": 698}, "project": {"owner": {"id": 713}, "assignee": {"id": 61}, "organization": {"id": 906}}, "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": 48, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 598}, "organization": {"id": 195}, "project": {"owner": {"id": 739}, "assignee": {"id": 48}, "organization": {"id": 905}}, "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": 63, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 562}, "organization": {"id": 141}, "project": {"owner": {"id": 724}, "assignee": {"id": 63}, "organization": {"id": 938}}, "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": 13, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 507}, "organization": {"id": 146}, "project": {"owner": {"id": 791}, "assignee": {"id": 13}, "organization": {"id": 996}}, "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": 42, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 593}, "organization": {"id": 685}, "project": {"owner": {"id": 705}, "assignee": {"id": 42}, "organization": {"id": 984}}, "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": 0, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 553}, "organization": {"id": 646}, "project": {"owner": {"id": 750}, "assignee": {"id": 0}, "organization": {"id": 958}}, "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": 84, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 575}, "organization": {"id": 695}, "project": {"owner": {"id": 749}, "assignee": {"id": 84}, "organization": {"id": 980}}, "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": 51, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 526}, "organization": {"id": 115}, "project": {"owner": {"id": 745}, "assignee": {"id": 51}, "organization": {"id": 909}}, "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": 70, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 504}, "organization": {"id": 180}, "project": {"owner": {"id": 778}, "assignee": {"id": 70}, "organization": {"id": 907}}, "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": 43, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 585}, "organization": {"id": 120}, "project": {"owner": {"id": 782}, "assignee": {"id": 43}, "organization": {"id": 946}}, "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": 7, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 564}, "organization": {"id": 669}, "project": {"owner": {"id": 799}, "assignee": {"id": 7}, "organization": {"id": 962}}, "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": 57, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 540}, "organization": {"id": 693}, "project": {"owner": {"id": 753}, "assignee": {"id": 57}, "organization": {"id": 906}}, "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": 85, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 544}, "organization": {"id": 682}, "project": {"owner": {"id": 772}, "assignee": {"id": 85}, "organization": {"id": 960}}, "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": 57, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 510}, "organization": {"id": 134}, "project": {"owner": {"id": 788}, "assignee": {"id": 57}, "organization": {"id": 924}}, "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": 86, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 503}, "organization": {"id": 104}, "project": {"owner": {"id": 794}, "assignee": {"id": 86}, "organization": {"id": 975}}, "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": 12, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 529}, "organization": {"id": 163}, "project": {"owner": {"id": 735}, "assignee": {"id": 12}, "organization": {"id": 922}}, "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": 16, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 532}, "organization": {"id": 627}, "project": {"owner": {"id": 756}, "assignee": {"id": 16}, "organization": {"id": 950}}, "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": 90, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 535}, "organization": {"id": 671}, "project": {"owner": {"id": 749}, "assignee": {"id": 90}, "organization": {"id": 999}}, "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": 99, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 537}, "organization": {"id": 675}, "project": {"owner": {"id": 778}, "assignee": {"id": 99}, "organization": {"id": 966}}, "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": 59, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 552}, "organization": {"id": 108}, "project": {"owner": {"id": 756}, "assignee": {"id": 820}, "organization": {"id": 923}}, "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": 27, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 598}, "organization": {"id": 197}, "project": {"owner": {"id": 734}, "assignee": {"id": 883}, "organization": {"id": 900}}, "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": 88, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 529}, "organization": {"id": 182}, "project": {"owner": {"id": 728}, "assignee": {"id": 875}, "organization": {"id": 994}}, "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": 98, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 560}, "organization": {"id": 686}, "project": {"owner": {"id": 799}, "assignee": {"id": 824}, "organization": {"id": 987}}, "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": 32, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 536}, "organization": {"id": 685}, "project": {"owner": {"id": 711}, "assignee": {"id": 844}, "organization": {"id": 918}}, "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": 82, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 527}, "organization": {"id": 666}, "project": {"owner": {"id": 719}, "assignee": {"id": 810}, "organization": {"id": 929}}, "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": 8, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 515}, "organization": {"id": 105}, "project": {"owner": {"id": 741}, "assignee": {"id": 802}, "organization": {"id": 993}}, "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": 14, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 599}, "organization": {"id": 165}, "project": {"owner": {"id": 765}, "assignee": {"id": 838}, "organization": {"id": 941}}, "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": 0, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 548}, "organization": {"id": 192}, "project": {"owner": {"id": 736}, "assignee": {"id": 814}, "organization": {"id": 912}}, "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": 93, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 555}, "organization": {"id": 640}, "project": {"owner": {"id": 767}, "assignee": {"id": 869}, "organization": {"id": 927}}, "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": 69, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 535}, "organization": {"id": 622}, "project": {"owner": {"id": 784}, "assignee": {"id": 819}, "organization": {"id": 908}}, "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": 51, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 510}, "organization": {"id": 619}, "project": {"owner": {"id": 783}, "assignee": {"id": 858}, "organization": {"id": 920}}, "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": 66, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 561}, "organization": {"id": 170}, "project": {"owner": {"id": 767}, "assignee": {"id": 874}, "organization": {"id": 929}}, "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": 84, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 545}, "organization": {"id": 179}, "project": {"owner": {"id": 742}, "assignee": {"id": 890}, "organization": {"id": 999}}, "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": 72, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 577}, "organization": {"id": 145}, "project": {"owner": {"id": 716}, "assignee": {"id": 839}, "organization": {"id": 969}}, "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": 73, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 526}, "organization": {"id": 627}, "project": {"owner": {"id": 776}, "assignee": {"id": 811}, "organization": {"id": 976}}, "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": 42, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 571}, "organization": {"id": 666}, "project": {"owner": {"id": 781}, "assignee": {"id": 805}, "organization": {"id": 956}}, "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": 16, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 564}, "organization": {"id": 604}, "project": {"owner": {"id": 762}, "assignee": {"id": 832}, "organization": {"id": 984}}, "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": 81, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 521}, "organization": {"id": 193}, "project": {"owner": {"id": 785}, "assignee": {"id": 820}, "organization": {"id": 989}}, "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": 53, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 561}, "organization": {"id": 173}, "project": {"owner": {"id": 770}, "assignee": {"id": 817}, "organization": {"id": 955}}, "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": 24, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 501}, "organization": {"id": 120}, "project": {"owner": {"id": 705}, "assignee": {"id": 860}, "organization": {"id": 972}}, "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": 59, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 599}, "organization": {"id": 616}, "project": {"owner": {"id": 782}, "assignee": {"id": 805}, "organization": {"id": 908}}, "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": 73, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 571}, "organization": {"id": 661}, "project": {"owner": {"id": 799}, "assignee": {"id": 893}, "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_FALSE { + allow with input as {"scope": "create@project", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 574}, "organization": {"id": 636}, "project": {"owner": {"id": 792}, "assignee": {"id": 822}, "organization": {"id": 992}}, "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": 1, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 520}, "organization": {"id": 172}, "project": {"owner": {"id": 755}, "assignee": {"id": 873}, "organization": {"id": 989}}, "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": 23, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 597}, "organization": {"id": 111}, "project": {"owner": {"id": 751}, "assignee": {"id": 817}, "organization": {"id": 983}}, "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": 64, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 548}, "organization": {"id": 180}, "project": {"owner": {"id": 749}, "assignee": {"id": 832}, "organization": {"id": 950}}, "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": 85, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 531}, "organization": {"id": 684}, "project": {"owner": {"id": 772}, "assignee": {"id": 866}, "organization": {"id": 925}}, "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": 41, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 515}, "organization": {"id": 645}, "project": {"owner": {"id": 777}, "assignee": {"id": 820}, "organization": {"id": 940}}, "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": 21, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 523}, "organization": {"id": 691}, "project": {"owner": {"id": 746}, "assignee": {"id": 805}, "organization": {"id": 968}}, "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": 13, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 532}, "organization": {"id": 128}, "project": {"owner": {"id": 710}, "assignee": {"id": 896}, "organization": {"id": 908}}, "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": 31, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 549}, "organization": {"id": 171}, "project": {"owner": {"id": 705}, "assignee": {"id": 822}, "organization": {"id": 989}}, "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": 83, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 594}, "organization": {"id": 140}, "project": {"owner": {"id": 718}, "assignee": {"id": 818}, "organization": {"id": 987}}, "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": 0, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 539}, "organization": {"id": 669}, "project": {"owner": {"id": 735}, "assignee": {"id": 891}, "organization": {"id": 994}}, "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": 38, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 503}, "organization": {"id": 694}, "project": {"owner": {"id": 718}, "assignee": {"id": 812}, "organization": {"id": 925}}, "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": 34, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 543}, "organization": {"id": 635}, "project": {"owner": {"id": 780}, "assignee": {"id": 831}, "organization": {"id": 973}}, "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": 65, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 525}, "organization": {"id": 107}, "project": {"owner": {"id": 715}, "assignee": {"id": 850}, "organization": {"id": 910}}, "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": 23, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 594}, "organization": {"id": 112}, "project": {"owner": {"id": 764}, "assignee": {"id": 837}, "organization": {"id": 954}}, "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": 23, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 531}, "organization": {"id": 181}, "project": {"owner": {"id": 780}, "assignee": {"id": 826}, "organization": {"id": 920}}, "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": 5, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 563}, "organization": {"id": 696}, "project": {"owner": {"id": 754}, "assignee": {"id": 821}, "organization": {"id": 983}}, "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": 71, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 528}, "organization": {"id": 618}, "project": {"owner": {"id": 749}, "assignee": {"id": 853}, "organization": {"id": 992}}, "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": 29, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 595}, "organization": {"id": 626}, "project": {"owner": {"id": 772}, "assignee": {"id": 851}, "organization": {"id": 945}}, "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": 87, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 585}, "organization": {"id": 106}, "project": {"owner": {"id": 737}, "assignee": {"id": 861}, "organization": {"id": 952}}, "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": 56, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 583}, "organization": {"id": 177}, "project": {"owner": {"id": 774}, "assignee": {"id": 815}, "organization": {"id": 948}}, "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": 29, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 554}, "organization": {"id": 118}, "project": {"owner": {"id": 712}, "assignee": {"id": 894}, "organization": {"id": 929}}, "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": 38, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 524}, "organization": {"id": 651}, "project": {"owner": {"id": 797}, "assignee": {"id": 843}, "organization": {"id": 976}}, "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": 57, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 553}, "organization": {"id": 651}, "project": {"owner": {"id": 715}, "assignee": {"id": 897}, "organization": {"id": 983}}, "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": 27, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 550}, "organization": {"id": 659}, "project": {"owner": {"id": 716}, "assignee": {"id": 802}, "organization": {"id": 992}}, "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": 34, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 517}, "organization": {"id": 192}, "project": {"owner": {"id": 792}, "assignee": {"id": 849}, "organization": {"id": 947}}, "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": 133, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 588}, "organization": {"id": 133}, "project": {"owner": {"id": 789}, "assignee": {"id": 864}, "organization": {"id": 908}}, "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": 98, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 558}, "organization": {"id": 101}, "project": {"owner": {"id": 739}, "assignee": {"id": 829}, "organization": {"id": 902}}, "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": 20, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 550}, "organization": {"id": 618}, "project": {"owner": {"id": 716}, "assignee": {"id": 818}, "organization": {"id": 947}}, "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": 20, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 502}, "organization": {"id": 653}, "project": {"owner": {"id": 779}, "assignee": {"id": 819}, "organization": {"id": 991}}, "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": 16, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 586}, "organization": {"id": 624}, "project": {"owner": {"id": 705}, "assignee": {"id": 855}, "organization": {"id": 909}}, "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": 66, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 548}, "organization": {"id": 138}, "project": {"owner": {"id": 751}, "assignee": {"id": 824}, "organization": {"id": 970}}, "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": 28, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 559}, "organization": {"id": 157}, "project": {"owner": {"id": 717}, "assignee": {"id": 879}, "organization": {"id": 939}}, "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": 24, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 505}, "organization": {"id": 128}, "project": {"owner": {"id": 765}, "assignee": {"id": 809}, "organization": {"id": 986}}, "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": 90, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 593}, "organization": {"id": 626}, "project": {"owner": {"id": 717}, "assignee": {"id": 814}, "organization": {"id": 936}}, "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": 53, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 560}, "organization": {"id": 615}, "project": {"owner": {"id": 783}, "assignee": {"id": 823}, "organization": {"id": 911}}, "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": 77, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 574}, "organization": {"id": 651}, "project": {"owner": {"id": 733}, "assignee": {"id": 875}, "organization": {"id": 991}}, "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": 11, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 565}, "organization": {"id": 145}, "project": {"owner": {"id": 753}, "assignee": {"id": 813}, "organization": {"id": 972}}, "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": 31, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 532}, "organization": {"id": 106}, "project": {"owner": {"id": 701}, "assignee": {"id": 808}, "organization": {"id": 987}}, "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": 66, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 523}, "organization": {"id": 178}, "project": {"owner": {"id": 774}, "assignee": {"id": 822}, "organization": {"id": 989}}, "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": 69, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 562}, "organization": {"id": 671}, "project": {"owner": {"id": 793}, "assignee": {"id": 890}, "organization": {"id": 976}}, "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": 36, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 560}, "organization": {"id": 649}, "project": {"owner": {"id": 702}, "assignee": {"id": 801}, "organization": {"id": 926}}, "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": 35, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 529}, "organization": {"id": 673}, "project": {"owner": {"id": 749}, "assignee": {"id": 866}, "organization": {"id": 939}}, "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": 93, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 536}, "organization": {"id": 124}, "project": {"owner": {"id": 759}, "assignee": {"id": 807}, "organization": {"id": 953}}, "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": 77, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 573}, "organization": {"id": 140}, "project": {"owner": {"id": 776}, "assignee": {"id": 873}, "organization": {"id": 918}}, "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": 40, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 569}, "organization": {"id": 198}, "project": {"owner": {"id": 708}, "assignee": {"id": 811}, "organization": {"id": 965}}, "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": 2, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 599}, "organization": {"id": 689}, "project": {"owner": {"id": 761}, "assignee": {"id": 839}, "organization": {"id": 916}}, "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": 48, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 509}, "organization": {"id": 612}, "project": {"owner": {"id": 721}, "assignee": {"id": 883}, "organization": {"id": 935}}, "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": 26, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 505}, "organization": {"id": 658}, "project": {"owner": {"id": 755}, "assignee": {"id": 889}, "organization": {"id": 915}}, "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": 41, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 513}, "organization": {"id": 157}, "project": {"owner": {"id": 782}, "assignee": {"id": 898}, "organization": {"id": 922}}, "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": 15, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 571}, "organization": {"id": 117}, "project": {"owner": {"id": 713}, "assignee": {"id": 866}, "organization": {"id": 972}}, "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": 11, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 531}, "organization": {"id": 123}, "project": {"owner": {"id": 732}, "assignee": {"id": 848}, "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": 84, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 578}, "organization": {"id": 669}, "project": {"owner": {"id": 778}, "assignee": {"id": 813}, "organization": {"id": 962}}, "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": 88, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 526}, "organization": {"id": 663}, "project": {"owner": {"id": 781}, "assignee": {"id": 818}, "organization": {"id": 985}}, "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": 21, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 502}, "organization": {"id": 632}, "project": {"owner": {"id": 727}, "assignee": {"id": 840}, "organization": {"id": 913}}, "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": 89, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 557}, "organization": {"id": 174}, "project": {"owner": {"id": 746}, "assignee": {"id": 801}, "organization": {"id": 926}}, "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": 33, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 550}, "organization": {"id": 161}, "project": {"owner": {"id": 730}, "assignee": {"id": 865}, "organization": {"id": 954}}, "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": 62, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 580}, "organization": {"id": 145}, "project": {"owner": {"id": 717}, "assignee": {"id": 865}, "organization": {"id": 911}}, "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": 59, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 524}, "organization": {"id": 692}, "project": {"owner": {"id": 789}, "assignee": {"id": 831}, "organization": {"id": 986}}, "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": 42, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 591}, "organization": {"id": 676}, "project": {"owner": {"id": 754}, "assignee": {"id": 803}, "organization": {"id": 976}}, "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": 15, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 558}, "organization": {"id": 620}, "project": {"owner": {"id": 796}, "assignee": {"id": 823}, "organization": {"id": 927}}, "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": 48, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 580}, "organization": {"id": 115}, "project": {"owner": {"id": 769}, "assignee": {"id": 888}, "organization": {"id": 989}}, "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": 61, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 532}, "organization": {"id": 180}, "project": {"owner": {"id": 746}, "assignee": {"id": 834}, "organization": {"id": 917}}, "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": 15, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 557}, "organization": {"id": 121}, "project": {"owner": {"id": 751}, "assignee": {"id": 886}, "organization": {"id": 948}}, "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": 27, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 515}, "organization": {"id": 687}, "project": {"owner": {"id": 785}, "assignee": {"id": 821}, "organization": {"id": 968}}, "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": 0, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 593}, "organization": {"id": 699}, "project": {"owner": {"id": 701}, "assignee": {"id": 865}, "organization": {"id": 964}}, "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": 24, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 547}, "organization": {"id": 652}, "project": {"owner": {"id": 787}, "assignee": {"id": 845}, "organization": {"id": 904}}, "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": 66, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 565}, "organization": {"id": 163}, "project": {"owner": {"id": 708}, "assignee": {"id": 854}, "organization": {"id": 910}}, "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": 34, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 528}, "organization": {"id": 177}, "project": {"owner": {"id": 717}, "assignee": {"id": 865}, "organization": {"id": 908}}, "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": 26, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 585}, "organization": {"id": 127}, "project": {"owner": {"id": 793}, "assignee": {"id": 843}, "organization": {"id": 953}}, "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": 77, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 585}, "organization": {"id": 697}, "project": {"owner": {"id": 764}, "assignee": {"id": 883}, "organization": {"id": 916}}, "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": 59, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 536}, "organization": {"id": 602}, "project": {"owner": {"id": 710}, "assignee": {"id": 884}, "organization": {"id": 962}}, "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": 15, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 559}, "organization": {"id": 698}, "project": {"owner": {"id": 742}, "assignee": {"id": 848}, "organization": {"id": 959}}, "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": 7, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 594}, "organization": {"id": 183}, "project": {"owner": {"id": 718}, "assignee": {"id": 843}, "organization": {"id": 967}}, "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": 48, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 550}, "organization": {"id": 159}, "project": {"owner": {"id": 703}, "assignee": {"id": 881}, "organization": {"id": 931}}, "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": 17, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 581}, "organization": {"id": 142}, "project": {"owner": {"id": 793}, "assignee": {"id": 834}, "organization": {"id": 970}}, "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": 86, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 584}, "organization": {"id": 663}, "project": {"owner": {"id": 725}, "assignee": {"id": 828}, "organization": {"id": 901}}, "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": 60, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 573}, "organization": {"id": 655}, "project": {"owner": {"id": 724}, "assignee": {"id": 862}, "organization": {"id": 949}}, "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": 50, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 512}, "organization": {"id": 688}, "project": {"owner": {"id": 769}, "assignee": {"id": 835}, "organization": {"id": 969}}, "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": 54, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 572}, "organization": {"id": 162}, "project": {"owner": {"id": 745}, "assignee": {"id": 882}, "organization": {"id": 949}}, "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": 72, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 574}, "organization": {"id": 153}, "project": {"owner": {"id": 782}, "assignee": {"id": 879}, "organization": {"id": 936}}, "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": 77, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 532}, "organization": {"id": 175}, "project": {"owner": {"id": 757}, "assignee": {"id": 873}, "organization": {"id": 941}}, "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": 8, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 551}, "organization": {"id": 687}, "project": {"owner": {"id": 779}, "assignee": {"id": 828}, "organization": {"id": 974}}, "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": 6, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 564}, "organization": {"id": 645}, "project": {"owner": {"id": 776}, "assignee": {"id": 881}, "organization": {"id": 926}}, "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": 7, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 526}, "organization": {"id": 674}, "project": {"owner": {"id": 780}, "assignee": {"id": 886}, "organization": {"id": 936}}, "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": 61, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 532}, "organization": {"id": 121}, "project": {"owner": {"id": 757}, "assignee": {"id": 810}, "organization": {"id": 984}}, "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": 38, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 559}, "organization": {"id": 191}, "project": {"owner": {"id": 723}, "assignee": {"id": 887}, "organization": {"id": 942}}, "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": 29, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 508}, "organization": {"id": 101}, "project": {"owner": {"id": 726}, "assignee": {"id": 840}, "organization": {"id": 900}}, "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": 68, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 513}, "organization": {"id": 659}, "project": {"owner": {"id": 729}, "assignee": {"id": 865}, "organization": {"id": 950}}, "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": 61, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 560}, "organization": {"id": 651}, "project": {"owner": {"id": 716}, "assignee": {"id": 833}, "organization": {"id": 979}}, "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": 55, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 578}, "organization": {"id": 611}, "project": {"owner": {"id": 703}, "assignee": {"id": 878}, "organization": {"id": 937}}, "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": 90, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 562}, "organization": {"id": 137}, "project": {"owner": {"id": 776}, "assignee": {"id": 825}, "organization": {"id": 942}}, "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": 14, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 546}, "organization": {"id": 157}, "project": {"owner": {"id": 787}, "assignee": {"id": 843}, "organization": {"id": 966}}, "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": 89, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 574}, "organization": {"id": 176}, "project": {"owner": {"id": 771}, "assignee": {"id": 804}, "organization": {"id": 997}}, "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": 24, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 528}, "organization": {"id": 644}, "project": {"owner": {"id": 736}, "assignee": {"id": 898}, "organization": {"id": 956}}, "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": 95, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 560}, "organization": {"id": 696}, "project": {"owner": {"id": 734}, "assignee": {"id": 814}, "organization": {"id": 936}}, "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": 88, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 502}, "organization": {"id": 674}, "project": {"owner": {"id": 745}, "assignee": {"id": 877}, "organization": {"id": 983}}, "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": 5, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 544}, "organization": {"id": 118}, "project": {"owner": {"id": 794}, "assignee": {"id": 866}, "organization": {"id": 994}}, "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": 24, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 580}, "organization": {"id": 135}, "project": {"owner": {"id": 753}, "assignee": {"id": 803}, "organization": {"id": 952}}, "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": 68, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 501}, "organization": {"id": 122}, "project": {"owner": {"id": 731}, "assignee": {"id": 871}, "organization": {"id": 965}}, "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": 8, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 589}, "organization": {"id": 660}, "project": {"owner": {"id": 769}, "assignee": {"id": 835}, "organization": {"id": 992}}, "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": 81, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 555}, "organization": {"id": 639}, "project": {"owner": {"id": 774}, "assignee": {"id": 878}, "organization": {"id": 917}}, "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": 9, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 536}, "organization": {"id": 626}, "project": {"owner": {"id": 748}, "assignee": {"id": 860}, "organization": {"id": 932}}, "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": 12, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 597}, "organization": {"id": 104}, "project": {"owner": {"id": 709}, "assignee": {"id": 859}, "organization": {"id": 991}}, "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": 32, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 541}, "organization": {"id": 144}, "project": {"owner": {"id": 739}, "assignee": {"id": 814}, "organization": {"id": 922}}, "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": 83, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 577}, "organization": {"id": 117}, "project": {"owner": {"id": 717}, "assignee": {"id": 836}, "organization": {"id": 942}}, "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": 2, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 569}, "organization": {"id": 660}, "project": {"owner": {"id": 737}, "assignee": {"id": 864}, "organization": {"id": 969}}, "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": 74, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 557}, "organization": {"id": 647}, "project": {"owner": {"id": 726}, "assignee": {"id": 820}, "organization": {"id": 956}}, "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": 94, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 522}, "organization": {"id": 625}, "project": {"owner": {"id": 717}, "assignee": {"id": 842}, "organization": {"id": 999}}, "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": 10, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 581}, "organization": {"id": 138}, "project": {"owner": {"id": 798}, "assignee": {"id": 852}, "organization": {"id": 969}}, "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": 24, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 584}, "organization": {"id": 126}, "project": {"owner": {"id": 756}, "assignee": {"id": 871}, "organization": {"id": 998}}, "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": 45, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 546}, "organization": {"id": 128}, "project": {"owner": {"id": 794}, "assignee": {"id": 872}, "organization": {"id": 946}}, "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": 73, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 595}, "organization": {"id": 633}, "project": {"owner": {"id": 780}, "assignee": {"id": 824}, "organization": {"id": 937}}, "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": 11, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 510}, "organization": {"id": 681}, "project": {"owner": {"id": 775}, "assignee": {"id": 817}, "organization": {"id": 928}}, "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": 77, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 590}, "organization": {"id": 629}, "project": {"owner": {"id": 735}, "assignee": {"id": 845}, "organization": {"id": 944}}, "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": 4, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 541}, "organization": {"id": 112}, "project": {"owner": {"id": 766}, "assignee": {"id": 847}, "organization": {"id": 924}}, "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": 85, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 536}, "organization": {"id": 144}, "project": {"owner": {"id": 764}, "assignee": {"id": 898}, "organization": {"id": 955}}, "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": 36, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 547}, "organization": {"id": 125}, "project": {"owner": {"id": 728}, "assignee": {"id": 880}, "organization": {"id": 996}}, "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": 53, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 516}, "organization": {"id": 610}, "project": {"owner": {"id": 726}, "assignee": {"id": 832}, "organization": {"id": 946}}, "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": 13, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 542}, "organization": {"id": 644}, "project": {"owner": {"id": 728}, "assignee": {"id": 818}, "organization": {"id": 973}}, "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": 18, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 506}, "organization": {"id": 634}, "project": {"owner": {"id": 702}, "assignee": {"id": 853}, "organization": {"id": 998}}, "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": 37, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 553}, "organization": {"id": 108}, "project": {"owner": {"id": 791}, "assignee": {"id": 892}, "organization": {"id": 924}}, "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": 24, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 560}, "organization": {"id": 106}, "project": {"owner": {"id": 719}, "assignee": {"id": 812}, "organization": {"id": 904}}, "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": 69, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 534}, "organization": {"id": 103}, "project": {"owner": {"id": 777}, "assignee": {"id": 881}, "organization": {"id": 991}}, "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": 19, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 552}, "organization": {"id": 683}, "project": {"owner": {"id": 774}, "assignee": {"id": 877}, "organization": {"id": 960}}, "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": 12, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 566}, "organization": {"id": 612}, "project": {"owner": {"id": 746}, "assignee": {"id": 831}, "organization": {"id": 902}}, "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": 65, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 532}, "organization": {"id": 607}, "project": {"owner": {"id": 777}, "assignee": {"id": 887}, "organization": {"id": 938}}, "user": {"num_resources": 10}}} +} + +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": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 466}, "assignee": {"id": 506}, "organization": {"id": 644}, "project": {"owner": {"id": 39}, "assignee": {"id": 881}, "organization": {"id": 981}}}} +} + +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": 54, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 439}, "assignee": {"id": 532}, "organization": {"id": 628}, "project": {"owner": {"id": 54}, "assignee": {"id": 845}, "organization": {"id": 920}}}} +} + +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": 12, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 488}, "assignee": {"id": 532}, "organization": {"id": 647}, "project": {"owner": {"id": 12}, "assignee": {"id": 883}, "organization": {"id": 919}}}} +} + +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": 14, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 418}, "assignee": {"id": 503}, "organization": {"id": 674}, "project": {"owner": {"id": 14}, "assignee": {"id": 893}, "organization": {"id": 901}}}} +} + +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": 10, "privilege": "none"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 401}, "assignee": {"id": 592}, "organization": {"id": 644}, "project": {"owner": {"id": 10}, "assignee": {"id": 811}, "organization": {"id": 961}}}} +} + +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": 87, "privilege": "admin"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 456}, "assignee": {"id": 524}, "organization": {"id": 619}, "project": {"owner": {"id": 789}, "assignee": {"id": 87}, "organization": {"id": 945}}}} +} + +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": 91, "privilege": "business"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 401}, "assignee": {"id": 565}, "organization": {"id": 622}, "project": {"owner": {"id": 755}, "assignee": {"id": 91}, "organization": {"id": 951}}}} +} + +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": 72, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 485}, "assignee": {"id": 590}, "organization": {"id": 693}, "project": {"owner": {"id": 723}, "assignee": {"id": 72}, "organization": {"id": 967}}}} +} + +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": 90, "privilege": "worker"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 416}, "assignee": {"id": 595}, "organization": {"id": 657}, "project": {"owner": {"id": 759}, "assignee": {"id": 90}, "organization": {"id": 999}}}} +} + +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": 13, "privilege": "none"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 460}, "assignee": {"id": 590}, "organization": {"id": 603}, "project": {"owner": {"id": 740}, "assignee": {"id": 13}, "organization": {"id": 948}}}} +} + +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": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 31}, "assignee": {"id": 594}, "organization": {"id": 692}, "project": {"owner": {"id": 736}, "assignee": {"id": 844}, "organization": {"id": 983}}}} +} + +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": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 3}, "assignee": {"id": 517}, "organization": {"id": 609}, "project": {"owner": {"id": 796}, "assignee": {"id": 806}, "organization": {"id": 904}}}} +} + +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": 27, "privilege": "user"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 27}, "assignee": {"id": 540}, "organization": {"id": 624}, "project": {"owner": {"id": 774}, "assignee": {"id": 839}, "organization": {"id": 994}}}} +} + +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": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 12}, "assignee": {"id": 585}, "organization": {"id": 635}, "project": {"owner": {"id": 753}, "assignee": {"id": 864}, "organization": {"id": 916}}}} +} + +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": 6, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 6}, "assignee": {"id": 532}, "organization": {"id": 628}, "project": {"owner": {"id": 742}, "assignee": {"id": 862}, "organization": {"id": 966}}}} +} + +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": 0, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 426}, "assignee": {"id": 0}, "organization": {"id": 617}, "project": {"owner": {"id": 761}, "assignee": {"id": 803}, "organization": {"id": 978}}}} +} + +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": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 403}, "assignee": {"id": 74}, "organization": {"id": 631}, "project": {"owner": {"id": 730}, "assignee": {"id": 805}, "organization": {"id": 973}}}} +} + +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": 40, "privilege": "user"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 464}, "assignee": {"id": 40}, "organization": {"id": 680}, "project": {"owner": {"id": 752}, "assignee": {"id": 866}, "organization": {"id": 926}}}} +} + +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": 58, "privilege": "worker"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 444}, "assignee": {"id": 58}, "organization": {"id": 639}, "project": {"owner": {"id": 750}, "assignee": {"id": 891}, "organization": {"id": 909}}}} +} + +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": 26, "privilege": "none"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 463}, "assignee": {"id": 26}, "organization": {"id": 661}, "project": {"owner": {"id": 782}, "assignee": {"id": 857}, "organization": {"id": 900}}}} +} + +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": 71, "privilege": "admin"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 416}, "assignee": {"id": 570}, "organization": {"id": 663}, "project": {"owner": {"id": 722}, "assignee": {"id": 814}, "organization": {"id": 962}}}} +} + +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": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 480}, "assignee": {"id": 561}, "organization": {"id": 674}, "project": {"owner": {"id": 799}, "assignee": {"id": 859}, "organization": {"id": 912}}}} +} + +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": 82, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 445}, "assignee": {"id": 508}, "organization": {"id": 646}, "project": {"owner": {"id": 716}, "assignee": {"id": 801}, "organization": {"id": 933}}}} +} + +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": 29, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 478}, "assignee": {"id": 581}, "organization": {"id": 660}, "project": {"owner": {"id": 716}, "assignee": {"id": 893}, "organization": {"id": 996}}}} +} + +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": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 492}, "assignee": {"id": 570}, "organization": {"id": 698}, "project": {"owner": {"id": 705}, "assignee": {"id": 877}, "organization": {"id": 940}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 443}, "assignee": {"id": 562}, "organization": {"id": 174}, "project": {"owner": {"id": 55}, "assignee": {"id": 886}, "organization": {"id": 938}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 400}, "assignee": {"id": 588}, "organization": {"id": 664}, "project": {"owner": {"id": 22}, "assignee": {"id": 861}, "organization": {"id": 972}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 443}, "assignee": {"id": 553}, "organization": {"id": 126}, "project": {"owner": {"id": 18}, "assignee": {"id": 834}, "organization": {"id": 960}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 450}, "assignee": {"id": 538}, "organization": {"id": 629}, "project": {"owner": {"id": 56}, "assignee": {"id": 898}, "organization": {"id": 979}}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 435}, "assignee": {"id": 594}, "organization": {"id": 187}, "project": {"owner": {"id": 73}, "assignee": {"id": 873}, "organization": {"id": 912}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 473}, "assignee": {"id": 533}, "organization": {"id": 641}, "project": {"owner": {"id": 1}, "assignee": {"id": 894}, "organization": {"id": 961}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 466}, "assignee": {"id": 531}, "organization": {"id": 126}, "project": {"owner": {"id": 93}, "assignee": {"id": 891}, "organization": {"id": 918}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 444}, "assignee": {"id": 532}, "organization": {"id": 691}, "project": {"owner": {"id": 53}, "assignee": {"id": 842}, "organization": {"id": 991}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 477}, "assignee": {"id": 543}, "organization": {"id": 100}, "project": {"owner": {"id": 90}, "assignee": {"id": 846}, "organization": {"id": 946}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 405}, "assignee": {"id": 530}, "organization": {"id": 636}, "project": {"owner": {"id": 11}, "assignee": {"id": 894}, "organization": {"id": 975}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 489}, "assignee": {"id": 587}, "organization": {"id": 121}, "project": {"owner": {"id": 26}, "assignee": {"id": 843}, "organization": {"id": 955}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 456}, "assignee": {"id": 595}, "organization": {"id": 639}, "project": {"owner": {"id": 40}, "assignee": {"id": 822}, "organization": {"id": 929}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 426}, "assignee": {"id": 596}, "organization": {"id": 178}, "project": {"owner": {"id": 84}, "assignee": {"id": 877}, "organization": {"id": 935}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 466}, "assignee": {"id": 546}, "organization": {"id": 692}, "project": {"owner": {"id": 6}, "assignee": {"id": 843}, "organization": {"id": 985}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 416}, "assignee": {"id": 520}, "organization": {"id": 183}, "project": {"owner": {"id": 64}, "assignee": {"id": 865}, "organization": {"id": 903}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 484}, "assignee": {"id": 501}, "organization": {"id": 679}, "project": {"owner": {"id": 96}, "assignee": {"id": 841}, "organization": {"id": 968}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 406}, "assignee": {"id": 537}, "organization": {"id": 144}, "project": {"owner": {"id": 85}, "assignee": {"id": 861}, "organization": {"id": 980}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 416}, "assignee": {"id": 536}, "organization": {"id": 657}, "project": {"owner": {"id": 64}, "assignee": {"id": 827}, "organization": {"id": 988}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 422}, "assignee": {"id": 503}, "organization": {"id": 100}, "project": {"owner": {"id": 18}, "assignee": {"id": 891}, "organization": {"id": 952}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 472}, "assignee": {"id": 529}, "organization": {"id": 656}, "project": {"owner": {"id": 89}, "assignee": {"id": 829}, "organization": {"id": 980}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 492}, "assignee": {"id": 565}, "organization": {"id": 117}, "project": {"owner": {"id": 52}, "assignee": {"id": 828}, "organization": {"id": 937}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 463}, "assignee": {"id": 580}, "organization": {"id": 676}, "project": {"owner": {"id": 67}, "assignee": {"id": 877}, "organization": {"id": 924}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 471}, "assignee": {"id": 569}, "organization": {"id": 127}, "project": {"owner": {"id": 48}, "assignee": {"id": 818}, "organization": {"id": 958}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 420}, "assignee": {"id": 505}, "organization": {"id": 696}, "project": {"owner": {"id": 47}, "assignee": {"id": 867}, "organization": {"id": 908}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 411}, "assignee": {"id": 596}, "organization": {"id": 187}, "project": {"owner": {"id": 52}, "assignee": {"id": 847}, "organization": {"id": 953}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 426}, "assignee": {"id": 586}, "organization": {"id": 662}, "project": {"owner": {"id": 34}, "assignee": {"id": 870}, "organization": {"id": 977}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 480}, "assignee": {"id": 509}, "organization": {"id": 112}, "project": {"owner": {"id": 80}, "assignee": {"id": 860}, "organization": {"id": 950}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 492}, "assignee": {"id": 528}, "organization": {"id": 695}, "project": {"owner": {"id": 52}, "assignee": {"id": 805}, "organization": {"id": 918}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 481}, "assignee": {"id": 571}, "organization": {"id": 197}, "project": {"owner": {"id": 43}, "assignee": {"id": 891}, "organization": {"id": 938}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 424}, "assignee": {"id": 595}, "organization": {"id": 638}, "project": {"owner": {"id": 42}, "assignee": {"id": 872}, "organization": {"id": 922}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 444}, "assignee": {"id": 597}, "organization": {"id": 101}, "project": {"owner": {"id": 54}, "assignee": {"id": 853}, "organization": {"id": 951}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 405}, "assignee": {"id": 536}, "organization": {"id": 686}, "project": {"owner": {"id": 90}, "assignee": {"id": 856}, "organization": {"id": 917}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 408}, "assignee": {"id": 511}, "organization": {"id": 170}, "project": {"owner": {"id": 18}, "assignee": {"id": 833}, "organization": {"id": 952}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 474}, "assignee": {"id": 584}, "organization": {"id": 638}, "project": {"owner": {"id": 19}, "assignee": {"id": 801}, "organization": {"id": 937}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 423}, "assignee": {"id": 539}, "organization": {"id": 141}, "project": {"owner": {"id": 48}, "assignee": {"id": 849}, "organization": {"id": 953}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 468}, "assignee": {"id": 572}, "organization": {"id": 644}, "project": {"owner": {"id": 61}, "assignee": {"id": 846}, "organization": {"id": 959}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 436}, "assignee": {"id": 524}, "organization": {"id": 189}, "project": {"owner": {"id": 38}, "assignee": {"id": 862}, "organization": {"id": 966}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 463}, "assignee": {"id": 591}, "organization": {"id": 604}, "project": {"owner": {"id": 23}, "assignee": {"id": 829}, "organization": {"id": 961}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 432}, "assignee": {"id": 553}, "organization": {"id": 139}, "project": {"owner": {"id": 58}, "assignee": {"id": 854}, "organization": {"id": 992}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 477}, "assignee": {"id": 558}, "organization": {"id": 681}, "project": {"owner": {"id": 80}, "assignee": {"id": 800}, "organization": {"id": 942}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 410}, "assignee": {"id": 522}, "organization": {"id": 162}, "project": {"owner": {"id": 81}, "assignee": {"id": 838}, "organization": {"id": 991}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 425}, "assignee": {"id": 541}, "organization": {"id": 634}, "project": {"owner": {"id": 50}, "assignee": {"id": 840}, "organization": {"id": 938}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 455}, "assignee": {"id": 536}, "organization": {"id": 171}, "project": {"owner": {"id": 80}, "assignee": {"id": 881}, "organization": {"id": 967}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 478}, "assignee": {"id": 540}, "organization": {"id": 661}, "project": {"owner": {"id": 39}, "assignee": {"id": 814}, "organization": {"id": 911}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 440}, "assignee": {"id": 585}, "organization": {"id": 187}, "project": {"owner": {"id": 26}, "assignee": {"id": 851}, "organization": {"id": 954}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 472}, "assignee": {"id": 522}, "organization": {"id": 681}, "project": {"owner": {"id": 8}, "assignee": {"id": 849}, "organization": {"id": 902}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 416}, "assignee": {"id": 541}, "organization": {"id": 108}, "project": {"owner": {"id": 61}, "assignee": {"id": 878}, "organization": {"id": 963}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 445}, "assignee": {"id": 545}, "organization": {"id": 613}, "project": {"owner": {"id": 61}, "assignee": {"id": 870}, "organization": {"id": 980}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 497}, "assignee": {"id": 588}, "organization": {"id": 153}, "project": {"owner": {"id": 40}, "assignee": {"id": 814}, "organization": {"id": 969}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 446}, "assignee": {"id": 594}, "organization": {"id": 623}, "project": {"owner": {"id": 77}, "assignee": {"id": 864}, "organization": {"id": 980}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 473}, "assignee": {"id": 570}, "organization": {"id": 188}, "project": {"owner": {"id": 706}, "assignee": {"id": 69}, "organization": {"id": 923}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 415}, "assignee": {"id": 552}, "organization": {"id": 677}, "project": {"owner": {"id": 789}, "assignee": {"id": 63}, "organization": {"id": 947}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 446}, "assignee": {"id": 555}, "organization": {"id": 109}, "project": {"owner": {"id": 775}, "assignee": {"id": 77}, "organization": {"id": 935}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 484}, "assignee": {"id": 512}, "organization": {"id": 688}, "project": {"owner": {"id": 703}, "assignee": {"id": 24}, "organization": {"id": 913}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 410}, "assignee": {"id": 532}, "organization": {"id": 175}, "project": {"owner": {"id": 770}, "assignee": {"id": 45}, "organization": {"id": 920}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 491}, "assignee": {"id": 541}, "organization": {"id": 610}, "project": {"owner": {"id": 799}, "assignee": {"id": 88}, "organization": {"id": 999}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 470}, "assignee": {"id": 510}, "organization": {"id": 183}, "project": {"owner": {"id": 790}, "assignee": {"id": 19}, "organization": {"id": 973}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 468}, "assignee": {"id": 508}, "organization": {"id": 646}, "project": {"owner": {"id": 767}, "assignee": {"id": 32}, "organization": {"id": 910}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 495}, "assignee": {"id": 508}, "organization": {"id": 157}, "project": {"owner": {"id": 701}, "assignee": {"id": 54}, "organization": {"id": 980}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 464}, "assignee": {"id": 598}, "organization": {"id": 683}, "project": {"owner": {"id": 766}, "assignee": {"id": 98}, "organization": {"id": 985}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 483}, "assignee": {"id": 526}, "organization": {"id": 124}, "project": {"owner": {"id": 713}, "assignee": {"id": 36}, "organization": {"id": 908}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 407}, "assignee": {"id": 539}, "organization": {"id": 631}, "project": {"owner": {"id": 765}, "assignee": {"id": 98}, "organization": {"id": 930}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 417}, "assignee": {"id": 582}, "organization": {"id": 177}, "project": {"owner": {"id": 701}, "assignee": {"id": 14}, "organization": {"id": 941}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 426}, "assignee": {"id": 579}, "organization": {"id": 656}, "project": {"owner": {"id": 773}, "assignee": {"id": 85}, "organization": {"id": 915}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 405}, "assignee": {"id": 571}, "organization": {"id": 166}, "project": {"owner": {"id": 720}, "assignee": {"id": 69}, "organization": {"id": 960}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 424}, "assignee": {"id": 514}, "organization": {"id": 611}, "project": {"owner": {"id": 700}, "assignee": {"id": 85}, "organization": {"id": 967}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 420}, "assignee": {"id": 575}, "organization": {"id": 141}, "project": {"owner": {"id": 720}, "assignee": {"id": 71}, "organization": {"id": 958}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 446}, "assignee": {"id": 519}, "organization": {"id": 612}, "project": {"owner": {"id": 769}, "assignee": {"id": 31}, "organization": {"id": 907}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 454}, "assignee": {"id": 523}, "organization": {"id": 156}, "project": {"owner": {"id": 735}, "assignee": {"id": 22}, "organization": {"id": 950}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 410}, "assignee": {"id": 577}, "organization": {"id": 699}, "project": {"owner": {"id": 737}, "assignee": {"id": 6}, "organization": {"id": 939}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 437}, "assignee": {"id": 580}, "organization": {"id": 139}, "project": {"owner": {"id": 781}, "assignee": {"id": 58}, "organization": {"id": 989}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 443}, "assignee": {"id": 580}, "organization": {"id": 632}, "project": {"owner": {"id": 712}, "assignee": {"id": 34}, "organization": {"id": 956}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 416}, "assignee": {"id": 534}, "organization": {"id": 108}, "project": {"owner": {"id": 786}, "assignee": {"id": 13}, "organization": {"id": 955}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 449}, "assignee": {"id": 561}, "organization": {"id": 678}, "project": {"owner": {"id": 700}, "assignee": {"id": 69}, "organization": {"id": 950}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 454}, "assignee": {"id": 510}, "organization": {"id": 124}, "project": {"owner": {"id": 727}, "assignee": {"id": 3}, "organization": {"id": 907}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 484}, "assignee": {"id": 596}, "organization": {"id": 661}, "project": {"owner": {"id": 715}, "assignee": {"id": 68}, "organization": {"id": 926}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 481}, "assignee": {"id": 511}, "organization": {"id": 198}, "project": {"owner": {"id": 728}, "assignee": {"id": 32}, "organization": {"id": 958}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 401}, "assignee": {"id": 552}, "organization": {"id": 690}, "project": {"owner": {"id": 736}, "assignee": {"id": 47}, "organization": {"id": 975}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 470}, "assignee": {"id": 547}, "organization": {"id": 118}, "project": {"owner": {"id": 739}, "assignee": {"id": 75}, "organization": {"id": 958}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 481}, "assignee": {"id": 545}, "organization": {"id": 620}, "project": {"owner": {"id": 789}, "assignee": {"id": 97}, "organization": {"id": 962}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 447}, "assignee": {"id": 514}, "organization": {"id": 182}, "project": {"owner": {"id": 709}, "assignee": {"id": 86}, "organization": {"id": 993}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 492}, "assignee": {"id": 583}, "organization": {"id": 647}, "project": {"owner": {"id": 774}, "assignee": {"id": 38}, "organization": {"id": 982}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 466}, "assignee": {"id": 597}, "organization": {"id": 117}, "project": {"owner": {"id": 788}, "assignee": {"id": 58}, "organization": {"id": 914}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 424}, "assignee": {"id": 592}, "organization": {"id": 696}, "project": {"owner": {"id": 746}, "assignee": {"id": 31}, "organization": {"id": 917}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 402}, "assignee": {"id": 563}, "organization": {"id": 121}, "project": {"owner": {"id": 785}, "assignee": {"id": 96}, "organization": {"id": 997}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 407}, "assignee": {"id": 570}, "organization": {"id": 608}, "project": {"owner": {"id": 725}, "assignee": {"id": 56}, "organization": {"id": 952}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 419}, "assignee": {"id": 554}, "organization": {"id": 155}, "project": {"owner": {"id": 712}, "assignee": {"id": 79}, "organization": {"id": 989}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 414}, "assignee": {"id": 566}, "organization": {"id": 612}, "project": {"owner": {"id": 728}, "assignee": {"id": 49}, "organization": {"id": 900}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 403}, "assignee": {"id": 587}, "organization": {"id": 112}, "project": {"owner": {"id": 762}, "assignee": {"id": 5}, "organization": {"id": 943}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 457}, "assignee": {"id": 570}, "organization": {"id": 692}, "project": {"owner": {"id": 795}, "assignee": {"id": 28}, "organization": {"id": 934}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 416}, "assignee": {"id": 589}, "organization": {"id": 114}, "project": {"owner": {"id": 749}, "assignee": {"id": 42}, "organization": {"id": 919}}}} +} + +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": 39, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 474}, "assignee": {"id": 590}, "organization": {"id": 689}, "project": {"owner": {"id": 762}, "assignee": {"id": 39}, "organization": {"id": 977}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 414}, "assignee": {"id": 520}, "organization": {"id": 153}, "project": {"owner": {"id": 737}, "assignee": {"id": 43}, "organization": {"id": 949}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 412}, "assignee": {"id": 509}, "organization": {"id": 658}, "project": {"owner": {"id": 703}, "assignee": {"id": 63}, "organization": {"id": 983}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 494}, "assignee": {"id": 500}, "organization": {"id": 156}, "project": {"owner": {"id": 704}, "assignee": {"id": 63}, "organization": {"id": 982}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 444}, "assignee": {"id": 570}, "organization": {"id": 643}, "project": {"owner": {"id": 715}, "assignee": {"id": 4}, "organization": {"id": 926}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 484}, "assignee": {"id": 568}, "organization": {"id": 170}, "project": {"owner": {"id": 708}, "assignee": {"id": 42}, "organization": {"id": 920}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 456}, "assignee": {"id": 539}, "organization": {"id": 604}, "project": {"owner": {"id": 770}, "assignee": {"id": 37}, "organization": {"id": 988}}}} +} + +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": 87, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 427}, "assignee": {"id": 599}, "organization": {"id": 181}, "project": {"owner": {"id": 754}, "assignee": {"id": 87}, "organization": {"id": 924}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 436}, "assignee": {"id": 553}, "organization": {"id": 604}, "project": {"owner": {"id": 779}, "assignee": {"id": 79}, "organization": {"id": 968}}}} +} + +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": 180, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 79}, "assignee": {"id": 558}, "organization": {"id": 180}, "project": {"owner": {"id": 760}, "assignee": {"id": 888}, "organization": {"id": 916}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 47}, "assignee": {"id": 559}, "organization": {"id": 680}, "project": {"owner": {"id": 782}, "assignee": {"id": 849}, "organization": {"id": 927}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 4}, "assignee": {"id": 581}, "organization": {"id": 147}, "project": {"owner": {"id": 781}, "assignee": {"id": 805}, "organization": {"id": 968}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 60}, "assignee": {"id": 564}, "organization": {"id": 611}, "project": {"owner": {"id": 792}, "assignee": {"id": 831}, "organization": {"id": 957}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 33}, "assignee": {"id": 502}, "organization": {"id": 126}, "project": {"owner": {"id": 706}, "assignee": {"id": 839}, "organization": {"id": 999}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 54}, "assignee": {"id": 570}, "organization": {"id": 681}, "project": {"owner": {"id": 777}, "assignee": {"id": 816}, "organization": {"id": 913}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 15}, "assignee": {"id": 523}, "organization": {"id": 147}, "project": {"owner": {"id": 761}, "assignee": {"id": 824}, "organization": {"id": 976}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 5}, "assignee": {"id": 500}, "organization": {"id": 633}, "project": {"owner": {"id": 793}, "assignee": {"id": 889}, "organization": {"id": 991}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 43}, "assignee": {"id": 512}, "organization": {"id": 123}, "project": {"owner": {"id": 738}, "assignee": {"id": 838}, "organization": {"id": 903}}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 73}, "assignee": {"id": 524}, "organization": {"id": 697}, "project": {"owner": {"id": 766}, "assignee": {"id": 859}, "organization": {"id": 949}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 51}, "assignee": {"id": 523}, "organization": {"id": 197}, "project": {"owner": {"id": 790}, "assignee": {"id": 874}, "organization": {"id": 914}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 24}, "assignee": {"id": 588}, "organization": {"id": 658}, "project": {"owner": {"id": 786}, "assignee": {"id": 839}, "organization": {"id": 926}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 2}, "assignee": {"id": 583}, "organization": {"id": 108}, "project": {"owner": {"id": 793}, "assignee": {"id": 814}, "organization": {"id": 984}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 9}, "assignee": {"id": 524}, "organization": {"id": 601}, "project": {"owner": {"id": 768}, "assignee": {"id": 886}, "organization": {"id": 972}}}} +} + +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": 180, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 80}, "assignee": {"id": 512}, "organization": {"id": 180}, "project": {"owner": {"id": 760}, "assignee": {"id": 828}, "organization": {"id": 965}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 52}, "assignee": {"id": 576}, "organization": {"id": 612}, "project": {"owner": {"id": 789}, "assignee": {"id": 880}, "organization": {"id": 939}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 30}, "assignee": {"id": 516}, "organization": {"id": 180}, "project": {"owner": {"id": 781}, "assignee": {"id": 835}, "organization": {"id": 922}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 2}, "assignee": {"id": 596}, "organization": {"id": 645}, "project": {"owner": {"id": 796}, "assignee": {"id": 828}, "organization": {"id": 959}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 13}, "assignee": {"id": 594}, "organization": {"id": 108}, "project": {"owner": {"id": 758}, "assignee": {"id": 857}, "organization": {"id": 995}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 41}, "assignee": {"id": 515}, "organization": {"id": 696}, "project": {"owner": {"id": 731}, "assignee": {"id": 856}, "organization": {"id": 933}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 41}, "assignee": {"id": 546}, "organization": {"id": 175}, "project": {"owner": {"id": 703}, "assignee": {"id": 801}, "organization": {"id": 919}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 30}, "assignee": {"id": 551}, "organization": {"id": 631}, "project": {"owner": {"id": 746}, "assignee": {"id": 868}, "organization": {"id": 922}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 32}, "assignee": {"id": 577}, "organization": {"id": 151}, "project": {"owner": {"id": 787}, "assignee": {"id": 897}, "organization": {"id": 993}}}} +} + +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": 114, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 86}, "assignee": {"id": 545}, "organization": {"id": 687}, "project": {"owner": {"id": 721}, "assignee": {"id": 816}, "organization": {"id": 907}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 84}, "assignee": {"id": 572}, "organization": {"id": 130}, "project": {"owner": {"id": 701}, "assignee": {"id": 883}, "organization": {"id": 965}}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 24}, "assignee": {"id": 525}, "organization": {"id": 627}, "project": {"owner": {"id": 795}, "assignee": {"id": 829}, "organization": {"id": 990}}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 90}, "assignee": {"id": 599}, "organization": {"id": 151}, "project": {"owner": {"id": 787}, "assignee": {"id": 813}, "organization": {"id": 923}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 11}, "assignee": {"id": 593}, "organization": {"id": 678}, "project": {"owner": {"id": 733}, "assignee": {"id": 831}, "organization": {"id": 942}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 4}, "assignee": {"id": 576}, "organization": {"id": 129}, "project": {"owner": {"id": 786}, "assignee": {"id": 811}, "organization": {"id": 941}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 73}, "assignee": {"id": 522}, "organization": {"id": 679}, "project": {"owner": {"id": 789}, "assignee": {"id": 807}, "organization": {"id": 933}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 44}, "assignee": {"id": 564}, "organization": {"id": 190}, "project": {"owner": {"id": 702}, "assignee": {"id": 871}, "organization": {"id": 940}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 45}, "assignee": {"id": 568}, "organization": {"id": 648}, "project": {"owner": {"id": 717}, "assignee": {"id": 843}, "organization": {"id": 919}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 55}, "assignee": {"id": 542}, "organization": {"id": 154}, "project": {"owner": {"id": 738}, "assignee": {"id": 892}, "organization": {"id": 977}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 24}, "assignee": {"id": 578}, "organization": {"id": 624}, "project": {"owner": {"id": 763}, "assignee": {"id": 879}, "organization": {"id": 921}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 63}, "assignee": {"id": 566}, "organization": {"id": 149}, "project": {"owner": {"id": 733}, "assignee": {"id": 842}, "organization": {"id": 963}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 0}, "assignee": {"id": 507}, "organization": {"id": 668}, "project": {"owner": {"id": 718}, "assignee": {"id": 851}, "organization": {"id": 969}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 3}, "assignee": {"id": 540}, "organization": {"id": 112}, "project": {"owner": {"id": 736}, "assignee": {"id": 810}, "organization": {"id": 940}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 19}, "assignee": {"id": 581}, "organization": {"id": 696}, "project": {"owner": {"id": 774}, "assignee": {"id": 855}, "organization": {"id": 998}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 42}, "assignee": {"id": 537}, "organization": {"id": 162}, "project": {"owner": {"id": 762}, "assignee": {"id": 881}, "organization": {"id": 906}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 2}, "assignee": {"id": 597}, "organization": {"id": 641}, "project": {"owner": {"id": 711}, "assignee": {"id": 896}, "organization": {"id": 950}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 79}, "assignee": {"id": 555}, "organization": {"id": 109}, "project": {"owner": {"id": 711}, "assignee": {"id": 862}, "organization": {"id": 944}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 63}, "assignee": {"id": 509}, "organization": {"id": 644}, "project": {"owner": {"id": 727}, "assignee": {"id": 862}, "organization": {"id": 983}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 56}, "assignee": {"id": 594}, "organization": {"id": 138}, "project": {"owner": {"id": 776}, "assignee": {"id": 899}, "organization": {"id": 976}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 34}, "assignee": {"id": 589}, "organization": {"id": 616}, "project": {"owner": {"id": 751}, "assignee": {"id": 869}, "organization": {"id": 951}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 5}, "assignee": {"id": 506}, "organization": {"id": 159}, "project": {"owner": {"id": 779}, "assignee": {"id": 838}, "organization": {"id": 904}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 58}, "assignee": {"id": 500}, "organization": {"id": 652}, "project": {"owner": {"id": 769}, "assignee": {"id": 845}, "organization": {"id": 959}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 46}, "assignee": {"id": 555}, "organization": {"id": 115}, "project": {"owner": {"id": 729}, "assignee": {"id": 838}, "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": 5, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 5}, "assignee": {"id": 513}, "organization": {"id": 626}, "project": {"owner": {"id": 715}, "assignee": {"id": 851}, "organization": {"id": 910}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 18}, "assignee": {"id": 554}, "organization": {"id": 172}, "project": {"owner": {"id": 725}, "assignee": {"id": 899}, "organization": {"id": 961}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 16}, "assignee": {"id": 585}, "organization": {"id": 631}, "project": {"owner": {"id": 700}, "assignee": {"id": 881}, "organization": {"id": 901}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 488}, "assignee": {"id": 23}, "organization": {"id": 104}, "project": {"owner": {"id": 718}, "assignee": {"id": 898}, "organization": {"id": 986}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 458}, "assignee": {"id": 24}, "organization": {"id": 677}, "project": {"owner": {"id": 717}, "assignee": {"id": 810}, "organization": {"id": 941}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 469}, "assignee": {"id": 66}, "organization": {"id": 186}, "project": {"owner": {"id": 707}, "assignee": {"id": 819}, "organization": {"id": 961}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 434}, "assignee": {"id": 63}, "organization": {"id": 612}, "project": {"owner": {"id": 789}, "assignee": {"id": 824}, "organization": {"id": 902}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 484}, "assignee": {"id": 89}, "organization": {"id": 143}, "project": {"owner": {"id": 718}, "assignee": {"id": 811}, "organization": {"id": 916}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 455}, "assignee": {"id": 96}, "organization": {"id": 652}, "project": {"owner": {"id": 707}, "assignee": {"id": 863}, "organization": {"id": 975}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 419}, "assignee": {"id": 80}, "organization": {"id": 144}, "project": {"owner": {"id": 767}, "assignee": {"id": 892}, "organization": {"id": 952}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 480}, "assignee": {"id": 97}, "organization": {"id": 612}, "project": {"owner": {"id": 748}, "assignee": {"id": 838}, "organization": {"id": 955}}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 418}, "assignee": {"id": 50}, "organization": {"id": 188}, "project": {"owner": {"id": 701}, "assignee": {"id": 825}, "organization": {"id": 948}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 415}, "assignee": {"id": 33}, "organization": {"id": 678}, "project": {"owner": {"id": 787}, "assignee": {"id": 889}, "organization": {"id": 965}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 429}, "assignee": {"id": 49}, "organization": {"id": 164}, "project": {"owner": {"id": 701}, "assignee": {"id": 822}, "organization": {"id": 945}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 476}, "assignee": {"id": 32}, "organization": {"id": 621}, "project": {"owner": {"id": 776}, "assignee": {"id": 887}, "organization": {"id": 981}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 481}, "assignee": {"id": 98}, "organization": {"id": 192}, "project": {"owner": {"id": 771}, "assignee": {"id": 880}, "organization": {"id": 913}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 460}, "assignee": {"id": 52}, "organization": {"id": 611}, "project": {"owner": {"id": 757}, "assignee": {"id": 870}, "organization": {"id": 928}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 465}, "assignee": {"id": 13}, "organization": {"id": 176}, "project": {"owner": {"id": 748}, "assignee": {"id": 821}, "organization": {"id": 987}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 481}, "assignee": {"id": 2}, "organization": {"id": 606}, "project": {"owner": {"id": 789}, "assignee": {"id": 899}, "organization": {"id": 902}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 453}, "assignee": {"id": 67}, "organization": {"id": 163}, "project": {"owner": {"id": 752}, "assignee": {"id": 846}, "organization": {"id": 927}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 463}, "assignee": {"id": 3}, "organization": {"id": 611}, "project": {"owner": {"id": 723}, "assignee": {"id": 871}, "organization": {"id": 934}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 423}, "assignee": {"id": 96}, "organization": {"id": 166}, "project": {"owner": {"id": 759}, "assignee": {"id": 810}, "organization": {"id": 948}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 439}, "assignee": {"id": 34}, "organization": {"id": 687}, "project": {"owner": {"id": 762}, "assignee": {"id": 836}, "organization": {"id": 919}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 430}, "assignee": {"id": 33}, "organization": {"id": 184}, "project": {"owner": {"id": 717}, "assignee": {"id": 881}, "organization": {"id": 911}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 416}, "assignee": {"id": 19}, "organization": {"id": 683}, "project": {"owner": {"id": 733}, "assignee": {"id": 884}, "organization": {"id": 981}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 463}, "assignee": {"id": 3}, "organization": {"id": 112}, "project": {"owner": {"id": 768}, "assignee": {"id": 821}, "organization": {"id": 941}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 497}, "assignee": {"id": 32}, "organization": {"id": 655}, "project": {"owner": {"id": 706}, "assignee": {"id": 868}, "organization": {"id": 974}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 405}, "assignee": {"id": 97}, "organization": {"id": 127}, "project": {"owner": {"id": 780}, "assignee": {"id": 896}, "organization": {"id": 917}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 452}, "assignee": {"id": 10}, "organization": {"id": 659}, "project": {"owner": {"id": 708}, "assignee": {"id": 891}, "organization": {"id": 917}}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 412}, "assignee": {"id": 77}, "organization": {"id": 190}, "project": {"owner": {"id": 730}, "assignee": {"id": 858}, "organization": {"id": 928}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 479}, "assignee": {"id": 44}, "organization": {"id": 604}, "project": {"owner": {"id": 746}, "assignee": {"id": 892}, "organization": {"id": 916}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 457}, "assignee": {"id": 52}, "organization": {"id": 115}, "project": {"owner": {"id": 778}, "assignee": {"id": 857}, "organization": {"id": 955}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 491}, "assignee": {"id": 34}, "organization": {"id": 636}, "project": {"owner": {"id": 745}, "assignee": {"id": 848}, "organization": {"id": 927}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 469}, "assignee": {"id": 99}, "organization": {"id": 122}, "project": {"owner": {"id": 708}, "assignee": {"id": 870}, "organization": {"id": 912}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 499}, "assignee": {"id": 22}, "organization": {"id": 690}, "project": {"owner": {"id": 719}, "assignee": {"id": 811}, "organization": {"id": 920}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 448}, "assignee": {"id": 25}, "organization": {"id": 116}, "project": {"owner": {"id": 792}, "assignee": {"id": 897}, "organization": {"id": 902}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 496}, "assignee": {"id": 67}, "organization": {"id": 656}, "project": {"owner": {"id": 708}, "assignee": {"id": 875}, "organization": {"id": 998}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 444}, "assignee": {"id": 82}, "organization": {"id": 180}, "project": {"owner": {"id": 733}, "assignee": {"id": 899}, "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": 69, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 409}, "assignee": {"id": 69}, "organization": {"id": 628}, "project": {"owner": {"id": 751}, "assignee": {"id": 873}, "organization": {"id": 909}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 407}, "assignee": {"id": 0}, "organization": {"id": 192}, "project": {"owner": {"id": 796}, "assignee": {"id": 893}, "organization": {"id": 963}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 456}, "assignee": {"id": 45}, "organization": {"id": 671}, "project": {"owner": {"id": 767}, "assignee": {"id": 877}, "organization": {"id": 918}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 427}, "assignee": {"id": 48}, "organization": {"id": 142}, "project": {"owner": {"id": 701}, "assignee": {"id": 878}, "organization": {"id": 900}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 427}, "assignee": {"id": 50}, "organization": {"id": 641}, "project": {"owner": {"id": 734}, "assignee": {"id": 866}, "organization": {"id": 994}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 401}, "assignee": {"id": 67}, "organization": {"id": 120}, "project": {"owner": {"id": 703}, "assignee": {"id": 867}, "organization": {"id": 998}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 439}, "assignee": {"id": 68}, "organization": {"id": 604}, "project": {"owner": {"id": 726}, "assignee": {"id": 863}, "organization": {"id": 955}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 491}, "assignee": {"id": 49}, "organization": {"id": 134}, "project": {"owner": {"id": 795}, "assignee": {"id": 824}, "organization": {"id": 932}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 408}, "assignee": {"id": 46}, "organization": {"id": 601}, "project": {"owner": {"id": 748}, "assignee": {"id": 854}, "organization": {"id": 971}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 491}, "assignee": {"id": 44}, "organization": {"id": 129}, "project": {"owner": {"id": 770}, "assignee": {"id": 879}, "organization": {"id": 919}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 412}, "assignee": {"id": 61}, "organization": {"id": 640}, "project": {"owner": {"id": 715}, "assignee": {"id": 865}, "organization": {"id": 987}}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 487}, "assignee": {"id": 94}, "organization": {"id": 155}, "project": {"owner": {"id": 703}, "assignee": {"id": 814}, "organization": {"id": 920}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 434}, "assignee": {"id": 82}, "organization": {"id": 634}, "project": {"owner": {"id": 730}, "assignee": {"id": 878}, "organization": {"id": 932}}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 410}, "assignee": {"id": 66}, "organization": {"id": 124}, "project": {"owner": {"id": 764}, "assignee": {"id": 850}, "organization": {"id": 946}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 486}, "assignee": {"id": 56}, "organization": {"id": 602}, "project": {"owner": {"id": 745}, "assignee": {"id": 855}, "organization": {"id": 940}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 427}, "assignee": {"id": 550}, "organization": {"id": 168}, "project": {"owner": {"id": 716}, "assignee": {"id": 895}, "organization": {"id": 938}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 461}, "assignee": {"id": 551}, "organization": {"id": 612}, "project": {"owner": {"id": 794}, "assignee": {"id": 882}, "organization": {"id": 979}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 483}, "assignee": {"id": 574}, "organization": {"id": 168}, "project": {"owner": {"id": 708}, "assignee": {"id": 818}, "organization": {"id": 911}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 489}, "assignee": {"id": 593}, "organization": {"id": 686}, "project": {"owner": {"id": 710}, "assignee": {"id": 808}, "organization": {"id": 969}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 414}, "assignee": {"id": 597}, "organization": {"id": 146}, "project": {"owner": {"id": 717}, "assignee": {"id": 820}, "organization": {"id": 999}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 463}, "assignee": {"id": 575}, "organization": {"id": 674}, "project": {"owner": {"id": 711}, "assignee": {"id": 864}, "organization": {"id": 988}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 446}, "assignee": {"id": 567}, "organization": {"id": 152}, "project": {"owner": {"id": 756}, "assignee": {"id": 813}, "organization": {"id": 908}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 494}, "assignee": {"id": 545}, "organization": {"id": 663}, "project": {"owner": {"id": 791}, "assignee": {"id": 898}, "organization": {"id": 974}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 492}, "assignee": {"id": 596}, "organization": {"id": 141}, "project": {"owner": {"id": 748}, "assignee": {"id": 874}, "organization": {"id": 910}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 470}, "assignee": {"id": 555}, "organization": {"id": 644}, "project": {"owner": {"id": 703}, "assignee": {"id": 880}, "organization": {"id": 981}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 453}, "assignee": {"id": 502}, "organization": {"id": 161}, "project": {"owner": {"id": 726}, "assignee": {"id": 893}, "organization": {"id": 998}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 499}, "assignee": {"id": 502}, "organization": {"id": 656}, "project": {"owner": {"id": 756}, "assignee": {"id": 838}, "organization": {"id": 997}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 488}, "assignee": {"id": 597}, "organization": {"id": 145}, "project": {"owner": {"id": 766}, "assignee": {"id": 866}, "organization": {"id": 991}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 496}, "assignee": {"id": 520}, "organization": {"id": 645}, "project": {"owner": {"id": 703}, "assignee": {"id": 858}, "organization": {"id": 983}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 447}, "assignee": {"id": 511}, "organization": {"id": 125}, "project": {"owner": {"id": 779}, "assignee": {"id": 808}, "organization": {"id": 979}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 471}, "assignee": {"id": 500}, "organization": {"id": 685}, "project": {"owner": {"id": 702}, "assignee": {"id": 809}, "organization": {"id": 976}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 469}, "assignee": {"id": 591}, "organization": {"id": 132}, "project": {"owner": {"id": 730}, "assignee": {"id": 807}, "organization": {"id": 944}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 467}, "assignee": {"id": 541}, "organization": {"id": 652}, "project": {"owner": {"id": 704}, "assignee": {"id": 858}, "organization": {"id": 963}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 448}, "assignee": {"id": 582}, "organization": {"id": 131}, "project": {"owner": {"id": 746}, "assignee": {"id": 835}, "organization": {"id": 908}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 466}, "assignee": {"id": 510}, "organization": {"id": 633}, "project": {"owner": {"id": 782}, "assignee": {"id": 830}, "organization": {"id": 953}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 402}, "assignee": {"id": 552}, "organization": {"id": 134}, "project": {"owner": {"id": 742}, "assignee": {"id": 847}, "organization": {"id": 912}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 460}, "assignee": {"id": 584}, "organization": {"id": 640}, "project": {"owner": {"id": 773}, "assignee": {"id": 842}, "organization": {"id": 960}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 458}, "assignee": {"id": 585}, "organization": {"id": 129}, "project": {"owner": {"id": 745}, "assignee": {"id": 800}, "organization": {"id": 979}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 463}, "assignee": {"id": 576}, "organization": {"id": 611}, "project": {"owner": {"id": 726}, "assignee": {"id": 822}, "organization": {"id": 914}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 439}, "assignee": {"id": 507}, "organization": {"id": 150}, "project": {"owner": {"id": 799}, "assignee": {"id": 887}, "organization": {"id": 971}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 420}, "assignee": {"id": 551}, "organization": {"id": 656}, "project": {"owner": {"id": 764}, "assignee": {"id": 853}, "organization": {"id": 963}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 451}, "assignee": {"id": 526}, "organization": {"id": 109}, "project": {"owner": {"id": 770}, "assignee": {"id": 880}, "organization": {"id": 937}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 449}, "assignee": {"id": 501}, "organization": {"id": 617}, "project": {"owner": {"id": 745}, "assignee": {"id": 885}, "organization": {"id": 990}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 465}, "assignee": {"id": 555}, "organization": {"id": 159}, "project": {"owner": {"id": 779}, "assignee": {"id": 869}, "organization": {"id": 925}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 491}, "assignee": {"id": 568}, "organization": {"id": 648}, "project": {"owner": {"id": 742}, "assignee": {"id": 815}, "organization": {"id": 935}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 432}, "assignee": {"id": 558}, "organization": {"id": 143}, "project": {"owner": {"id": 700}, "assignee": {"id": 837}, "organization": {"id": 917}}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 432}, "assignee": {"id": 536}, "organization": {"id": 658}, "project": {"owner": {"id": 753}, "assignee": {"id": 851}, "organization": {"id": 919}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 479}, "assignee": {"id": 532}, "organization": {"id": 113}, "project": {"owner": {"id": 764}, "assignee": {"id": 895}, "organization": {"id": 983}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 404}, "assignee": {"id": 565}, "organization": {"id": 681}, "project": {"owner": {"id": 772}, "assignee": {"id": 803}, "organization": {"id": 927}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 488}, "assignee": {"id": 512}, "organization": {"id": 111}, "project": {"owner": {"id": 721}, "assignee": {"id": 854}, "organization": {"id": 935}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 421}, "assignee": {"id": 519}, "organization": {"id": 620}, "project": {"owner": {"id": 795}, "assignee": {"id": 884}, "organization": {"id": 943}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 455}, "assignee": {"id": 564}, "organization": {"id": 142}, "project": {"owner": {"id": 774}, "assignee": {"id": 892}, "organization": {"id": 990}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 493}, "assignee": {"id": 556}, "organization": {"id": 689}, "project": {"owner": {"id": 759}, "assignee": {"id": 867}, "organization": {"id": 949}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 425}, "assignee": {"id": 508}, "organization": {"id": 186}, "project": {"owner": {"id": 705}, "assignee": {"id": 833}, "organization": {"id": 952}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 495}, "assignee": {"id": 559}, "organization": {"id": 628}, "project": {"owner": {"id": 723}, "assignee": {"id": 832}, "organization": {"id": 928}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 476}, "assignee": {"id": 578}, "organization": {"id": 191}, "project": {"owner": {"id": 703}, "assignee": {"id": 882}, "organization": {"id": 911}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 434}, "assignee": {"id": 545}, "organization": {"id": 696}, "project": {"owner": {"id": 739}, "assignee": {"id": 898}, "organization": {"id": 932}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 426}, "assignee": {"id": 520}, "organization": {"id": 124}, "project": {"owner": {"id": 716}, "assignee": {"id": 809}, "organization": {"id": 935}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 481}, "assignee": {"id": 533}, "organization": {"id": 616}, "project": {"owner": {"id": 769}, "assignee": {"id": 869}, "organization": {"id": 921}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 415}, "assignee": {"id": 538}, "organization": {"id": 112}, "project": {"owner": {"id": 741}, "assignee": {"id": 837}, "organization": {"id": 973}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 421}, "assignee": {"id": 518}, "organization": {"id": 664}, "project": {"owner": {"id": 734}, "assignee": {"id": 898}, "organization": {"id": 922}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 492}, "assignee": {"id": 512}, "organization": {"id": 175}, "project": {"owner": {"id": 777}, "assignee": {"id": 819}, "organization": {"id": 926}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 445}, "assignee": {"id": 504}, "organization": {"id": 669}, "project": {"owner": {"id": 781}, "assignee": {"id": 812}, "organization": {"id": 971}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 472}, "assignee": {"id": 551}, "organization": {"id": 190}, "project": {"owner": {"id": 761}, "assignee": {"id": 852}, "organization": {"id": 977}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 495}, "assignee": {"id": 572}, "organization": {"id": 640}, "project": {"owner": {"id": 733}, "assignee": {"id": 860}, "organization": {"id": 953}}}} +} + +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": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 450}, "assignee": {"id": 569}, "organization": {"id": 635}, "project": {"owner": {"id": 56}, "assignee": {"id": 872}, "organization": {"id": 979}}}} +} + +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": 46, "privilege": "business"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 481}, "assignee": {"id": 520}, "organization": {"id": 601}, "project": {"owner": {"id": 46}, "assignee": {"id": 829}, "organization": {"id": 961}}}} +} + +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": 28, "privilege": "user"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 471}, "assignee": {"id": 598}, "organization": {"id": 630}, "project": {"owner": {"id": 28}, "assignee": {"id": 891}, "organization": {"id": 990}}}} +} + +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": 82, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 451}, "assignee": {"id": 561}, "organization": {"id": 610}, "project": {"owner": {"id": 82}, "assignee": {"id": 875}, "organization": {"id": 953}}}} +} + +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": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 493}, "assignee": {"id": 515}, "organization": {"id": 613}, "project": {"owner": {"id": 56}, "assignee": {"id": 840}, "organization": {"id": 926}}}} +} + +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": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 436}, "assignee": {"id": 564}, "organization": {"id": 633}, "project": {"owner": {"id": 776}, "assignee": {"id": 61}, "organization": {"id": 909}}}} +} + +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": 27, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 416}, "assignee": {"id": 598}, "organization": {"id": 674}, "project": {"owner": {"id": 736}, "assignee": {"id": 27}, "organization": {"id": 992}}}} +} + +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": 55, "privilege": "user"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 490}, "assignee": {"id": 536}, "organization": {"id": 693}, "project": {"owner": {"id": 760}, "assignee": {"id": 55}, "organization": {"id": 975}}}} +} + +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": 79, "privilege": "worker"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 498}, "assignee": {"id": 506}, "organization": {"id": 677}, "project": {"owner": {"id": 735}, "assignee": {"id": 79}, "organization": {"id": 980}}}} +} + +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": 57, "privilege": "none"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 499}, "assignee": {"id": 531}, "organization": {"id": 631}, "project": {"owner": {"id": 780}, "assignee": {"id": 57}, "organization": {"id": 925}}}} +} + +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": 26, "privilege": "admin"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 26}, "assignee": {"id": 549}, "organization": {"id": 668}, "project": {"owner": {"id": 776}, "assignee": {"id": 849}, "organization": {"id": 913}}}} +} + +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": 53, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 53}, "assignee": {"id": 546}, "organization": {"id": 639}, "project": {"owner": {"id": 798}, "assignee": {"id": 865}, "organization": {"id": 904}}}} +} + +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": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 85}, "assignee": {"id": 546}, "organization": {"id": 624}, "project": {"owner": {"id": 716}, "assignee": {"id": 841}, "organization": {"id": 955}}}} +} + +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": 82, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 82}, "assignee": {"id": 558}, "organization": {"id": 666}, "project": {"owner": {"id": 727}, "assignee": {"id": 843}, "organization": {"id": 900}}}} +} + +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": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 96}, "assignee": {"id": 519}, "organization": {"id": 645}, "project": {"owner": {"id": 775}, "assignee": {"id": 890}, "organization": {"id": 988}}}} +} + +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": 18, "privilege": "admin"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 408}, "assignee": {"id": 18}, "organization": {"id": 689}, "project": {"owner": {"id": 704}, "assignee": {"id": 812}, "organization": {"id": 996}}}} +} + +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": 71, "privilege": "business"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 489}, "assignee": {"id": 71}, "organization": {"id": 678}, "project": {"owner": {"id": 722}, "assignee": {"id": 884}, "organization": {"id": 913}}}} +} + +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": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 480}, "assignee": {"id": 98}, "organization": {"id": 665}, "project": {"owner": {"id": 718}, "assignee": {"id": 850}, "organization": {"id": 957}}}} +} + +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": 24, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 425}, "assignee": {"id": 24}, "organization": {"id": 607}, "project": {"owner": {"id": 728}, "assignee": {"id": 876}, "organization": {"id": 968}}}} +} + +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": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 490}, "assignee": {"id": 94}, "organization": {"id": 648}, "project": {"owner": {"id": 731}, "assignee": {"id": 832}, "organization": {"id": 964}}}} +} + +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": 3, "privilege": "admin"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 417}, "assignee": {"id": 577}, "organization": {"id": 644}, "project": {"owner": {"id": 710}, "assignee": {"id": 862}, "organization": {"id": 997}}}} +} + +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": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 402}, "assignee": {"id": 590}, "organization": {"id": 638}, "project": {"owner": {"id": 732}, "assignee": {"id": 844}, "organization": {"id": 908}}}} +} + +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": 51, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 478}, "assignee": {"id": 587}, "organization": {"id": 686}, "project": {"owner": {"id": 769}, "assignee": {"id": 822}, "organization": {"id": 921}}}} +} + +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": 98, "privilege": "worker"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 481}, "assignee": {"id": 516}, "organization": {"id": 601}, "project": {"owner": {"id": 795}, "assignee": {"id": 858}, "organization": {"id": 927}}}} +} + +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": 57, "privilege": "none"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 400}, "assignee": {"id": 522}, "organization": {"id": 642}, "project": {"owner": {"id": 744}, "assignee": {"id": 870}, "organization": {"id": 930}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 491}, "assignee": {"id": 567}, "organization": {"id": 154}, "project": {"owner": {"id": 48}, "assignee": {"id": 867}, "organization": {"id": 933}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 451}, "assignee": {"id": 574}, "organization": {"id": 617}, "project": {"owner": {"id": 22}, "assignee": {"id": 877}, "organization": {"id": 962}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 438}, "assignee": {"id": 570}, "organization": {"id": 158}, "project": {"owner": {"id": 43}, "assignee": {"id": 873}, "organization": {"id": 981}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 496}, "assignee": {"id": 599}, "organization": {"id": 612}, "project": {"owner": {"id": 26}, "assignee": {"id": 826}, "organization": {"id": 926}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 405}, "assignee": {"id": 565}, "organization": {"id": 138}, "project": {"owner": {"id": 64}, "assignee": {"id": 813}, "organization": {"id": 962}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 469}, "assignee": {"id": 517}, "organization": {"id": 688}, "project": {"owner": {"id": 36}, "assignee": {"id": 822}, "organization": {"id": 920}}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 411}, "assignee": {"id": 525}, "organization": {"id": 168}, "project": {"owner": {"id": 82}, "assignee": {"id": 887}, "organization": {"id": 928}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 447}, "assignee": {"id": 527}, "organization": {"id": 688}, "project": {"owner": {"id": 10}, "assignee": {"id": 890}, "organization": {"id": 980}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 414}, "assignee": {"id": 580}, "organization": {"id": 122}, "project": {"owner": {"id": 69}, "assignee": {"id": 854}, "organization": {"id": 995}}}} +} + +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": 67, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 442}, "assignee": {"id": 519}, "organization": {"id": 608}, "project": {"owner": {"id": 67}, "assignee": {"id": 889}, "organization": {"id": 955}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 473}, "assignee": {"id": 582}, "organization": {"id": 116}, "project": {"owner": {"id": 76}, "assignee": {"id": 804}, "organization": {"id": 923}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 433}, "assignee": {"id": 518}, "organization": {"id": 677}, "project": {"owner": {"id": 0}, "assignee": {"id": 801}, "organization": {"id": 957}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 414}, "assignee": {"id": 546}, "organization": {"id": 140}, "project": {"owner": {"id": 2}, "assignee": {"id": 844}, "organization": {"id": 974}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 447}, "assignee": {"id": 562}, "organization": {"id": 624}, "project": {"owner": {"id": 49}, "assignee": {"id": 884}, "organization": {"id": 941}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 491}, "assignee": {"id": 559}, "organization": {"id": 183}, "project": {"owner": {"id": 20}, "assignee": {"id": 888}, "organization": {"id": 997}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 464}, "assignee": {"id": 535}, "organization": {"id": 678}, "project": {"owner": {"id": 23}, "assignee": {"id": 839}, "organization": {"id": 933}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 440}, "assignee": {"id": 521}, "organization": {"id": 186}, "project": {"owner": {"id": 22}, "assignee": {"id": 856}, "organization": {"id": 987}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 456}, "assignee": {"id": 546}, "organization": {"id": 636}, "project": {"owner": {"id": 24}, "assignee": {"id": 851}, "organization": {"id": 969}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 493}, "assignee": {"id": 516}, "organization": {"id": 160}, "project": {"owner": {"id": 87}, "assignee": {"id": 824}, "organization": {"id": 946}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 490}, "assignee": {"id": 578}, "organization": {"id": 612}, "project": {"owner": {"id": 54}, "assignee": {"id": 864}, "organization": {"id": 974}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 485}, "assignee": {"id": 526}, "organization": {"id": 152}, "project": {"owner": {"id": 79}, "assignee": {"id": 851}, "organization": {"id": 903}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 444}, "assignee": {"id": 541}, "organization": {"id": 683}, "project": {"owner": {"id": 22}, "assignee": {"id": 822}, "organization": {"id": 919}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 468}, "assignee": {"id": 539}, "organization": {"id": 100}, "project": {"owner": {"id": 50}, "assignee": {"id": 875}, "organization": {"id": 986}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 414}, "assignee": {"id": 587}, "organization": {"id": 626}, "project": {"owner": {"id": 60}, "assignee": {"id": 879}, "organization": {"id": 993}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 444}, "assignee": {"id": 555}, "organization": {"id": 163}, "project": {"owner": {"id": 92}, "assignee": {"id": 860}, "organization": {"id": 929}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 446}, "assignee": {"id": 583}, "organization": {"id": 603}, "project": {"owner": {"id": 87}, "assignee": {"id": 830}, "organization": {"id": 919}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 482}, "assignee": {"id": 572}, "organization": {"id": 193}, "project": {"owner": {"id": 66}, "assignee": {"id": 825}, "organization": {"id": 995}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 456}, "assignee": {"id": 519}, "organization": {"id": 646}, "project": {"owner": {"id": 18}, "assignee": {"id": 868}, "organization": {"id": 906}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 403}, "assignee": {"id": 510}, "organization": {"id": 160}, "project": {"owner": {"id": 9}, "assignee": {"id": 826}, "organization": {"id": 995}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 499}, "assignee": {"id": 554}, "organization": {"id": 618}, "project": {"owner": {"id": 12}, "assignee": {"id": 868}, "organization": {"id": 945}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 424}, "assignee": {"id": 596}, "organization": {"id": 191}, "project": {"owner": {"id": 86}, "assignee": {"id": 801}, "organization": {"id": 956}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 429}, "assignee": {"id": 558}, "organization": {"id": 699}, "project": {"owner": {"id": 48}, "assignee": {"id": 897}, "organization": {"id": 904}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 476}, "assignee": {"id": 575}, "organization": {"id": 194}, "project": {"owner": {"id": 29}, "assignee": {"id": 856}, "organization": {"id": 922}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 404}, "assignee": {"id": 549}, "organization": {"id": 627}, "project": {"owner": {"id": 38}, "assignee": {"id": 832}, "organization": {"id": 923}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 485}, "assignee": {"id": 581}, "organization": {"id": 170}, "project": {"owner": {"id": 49}, "assignee": {"id": 892}, "organization": {"id": 999}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 406}, "assignee": {"id": 528}, "organization": {"id": 670}, "project": {"owner": {"id": 94}, "assignee": {"id": 880}, "organization": {"id": 908}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 400}, "assignee": {"id": 518}, "organization": {"id": 140}, "project": {"owner": {"id": 24}, "assignee": {"id": 862}, "organization": {"id": 938}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 423}, "assignee": {"id": 578}, "organization": {"id": 630}, "project": {"owner": {"id": 99}, "assignee": {"id": 832}, "organization": {"id": 904}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 458}, "assignee": {"id": 529}, "organization": {"id": 196}, "project": {"owner": {"id": 1}, "assignee": {"id": 855}, "organization": {"id": 964}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 435}, "assignee": {"id": 577}, "organization": {"id": 679}, "project": {"owner": {"id": 47}, "assignee": {"id": 896}, "organization": {"id": 943}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 430}, "assignee": {"id": 537}, "organization": {"id": 147}, "project": {"owner": {"id": 55}, "assignee": {"id": 859}, "organization": {"id": 976}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 405}, "assignee": {"id": 572}, "organization": {"id": 699}, "project": {"owner": {"id": 59}, "assignee": {"id": 846}, "organization": {"id": 978}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 449}, "assignee": {"id": 539}, "organization": {"id": 145}, "project": {"owner": {"id": 61}, "assignee": {"id": 846}, "organization": {"id": 965}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 490}, "assignee": {"id": 549}, "organization": {"id": 678}, "project": {"owner": {"id": 69}, "assignee": {"id": 812}, "organization": {"id": 934}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 478}, "assignee": {"id": 532}, "organization": {"id": 165}, "project": {"owner": {"id": 38}, "assignee": {"id": 852}, "organization": {"id": 949}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 484}, "assignee": {"id": 576}, "organization": {"id": 603}, "project": {"owner": {"id": 62}, "assignee": {"id": 874}, "organization": {"id": 996}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 464}, "assignee": {"id": 577}, "organization": {"id": 109}, "project": {"owner": {"id": 45}, "assignee": {"id": 879}, "organization": {"id": 943}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 402}, "assignee": {"id": 573}, "organization": {"id": 655}, "project": {"owner": {"id": 40}, "assignee": {"id": 885}, "organization": {"id": 941}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 430}, "assignee": {"id": 565}, "organization": {"id": 177}, "project": {"owner": {"id": 95}, "assignee": {"id": 873}, "organization": {"id": 947}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 486}, "assignee": {"id": 589}, "organization": {"id": 632}, "project": {"owner": {"id": 85}, "assignee": {"id": 888}, "organization": {"id": 994}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 434}, "assignee": {"id": 513}, "organization": {"id": 125}, "project": {"owner": {"id": 774}, "assignee": {"id": 42}, "organization": {"id": 981}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 474}, "assignee": {"id": 500}, "organization": {"id": 623}, "project": {"owner": {"id": 742}, "assignee": {"id": 13}, "organization": {"id": 989}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 499}, "assignee": {"id": 509}, "organization": {"id": 127}, "project": {"owner": {"id": 770}, "assignee": {"id": 49}, "organization": {"id": 902}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 473}, "assignee": {"id": 506}, "organization": {"id": 644}, "project": {"owner": {"id": 741}, "assignee": {"id": 57}, "organization": {"id": 974}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 469}, "assignee": {"id": 578}, "organization": {"id": 172}, "project": {"owner": {"id": 737}, "assignee": {"id": 96}, "organization": {"id": 914}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 427}, "assignee": {"id": 578}, "organization": {"id": 697}, "project": {"owner": {"id": 780}, "assignee": {"id": 70}, "organization": {"id": 902}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 489}, "assignee": {"id": 527}, "organization": {"id": 114}, "project": {"owner": {"id": 738}, "assignee": {"id": 65}, "organization": {"id": 905}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 425}, "assignee": {"id": 508}, "organization": {"id": 669}, "project": {"owner": {"id": 727}, "assignee": {"id": 26}, "organization": {"id": 990}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 491}, "assignee": {"id": 528}, "organization": {"id": 178}, "project": {"owner": {"id": 701}, "assignee": {"id": 27}, "organization": {"id": 965}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 470}, "assignee": {"id": 587}, "organization": {"id": 673}, "project": {"owner": {"id": 746}, "assignee": {"id": 17}, "organization": {"id": 991}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 493}, "assignee": {"id": 562}, "organization": {"id": 142}, "project": {"owner": {"id": 797}, "assignee": {"id": 60}, "organization": {"id": 980}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 469}, "assignee": {"id": 515}, "organization": {"id": 664}, "project": {"owner": {"id": 742}, "assignee": {"id": 7}, "organization": {"id": 995}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 455}, "assignee": {"id": 533}, "organization": {"id": 120}, "project": {"owner": {"id": 791}, "assignee": {"id": 67}, "organization": {"id": 953}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 439}, "assignee": {"id": 535}, "organization": {"id": 637}, "project": {"owner": {"id": 789}, "assignee": {"id": 83}, "organization": {"id": 914}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 417}, "assignee": {"id": 510}, "organization": {"id": 108}, "project": {"owner": {"id": 715}, "assignee": {"id": 82}, "organization": {"id": 990}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 457}, "assignee": {"id": 592}, "organization": {"id": 637}, "project": {"owner": {"id": 769}, "assignee": {"id": 99}, "organization": {"id": 910}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 442}, "assignee": {"id": 501}, "organization": {"id": 152}, "project": {"owner": {"id": 744}, "assignee": {"id": 25}, "organization": {"id": 977}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 460}, "assignee": {"id": 593}, "organization": {"id": 623}, "project": {"owner": {"id": 791}, "assignee": {"id": 7}, "organization": {"id": 951}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 479}, "assignee": {"id": 599}, "organization": {"id": 126}, "project": {"owner": {"id": 727}, "assignee": {"id": 24}, "organization": {"id": 974}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 401}, "assignee": {"id": 523}, "organization": {"id": 690}, "project": {"owner": {"id": 705}, "assignee": {"id": 76}, "organization": {"id": 958}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 435}, "assignee": {"id": 522}, "organization": {"id": 132}, "project": {"owner": {"id": 761}, "assignee": {"id": 80}, "organization": {"id": 989}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 416}, "assignee": {"id": 591}, "organization": {"id": 633}, "project": {"owner": {"id": 769}, "assignee": {"id": 37}, "organization": {"id": 971}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 436}, "assignee": {"id": 535}, "organization": {"id": 141}, "project": {"owner": {"id": 772}, "assignee": {"id": 79}, "organization": {"id": 976}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 476}, "assignee": {"id": 515}, "organization": {"id": 622}, "project": {"owner": {"id": 781}, "assignee": {"id": 44}, "organization": {"id": 969}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 438}, "assignee": {"id": 510}, "organization": {"id": 184}, "project": {"owner": {"id": 745}, "assignee": {"id": 0}, "organization": {"id": 925}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 435}, "assignee": {"id": 502}, "organization": {"id": 690}, "project": {"owner": {"id": 784}, "assignee": {"id": 92}, "organization": {"id": 934}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 468}, "assignee": {"id": 572}, "organization": {"id": 192}, "project": {"owner": {"id": 771}, "assignee": {"id": 23}, "organization": {"id": 930}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 484}, "assignee": {"id": 546}, "organization": {"id": 679}, "project": {"owner": {"id": 764}, "assignee": {"id": 36}, "organization": {"id": 944}}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 469}, "assignee": {"id": 542}, "organization": {"id": 181}, "project": {"owner": {"id": 703}, "assignee": {"id": 40}, "organization": {"id": 904}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 492}, "assignee": {"id": 549}, "organization": {"id": 697}, "project": {"owner": {"id": 711}, "assignee": {"id": 60}, "organization": {"id": 905}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 479}, "assignee": {"id": 513}, "organization": {"id": 176}, "project": {"owner": {"id": 742}, "assignee": {"id": 15}, "organization": {"id": 942}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 474}, "assignee": {"id": 592}, "organization": {"id": 697}, "project": {"owner": {"id": 750}, "assignee": {"id": 67}, "organization": {"id": 963}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 459}, "assignee": {"id": 568}, "organization": {"id": 144}, "project": {"owner": {"id": 723}, "assignee": {"id": 13}, "organization": {"id": 919}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 426}, "assignee": {"id": 549}, "organization": {"id": 693}, "project": {"owner": {"id": 723}, "assignee": {"id": 25}, "organization": {"id": 951}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 491}, "assignee": {"id": 538}, "organization": {"id": 138}, "project": {"owner": {"id": 771}, "assignee": {"id": 37}, "organization": {"id": 932}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 426}, "assignee": {"id": 558}, "organization": {"id": 670}, "project": {"owner": {"id": 793}, "assignee": {"id": 27}, "organization": {"id": 915}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 460}, "assignee": {"id": 513}, "organization": {"id": 186}, "project": {"owner": {"id": 779}, "assignee": {"id": 6}, "organization": {"id": 932}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 413}, "assignee": {"id": 524}, "organization": {"id": 658}, "project": {"owner": {"id": 758}, "assignee": {"id": 15}, "organization": {"id": 972}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 465}, "assignee": {"id": 565}, "organization": {"id": 136}, "project": {"owner": {"id": 785}, "assignee": {"id": 58}, "organization": {"id": 997}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 489}, "assignee": {"id": 517}, "organization": {"id": 637}, "project": {"owner": {"id": 781}, "assignee": {"id": 36}, "organization": {"id": 989}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 490}, "assignee": {"id": 525}, "organization": {"id": 111}, "project": {"owner": {"id": 742}, "assignee": {"id": 71}, "organization": {"id": 993}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 473}, "assignee": {"id": 558}, "organization": {"id": 610}, "project": {"owner": {"id": 766}, "assignee": {"id": 15}, "organization": {"id": 907}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 442}, "assignee": {"id": 542}, "organization": {"id": 199}, "project": {"owner": {"id": 719}, "assignee": {"id": 53}, "organization": {"id": 946}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 404}, "assignee": {"id": 578}, "organization": {"id": 621}, "project": {"owner": {"id": 729}, "assignee": {"id": 36}, "organization": {"id": 928}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 451}, "assignee": {"id": 579}, "organization": {"id": 171}, "project": {"owner": {"id": 700}, "assignee": {"id": 47}, "organization": {"id": 994}}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 483}, "assignee": {"id": 514}, "organization": {"id": 662}, "project": {"owner": {"id": 795}, "assignee": {"id": 99}, "organization": {"id": 924}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 458}, "assignee": {"id": 500}, "organization": {"id": 186}, "project": {"owner": {"id": 753}, "assignee": {"id": 57}, "organization": {"id": 996}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 495}, "assignee": {"id": 575}, "organization": {"id": 600}, "project": {"owner": {"id": 739}, "assignee": {"id": 8}, "organization": {"id": 988}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 486}, "assignee": {"id": 539}, "organization": {"id": 111}, "project": {"owner": {"id": 717}, "assignee": {"id": 31}, "organization": {"id": 936}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 431}, "assignee": {"id": 574}, "organization": {"id": 644}, "project": {"owner": {"id": 722}, "assignee": {"id": 71}, "organization": {"id": 925}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 90}, "assignee": {"id": 508}, "organization": {"id": 118}, "project": {"owner": {"id": 796}, "assignee": {"id": 858}, "organization": {"id": 933}}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 68}, "assignee": {"id": 560}, "organization": {"id": 612}, "project": {"owner": {"id": 734}, "assignee": {"id": 839}, "organization": {"id": 972}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 70}, "assignee": {"id": 547}, "organization": {"id": 165}, "project": {"owner": {"id": 769}, "assignee": {"id": 895}, "organization": {"id": 958}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 88}, "assignee": {"id": 501}, "organization": {"id": 692}, "project": {"owner": {"id": 751}, "assignee": {"id": 840}, "organization": {"id": 923}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 8}, "assignee": {"id": 554}, "organization": {"id": 101}, "project": {"owner": {"id": 799}, "assignee": {"id": 809}, "organization": {"id": 980}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 20}, "assignee": {"id": 515}, "organization": {"id": 672}, "project": {"owner": {"id": 710}, "assignee": {"id": 862}, "organization": {"id": 915}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 88}, "assignee": {"id": 506}, "organization": {"id": 143}, "project": {"owner": {"id": 728}, "assignee": {"id": 844}, "organization": {"id": 918}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 74}, "assignee": {"id": 597}, "organization": {"id": 630}, "project": {"owner": {"id": 715}, "assignee": {"id": 863}, "organization": {"id": 902}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 54}, "assignee": {"id": 502}, "organization": {"id": 180}, "project": {"owner": {"id": 724}, "assignee": {"id": 808}, "organization": {"id": 974}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 84}, "assignee": {"id": 541}, "organization": {"id": 691}, "project": {"owner": {"id": 749}, "assignee": {"id": 821}, "organization": {"id": 928}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 48}, "assignee": {"id": 530}, "organization": {"id": 178}, "project": {"owner": {"id": 778}, "assignee": {"id": 807}, "organization": {"id": 998}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 9}, "assignee": {"id": 579}, "organization": {"id": 607}, "project": {"owner": {"id": 771}, "assignee": {"id": 808}, "organization": {"id": 948}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 81}, "assignee": {"id": 592}, "organization": {"id": 179}, "project": {"owner": {"id": 767}, "assignee": {"id": 815}, "organization": {"id": 917}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 76}, "assignee": {"id": 524}, "organization": {"id": 635}, "project": {"owner": {"id": 799}, "assignee": {"id": 877}, "organization": {"id": 966}}}} +} + +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": 133, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 78}, "assignee": {"id": 538}, "organization": {"id": 133}, "project": {"owner": {"id": 721}, "assignee": {"id": 888}, "organization": {"id": 908}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 87}, "assignee": {"id": 596}, "organization": {"id": 653}, "project": {"owner": {"id": 742}, "assignee": {"id": 858}, "organization": {"id": 954}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 12}, "assignee": {"id": 579}, "organization": {"id": 179}, "project": {"owner": {"id": 744}, "assignee": {"id": 808}, "organization": {"id": 964}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 96}, "assignee": {"id": 510}, "organization": {"id": 630}, "project": {"owner": {"id": 716}, "assignee": {"id": 825}, "organization": {"id": 965}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 8}, "assignee": {"id": 507}, "organization": {"id": 197}, "project": {"owner": {"id": 719}, "assignee": {"id": 804}, "organization": {"id": 978}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 18}, "assignee": {"id": 552}, "organization": {"id": 695}, "project": {"owner": {"id": 794}, "assignee": {"id": 858}, "organization": {"id": 998}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 21}, "assignee": {"id": 545}, "organization": {"id": 167}, "project": {"owner": {"id": 756}, "assignee": {"id": 809}, "organization": {"id": 960}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 32}, "assignee": {"id": 541}, "organization": {"id": 693}, "project": {"owner": {"id": 766}, "assignee": {"id": 840}, "organization": {"id": 927}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 61}, "assignee": {"id": 561}, "organization": {"id": 136}, "project": {"owner": {"id": 764}, "assignee": {"id": 899}, "organization": {"id": 920}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 30}, "assignee": {"id": 542}, "organization": {"id": 670}, "project": {"owner": {"id": 782}, "assignee": {"id": 875}, "organization": {"id": 956}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 15}, "assignee": {"id": 531}, "organization": {"id": 135}, "project": {"owner": {"id": 752}, "assignee": {"id": 802}, "organization": {"id": 937}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 3}, "assignee": {"id": 579}, "organization": {"id": 697}, "project": {"owner": {"id": 756}, "assignee": {"id": 841}, "organization": {"id": 974}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 58}, "assignee": {"id": 570}, "organization": {"id": 138}, "project": {"owner": {"id": 769}, "assignee": {"id": 822}, "organization": {"id": 963}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 37}, "assignee": {"id": 543}, "organization": {"id": 616}, "project": {"owner": {"id": 731}, "assignee": {"id": 895}, "organization": {"id": 903}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 43}, "assignee": {"id": 506}, "organization": {"id": 168}, "project": {"owner": {"id": 709}, "assignee": {"id": 899}, "organization": {"id": 919}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 67}, "assignee": {"id": 519}, "organization": {"id": 605}, "project": {"owner": {"id": 723}, "assignee": {"id": 804}, "organization": {"id": 939}}}} +} + +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": 174, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 16}, "assignee": {"id": 566}, "organization": {"id": 174}, "project": {"owner": {"id": 715}, "assignee": {"id": 816}, "organization": {"id": 976}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 30}, "assignee": {"id": 520}, "organization": {"id": 617}, "project": {"owner": {"id": 711}, "assignee": {"id": 865}, "organization": {"id": 903}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 84}, "assignee": {"id": 578}, "organization": {"id": 118}, "project": {"owner": {"id": 735}, "assignee": {"id": 813}, "organization": {"id": 915}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 86}, "assignee": {"id": 524}, "organization": {"id": 629}, "project": {"owner": {"id": 790}, "assignee": {"id": 816}, "organization": {"id": 984}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 97}, "assignee": {"id": 502}, "organization": {"id": 131}, "project": {"owner": {"id": 782}, "assignee": {"id": 806}, "organization": {"id": 954}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 2}, "assignee": {"id": 537}, "organization": {"id": 697}, "project": {"owner": {"id": 761}, "assignee": {"id": 800}, "organization": {"id": 910}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 54}, "assignee": {"id": 539}, "organization": {"id": 108}, "project": {"owner": {"id": 739}, "assignee": {"id": 853}, "organization": {"id": 928}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 23}, "assignee": {"id": 571}, "organization": {"id": 662}, "project": {"owner": {"id": 729}, "assignee": {"id": 845}, "organization": {"id": 990}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 1}, "assignee": {"id": 546}, "organization": {"id": 189}, "project": {"owner": {"id": 749}, "assignee": {"id": 827}, "organization": {"id": 917}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 47}, "assignee": {"id": 507}, "organization": {"id": 686}, "project": {"owner": {"id": 743}, "assignee": {"id": 808}, "organization": {"id": 988}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 61}, "assignee": {"id": 512}, "organization": {"id": 184}, "project": {"owner": {"id": 737}, "assignee": {"id": 815}, "organization": {"id": 938}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 80}, "assignee": {"id": 595}, "organization": {"id": 629}, "project": {"owner": {"id": 766}, "assignee": {"id": 808}, "organization": {"id": 967}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 48}, "assignee": {"id": 513}, "organization": {"id": 196}, "project": {"owner": {"id": 751}, "assignee": {"id": 875}, "organization": {"id": 913}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 46}, "assignee": {"id": 599}, "organization": {"id": 653}, "project": {"owner": {"id": 700}, "assignee": {"id": 824}, "organization": {"id": 942}}}} +} + +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": 163, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 27}, "assignee": {"id": 557}, "organization": {"id": 163}, "project": {"owner": {"id": 701}, "assignee": {"id": 851}, "organization": {"id": 992}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 68}, "assignee": {"id": 554}, "organization": {"id": 654}, "project": {"owner": {"id": 766}, "assignee": {"id": 815}, "organization": {"id": 968}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 72}, "assignee": {"id": 545}, "organization": {"id": 185}, "project": {"owner": {"id": 710}, "assignee": {"id": 871}, "organization": {"id": 935}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 40}, "assignee": {"id": 544}, "organization": {"id": 629}, "project": {"owner": {"id": 781}, "assignee": {"id": 859}, "organization": {"id": 924}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 73}, "assignee": {"id": 548}, "organization": {"id": 128}, "project": {"owner": {"id": 767}, "assignee": {"id": 851}, "organization": {"id": 988}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 82}, "assignee": {"id": 557}, "organization": {"id": 630}, "project": {"owner": {"id": 773}, "assignee": {"id": 819}, "organization": {"id": 906}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 426}, "assignee": {"id": 19}, "organization": {"id": 177}, "project": {"owner": {"id": 758}, "assignee": {"id": 823}, "organization": {"id": 975}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 423}, "assignee": {"id": 1}, "organization": {"id": 627}, "project": {"owner": {"id": 757}, "assignee": {"id": 869}, "organization": {"id": 981}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 472}, "assignee": {"id": 25}, "organization": {"id": 106}, "project": {"owner": {"id": 754}, "assignee": {"id": 812}, "organization": {"id": 933}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 437}, "assignee": {"id": 1}, "organization": {"id": 668}, "project": {"owner": {"id": 764}, "assignee": {"id": 897}, "organization": {"id": 942}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 431}, "assignee": {"id": 77}, "organization": {"id": 143}, "project": {"owner": {"id": 752}, "assignee": {"id": 804}, "organization": {"id": 988}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 487}, "assignee": {"id": 48}, "organization": {"id": 677}, "project": {"owner": {"id": 747}, "assignee": {"id": 859}, "organization": {"id": 974}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 478}, "assignee": {"id": 0}, "organization": {"id": 193}, "project": {"owner": {"id": 705}, "assignee": {"id": 818}, "organization": {"id": 956}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 476}, "assignee": {"id": 79}, "organization": {"id": 646}, "project": {"owner": {"id": 757}, "assignee": {"id": 828}, "organization": {"id": 907}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 402}, "assignee": {"id": 9}, "organization": {"id": 193}, "project": {"owner": {"id": 753}, "assignee": {"id": 800}, "organization": {"id": 920}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 426}, "assignee": {"id": 19}, "organization": {"id": 639}, "project": {"owner": {"id": 763}, "assignee": {"id": 873}, "organization": {"id": 940}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 455}, "assignee": {"id": 65}, "organization": {"id": 187}, "project": {"owner": {"id": 738}, "assignee": {"id": 885}, "organization": {"id": 986}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 477}, "assignee": {"id": 6}, "organization": {"id": 685}, "project": {"owner": {"id": 796}, "assignee": {"id": 855}, "organization": {"id": 978}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 489}, "assignee": {"id": 64}, "organization": {"id": 105}, "project": {"owner": {"id": 715}, "assignee": {"id": 839}, "organization": {"id": 945}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 439}, "assignee": {"id": 88}, "organization": {"id": 683}, "project": {"owner": {"id": 788}, "assignee": {"id": 878}, "organization": {"id": 977}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 464}, "assignee": {"id": 36}, "organization": {"id": 106}, "project": {"owner": {"id": 774}, "assignee": {"id": 838}, "organization": {"id": 911}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 401}, "assignee": {"id": 97}, "organization": {"id": 627}, "project": {"owner": {"id": 783}, "assignee": {"id": 816}, "organization": {"id": 978}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 449}, "assignee": {"id": 33}, "organization": {"id": 157}, "project": {"owner": {"id": 742}, "assignee": {"id": 863}, "organization": {"id": 983}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 451}, "assignee": {"id": 63}, "organization": {"id": 651}, "project": {"owner": {"id": 796}, "assignee": {"id": 888}, "organization": {"id": 960}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 434}, "assignee": {"id": 86}, "organization": {"id": 143}, "project": {"owner": {"id": 747}, "assignee": {"id": 858}, "organization": {"id": 903}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 468}, "assignee": {"id": 69}, "organization": {"id": 637}, "project": {"owner": {"id": 777}, "assignee": {"id": 851}, "organization": {"id": 993}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 462}, "assignee": {"id": 0}, "organization": {"id": 121}, "project": {"owner": {"id": 757}, "assignee": {"id": 867}, "organization": {"id": 932}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 433}, "assignee": {"id": 60}, "organization": {"id": 625}, "project": {"owner": {"id": 715}, "assignee": {"id": 880}, "organization": {"id": 957}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 411}, "assignee": {"id": 88}, "organization": {"id": 166}, "project": {"owner": {"id": 704}, "assignee": {"id": 866}, "organization": {"id": 936}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 438}, "assignee": {"id": 17}, "organization": {"id": 662}, "project": {"owner": {"id": 703}, "assignee": {"id": 877}, "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": 49, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 403}, "assignee": {"id": 49}, "organization": {"id": 114}, "project": {"owner": {"id": 744}, "assignee": {"id": 854}, "organization": {"id": 917}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 484}, "assignee": {"id": 25}, "organization": {"id": 672}, "project": {"owner": {"id": 733}, "assignee": {"id": 824}, "organization": {"id": 936}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 482}, "assignee": {"id": 95}, "organization": {"id": 141}, "project": {"owner": {"id": 799}, "assignee": {"id": 831}, "organization": {"id": 956}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 483}, "assignee": {"id": 32}, "organization": {"id": 609}, "project": {"owner": {"id": 782}, "assignee": {"id": 872}, "organization": {"id": 916}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 464}, "assignee": {"id": 37}, "organization": {"id": 191}, "project": {"owner": {"id": 789}, "assignee": {"id": 804}, "organization": {"id": 913}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 486}, "assignee": {"id": 29}, "organization": {"id": 693}, "project": {"owner": {"id": 736}, "assignee": {"id": 848}, "organization": {"id": 943}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 438}, "assignee": {"id": 4}, "organization": {"id": 117}, "project": {"owner": {"id": 722}, "assignee": {"id": 813}, "organization": {"id": 907}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 495}, "assignee": {"id": 60}, "organization": {"id": 668}, "project": {"owner": {"id": 713}, "assignee": {"id": 859}, "organization": {"id": 957}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 475}, "assignee": {"id": 71}, "organization": {"id": 192}, "project": {"owner": {"id": 786}, "assignee": {"id": 889}, "organization": {"id": 972}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 481}, "assignee": {"id": 6}, "organization": {"id": 658}, "project": {"owner": {"id": 700}, "assignee": {"id": 824}, "organization": {"id": 963}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 442}, "assignee": {"id": 64}, "organization": {"id": 162}, "project": {"owner": {"id": 747}, "assignee": {"id": 832}, "organization": {"id": 926}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 440}, "assignee": {"id": 86}, "organization": {"id": 640}, "project": {"owner": {"id": 789}, "assignee": {"id": 801}, "organization": {"id": 922}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 494}, "assignee": {"id": 86}, "organization": {"id": 117}, "project": {"owner": {"id": 784}, "assignee": {"id": 878}, "organization": {"id": 936}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 407}, "assignee": {"id": 50}, "organization": {"id": 667}, "project": {"owner": {"id": 708}, "assignee": {"id": 848}, "organization": {"id": 949}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 497}, "assignee": {"id": 44}, "organization": {"id": 199}, "project": {"owner": {"id": 744}, "assignee": {"id": 834}, "organization": {"id": 908}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 479}, "assignee": {"id": 5}, "organization": {"id": 653}, "project": {"owner": {"id": 703}, "assignee": {"id": 808}, "organization": {"id": 927}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 402}, "assignee": {"id": 12}, "organization": {"id": 187}, "project": {"owner": {"id": 778}, "assignee": {"id": 861}, "organization": {"id": 926}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 463}, "assignee": {"id": 69}, "organization": {"id": 652}, "project": {"owner": {"id": 751}, "assignee": {"id": 846}, "organization": {"id": 926}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 486}, "assignee": {"id": 0}, "organization": {"id": 161}, "project": {"owner": {"id": 791}, "assignee": {"id": 896}, "organization": {"id": 969}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 402}, "assignee": {"id": 82}, "organization": {"id": 692}, "project": {"owner": {"id": 711}, "assignee": {"id": 813}, "organization": {"id": 973}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 427}, "assignee": {"id": 45}, "organization": {"id": 100}, "project": {"owner": {"id": 769}, "assignee": {"id": 818}, "organization": {"id": 962}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 419}, "assignee": {"id": 9}, "organization": {"id": 642}, "project": {"owner": {"id": 741}, "assignee": {"id": 864}, "organization": {"id": 960}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 455}, "assignee": {"id": 18}, "organization": {"id": 133}, "project": {"owner": {"id": 731}, "assignee": {"id": 847}, "organization": {"id": 970}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 457}, "assignee": {"id": 22}, "organization": {"id": 675}, "project": {"owner": {"id": 727}, "assignee": {"id": 887}, "organization": {"id": 983}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 483}, "assignee": {"id": 5}, "organization": {"id": 184}, "project": {"owner": {"id": 703}, "assignee": {"id": 898}, "organization": {"id": 960}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 400}, "assignee": {"id": 93}, "organization": {"id": 695}, "project": {"owner": {"id": 725}, "assignee": {"id": 837}, "organization": {"id": 950}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 402}, "assignee": {"id": 566}, "organization": {"id": 192}, "project": {"owner": {"id": 711}, "assignee": {"id": 800}, "organization": {"id": 959}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 446}, "assignee": {"id": 523}, "organization": {"id": 653}, "project": {"owner": {"id": 771}, "assignee": {"id": 803}, "organization": {"id": 965}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 435}, "assignee": {"id": 527}, "organization": {"id": 159}, "project": {"owner": {"id": 768}, "assignee": {"id": 820}, "organization": {"id": 931}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 429}, "assignee": {"id": 547}, "organization": {"id": 668}, "project": {"owner": {"id": 799}, "assignee": {"id": 864}, "organization": {"id": 969}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 444}, "assignee": {"id": 586}, "organization": {"id": 117}, "project": {"owner": {"id": 725}, "assignee": {"id": 826}, "organization": {"id": 980}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 448}, "assignee": {"id": 566}, "organization": {"id": 693}, "project": {"owner": {"id": 788}, "assignee": {"id": 810}, "organization": {"id": 987}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 464}, "assignee": {"id": 540}, "organization": {"id": 191}, "project": {"owner": {"id": 706}, "assignee": {"id": 858}, "organization": {"id": 928}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 480}, "assignee": {"id": 549}, "organization": {"id": 632}, "project": {"owner": {"id": 715}, "assignee": {"id": 822}, "organization": {"id": 910}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 477}, "assignee": {"id": 537}, "organization": {"id": 191}, "project": {"owner": {"id": 740}, "assignee": {"id": 832}, "organization": {"id": 946}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 400}, "assignee": {"id": 515}, "organization": {"id": 656}, "project": {"owner": {"id": 763}, "assignee": {"id": 890}, "organization": {"id": 903}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 431}, "assignee": {"id": 524}, "organization": {"id": 117}, "project": {"owner": {"id": 718}, "assignee": {"id": 880}, "organization": {"id": 902}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 466}, "assignee": {"id": 581}, "organization": {"id": 693}, "project": {"owner": {"id": 776}, "assignee": {"id": 863}, "organization": {"id": 917}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 483}, "assignee": {"id": 597}, "organization": {"id": 190}, "project": {"owner": {"id": 763}, "assignee": {"id": 818}, "organization": {"id": 941}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 437}, "assignee": {"id": 588}, "organization": {"id": 676}, "project": {"owner": {"id": 782}, "assignee": {"id": 860}, "organization": {"id": 980}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 406}, "assignee": {"id": 526}, "organization": {"id": 149}, "project": {"owner": {"id": 788}, "assignee": {"id": 880}, "organization": {"id": 938}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 440}, "assignee": {"id": 564}, "organization": {"id": 608}, "project": {"owner": {"id": 780}, "assignee": {"id": 893}, "organization": {"id": 962}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 465}, "assignee": {"id": 511}, "organization": {"id": 175}, "project": {"owner": {"id": 769}, "assignee": {"id": 874}, "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": 87, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 438}, "assignee": {"id": 589}, "organization": {"id": 667}, "project": {"owner": {"id": 718}, "assignee": {"id": 802}, "organization": {"id": 916}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 409}, "assignee": {"id": 532}, "organization": {"id": 186}, "project": {"owner": {"id": 730}, "assignee": {"id": 817}, "organization": {"id": 957}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 469}, "assignee": {"id": 508}, "organization": {"id": 603}, "project": {"owner": {"id": 733}, "assignee": {"id": 830}, "organization": {"id": 945}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 452}, "assignee": {"id": 514}, "organization": {"id": 159}, "project": {"owner": {"id": 730}, "assignee": {"id": 844}, "organization": {"id": 948}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 417}, "assignee": {"id": 551}, "organization": {"id": 699}, "project": {"owner": {"id": 772}, "assignee": {"id": 863}, "organization": {"id": 997}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 412}, "assignee": {"id": 594}, "organization": {"id": 119}, "project": {"owner": {"id": 725}, "assignee": {"id": 864}, "organization": {"id": 901}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 462}, "assignee": {"id": 594}, "organization": {"id": 650}, "project": {"owner": {"id": 753}, "assignee": {"id": 823}, "organization": {"id": 956}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 465}, "assignee": {"id": 570}, "organization": {"id": 105}, "project": {"owner": {"id": 771}, "assignee": {"id": 891}, "organization": {"id": 935}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 481}, "assignee": {"id": 506}, "organization": {"id": 647}, "project": {"owner": {"id": 740}, "assignee": {"id": 815}, "organization": {"id": 976}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 494}, "assignee": {"id": 552}, "organization": {"id": 176}, "project": {"owner": {"id": 766}, "assignee": {"id": 801}, "organization": {"id": 909}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 460}, "assignee": {"id": 592}, "organization": {"id": 614}, "project": {"owner": {"id": 784}, "assignee": {"id": 867}, "organization": {"id": 976}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 490}, "assignee": {"id": 596}, "organization": {"id": 178}, "project": {"owner": {"id": 753}, "assignee": {"id": 880}, "organization": {"id": 930}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 471}, "assignee": {"id": 592}, "organization": {"id": 602}, "project": {"owner": {"id": 786}, "assignee": {"id": 813}, "organization": {"id": 900}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 459}, "assignee": {"id": 546}, "organization": {"id": 168}, "project": {"owner": {"id": 769}, "assignee": {"id": 862}, "organization": {"id": 983}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 462}, "assignee": {"id": 587}, "organization": {"id": 689}, "project": {"owner": {"id": 708}, "assignee": {"id": 894}, "organization": {"id": 938}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 413}, "assignee": {"id": 531}, "organization": {"id": 119}, "project": {"owner": {"id": 700}, "assignee": {"id": 833}, "organization": {"id": 982}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 466}, "assignee": {"id": 577}, "organization": {"id": 663}, "project": {"owner": {"id": 745}, "assignee": {"id": 845}, "organization": {"id": 930}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 479}, "assignee": {"id": 581}, "organization": {"id": 132}, "project": {"owner": {"id": 767}, "assignee": {"id": 841}, "organization": {"id": 977}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 454}, "assignee": {"id": 568}, "organization": {"id": 658}, "project": {"owner": {"id": 746}, "assignee": {"id": 854}, "organization": {"id": 907}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 440}, "assignee": {"id": 536}, "organization": {"id": 109}, "project": {"owner": {"id": 791}, "assignee": {"id": 849}, "organization": {"id": 991}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 458}, "assignee": {"id": 534}, "organization": {"id": 678}, "project": {"owner": {"id": 711}, "assignee": {"id": 806}, "organization": {"id": 974}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 445}, "assignee": {"id": 595}, "organization": {"id": 162}, "project": {"owner": {"id": 796}, "assignee": {"id": 862}, "organization": {"id": 951}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 464}, "assignee": {"id": 598}, "organization": {"id": 654}, "project": {"owner": {"id": 767}, "assignee": {"id": 803}, "organization": {"id": 926}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 479}, "assignee": {"id": 550}, "organization": {"id": 125}, "project": {"owner": {"id": 755}, "assignee": {"id": 837}, "organization": {"id": 979}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 438}, "assignee": {"id": 570}, "organization": {"id": 602}, "project": {"owner": {"id": 709}, "assignee": {"id": 818}, "organization": {"id": 904}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 437}, "assignee": {"id": 561}, "organization": {"id": 136}, "project": {"owner": {"id": 728}, "assignee": {"id": 802}, "organization": {"id": 988}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 402}, "assignee": {"id": 539}, "organization": {"id": 612}, "project": {"owner": {"id": 737}, "assignee": {"id": 831}, "organization": {"id": 930}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 490}, "assignee": {"id": 524}, "organization": {"id": 157}, "project": {"owner": {"id": 785}, "assignee": {"id": 865}, "organization": {"id": 945}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 467}, "assignee": {"id": 512}, "organization": {"id": 666}, "project": {"owner": {"id": 704}, "assignee": {"id": 883}, "organization": {"id": 903}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 424}, "assignee": {"id": 545}, "organization": {"id": 135}, "project": {"owner": {"id": 735}, "assignee": {"id": 872}, "organization": {"id": 919}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 472}, "assignee": {"id": 577}, "organization": {"id": 660}, "project": {"owner": {"id": 754}, "assignee": {"id": 884}, "organization": {"id": 965}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 483}, "assignee": {"id": 562}, "organization": {"id": 101}, "project": {"owner": {"id": 736}, "assignee": {"id": 827}, "organization": {"id": 978}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 473}, "assignee": {"id": 522}, "organization": {"id": 637}, "project": {"owner": {"id": 717}, "assignee": {"id": 809}, "organization": {"id": 959}}}} +} + +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": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 422}, "assignee": {"id": 588}, "organization": {"id": 636}, "project": {"owner": {"id": 61}, "assignee": {"id": 800}, "organization": {"id": 913}}}} +} + +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": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 449}, "assignee": {"id": 572}, "organization": {"id": 695}, "project": {"owner": {"id": 66}, "assignee": {"id": 839}, "organization": {"id": 984}}}} +} + +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": 97, "privilege": "user"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 420}, "assignee": {"id": 589}, "organization": {"id": 675}, "project": {"owner": {"id": 97}, "assignee": {"id": 823}, "organization": {"id": 980}}}} +} + +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": 72, "privilege": "worker"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 499}, "assignee": {"id": 549}, "organization": {"id": 612}, "project": {"owner": {"id": 72}, "assignee": {"id": 884}, "organization": {"id": 921}}}} +} + +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": 71, "privilege": "none"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 448}, "assignee": {"id": 510}, "organization": {"id": 621}, "project": {"owner": {"id": 71}, "assignee": {"id": 869}, "organization": {"id": 943}}}} +} + +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": 88, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 485}, "assignee": {"id": 558}, "organization": {"id": 686}, "project": {"owner": {"id": 797}, "assignee": {"id": 88}, "organization": {"id": 900}}}} +} + +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": 84, "privilege": "business"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 485}, "assignee": {"id": 504}, "organization": {"id": 647}, "project": {"owner": {"id": 771}, "assignee": {"id": 84}, "organization": {"id": 960}}}} +} + +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": 27, "privilege": "user"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 485}, "assignee": {"id": 506}, "organization": {"id": 609}, "project": {"owner": {"id": 769}, "assignee": {"id": 27}, "organization": {"id": 911}}}} +} + +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": 13, "privilege": "worker"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 472}, "assignee": {"id": 558}, "organization": {"id": 665}, "project": {"owner": {"id": 744}, "assignee": {"id": 13}, "organization": {"id": 937}}}} +} + +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": 72, "privilege": "none"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 416}, "assignee": {"id": 567}, "organization": {"id": 627}, "project": {"owner": {"id": 769}, "assignee": {"id": 72}, "organization": {"id": 919}}}} +} + +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": 16, "privilege": "admin"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 16}, "assignee": {"id": 569}, "organization": {"id": 685}, "project": {"owner": {"id": 745}, "assignee": {"id": 868}, "organization": {"id": 969}}}} +} + +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": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 74}, "assignee": {"id": 578}, "organization": {"id": 688}, "project": {"owner": {"id": 735}, "assignee": {"id": 829}, "organization": {"id": 900}}}} +} + +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": 6, "privilege": "user"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 6}, "assignee": {"id": 507}, "organization": {"id": 647}, "project": {"owner": {"id": 782}, "assignee": {"id": 806}, "organization": {"id": 974}}}} +} + +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": 90, "privilege": "worker"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 90}, "assignee": {"id": 524}, "organization": {"id": 656}, "project": {"owner": {"id": 760}, "assignee": {"id": 801}, "organization": {"id": 987}}}} +} + +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": 40, "privilege": "none"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 40}, "assignee": {"id": 599}, "organization": {"id": 643}, "project": {"owner": {"id": 741}, "assignee": {"id": 870}, "organization": {"id": 900}}}} +} + +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": 60, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 404}, "assignee": {"id": 60}, "organization": {"id": 663}, "project": {"owner": {"id": 729}, "assignee": {"id": 873}, "organization": {"id": 952}}}} +} + +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": 38, "privilege": "business"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 420}, "assignee": {"id": 38}, "organization": {"id": 693}, "project": {"owner": {"id": 782}, "assignee": {"id": 892}, "organization": {"id": 962}}}} +} + +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": 77, "privilege": "user"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 416}, "assignee": {"id": 77}, "organization": {"id": 646}, "project": {"owner": {"id": 746}, "assignee": {"id": 855}, "organization": {"id": 938}}}} +} + +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": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 474}, "assignee": {"id": 42}, "organization": {"id": 688}, "project": {"owner": {"id": 701}, "assignee": {"id": 878}, "organization": {"id": 965}}}} +} + +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": 24, "privilege": "none"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 482}, "assignee": {"id": 24}, "organization": {"id": 613}, "project": {"owner": {"id": 743}, "assignee": {"id": 817}, "organization": {"id": 970}}}} +} + +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": 16, "privilege": "admin"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 402}, "assignee": {"id": 595}, "organization": {"id": 698}, "project": {"owner": {"id": 754}, "assignee": {"id": 861}, "organization": {"id": 983}}}} +} + +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": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 479}, "assignee": {"id": 529}, "organization": {"id": 628}, "project": {"owner": {"id": 795}, "assignee": {"id": 842}, "organization": {"id": 999}}}} +} + +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": 26, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 467}, "assignee": {"id": 571}, "organization": {"id": 643}, "project": {"owner": {"id": 722}, "assignee": {"id": 837}, "organization": {"id": 966}}}} +} + +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": 82, "privilege": "worker"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 482}, "assignee": {"id": 559}, "organization": {"id": 613}, "project": {"owner": {"id": 750}, "assignee": {"id": 882}, "organization": {"id": 908}}}} +} + +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": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 466}, "assignee": {"id": 506}, "organization": {"id": 636}, "project": {"owner": {"id": 761}, "assignee": {"id": 888}, "organization": {"id": 977}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 496}, "assignee": {"id": 515}, "organization": {"id": 110}, "project": {"owner": {"id": 17}, "assignee": {"id": 849}, "organization": {"id": 966}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 487}, "assignee": {"id": 593}, "organization": {"id": 691}, "project": {"owner": {"id": 25}, "assignee": {"id": 895}, "organization": {"id": 971}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 483}, "assignee": {"id": 514}, "organization": {"id": 172}, "project": {"owner": {"id": 47}, "assignee": {"id": 870}, "organization": {"id": 915}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 483}, "assignee": {"id": 503}, "organization": {"id": 600}, "project": {"owner": {"id": 4}, "assignee": {"id": 816}, "organization": {"id": 972}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 449}, "assignee": {"id": 593}, "organization": {"id": 159}, "project": {"owner": {"id": 97}, "assignee": {"id": 823}, "organization": {"id": 957}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 479}, "assignee": {"id": 526}, "organization": {"id": 649}, "project": {"owner": {"id": 80}, "assignee": {"id": 839}, "organization": {"id": 952}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 408}, "assignee": {"id": 546}, "organization": {"id": 155}, "project": {"owner": {"id": 98}, "assignee": {"id": 809}, "organization": {"id": 906}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 449}, "assignee": {"id": 536}, "organization": {"id": 693}, "project": {"owner": {"id": 18}, "assignee": {"id": 846}, "organization": {"id": 949}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 400}, "assignee": {"id": 591}, "organization": {"id": 178}, "project": {"owner": {"id": 25}, "assignee": {"id": 869}, "organization": {"id": 969}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 402}, "assignee": {"id": 558}, "organization": {"id": 646}, "project": {"owner": {"id": 58}, "assignee": {"id": 850}, "organization": {"id": 943}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 405}, "assignee": {"id": 577}, "organization": {"id": 135}, "project": {"owner": {"id": 66}, "assignee": {"id": 882}, "organization": {"id": 935}}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 406}, "assignee": {"id": 548}, "organization": {"id": 699}, "project": {"owner": {"id": 93}, "assignee": {"id": 840}, "organization": {"id": 989}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 494}, "assignee": {"id": 584}, "organization": {"id": 182}, "project": {"owner": {"id": 29}, "assignee": {"id": 888}, "organization": {"id": 930}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 498}, "assignee": {"id": 582}, "organization": {"id": 630}, "project": {"owner": {"id": 32}, "assignee": {"id": 857}, "organization": {"id": 920}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 499}, "assignee": {"id": 574}, "organization": {"id": 158}, "project": {"owner": {"id": 38}, "assignee": {"id": 879}, "organization": {"id": 925}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 438}, "assignee": {"id": 583}, "organization": {"id": 644}, "project": {"owner": {"id": 50}, "assignee": {"id": 829}, "organization": {"id": 949}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 431}, "assignee": {"id": 560}, "organization": {"id": 136}, "project": {"owner": {"id": 78}, "assignee": {"id": 868}, "organization": {"id": 953}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 447}, "assignee": {"id": 567}, "organization": {"id": 682}, "project": {"owner": {"id": 60}, "assignee": {"id": 810}, "organization": {"id": 963}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 433}, "assignee": {"id": 595}, "organization": {"id": 128}, "project": {"owner": {"id": 41}, "assignee": {"id": 835}, "organization": {"id": 900}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 436}, "assignee": {"id": 506}, "organization": {"id": 605}, "project": {"owner": {"id": 21}, "assignee": {"id": 816}, "organization": {"id": 964}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 471}, "assignee": {"id": 577}, "organization": {"id": 130}, "project": {"owner": {"id": 65}, "assignee": {"id": 811}, "organization": {"id": 980}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 450}, "assignee": {"id": 561}, "organization": {"id": 622}, "project": {"owner": {"id": 32}, "assignee": {"id": 805}, "organization": {"id": 960}}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 421}, "assignee": {"id": 516}, "organization": {"id": 152}, "project": {"owner": {"id": 77}, "assignee": {"id": 832}, "organization": {"id": 987}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 441}, "assignee": {"id": 511}, "organization": {"id": 642}, "project": {"owner": {"id": 3}, "assignee": {"id": 848}, "organization": {"id": 900}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 499}, "assignee": {"id": 514}, "organization": {"id": 104}, "project": {"owner": {"id": 54}, "assignee": {"id": 854}, "organization": {"id": 920}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 473}, "assignee": {"id": 574}, "organization": {"id": 686}, "project": {"owner": {"id": 5}, "assignee": {"id": 890}, "organization": {"id": 911}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 492}, "assignee": {"id": 568}, "organization": {"id": 141}, "project": {"owner": {"id": 37}, "assignee": {"id": 871}, "organization": {"id": 984}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 415}, "assignee": {"id": 590}, "organization": {"id": 663}, "project": {"owner": {"id": 37}, "assignee": {"id": 834}, "organization": {"id": 940}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 478}, "assignee": {"id": 559}, "organization": {"id": 107}, "project": {"owner": {"id": 27}, "assignee": {"id": 871}, "organization": {"id": 991}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 479}, "assignee": {"id": 561}, "organization": {"id": 605}, "project": {"owner": {"id": 85}, "assignee": {"id": 884}, "organization": {"id": 917}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 429}, "assignee": {"id": 582}, "organization": {"id": 135}, "project": {"owner": {"id": 3}, "assignee": {"id": 870}, "organization": {"id": 973}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 423}, "assignee": {"id": 508}, "organization": {"id": 681}, "project": {"owner": {"id": 40}, "assignee": {"id": 809}, "organization": {"id": 918}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 416}, "assignee": {"id": 554}, "organization": {"id": 192}, "project": {"owner": {"id": 54}, "assignee": {"id": 809}, "organization": {"id": 907}}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 408}, "assignee": {"id": 517}, "organization": {"id": 680}, "project": {"owner": {"id": 8}, "assignee": {"id": 848}, "organization": {"id": 964}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 429}, "assignee": {"id": 507}, "organization": {"id": 145}, "project": {"owner": {"id": 42}, "assignee": {"id": 890}, "organization": {"id": 970}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 487}, "assignee": {"id": 505}, "organization": {"id": 636}, "project": {"owner": {"id": 28}, "assignee": {"id": 878}, "organization": {"id": 907}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 460}, "assignee": {"id": 587}, "organization": {"id": 171}, "project": {"owner": {"id": 48}, "assignee": {"id": 878}, "organization": {"id": 989}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 451}, "assignee": {"id": 576}, "organization": {"id": 661}, "project": {"owner": {"id": 54}, "assignee": {"id": 824}, "organization": {"id": 987}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 434}, "assignee": {"id": 533}, "organization": {"id": 193}, "project": {"owner": {"id": 70}, "assignee": {"id": 818}, "organization": {"id": 968}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 400}, "assignee": {"id": 545}, "organization": {"id": 632}, "project": {"owner": {"id": 92}, "assignee": {"id": 885}, "organization": {"id": 926}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 436}, "assignee": {"id": 571}, "organization": {"id": 123}, "project": {"owner": {"id": 18}, "assignee": {"id": 885}, "organization": {"id": 935}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 463}, "assignee": {"id": 568}, "organization": {"id": 607}, "project": {"owner": {"id": 78}, "assignee": {"id": 805}, "organization": {"id": 926}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 440}, "assignee": {"id": 522}, "organization": {"id": 108}, "project": {"owner": {"id": 16}, "assignee": {"id": 800}, "organization": {"id": 914}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 409}, "assignee": {"id": 538}, "organization": {"id": 662}, "project": {"owner": {"id": 57}, "assignee": {"id": 860}, "organization": {"id": 934}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 422}, "assignee": {"id": 527}, "organization": {"id": 163}, "project": {"owner": {"id": 22}, "assignee": {"id": 840}, "organization": {"id": 960}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 475}, "assignee": {"id": 589}, "organization": {"id": 645}, "project": {"owner": {"id": 59}, "assignee": {"id": 831}, "organization": {"id": 961}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 435}, "assignee": {"id": 521}, "organization": {"id": 103}, "project": {"owner": {"id": 32}, "assignee": {"id": 889}, "organization": {"id": 952}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 407}, "assignee": {"id": 598}, "organization": {"id": 667}, "project": {"owner": {"id": 37}, "assignee": {"id": 818}, "organization": {"id": 978}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 409}, "assignee": {"id": 513}, "organization": {"id": 169}, "project": {"owner": {"id": 12}, "assignee": {"id": 831}, "organization": {"id": 953}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 442}, "assignee": {"id": 583}, "organization": {"id": 699}, "project": {"owner": {"id": 12}, "assignee": {"id": 879}, "organization": {"id": 915}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 482}, "assignee": {"id": 537}, "organization": {"id": 185}, "project": {"owner": {"id": 785}, "assignee": {"id": 40}, "organization": {"id": 922}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 432}, "assignee": {"id": 501}, "organization": {"id": 615}, "project": {"owner": {"id": 732}, "assignee": {"id": 96}, "organization": {"id": 902}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 471}, "assignee": {"id": 592}, "organization": {"id": 175}, "project": {"owner": {"id": 710}, "assignee": {"id": 5}, "organization": {"id": 938}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 444}, "assignee": {"id": 595}, "organization": {"id": 691}, "project": {"owner": {"id": 774}, "assignee": {"id": 3}, "organization": {"id": 926}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 444}, "assignee": {"id": 511}, "organization": {"id": 138}, "project": {"owner": {"id": 784}, "assignee": {"id": 47}, "organization": {"id": 953}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 445}, "assignee": {"id": 562}, "organization": {"id": 685}, "project": {"owner": {"id": 785}, "assignee": {"id": 34}, "organization": {"id": 948}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 441}, "assignee": {"id": 567}, "organization": {"id": 129}, "project": {"owner": {"id": 795}, "assignee": {"id": 70}, "organization": {"id": 925}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 430}, "assignee": {"id": 517}, "organization": {"id": 667}, "project": {"owner": {"id": 732}, "assignee": {"id": 78}, "organization": {"id": 922}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 440}, "assignee": {"id": 584}, "organization": {"id": 188}, "project": {"owner": {"id": 735}, "assignee": {"id": 95}, "organization": {"id": 911}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 423}, "assignee": {"id": 562}, "organization": {"id": 649}, "project": {"owner": {"id": 700}, "assignee": {"id": 52}, "organization": {"id": 962}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 417}, "assignee": {"id": 579}, "organization": {"id": 198}, "project": {"owner": {"id": 725}, "assignee": {"id": 51}, "organization": {"id": 942}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 434}, "assignee": {"id": 536}, "organization": {"id": 608}, "project": {"owner": {"id": 707}, "assignee": {"id": 40}, "organization": {"id": 924}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 402}, "assignee": {"id": 573}, "organization": {"id": 150}, "project": {"owner": {"id": 776}, "assignee": {"id": 50}, "organization": {"id": 982}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 495}, "assignee": {"id": 512}, "organization": {"id": 619}, "project": {"owner": {"id": 702}, "assignee": {"id": 82}, "organization": {"id": 985}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 485}, "assignee": {"id": 526}, "organization": {"id": 126}, "project": {"owner": {"id": 771}, "assignee": {"id": 60}, "organization": {"id": 938}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 477}, "assignee": {"id": 569}, "organization": {"id": 686}, "project": {"owner": {"id": 752}, "assignee": {"id": 86}, "organization": {"id": 933}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 465}, "assignee": {"id": 573}, "organization": {"id": 115}, "project": {"owner": {"id": 780}, "assignee": {"id": 33}, "organization": {"id": 941}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 401}, "assignee": {"id": 576}, "organization": {"id": 650}, "project": {"owner": {"id": 729}, "assignee": {"id": 86}, "organization": {"id": 946}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 478}, "assignee": {"id": 520}, "organization": {"id": 120}, "project": {"owner": {"id": 791}, "assignee": {"id": 8}, "organization": {"id": 951}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 437}, "assignee": {"id": 558}, "organization": {"id": 643}, "project": {"owner": {"id": 757}, "assignee": {"id": 81}, "organization": {"id": 996}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 498}, "assignee": {"id": 547}, "organization": {"id": 151}, "project": {"owner": {"id": 752}, "assignee": {"id": 36}, "organization": {"id": 971}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 438}, "assignee": {"id": 566}, "organization": {"id": 648}, "project": {"owner": {"id": 791}, "assignee": {"id": 18}, "organization": {"id": 976}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 490}, "assignee": {"id": 510}, "organization": {"id": 143}, "project": {"owner": {"id": 710}, "assignee": {"id": 8}, "organization": {"id": 991}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 443}, "assignee": {"id": 576}, "organization": {"id": 687}, "project": {"owner": {"id": 723}, "assignee": {"id": 48}, "organization": {"id": 976}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 450}, "assignee": {"id": 571}, "organization": {"id": 127}, "project": {"owner": {"id": 732}, "assignee": {"id": 33}, "organization": {"id": 911}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 426}, "assignee": {"id": 537}, "organization": {"id": 650}, "project": {"owner": {"id": 706}, "assignee": {"id": 91}, "organization": {"id": 984}}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 452}, "assignee": {"id": 555}, "organization": {"id": 177}, "project": {"owner": {"id": 783}, "assignee": {"id": 98}, "organization": {"id": 902}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 423}, "assignee": {"id": 518}, "organization": {"id": 658}, "project": {"owner": {"id": 703}, "assignee": {"id": 0}, "organization": {"id": 977}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 464}, "assignee": {"id": 527}, "organization": {"id": 126}, "project": {"owner": {"id": 789}, "assignee": {"id": 5}, "organization": {"id": 981}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 458}, "assignee": {"id": 506}, "organization": {"id": 664}, "project": {"owner": {"id": 710}, "assignee": {"id": 7}, "organization": {"id": 902}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 433}, "assignee": {"id": 514}, "organization": {"id": 158}, "project": {"owner": {"id": 779}, "assignee": {"id": 7}, "organization": {"id": 908}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 480}, "assignee": {"id": 522}, "organization": {"id": 684}, "project": {"owner": {"id": 779}, "assignee": {"id": 99}, "organization": {"id": 971}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 484}, "assignee": {"id": 554}, "organization": {"id": 187}, "project": {"owner": {"id": 703}, "assignee": {"id": 74}, "organization": {"id": 969}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 463}, "assignee": {"id": 526}, "organization": {"id": 686}, "project": {"owner": {"id": 716}, "assignee": {"id": 19}, "organization": {"id": 907}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 410}, "assignee": {"id": 595}, "organization": {"id": 195}, "project": {"owner": {"id": 747}, "assignee": {"id": 99}, "organization": {"id": 904}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 427}, "assignee": {"id": 565}, "organization": {"id": 612}, "project": {"owner": {"id": 785}, "assignee": {"id": 74}, "organization": {"id": 996}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 481}, "assignee": {"id": 526}, "organization": {"id": 112}, "project": {"owner": {"id": 720}, "assignee": {"id": 18}, "organization": {"id": 990}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 477}, "assignee": {"id": 574}, "organization": {"id": 624}, "project": {"owner": {"id": 721}, "assignee": {"id": 82}, "organization": {"id": 918}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 423}, "assignee": {"id": 533}, "organization": {"id": 183}, "project": {"owner": {"id": 709}, "assignee": {"id": 48}, "organization": {"id": 983}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 454}, "assignee": {"id": 572}, "organization": {"id": 696}, "project": {"owner": {"id": 755}, "assignee": {"id": 88}, "organization": {"id": 905}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 476}, "assignee": {"id": 511}, "organization": {"id": 187}, "project": {"owner": {"id": 737}, "assignee": {"id": 43}, "organization": {"id": 962}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 472}, "assignee": {"id": 594}, "organization": {"id": 640}, "project": {"owner": {"id": 761}, "assignee": {"id": 81}, "organization": {"id": 914}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 480}, "assignee": {"id": 548}, "organization": {"id": 172}, "project": {"owner": {"id": 731}, "assignee": {"id": 79}, "organization": {"id": 978}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 464}, "assignee": {"id": 591}, "organization": {"id": 670}, "project": {"owner": {"id": 785}, "assignee": {"id": 86}, "organization": {"id": 982}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 491}, "assignee": {"id": 580}, "organization": {"id": 147}, "project": {"owner": {"id": 724}, "assignee": {"id": 13}, "organization": {"id": 904}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 474}, "assignee": {"id": 546}, "organization": {"id": 667}, "project": {"owner": {"id": 796}, "assignee": {"id": 27}, "organization": {"id": 971}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 472}, "assignee": {"id": 536}, "organization": {"id": 168}, "project": {"owner": {"id": 706}, "assignee": {"id": 98}, "organization": {"id": 935}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 465}, "assignee": {"id": 507}, "organization": {"id": 656}, "project": {"owner": {"id": 767}, "assignee": {"id": 55}, "organization": {"id": 957}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 423}, "assignee": {"id": 547}, "organization": {"id": 119}, "project": {"owner": {"id": 775}, "assignee": {"id": 85}, "organization": {"id": 999}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 482}, "assignee": {"id": 509}, "organization": {"id": 628}, "project": {"owner": {"id": 712}, "assignee": {"id": 95}, "organization": {"id": 970}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 40}, "assignee": {"id": 577}, "organization": {"id": 134}, "project": {"owner": {"id": 755}, "assignee": {"id": 880}, "organization": {"id": 924}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 63}, "assignee": {"id": 543}, "organization": {"id": 685}, "project": {"owner": {"id": 749}, "assignee": {"id": 873}, "organization": {"id": 983}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 79}, "assignee": {"id": 524}, "organization": {"id": 120}, "project": {"owner": {"id": 730}, "assignee": {"id": 837}, "organization": {"id": 935}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 91}, "assignee": {"id": 525}, "organization": {"id": 690}, "project": {"owner": {"id": 770}, "assignee": {"id": 812}, "organization": {"id": 923}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 91}, "assignee": {"id": 506}, "organization": {"id": 108}, "project": {"owner": {"id": 793}, "assignee": {"id": 818}, "organization": {"id": 982}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 70}, "assignee": {"id": 508}, "organization": {"id": 694}, "project": {"owner": {"id": 796}, "assignee": {"id": 875}, "organization": {"id": 974}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 26}, "assignee": {"id": 514}, "organization": {"id": 106}, "project": {"owner": {"id": 799}, "assignee": {"id": 819}, "organization": {"id": 974}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 66}, "assignee": {"id": 565}, "organization": {"id": 662}, "project": {"owner": {"id": 712}, "assignee": {"id": 868}, "organization": {"id": 925}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 47}, "assignee": {"id": 533}, "organization": {"id": 174}, "project": {"owner": {"id": 740}, "assignee": {"id": 870}, "organization": {"id": 940}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 4}, "assignee": {"id": 584}, "organization": {"id": 648}, "project": {"owner": {"id": 778}, "assignee": {"id": 887}, "organization": {"id": 954}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 66}, "assignee": {"id": 545}, "organization": {"id": 119}, "project": {"owner": {"id": 750}, "assignee": {"id": 806}, "organization": {"id": 978}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 58}, "assignee": {"id": 504}, "organization": {"id": 614}, "project": {"owner": {"id": 757}, "assignee": {"id": 827}, "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": 13, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 13}, "assignee": {"id": 593}, "organization": {"id": 131}, "project": {"owner": {"id": 747}, "assignee": {"id": 879}, "organization": {"id": 913}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 71}, "assignee": {"id": 576}, "organization": {"id": 643}, "project": {"owner": {"id": 739}, "assignee": {"id": 803}, "organization": {"id": 909}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 31}, "assignee": {"id": 585}, "organization": {"id": 114}, "project": {"owner": {"id": 744}, "assignee": {"id": 848}, "organization": {"id": 943}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 85}, "assignee": {"id": 533}, "organization": {"id": 609}, "project": {"owner": {"id": 798}, "assignee": {"id": 822}, "organization": {"id": 968}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 68}, "assignee": {"id": 579}, "organization": {"id": 125}, "project": {"owner": {"id": 797}, "assignee": {"id": 811}, "organization": {"id": 952}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 58}, "assignee": {"id": 581}, "organization": {"id": 678}, "project": {"owner": {"id": 757}, "assignee": {"id": 859}, "organization": {"id": 914}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 81}, "assignee": {"id": 577}, "organization": {"id": 162}, "project": {"owner": {"id": 702}, "assignee": {"id": 853}, "organization": {"id": 976}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 5}, "assignee": {"id": 507}, "organization": {"id": 637}, "project": {"owner": {"id": 786}, "assignee": {"id": 815}, "organization": {"id": 953}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 15}, "assignee": {"id": 513}, "organization": {"id": 133}, "project": {"owner": {"id": 775}, "assignee": {"id": 887}, "organization": {"id": 917}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 43}, "assignee": {"id": 597}, "organization": {"id": 653}, "project": {"owner": {"id": 792}, "assignee": {"id": 863}, "organization": {"id": 914}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 96}, "assignee": {"id": 598}, "organization": {"id": 148}, "project": {"owner": {"id": 764}, "assignee": {"id": 876}, "organization": {"id": 987}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 62}, "assignee": {"id": 532}, "organization": {"id": 646}, "project": {"owner": {"id": 751}, "assignee": {"id": 886}, "organization": {"id": 948}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 63}, "assignee": {"id": 576}, "organization": {"id": 148}, "project": {"owner": {"id": 767}, "assignee": {"id": 827}, "organization": {"id": 923}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 67}, "assignee": {"id": 518}, "organization": {"id": 604}, "project": {"owner": {"id": 746}, "assignee": {"id": 847}, "organization": {"id": 910}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 41}, "assignee": {"id": 561}, "organization": {"id": 130}, "project": {"owner": {"id": 771}, "assignee": {"id": 876}, "organization": {"id": 910}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 66}, "assignee": {"id": 521}, "organization": {"id": 623}, "project": {"owner": {"id": 751}, "assignee": {"id": 846}, "organization": {"id": 985}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 52}, "assignee": {"id": 585}, "organization": {"id": 121}, "project": {"owner": {"id": 758}, "assignee": {"id": 811}, "organization": {"id": 961}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 89}, "assignee": {"id": 547}, "organization": {"id": 647}, "project": {"owner": {"id": 796}, "assignee": {"id": 860}, "organization": {"id": 959}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 79}, "assignee": {"id": 544}, "organization": {"id": 187}, "project": {"owner": {"id": 782}, "assignee": {"id": 852}, "organization": {"id": 994}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 16}, "assignee": {"id": 512}, "organization": {"id": 685}, "project": {"owner": {"id": 788}, "assignee": {"id": 808}, "organization": {"id": 927}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 98}, "assignee": {"id": 504}, "organization": {"id": 124}, "project": {"owner": {"id": 732}, "assignee": {"id": 832}, "organization": {"id": 992}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 4}, "assignee": {"id": 568}, "organization": {"id": 635}, "project": {"owner": {"id": 719}, "assignee": {"id": 850}, "organization": {"id": 908}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 66}, "assignee": {"id": 590}, "organization": {"id": 141}, "project": {"owner": {"id": 738}, "assignee": {"id": 893}, "organization": {"id": 977}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 35}, "assignee": {"id": 519}, "organization": {"id": 658}, "project": {"owner": {"id": 733}, "assignee": {"id": 881}, "organization": {"id": 939}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 71}, "assignee": {"id": 529}, "organization": {"id": 118}, "project": {"owner": {"id": 762}, "assignee": {"id": 882}, "organization": {"id": 979}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 73}, "assignee": {"id": 513}, "organization": {"id": 603}, "project": {"owner": {"id": 719}, "assignee": {"id": 833}, "organization": {"id": 946}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 41}, "assignee": {"id": 538}, "organization": {"id": 118}, "project": {"owner": {"id": 787}, "assignee": {"id": 841}, "organization": {"id": 942}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 73}, "assignee": {"id": 529}, "organization": {"id": 640}, "project": {"owner": {"id": 772}, "assignee": {"id": 897}, "organization": {"id": 958}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 44}, "assignee": {"id": 542}, "organization": {"id": 132}, "project": {"owner": {"id": 740}, "assignee": {"id": 824}, "organization": {"id": 939}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 34}, "assignee": {"id": 550}, "organization": {"id": 632}, "project": {"owner": {"id": 760}, "assignee": {"id": 835}, "organization": {"id": 950}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 1}, "assignee": {"id": 587}, "organization": {"id": 115}, "project": {"owner": {"id": 719}, "assignee": {"id": 896}, "organization": {"id": 902}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 73}, "assignee": {"id": 573}, "organization": {"id": 670}, "project": {"owner": {"id": 743}, "assignee": {"id": 897}, "organization": {"id": 915}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 55}, "assignee": {"id": 501}, "organization": {"id": 192}, "project": {"owner": {"id": 708}, "assignee": {"id": 894}, "organization": {"id": 998}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 80}, "assignee": {"id": 591}, "organization": {"id": 655}, "project": {"owner": {"id": 738}, "assignee": {"id": 893}, "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": 98, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 98}, "assignee": {"id": 556}, "organization": {"id": 175}, "project": {"owner": {"id": 794}, "assignee": {"id": 895}, "organization": {"id": 914}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 3}, "assignee": {"id": 576}, "organization": {"id": 640}, "project": {"owner": {"id": 799}, "assignee": {"id": 841}, "organization": {"id": 952}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 75}, "assignee": {"id": 561}, "organization": {"id": 123}, "project": {"owner": {"id": 740}, "assignee": {"id": 846}, "organization": {"id": 906}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 28}, "assignee": {"id": 558}, "organization": {"id": 698}, "project": {"owner": {"id": 793}, "assignee": {"id": 816}, "organization": {"id": 975}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 416}, "assignee": {"id": 95}, "organization": {"id": 101}, "project": {"owner": {"id": 786}, "assignee": {"id": 829}, "organization": {"id": 929}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 495}, "assignee": {"id": 20}, "organization": {"id": 635}, "project": {"owner": {"id": 722}, "assignee": {"id": 881}, "organization": {"id": 960}}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 467}, "assignee": {"id": 83}, "organization": {"id": 117}, "project": {"owner": {"id": 774}, "assignee": {"id": 867}, "organization": {"id": 933}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 491}, "assignee": {"id": 38}, "organization": {"id": 648}, "project": {"owner": {"id": 787}, "assignee": {"id": 833}, "organization": {"id": 988}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 496}, "assignee": {"id": 80}, "organization": {"id": 145}, "project": {"owner": {"id": 781}, "assignee": {"id": 800}, "organization": {"id": 979}}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 496}, "assignee": {"id": 83}, "organization": {"id": 611}, "project": {"owner": {"id": 722}, "assignee": {"id": 855}, "organization": {"id": 963}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 463}, "assignee": {"id": 58}, "organization": {"id": 194}, "project": {"owner": {"id": 759}, "assignee": {"id": 875}, "organization": {"id": 929}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 454}, "assignee": {"id": 52}, "organization": {"id": 684}, "project": {"owner": {"id": 776}, "assignee": {"id": 862}, "organization": {"id": 915}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 432}, "assignee": {"id": 91}, "organization": {"id": 125}, "project": {"owner": {"id": 739}, "assignee": {"id": 851}, "organization": {"id": 961}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 417}, "assignee": {"id": 1}, "organization": {"id": 612}, "project": {"owner": {"id": 717}, "assignee": {"id": 803}, "organization": {"id": 985}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 497}, "assignee": {"id": 14}, "organization": {"id": 169}, "project": {"owner": {"id": 739}, "assignee": {"id": 843}, "organization": {"id": 906}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 414}, "assignee": {"id": 66}, "organization": {"id": 658}, "project": {"owner": {"id": 709}, "assignee": {"id": 863}, "organization": {"id": 998}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 423}, "assignee": {"id": 24}, "organization": {"id": 120}, "project": {"owner": {"id": 717}, "assignee": {"id": 884}, "organization": {"id": 957}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 479}, "assignee": {"id": 55}, "organization": {"id": 690}, "project": {"owner": {"id": 751}, "assignee": {"id": 814}, "organization": {"id": 928}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 418}, "assignee": {"id": 28}, "organization": {"id": 157}, "project": {"owner": {"id": 762}, "assignee": {"id": 859}, "organization": {"id": 902}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 410}, "assignee": {"id": 31}, "organization": {"id": 655}, "project": {"owner": {"id": 782}, "assignee": {"id": 840}, "organization": {"id": 922}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 440}, "assignee": {"id": 44}, "organization": {"id": 185}, "project": {"owner": {"id": 740}, "assignee": {"id": 886}, "organization": {"id": 990}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 430}, "assignee": {"id": 65}, "organization": {"id": 625}, "project": {"owner": {"id": 738}, "assignee": {"id": 847}, "organization": {"id": 968}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 455}, "assignee": {"id": 34}, "organization": {"id": 149}, "project": {"owner": {"id": 718}, "assignee": {"id": 885}, "organization": {"id": 923}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 451}, "assignee": {"id": 71}, "organization": {"id": 641}, "project": {"owner": {"id": 776}, "assignee": {"id": 893}, "organization": {"id": 982}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 481}, "assignee": {"id": 2}, "organization": {"id": 134}, "project": {"owner": {"id": 758}, "assignee": {"id": 898}, "organization": {"id": 972}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 431}, "assignee": {"id": 61}, "organization": {"id": 614}, "project": {"owner": {"id": 753}, "assignee": {"id": 805}, "organization": {"id": 909}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 469}, "assignee": {"id": 56}, "organization": {"id": 115}, "project": {"owner": {"id": 797}, "assignee": {"id": 871}, "organization": {"id": 948}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 438}, "assignee": {"id": 97}, "organization": {"id": 688}, "project": {"owner": {"id": 725}, "assignee": {"id": 807}, "organization": {"id": 986}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 446}, "assignee": {"id": 14}, "organization": {"id": 164}, "project": {"owner": {"id": 796}, "assignee": {"id": 890}, "organization": {"id": 926}}}} +} + +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": 81, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 446}, "assignee": {"id": 81}, "organization": {"id": 655}, "project": {"owner": {"id": 722}, "assignee": {"id": 816}, "organization": {"id": 970}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 468}, "assignee": {"id": 85}, "organization": {"id": 175}, "project": {"owner": {"id": 725}, "assignee": {"id": 822}, "organization": {"id": 917}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 492}, "assignee": {"id": 70}, "organization": {"id": 654}, "project": {"owner": {"id": 721}, "assignee": {"id": 893}, "organization": {"id": 946}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 449}, "assignee": {"id": 78}, "organization": {"id": 177}, "project": {"owner": {"id": 765}, "assignee": {"id": 813}, "organization": {"id": 953}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 428}, "assignee": {"id": 63}, "organization": {"id": 655}, "project": {"owner": {"id": 760}, "assignee": {"id": 822}, "organization": {"id": 929}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 455}, "assignee": {"id": 86}, "organization": {"id": 118}, "project": {"owner": {"id": 778}, "assignee": {"id": 888}, "organization": {"id": 939}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 408}, "assignee": {"id": 6}, "organization": {"id": 693}, "project": {"owner": {"id": 744}, "assignee": {"id": 848}, "organization": {"id": 933}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 405}, "assignee": {"id": 59}, "organization": {"id": 124}, "project": {"owner": {"id": 777}, "assignee": {"id": 862}, "organization": {"id": 902}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 461}, "assignee": {"id": 21}, "organization": {"id": 629}, "project": {"owner": {"id": 754}, "assignee": {"id": 891}, "organization": {"id": 909}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 443}, "assignee": {"id": 88}, "organization": {"id": 176}, "project": {"owner": {"id": 770}, "assignee": {"id": 867}, "organization": {"id": 978}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 416}, "assignee": {"id": 64}, "organization": {"id": 647}, "project": {"owner": {"id": 768}, "assignee": {"id": 857}, "organization": {"id": 949}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 410}, "assignee": {"id": 68}, "organization": {"id": 101}, "project": {"owner": {"id": 756}, "assignee": {"id": 817}, "organization": {"id": 960}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 466}, "assignee": {"id": 65}, "organization": {"id": 623}, "project": {"owner": {"id": 713}, "assignee": {"id": 815}, "organization": {"id": 929}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 486}, "assignee": {"id": 25}, "organization": {"id": 105}, "project": {"owner": {"id": 771}, "assignee": {"id": 879}, "organization": {"id": 926}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 468}, "assignee": {"id": 46}, "organization": {"id": 609}, "project": {"owner": {"id": 751}, "assignee": {"id": 821}, "organization": {"id": 989}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 439}, "assignee": {"id": 27}, "organization": {"id": 189}, "project": {"owner": {"id": 785}, "assignee": {"id": 850}, "organization": {"id": 960}}}} +} + +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": 60, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 435}, "assignee": {"id": 60}, "organization": {"id": 633}, "project": {"owner": {"id": 716}, "assignee": {"id": 845}, "organization": {"id": 939}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 451}, "assignee": {"id": 25}, "organization": {"id": 182}, "project": {"owner": {"id": 741}, "assignee": {"id": 826}, "organization": {"id": 939}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 407}, "assignee": {"id": 71}, "organization": {"id": 688}, "project": {"owner": {"id": 705}, "assignee": {"id": 826}, "organization": {"id": 968}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 496}, "assignee": {"id": 3}, "organization": {"id": 107}, "project": {"owner": {"id": 799}, "assignee": {"id": 821}, "organization": {"id": 938}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 432}, "assignee": {"id": 26}, "organization": {"id": 654}, "project": {"owner": {"id": 724}, "assignee": {"id": 832}, "organization": {"id": 912}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 443}, "assignee": {"id": 6}, "organization": {"id": 151}, "project": {"owner": {"id": 760}, "assignee": {"id": 874}, "organization": {"id": 939}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 435}, "assignee": {"id": 93}, "organization": {"id": 619}, "project": {"owner": {"id": 797}, "assignee": {"id": 894}, "organization": {"id": 949}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 499}, "assignee": {"id": 25}, "organization": {"id": 102}, "project": {"owner": {"id": 796}, "assignee": {"id": 887}, "organization": {"id": 914}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 408}, "assignee": {"id": 2}, "organization": {"id": 613}, "project": {"owner": {"id": 739}, "assignee": {"id": 856}, "organization": {"id": 941}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 481}, "assignee": {"id": 505}, "organization": {"id": 120}, "project": {"owner": {"id": 735}, "assignee": {"id": 804}, "organization": {"id": 913}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 451}, "assignee": {"id": 533}, "organization": {"id": 662}, "project": {"owner": {"id": 795}, "assignee": {"id": 837}, "organization": {"id": 948}}}} +} + +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": 81, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 426}, "assignee": {"id": 555}, "organization": {"id": 162}, "project": {"owner": {"id": 713}, "assignee": {"id": 871}, "organization": {"id": 972}}}} +} + +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": 123, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 488}, "assignee": {"id": 594}, "organization": {"id": 669}, "project": {"owner": {"id": 737}, "assignee": {"id": 823}, "organization": {"id": 908}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 465}, "assignee": {"id": 563}, "organization": {"id": 196}, "project": {"owner": {"id": 797}, "assignee": {"id": 818}, "organization": {"id": 977}}}} +} + +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": 126, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 443}, "assignee": {"id": 526}, "organization": {"id": 692}, "project": {"owner": {"id": 724}, "assignee": {"id": 823}, "organization": {"id": 949}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 433}, "assignee": {"id": 530}, "organization": {"id": 112}, "project": {"owner": {"id": 784}, "assignee": {"id": 823}, "organization": {"id": 973}}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 404}, "assignee": {"id": 593}, "organization": {"id": 652}, "project": {"owner": {"id": 751}, "assignee": {"id": 846}, "organization": {"id": 973}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 472}, "assignee": {"id": 556}, "organization": {"id": 119}, "project": {"owner": {"id": 739}, "assignee": {"id": 842}, "organization": {"id": 970}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 451}, "assignee": {"id": 565}, "organization": {"id": 667}, "project": {"owner": {"id": 762}, "assignee": {"id": 864}, "organization": {"id": 993}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 478}, "assignee": {"id": 557}, "organization": {"id": 176}, "project": {"owner": {"id": 783}, "assignee": {"id": 884}, "organization": {"id": 904}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 416}, "assignee": {"id": 508}, "organization": {"id": 658}, "project": {"owner": {"id": 720}, "assignee": {"id": 863}, "organization": {"id": 904}}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 432}, "assignee": {"id": 510}, "organization": {"id": 146}, "project": {"owner": {"id": 761}, "assignee": {"id": 878}, "organization": {"id": 905}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 488}, "assignee": {"id": 596}, "organization": {"id": 645}, "project": {"owner": {"id": 763}, "assignee": {"id": 844}, "organization": {"id": 909}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 482}, "assignee": {"id": 558}, "organization": {"id": 103}, "project": {"owner": {"id": 706}, "assignee": {"id": 806}, "organization": {"id": 908}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 437}, "assignee": {"id": 527}, "organization": {"id": 636}, "project": {"owner": {"id": 750}, "assignee": {"id": 807}, "organization": {"id": 954}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 407}, "assignee": {"id": 537}, "organization": {"id": 198}, "project": {"owner": {"id": 794}, "assignee": {"id": 899}, "organization": {"id": 978}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 469}, "assignee": {"id": 526}, "organization": {"id": 680}, "project": {"owner": {"id": 725}, "assignee": {"id": 859}, "organization": {"id": 926}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 419}, "assignee": {"id": 544}, "organization": {"id": 132}, "project": {"owner": {"id": 728}, "assignee": {"id": 848}, "organization": {"id": 911}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 443}, "assignee": {"id": 557}, "organization": {"id": 642}, "project": {"owner": {"id": 741}, "assignee": {"id": 861}, "organization": {"id": 936}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 436}, "assignee": {"id": 554}, "organization": {"id": 111}, "project": {"owner": {"id": 780}, "assignee": {"id": 808}, "organization": {"id": 969}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 444}, "assignee": {"id": 587}, "organization": {"id": 631}, "project": {"owner": {"id": 708}, "assignee": {"id": 863}, "organization": {"id": 939}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 494}, "assignee": {"id": 532}, "organization": {"id": 128}, "project": {"owner": {"id": 762}, "assignee": {"id": 891}, "organization": {"id": 920}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 417}, "assignee": {"id": 532}, "organization": {"id": 642}, "project": {"owner": {"id": 736}, "assignee": {"id": 877}, "organization": {"id": 955}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 416}, "assignee": {"id": 533}, "organization": {"id": 126}, "project": {"owner": {"id": 720}, "assignee": {"id": 885}, "organization": {"id": 940}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 464}, "assignee": {"id": 531}, "organization": {"id": 636}, "project": {"owner": {"id": 760}, "assignee": {"id": 819}, "organization": {"id": 983}}}} +} + +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": 137, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 408}, "assignee": {"id": 566}, "organization": {"id": 137}, "project": {"owner": {"id": 758}, "assignee": {"id": 829}, "organization": {"id": 971}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 422}, "assignee": {"id": 530}, "organization": {"id": 645}, "project": {"owner": {"id": 781}, "assignee": {"id": 820}, "organization": {"id": 944}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 451}, "assignee": {"id": 540}, "organization": {"id": 124}, "project": {"owner": {"id": 721}, "assignee": {"id": 806}, "organization": {"id": 965}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 455}, "assignee": {"id": 587}, "organization": {"id": 616}, "project": {"owner": {"id": 773}, "assignee": {"id": 822}, "organization": {"id": 925}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 449}, "assignee": {"id": 566}, "organization": {"id": 110}, "project": {"owner": {"id": 729}, "assignee": {"id": 840}, "organization": {"id": 903}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 409}, "assignee": {"id": 587}, "organization": {"id": 664}, "project": {"owner": {"id": 796}, "assignee": {"id": 889}, "organization": {"id": 937}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 460}, "assignee": {"id": 513}, "organization": {"id": 173}, "project": {"owner": {"id": 754}, "assignee": {"id": 841}, "organization": {"id": 944}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 488}, "assignee": {"id": 555}, "organization": {"id": 625}, "project": {"owner": {"id": 716}, "assignee": {"id": 836}, "organization": {"id": 941}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 420}, "assignee": {"id": 509}, "organization": {"id": 151}, "project": {"owner": {"id": 719}, "assignee": {"id": 892}, "organization": {"id": 979}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 460}, "assignee": {"id": 520}, "organization": {"id": 620}, "project": {"owner": {"id": 765}, "assignee": {"id": 865}, "organization": {"id": 917}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 489}, "assignee": {"id": 530}, "organization": {"id": 195}, "project": {"owner": {"id": 748}, "assignee": {"id": 893}, "organization": {"id": 931}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 470}, "assignee": {"id": 576}, "organization": {"id": 691}, "project": {"owner": {"id": 750}, "assignee": {"id": 835}, "organization": {"id": 903}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 473}, "assignee": {"id": 596}, "organization": {"id": 101}, "project": {"owner": {"id": 711}, "assignee": {"id": 882}, "organization": {"id": 973}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 437}, "assignee": {"id": 596}, "organization": {"id": 692}, "project": {"owner": {"id": 764}, "assignee": {"id": 898}, "organization": {"id": 976}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 402}, "assignee": {"id": 500}, "organization": {"id": 117}, "project": {"owner": {"id": 717}, "assignee": {"id": 814}, "organization": {"id": 987}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 462}, "assignee": {"id": 518}, "organization": {"id": 695}, "project": {"owner": {"id": 714}, "assignee": {"id": 804}, "organization": {"id": 937}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 446}, "assignee": {"id": 566}, "organization": {"id": 182}, "project": {"owner": {"id": 795}, "assignee": {"id": 857}, "organization": {"id": 959}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 451}, "assignee": {"id": 566}, "organization": {"id": 607}, "project": {"owner": {"id": 755}, "assignee": {"id": 866}, "organization": {"id": 950}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 415}, "assignee": {"id": 567}, "organization": {"id": 182}, "project": {"owner": {"id": 758}, "assignee": {"id": 881}, "organization": {"id": 987}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 452}, "assignee": {"id": 545}, "organization": {"id": 624}, "project": {"owner": {"id": 765}, "assignee": {"id": 806}, "organization": {"id": 927}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 478}, "assignee": {"id": 558}, "organization": {"id": 104}, "project": {"owner": {"id": 781}, "assignee": {"id": 809}, "organization": {"id": 902}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 448}, "assignee": {"id": 504}, "organization": {"id": 689}, "project": {"owner": {"id": 747}, "assignee": {"id": 836}, "organization": {"id": 934}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 418}, "assignee": {"id": 512}, "organization": {"id": 150}, "project": {"owner": {"id": 797}, "assignee": {"id": 802}, "organization": {"id": 989}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 491}, "assignee": {"id": 550}, "organization": {"id": 667}, "project": {"owner": {"id": 711}, "assignee": {"id": 894}, "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": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 404}, "assignee": {"id": 541}, "organization": {"id": 625}, "project": {"owner": {"id": 31}, "assignee": {"id": 839}, "organization": {"id": 937}}}} +} + +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": 69, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 465}, "assignee": {"id": 587}, "organization": {"id": 615}, "project": {"owner": {"id": 69}, "assignee": {"id": 844}, "organization": {"id": 914}}}} +} + +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": 92, "privilege": "user"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 440}, "assignee": {"id": 574}, "organization": {"id": 678}, "project": {"owner": {"id": 92}, "assignee": {"id": 841}, "organization": {"id": 904}}}} +} + +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": 4, "privilege": "worker"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 443}, "assignee": {"id": 587}, "organization": {"id": 634}, "project": {"owner": {"id": 4}, "assignee": {"id": 844}, "organization": {"id": 949}}}} +} + +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": 12, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 447}, "assignee": {"id": 518}, "organization": {"id": 670}, "project": {"owner": {"id": 12}, "assignee": {"id": 804}, "organization": {"id": 980}}}} +} + +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": 4, "privilege": "admin"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 441}, "assignee": {"id": 509}, "organization": {"id": 610}, "project": {"owner": {"id": 729}, "assignee": {"id": 4}, "organization": {"id": 912}}}} +} + +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": 31, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 435}, "assignee": {"id": 572}, "organization": {"id": 628}, "project": {"owner": {"id": 796}, "assignee": {"id": 31}, "organization": {"id": 967}}}} +} + +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": 30, "privilege": "user"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 467}, "assignee": {"id": 565}, "organization": {"id": 633}, "project": {"owner": {"id": 787}, "assignee": {"id": 30}, "organization": {"id": 963}}}} +} + +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": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 409}, "assignee": {"id": 513}, "organization": {"id": 638}, "project": {"owner": {"id": 704}, "assignee": {"id": 62}, "organization": {"id": 926}}}} +} + +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": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 462}, "assignee": {"id": 534}, "organization": {"id": 637}, "project": {"owner": {"id": 760}, "assignee": {"id": 21}, "organization": {"id": 977}}}} +} + +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": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 56}, "assignee": {"id": 593}, "organization": {"id": 684}, "project": {"owner": {"id": 750}, "assignee": {"id": 809}, "organization": {"id": 952}}}} +} + +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": 54, "privilege": "business"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 54}, "assignee": {"id": 570}, "organization": {"id": 602}, "project": {"owner": {"id": 729}, "assignee": {"id": 896}, "organization": {"id": 907}}}} +} + +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": 20, "privilege": "user"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 20}, "assignee": {"id": 568}, "organization": {"id": 635}, "project": {"owner": {"id": 734}, "assignee": {"id": 801}, "organization": {"id": 986}}}} +} + +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": 75, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 75}, "assignee": {"id": 549}, "organization": {"id": 601}, "project": {"owner": {"id": 791}, "assignee": {"id": 846}, "organization": {"id": 948}}}} +} + +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": 65, "privilege": "none"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 65}, "assignee": {"id": 596}, "organization": {"id": 694}, "project": {"owner": {"id": 756}, "assignee": {"id": 828}, "organization": {"id": 902}}}} +} + +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": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 413}, "assignee": {"id": 49}, "organization": {"id": 629}, "project": {"owner": {"id": 739}, "assignee": {"id": 853}, "organization": {"id": 960}}}} +} + +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": 83, "privilege": "business"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 438}, "assignee": {"id": 83}, "organization": {"id": 666}, "project": {"owner": {"id": 740}, "assignee": {"id": 817}, "organization": {"id": 954}}}} +} + +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": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 492}, "assignee": {"id": 57}, "organization": {"id": 668}, "project": {"owner": {"id": 753}, "assignee": {"id": 862}, "organization": {"id": 922}}}} +} + +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": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 421}, "assignee": {"id": 64}, "organization": {"id": 694}, "project": {"owner": {"id": 718}, "assignee": {"id": 866}, "organization": {"id": 951}}}} +} + +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": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 471}, "assignee": {"id": 58}, "organization": {"id": 692}, "project": {"owner": {"id": 768}, "assignee": {"id": 833}, "organization": {"id": 991}}}} +} + +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": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 431}, "assignee": {"id": 528}, "organization": {"id": 604}, "project": {"owner": {"id": 776}, "assignee": {"id": 818}, "organization": {"id": 950}}}} +} + +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": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 409}, "assignee": {"id": 573}, "organization": {"id": 621}, "project": {"owner": {"id": 764}, "assignee": {"id": 822}, "organization": {"id": 920}}}} +} + +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": 307, "owner": {"id": 439}, "assignee": {"id": 595}, "organization": {"id": 627}, "project": {"owner": {"id": 702}, "assignee": {"id": 852}, "organization": {"id": 972}}}} +} + +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": 3, "privilege": "worker"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 410}, "assignee": {"id": 591}, "organization": {"id": 628}, "project": {"owner": {"id": 744}, "assignee": {"id": 806}, "organization": {"id": 916}}}} +} + +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": 47, "privilege": "none"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 433}, "assignee": {"id": 506}, "organization": {"id": 605}, "project": {"owner": {"id": 783}, "assignee": {"id": 858}, "organization": {"id": 983}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 440}, "assignee": {"id": 522}, "organization": {"id": 185}, "project": {"owner": {"id": 57}, "assignee": {"id": 813}, "organization": {"id": 987}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 423}, "assignee": {"id": 500}, "organization": {"id": 606}, "project": {"owner": {"id": 33}, "assignee": {"id": 889}, "organization": {"id": 961}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 473}, "assignee": {"id": 576}, "organization": {"id": 134}, "project": {"owner": {"id": 46}, "assignee": {"id": 894}, "organization": {"id": 984}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 494}, "assignee": {"id": 559}, "organization": {"id": 606}, "project": {"owner": {"id": 60}, "assignee": {"id": 862}, "organization": {"id": 995}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 419}, "assignee": {"id": 517}, "organization": {"id": 188}, "project": {"owner": {"id": 63}, "assignee": {"id": 851}, "organization": {"id": 963}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 435}, "assignee": {"id": 595}, "organization": {"id": 695}, "project": {"owner": {"id": 45}, "assignee": {"id": 801}, "organization": {"id": 961}}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 468}, "assignee": {"id": 538}, "organization": {"id": 138}, "project": {"owner": {"id": 87}, "assignee": {"id": 846}, "organization": {"id": 998}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 410}, "assignee": {"id": 522}, "organization": {"id": 623}, "project": {"owner": {"id": 75}, "assignee": {"id": 848}, "organization": {"id": 958}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 440}, "assignee": {"id": 545}, "organization": {"id": 185}, "project": {"owner": {"id": 23}, "assignee": {"id": 834}, "organization": {"id": 972}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 459}, "assignee": {"id": 503}, "organization": {"id": 635}, "project": {"owner": {"id": 65}, "assignee": {"id": 830}, "organization": {"id": 983}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 475}, "assignee": {"id": 525}, "organization": {"id": 175}, "project": {"owner": {"id": 48}, "assignee": {"id": 887}, "organization": {"id": 910}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 460}, "assignee": {"id": 563}, "organization": {"id": 618}, "project": {"owner": {"id": 3}, "assignee": {"id": 879}, "organization": {"id": 945}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 449}, "assignee": {"id": 531}, "organization": {"id": 102}, "project": {"owner": {"id": 97}, "assignee": {"id": 804}, "organization": {"id": 906}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 412}, "assignee": {"id": 540}, "organization": {"id": 619}, "project": {"owner": {"id": 75}, "assignee": {"id": 834}, "organization": {"id": 961}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 461}, "assignee": {"id": 532}, "organization": {"id": 189}, "project": {"owner": {"id": 63}, "assignee": {"id": 848}, "organization": {"id": 922}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 490}, "assignee": {"id": 522}, "organization": {"id": 667}, "project": {"owner": {"id": 83}, "assignee": {"id": 836}, "organization": {"id": 982}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 482}, "assignee": {"id": 599}, "organization": {"id": 125}, "project": {"owner": {"id": 92}, "assignee": {"id": 807}, "organization": {"id": 911}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 430}, "assignee": {"id": 510}, "organization": {"id": 610}, "project": {"owner": {"id": 20}, "assignee": {"id": 830}, "organization": {"id": 922}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 434}, "assignee": {"id": 532}, "organization": {"id": 119}, "project": {"owner": {"id": 34}, "assignee": {"id": 852}, "organization": {"id": 920}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 462}, "assignee": {"id": 517}, "organization": {"id": 643}, "project": {"owner": {"id": 46}, "assignee": {"id": 839}, "organization": {"id": 937}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 464}, "assignee": {"id": 548}, "organization": {"id": 106}, "project": {"owner": {"id": 35}, "assignee": {"id": 869}, "organization": {"id": 902}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 492}, "assignee": {"id": 538}, "organization": {"id": 689}, "project": {"owner": {"id": 19}, "assignee": {"id": 850}, "organization": {"id": 949}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 410}, "assignee": {"id": 500}, "organization": {"id": 169}, "project": {"owner": {"id": 18}, "assignee": {"id": 827}, "organization": {"id": 986}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 476}, "assignee": {"id": 516}, "organization": {"id": 692}, "project": {"owner": {"id": 26}, "assignee": {"id": 869}, "organization": {"id": 903}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 467}, "assignee": {"id": 568}, "organization": {"id": 136}, "project": {"owner": {"id": 62}, "assignee": {"id": 879}, "organization": {"id": 944}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 416}, "assignee": {"id": 510}, "organization": {"id": 616}, "project": {"owner": {"id": 23}, "assignee": {"id": 846}, "organization": {"id": 969}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 454}, "assignee": {"id": 580}, "organization": {"id": 146}, "project": {"owner": {"id": 68}, "assignee": {"id": 866}, "organization": {"id": 923}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 490}, "assignee": {"id": 590}, "organization": {"id": 626}, "project": {"owner": {"id": 3}, "assignee": {"id": 817}, "organization": {"id": 929}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 496}, "assignee": {"id": 511}, "organization": {"id": 170}, "project": {"owner": {"id": 23}, "assignee": {"id": 888}, "organization": {"id": 966}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 478}, "assignee": {"id": 503}, "organization": {"id": 634}, "project": {"owner": {"id": 92}, "assignee": {"id": 855}, "organization": {"id": 928}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 435}, "assignee": {"id": 526}, "organization": {"id": 166}, "project": {"owner": {"id": 65}, "assignee": {"id": 883}, "organization": {"id": 958}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 498}, "assignee": {"id": 585}, "organization": {"id": 637}, "project": {"owner": {"id": 39}, "assignee": {"id": 802}, "organization": {"id": 947}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 419}, "assignee": {"id": 536}, "organization": {"id": 149}, "project": {"owner": {"id": 60}, "assignee": {"id": 845}, "organization": {"id": 971}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 481}, "assignee": {"id": 512}, "organization": {"id": 604}, "project": {"owner": {"id": 22}, "assignee": {"id": 890}, "organization": {"id": 956}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 417}, "assignee": {"id": 588}, "organization": {"id": 155}, "project": {"owner": {"id": 47}, "assignee": {"id": 811}, "organization": {"id": 944}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 492}, "assignee": {"id": 542}, "organization": {"id": 637}, "project": {"owner": {"id": 98}, "assignee": {"id": 870}, "organization": {"id": 944}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 456}, "assignee": {"id": 567}, "organization": {"id": 106}, "project": {"owner": {"id": 56}, "assignee": {"id": 856}, "organization": {"id": 982}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 469}, "assignee": {"id": 592}, "organization": {"id": 658}, "project": {"owner": {"id": 72}, "assignee": {"id": 884}, "organization": {"id": 913}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 451}, "assignee": {"id": 588}, "organization": {"id": 165}, "project": {"owner": {"id": 55}, "assignee": {"id": 856}, "organization": {"id": 977}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 489}, "assignee": {"id": 595}, "organization": {"id": 631}, "project": {"owner": {"id": 35}, "assignee": {"id": 897}, "organization": {"id": 918}}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 461}, "assignee": {"id": 593}, "organization": {"id": 102}, "project": {"owner": {"id": 99}, "assignee": {"id": 847}, "organization": {"id": 918}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 402}, "assignee": {"id": 570}, "organization": {"id": 662}, "project": {"owner": {"id": 93}, "assignee": {"id": 846}, "organization": {"id": 924}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 437}, "assignee": {"id": 517}, "organization": {"id": 130}, "project": {"owner": {"id": 28}, "assignee": {"id": 889}, "organization": {"id": 942}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 435}, "assignee": {"id": 572}, "organization": {"id": 604}, "project": {"owner": {"id": 46}, "assignee": {"id": 864}, "organization": {"id": 913}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 421}, "assignee": {"id": 518}, "organization": {"id": 186}, "project": {"owner": {"id": 63}, "assignee": {"id": 876}, "organization": {"id": 988}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 471}, "assignee": {"id": 563}, "organization": {"id": 694}, "project": {"owner": {"id": 17}, "assignee": {"id": 857}, "organization": {"id": 901}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 450}, "assignee": {"id": 581}, "organization": {"id": 187}, "project": {"owner": {"id": 97}, "assignee": {"id": 824}, "organization": {"id": 987}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 466}, "assignee": {"id": 520}, "organization": {"id": 612}, "project": {"owner": {"id": 73}, "assignee": {"id": 866}, "organization": {"id": 996}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 465}, "assignee": {"id": 538}, "organization": {"id": 132}, "project": {"owner": {"id": 52}, "assignee": {"id": 874}, "organization": {"id": 980}}}} +} + +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": 133, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 479}, "assignee": {"id": 587}, "organization": {"id": 644}, "project": {"owner": {"id": 48}, "assignee": {"id": 861}, "organization": {"id": 940}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 416}, "assignee": {"id": 502}, "organization": {"id": 176}, "project": {"owner": {"id": 793}, "assignee": {"id": 71}, "organization": {"id": 957}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 437}, "assignee": {"id": 564}, "organization": {"id": 682}, "project": {"owner": {"id": 795}, "assignee": {"id": 51}, "organization": {"id": 962}}}} +} + +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": 184, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 469}, "assignee": {"id": 593}, "organization": {"id": 184}, "project": {"owner": {"id": 721}, "assignee": {"id": 4}, "organization": {"id": 977}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 440}, "assignee": {"id": 581}, "organization": {"id": 684}, "project": {"owner": {"id": 711}, "assignee": {"id": 69}, "organization": {"id": 995}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 477}, "assignee": {"id": 570}, "organization": {"id": 181}, "project": {"owner": {"id": 737}, "assignee": {"id": 80}, "organization": {"id": 980}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 479}, "assignee": {"id": 500}, "organization": {"id": 603}, "project": {"owner": {"id": 796}, "assignee": {"id": 79}, "organization": {"id": 988}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 453}, "assignee": {"id": 584}, "organization": {"id": 130}, "project": {"owner": {"id": 738}, "assignee": {"id": 97}, "organization": {"id": 940}}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 427}, "assignee": {"id": 517}, "organization": {"id": 660}, "project": {"owner": {"id": 747}, "assignee": {"id": 68}, "organization": {"id": 936}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 456}, "assignee": {"id": 580}, "organization": {"id": 122}, "project": {"owner": {"id": 766}, "assignee": {"id": 33}, "organization": {"id": 952}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 494}, "assignee": {"id": 599}, "organization": {"id": 632}, "project": {"owner": {"id": 713}, "assignee": {"id": 74}, "organization": {"id": 922}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 424}, "assignee": {"id": 594}, "organization": {"id": 157}, "project": {"owner": {"id": 767}, "assignee": {"id": 88}, "organization": {"id": 952}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 444}, "assignee": {"id": 569}, "organization": {"id": 676}, "project": {"owner": {"id": 792}, "assignee": {"id": 34}, "organization": {"id": 974}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 435}, "assignee": {"id": 567}, "organization": {"id": 139}, "project": {"owner": {"id": 764}, "assignee": {"id": 78}, "organization": {"id": 962}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 471}, "assignee": {"id": 576}, "organization": {"id": 659}, "project": {"owner": {"id": 745}, "assignee": {"id": 91}, "organization": {"id": 951}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 467}, "assignee": {"id": 541}, "organization": {"id": 188}, "project": {"owner": {"id": 724}, "assignee": {"id": 62}, "organization": {"id": 937}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 421}, "assignee": {"id": 578}, "organization": {"id": 633}, "project": {"owner": {"id": 742}, "assignee": {"id": 22}, "organization": {"id": 962}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 442}, "assignee": {"id": 512}, "organization": {"id": 152}, "project": {"owner": {"id": 728}, "assignee": {"id": 70}, "organization": {"id": 999}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 477}, "assignee": {"id": 565}, "organization": {"id": 655}, "project": {"owner": {"id": 733}, "assignee": {"id": 33}, "organization": {"id": 991}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 401}, "assignee": {"id": 529}, "organization": {"id": 183}, "project": {"owner": {"id": 707}, "assignee": {"id": 3}, "organization": {"id": 924}}}} +} + +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": 68, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 485}, "assignee": {"id": 592}, "organization": {"id": 611}, "project": {"owner": {"id": 786}, "assignee": {"id": 68}, "organization": {"id": 938}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 471}, "assignee": {"id": 503}, "organization": {"id": 131}, "project": {"owner": {"id": 742}, "assignee": {"id": 65}, "organization": {"id": 959}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 456}, "assignee": {"id": 598}, "organization": {"id": 625}, "project": {"owner": {"id": 766}, "assignee": {"id": 86}, "organization": {"id": 962}}}} +} + +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": 137, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 414}, "assignee": {"id": 557}, "organization": {"id": 137}, "project": {"owner": {"id": 759}, "assignee": {"id": 72}, "organization": {"id": 978}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 480}, "assignee": {"id": 561}, "organization": {"id": 613}, "project": {"owner": {"id": 787}, "assignee": {"id": 46}, "organization": {"id": 949}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 435}, "assignee": {"id": 508}, "organization": {"id": 195}, "project": {"owner": {"id": 759}, "assignee": {"id": 73}, "organization": {"id": 959}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 417}, "assignee": {"id": 518}, "organization": {"id": 647}, "project": {"owner": {"id": 789}, "assignee": {"id": 52}, "organization": {"id": 979}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 472}, "assignee": {"id": 589}, "organization": {"id": 173}, "project": {"owner": {"id": 705}, "assignee": {"id": 37}, "organization": {"id": 987}}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 472}, "assignee": {"id": 548}, "organization": {"id": 634}, "project": {"owner": {"id": 724}, "assignee": {"id": 1}, "organization": {"id": 935}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 405}, "assignee": {"id": 531}, "organization": {"id": 132}, "project": {"owner": {"id": 751}, "assignee": {"id": 83}, "organization": {"id": 962}}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 452}, "assignee": {"id": 586}, "organization": {"id": 669}, "project": {"owner": {"id": 781}, "assignee": {"id": 40}, "organization": {"id": 919}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 406}, "assignee": {"id": 588}, "organization": {"id": 158}, "project": {"owner": {"id": 723}, "assignee": {"id": 4}, "organization": {"id": 901}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 443}, "assignee": {"id": 531}, "organization": {"id": 652}, "project": {"owner": {"id": 748}, "assignee": {"id": 34}, "organization": {"id": 904}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 496}, "assignee": {"id": 508}, "organization": {"id": 131}, "project": {"owner": {"id": 729}, "assignee": {"id": 57}, "organization": {"id": 986}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 477}, "assignee": {"id": 518}, "organization": {"id": 635}, "project": {"owner": {"id": 767}, "assignee": {"id": 60}, "organization": {"id": 960}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 433}, "assignee": {"id": 569}, "organization": {"id": 160}, "project": {"owner": {"id": 758}, "assignee": {"id": 82}, "organization": {"id": 945}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 415}, "assignee": {"id": 586}, "organization": {"id": 620}, "project": {"owner": {"id": 738}, "assignee": {"id": 95}, "organization": {"id": 971}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 414}, "assignee": {"id": 537}, "organization": {"id": 149}, "project": {"owner": {"id": 789}, "assignee": {"id": 0}, "organization": {"id": 946}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 448}, "assignee": {"id": 568}, "organization": {"id": 609}, "project": {"owner": {"id": 727}, "assignee": {"id": 24}, "organization": {"id": 963}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 455}, "assignee": {"id": 551}, "organization": {"id": 126}, "project": {"owner": {"id": 771}, "assignee": {"id": 35}, "organization": {"id": 947}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 479}, "assignee": {"id": 598}, "organization": {"id": 624}, "project": {"owner": {"id": 761}, "assignee": {"id": 56}, "organization": {"id": 933}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 458}, "assignee": {"id": 540}, "organization": {"id": 147}, "project": {"owner": {"id": 788}, "assignee": {"id": 16}, "organization": {"id": 976}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 426}, "assignee": {"id": 560}, "organization": {"id": 647}, "project": {"owner": {"id": 765}, "assignee": {"id": 45}, "organization": {"id": 995}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 477}, "assignee": {"id": 574}, "organization": {"id": 120}, "project": {"owner": {"id": 707}, "assignee": {"id": 88}, "organization": {"id": 908}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 471}, "assignee": {"id": 598}, "organization": {"id": 654}, "project": {"owner": {"id": 715}, "assignee": {"id": 35}, "organization": {"id": 988}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 480}, "assignee": {"id": 576}, "organization": {"id": 120}, "project": {"owner": {"id": 745}, "assignee": {"id": 85}, "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": 80, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 415}, "assignee": {"id": 595}, "organization": {"id": 608}, "project": {"owner": {"id": 717}, "assignee": {"id": 80}, "organization": {"id": 990}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 499}, "assignee": {"id": 521}, "organization": {"id": 119}, "project": {"owner": {"id": 721}, "assignee": {"id": 74}, "organization": {"id": 984}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 400}, "assignee": {"id": 558}, "organization": {"id": 658}, "project": {"owner": {"id": 705}, "assignee": {"id": 78}, "organization": {"id": 993}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 485}, "assignee": {"id": 569}, "organization": {"id": 124}, "project": {"owner": {"id": 752}, "assignee": {"id": 74}, "organization": {"id": 999}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 401}, "assignee": {"id": 585}, "organization": {"id": 639}, "project": {"owner": {"id": 792}, "assignee": {"id": 54}, "organization": {"id": 944}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 92}, "assignee": {"id": 572}, "organization": {"id": 110}, "project": {"owner": {"id": 790}, "assignee": {"id": 817}, "organization": {"id": 994}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 11}, "assignee": {"id": 511}, "organization": {"id": 665}, "project": {"owner": {"id": 719}, "assignee": {"id": 803}, "organization": {"id": 976}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 46}, "assignee": {"id": 540}, "organization": {"id": 179}, "project": {"owner": {"id": 790}, "assignee": {"id": 841}, "organization": {"id": 931}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 64}, "assignee": {"id": 595}, "organization": {"id": 635}, "project": {"owner": {"id": 755}, "assignee": {"id": 848}, "organization": {"id": 971}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 69}, "assignee": {"id": 548}, "organization": {"id": 130}, "project": {"owner": {"id": 731}, "assignee": {"id": 888}, "organization": {"id": 903}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 27}, "assignee": {"id": 570}, "organization": {"id": 649}, "project": {"owner": {"id": 730}, "assignee": {"id": 889}, "organization": {"id": 961}}}} +} + +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": 42, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 42}, "assignee": {"id": 528}, "organization": {"id": 171}, "project": {"owner": {"id": 778}, "assignee": {"id": 804}, "organization": {"id": 974}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 79}, "assignee": {"id": 552}, "organization": {"id": 610}, "project": {"owner": {"id": 705}, "assignee": {"id": 847}, "organization": {"id": 979}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 43}, "assignee": {"id": 545}, "organization": {"id": 127}, "project": {"owner": {"id": 710}, "assignee": {"id": 880}, "organization": {"id": 968}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 61}, "assignee": {"id": 531}, "organization": {"id": 657}, "project": {"owner": {"id": 748}, "assignee": {"id": 859}, "organization": {"id": 929}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 42}, "assignee": {"id": 542}, "organization": {"id": 111}, "project": {"owner": {"id": 771}, "assignee": {"id": 817}, "organization": {"id": 910}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 54}, "assignee": {"id": 575}, "organization": {"id": 614}, "project": {"owner": {"id": 728}, "assignee": {"id": 848}, "organization": {"id": 933}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 80}, "assignee": {"id": 573}, "organization": {"id": 197}, "project": {"owner": {"id": 788}, "assignee": {"id": 861}, "organization": {"id": 905}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 54}, "assignee": {"id": 587}, "organization": {"id": 651}, "project": {"owner": {"id": 724}, "assignee": {"id": 811}, "organization": {"id": 974}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 6}, "assignee": {"id": 570}, "organization": {"id": 125}, "project": {"owner": {"id": 744}, "assignee": {"id": 865}, "organization": {"id": 965}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 9}, "assignee": {"id": 552}, "organization": {"id": 631}, "project": {"owner": {"id": 795}, "assignee": {"id": 865}, "organization": {"id": 937}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 64}, "assignee": {"id": 553}, "organization": {"id": 135}, "project": {"owner": {"id": 778}, "assignee": {"id": 894}, "organization": {"id": 998}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 36}, "assignee": {"id": 524}, "organization": {"id": 680}, "project": {"owner": {"id": 739}, "assignee": {"id": 883}, "organization": {"id": 935}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 6}, "assignee": {"id": 534}, "organization": {"id": 106}, "project": {"owner": {"id": 784}, "assignee": {"id": 800}, "organization": {"id": 926}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 54}, "assignee": {"id": 578}, "organization": {"id": 634}, "project": {"owner": {"id": 785}, "assignee": {"id": 875}, "organization": {"id": 913}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 84}, "assignee": {"id": 526}, "organization": {"id": 156}, "project": {"owner": {"id": 763}, "assignee": {"id": 848}, "organization": {"id": 959}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 85}, "assignee": {"id": 534}, "organization": {"id": 613}, "project": {"owner": {"id": 796}, "assignee": {"id": 882}, "organization": {"id": 921}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 74}, "assignee": {"id": 513}, "organization": {"id": 192}, "project": {"owner": {"id": 728}, "assignee": {"id": 810}, "organization": {"id": 948}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 45}, "assignee": {"id": 523}, "organization": {"id": 665}, "project": {"owner": {"id": 705}, "assignee": {"id": 810}, "organization": {"id": 947}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 88}, "assignee": {"id": 563}, "organization": {"id": 121}, "project": {"owner": {"id": 752}, "assignee": {"id": 898}, "organization": {"id": 929}}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 24}, "assignee": {"id": 571}, "organization": {"id": 674}, "project": {"owner": {"id": 764}, "assignee": {"id": 872}, "organization": {"id": 904}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 32}, "assignee": {"id": 557}, "organization": {"id": 108}, "project": {"owner": {"id": 742}, "assignee": {"id": 868}, "organization": {"id": 924}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 6}, "assignee": {"id": 596}, "organization": {"id": 646}, "project": {"owner": {"id": 705}, "assignee": {"id": 843}, "organization": {"id": 930}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 88}, "assignee": {"id": 568}, "organization": {"id": 122}, "project": {"owner": {"id": 725}, "assignee": {"id": 899}, "organization": {"id": 970}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 57}, "assignee": {"id": 544}, "organization": {"id": 610}, "project": {"owner": {"id": 747}, "assignee": {"id": 825}, "organization": {"id": 985}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 27}, "assignee": {"id": 544}, "organization": {"id": 128}, "project": {"owner": {"id": 703}, "assignee": {"id": 838}, "organization": {"id": 990}}}} +} + +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": 53, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 53}, "assignee": {"id": 532}, "organization": {"id": 665}, "project": {"owner": {"id": 780}, "assignee": {"id": 831}, "organization": {"id": 906}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 38}, "assignee": {"id": 551}, "organization": {"id": 188}, "project": {"owner": {"id": 729}, "assignee": {"id": 868}, "organization": {"id": 922}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 79}, "assignee": {"id": 597}, "organization": {"id": 642}, "project": {"owner": {"id": 717}, "assignee": {"id": 866}, "organization": {"id": 908}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 30}, "assignee": {"id": 530}, "organization": {"id": 120}, "project": {"owner": {"id": 728}, "assignee": {"id": 885}, "organization": {"id": 962}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 73}, "assignee": {"id": 503}, "organization": {"id": 666}, "project": {"owner": {"id": 753}, "assignee": {"id": 886}, "organization": {"id": 951}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 17}, "assignee": {"id": 516}, "organization": {"id": 148}, "project": {"owner": {"id": 780}, "assignee": {"id": 823}, "organization": {"id": 937}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 54}, "assignee": {"id": 590}, "organization": {"id": 619}, "project": {"owner": {"id": 789}, "assignee": {"id": 819}, "organization": {"id": 920}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 1}, "assignee": {"id": 552}, "organization": {"id": 106}, "project": {"owner": {"id": 712}, "assignee": {"id": 874}, "organization": {"id": 939}}}} +} + +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": 29, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 29}, "assignee": {"id": 521}, "organization": {"id": 662}, "project": {"owner": {"id": 743}, "assignee": {"id": 848}, "organization": {"id": 905}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 25}, "assignee": {"id": 577}, "organization": {"id": 144}, "project": {"owner": {"id": 733}, "assignee": {"id": 828}, "organization": {"id": 962}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 1}, "assignee": {"id": 518}, "organization": {"id": 615}, "project": {"owner": {"id": 725}, "assignee": {"id": 882}, "organization": {"id": 983}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 70}, "assignee": {"id": 557}, "organization": {"id": 144}, "project": {"owner": {"id": 786}, "assignee": {"id": 863}, "organization": {"id": 980}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 5}, "assignee": {"id": 546}, "organization": {"id": 645}, "project": {"owner": {"id": 708}, "assignee": {"id": 823}, "organization": {"id": 937}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 37}, "assignee": {"id": 579}, "organization": {"id": 112}, "project": {"owner": {"id": 773}, "assignee": {"id": 842}, "organization": {"id": 965}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 65}, "assignee": {"id": 592}, "organization": {"id": 661}, "project": {"owner": {"id": 764}, "assignee": {"id": 859}, "organization": {"id": 906}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 79}, "assignee": {"id": 523}, "organization": {"id": 192}, "project": {"owner": {"id": 767}, "assignee": {"id": 853}, "organization": {"id": 933}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 80}, "assignee": {"id": 589}, "organization": {"id": 662}, "project": {"owner": {"id": 783}, "assignee": {"id": 831}, "organization": {"id": 974}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 25}, "assignee": {"id": 562}, "organization": {"id": 139}, "project": {"owner": {"id": 768}, "assignee": {"id": 852}, "organization": {"id": 912}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 98}, "assignee": {"id": 534}, "organization": {"id": 613}, "project": {"owner": {"id": 724}, "assignee": {"id": 889}, "organization": {"id": 987}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 407}, "assignee": {"id": 21}, "organization": {"id": 148}, "project": {"owner": {"id": 724}, "assignee": {"id": 830}, "organization": {"id": 909}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 496}, "assignee": {"id": 13}, "organization": {"id": 690}, "project": {"owner": {"id": 728}, "assignee": {"id": 802}, "organization": {"id": 932}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 432}, "assignee": {"id": 34}, "organization": {"id": 184}, "project": {"owner": {"id": 728}, "assignee": {"id": 885}, "organization": {"id": 932}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 483}, "assignee": {"id": 66}, "organization": {"id": 630}, "project": {"owner": {"id": 792}, "assignee": {"id": 880}, "organization": {"id": 932}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 409}, "assignee": {"id": 9}, "organization": {"id": 185}, "project": {"owner": {"id": 703}, "assignee": {"id": 896}, "organization": {"id": 923}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 472}, "assignee": {"id": 43}, "organization": {"id": 643}, "project": {"owner": {"id": 795}, "assignee": {"id": 878}, "organization": {"id": 973}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 403}, "assignee": {"id": 38}, "organization": {"id": 101}, "project": {"owner": {"id": 762}, "assignee": {"id": 831}, "organization": {"id": 922}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 450}, "assignee": {"id": 45}, "organization": {"id": 643}, "project": {"owner": {"id": 776}, "assignee": {"id": 865}, "organization": {"id": 905}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 466}, "assignee": {"id": 52}, "organization": {"id": 113}, "project": {"owner": {"id": 717}, "assignee": {"id": 863}, "organization": {"id": 970}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 491}, "assignee": {"id": 13}, "organization": {"id": 665}, "project": {"owner": {"id": 765}, "assignee": {"id": 869}, "organization": {"id": 983}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 450}, "assignee": {"id": 32}, "organization": {"id": 151}, "project": {"owner": {"id": 786}, "assignee": {"id": 838}, "organization": {"id": 923}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 445}, "assignee": {"id": 28}, "organization": {"id": 607}, "project": {"owner": {"id": 789}, "assignee": {"id": 822}, "organization": {"id": 980}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 454}, "assignee": {"id": 20}, "organization": {"id": 198}, "project": {"owner": {"id": 772}, "assignee": {"id": 862}, "organization": {"id": 939}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 453}, "assignee": {"id": 71}, "organization": {"id": 611}, "project": {"owner": {"id": 783}, "assignee": {"id": 849}, "organization": {"id": 969}}}} +} + +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": 11, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 416}, "assignee": {"id": 11}, "organization": {"id": 133}, "project": {"owner": {"id": 787}, "assignee": {"id": 833}, "organization": {"id": 945}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 492}, "assignee": {"id": 3}, "organization": {"id": 608}, "project": {"owner": {"id": 723}, "assignee": {"id": 815}, "organization": {"id": 974}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 411}, "assignee": {"id": 88}, "organization": {"id": 186}, "project": {"owner": {"id": 719}, "assignee": {"id": 882}, "organization": {"id": 976}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 454}, "assignee": {"id": 82}, "organization": {"id": 637}, "project": {"owner": {"id": 715}, "assignee": {"id": 802}, "organization": {"id": 938}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 498}, "assignee": {"id": 67}, "organization": {"id": 133}, "project": {"owner": {"id": 766}, "assignee": {"id": 895}, "organization": {"id": 967}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 478}, "assignee": {"id": 69}, "organization": {"id": 627}, "project": {"owner": {"id": 726}, "assignee": {"id": 800}, "organization": {"id": 944}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 411}, "assignee": {"id": 35}, "organization": {"id": 176}, "project": {"owner": {"id": 790}, "assignee": {"id": 830}, "organization": {"id": 975}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 440}, "assignee": {"id": 5}, "organization": {"id": 624}, "project": {"owner": {"id": 769}, "assignee": {"id": 834}, "organization": {"id": 998}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 457}, "assignee": {"id": 76}, "organization": {"id": 151}, "project": {"owner": {"id": 723}, "assignee": {"id": 803}, "organization": {"id": 996}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 478}, "assignee": {"id": 67}, "organization": {"id": 664}, "project": {"owner": {"id": 751}, "assignee": {"id": 866}, "organization": {"id": 912}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 467}, "assignee": {"id": 6}, "organization": {"id": 183}, "project": {"owner": {"id": 778}, "assignee": {"id": 818}, "organization": {"id": 937}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 478}, "assignee": {"id": 87}, "organization": {"id": 659}, "project": {"owner": {"id": 775}, "assignee": {"id": 824}, "organization": {"id": 913}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 476}, "assignee": {"id": 51}, "organization": {"id": 173}, "project": {"owner": {"id": 784}, "assignee": {"id": 805}, "organization": {"id": 968}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 401}, "assignee": {"id": 43}, "organization": {"id": 649}, "project": {"owner": {"id": 782}, "assignee": {"id": 898}, "organization": {"id": 954}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 499}, "assignee": {"id": 22}, "organization": {"id": 194}, "project": {"owner": {"id": 739}, "assignee": {"id": 865}, "organization": {"id": 961}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 436}, "assignee": {"id": 65}, "organization": {"id": 695}, "project": {"owner": {"id": 764}, "assignee": {"id": 862}, "organization": {"id": 900}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 413}, "assignee": {"id": 66}, "organization": {"id": 106}, "project": {"owner": {"id": 738}, "assignee": {"id": 855}, "organization": {"id": 965}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 453}, "assignee": {"id": 56}, "organization": {"id": 664}, "project": {"owner": {"id": 715}, "assignee": {"id": 815}, "organization": {"id": 980}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 446}, "assignee": {"id": 41}, "organization": {"id": 123}, "project": {"owner": {"id": 746}, "assignee": {"id": 826}, "organization": {"id": 974}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 458}, "assignee": {"id": 55}, "organization": {"id": 609}, "project": {"owner": {"id": 711}, "assignee": {"id": 851}, "organization": {"id": 963}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 424}, "assignee": {"id": 88}, "organization": {"id": 189}, "project": {"owner": {"id": 772}, "assignee": {"id": 840}, "organization": {"id": 988}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 485}, "assignee": {"id": 22}, "organization": {"id": 630}, "project": {"owner": {"id": 784}, "assignee": {"id": 806}, "organization": {"id": 912}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 429}, "assignee": {"id": 60}, "organization": {"id": 159}, "project": {"owner": {"id": 784}, "assignee": {"id": 805}, "organization": {"id": 905}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 414}, "assignee": {"id": 50}, "organization": {"id": 649}, "project": {"owner": {"id": 759}, "assignee": {"id": 845}, "organization": {"id": 903}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 492}, "assignee": {"id": 87}, "organization": {"id": 142}, "project": {"owner": {"id": 724}, "assignee": {"id": 866}, "organization": {"id": 950}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 497}, "assignee": {"id": 24}, "organization": {"id": 637}, "project": {"owner": {"id": 710}, "assignee": {"id": 863}, "organization": {"id": 942}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 446}, "assignee": {"id": 74}, "organization": {"id": 157}, "project": {"owner": {"id": 717}, "assignee": {"id": 808}, "organization": {"id": 942}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 450}, "assignee": {"id": 84}, "organization": {"id": 662}, "project": {"owner": {"id": 767}, "assignee": {"id": 875}, "organization": {"id": 996}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 432}, "assignee": {"id": 72}, "organization": {"id": 187}, "project": {"owner": {"id": 771}, "assignee": {"id": 818}, "organization": {"id": 909}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 464}, "assignee": {"id": 37}, "organization": {"id": 693}, "project": {"owner": {"id": 724}, "assignee": {"id": 816}, "organization": {"id": 998}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 452}, "assignee": {"id": 71}, "organization": {"id": 176}, "project": {"owner": {"id": 717}, "assignee": {"id": 842}, "organization": {"id": 970}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 494}, "assignee": {"id": 14}, "organization": {"id": 677}, "project": {"owner": {"id": 723}, "assignee": {"id": 893}, "organization": {"id": 916}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 455}, "assignee": {"id": 17}, "organization": {"id": 147}, "project": {"owner": {"id": 740}, "assignee": {"id": 888}, "organization": {"id": 924}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 439}, "assignee": {"id": 67}, "organization": {"id": 671}, "project": {"owner": {"id": 743}, "assignee": {"id": 821}, "organization": {"id": 986}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 471}, "assignee": {"id": 2}, "organization": {"id": 155}, "project": {"owner": {"id": 742}, "assignee": {"id": 825}, "organization": {"id": 945}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 491}, "assignee": {"id": 74}, "organization": {"id": 682}, "project": {"owner": {"id": 784}, "assignee": {"id": 836}, "organization": {"id": 997}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 428}, "assignee": {"id": 598}, "organization": {"id": 139}, "project": {"owner": {"id": 744}, "assignee": {"id": 893}, "organization": {"id": 980}}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 458}, "assignee": {"id": 594}, "organization": {"id": 647}, "project": {"owner": {"id": 785}, "assignee": {"id": 885}, "organization": {"id": 930}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 471}, "assignee": {"id": 545}, "organization": {"id": 170}, "project": {"owner": {"id": 709}, "assignee": {"id": 840}, "organization": {"id": 982}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 433}, "assignee": {"id": 596}, "organization": {"id": 688}, "project": {"owner": {"id": 791}, "assignee": {"id": 820}, "organization": {"id": 992}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 465}, "assignee": {"id": 557}, "organization": {"id": 132}, "project": {"owner": {"id": 750}, "assignee": {"id": 821}, "organization": {"id": 974}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 451}, "assignee": {"id": 588}, "organization": {"id": 641}, "project": {"owner": {"id": 754}, "assignee": {"id": 828}, "organization": {"id": 998}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 414}, "assignee": {"id": 592}, "organization": {"id": 199}, "project": {"owner": {"id": 729}, "assignee": {"id": 803}, "organization": {"id": 967}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 471}, "assignee": {"id": 553}, "organization": {"id": 680}, "project": {"owner": {"id": 715}, "assignee": {"id": 845}, "organization": {"id": 903}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 462}, "assignee": {"id": 509}, "organization": {"id": 158}, "project": {"owner": {"id": 704}, "assignee": {"id": 822}, "organization": {"id": 906}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 488}, "assignee": {"id": 536}, "organization": {"id": 625}, "project": {"owner": {"id": 708}, "assignee": {"id": 863}, "organization": {"id": 958}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 406}, "assignee": {"id": 598}, "organization": {"id": 101}, "project": {"owner": {"id": 760}, "assignee": {"id": 886}, "organization": {"id": 992}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 467}, "assignee": {"id": 597}, "organization": {"id": 614}, "project": {"owner": {"id": 740}, "assignee": {"id": 882}, "organization": {"id": 996}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 468}, "assignee": {"id": 588}, "organization": {"id": 133}, "project": {"owner": {"id": 778}, "assignee": {"id": 861}, "organization": {"id": 968}}}} +} + +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": 136, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 423}, "assignee": {"id": 578}, "organization": {"id": 630}, "project": {"owner": {"id": 785}, "assignee": {"id": 806}, "organization": {"id": 901}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 459}, "assignee": {"id": 532}, "organization": {"id": 172}, "project": {"owner": {"id": 762}, "assignee": {"id": 838}, "organization": {"id": 947}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 477}, "assignee": {"id": 521}, "organization": {"id": 696}, "project": {"owner": {"id": 714}, "assignee": {"id": 852}, "organization": {"id": 979}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 449}, "assignee": {"id": 535}, "organization": {"id": 131}, "project": {"owner": {"id": 718}, "assignee": {"id": 881}, "organization": {"id": 912}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 406}, "assignee": {"id": 572}, "organization": {"id": 674}, "project": {"owner": {"id": 767}, "assignee": {"id": 888}, "organization": {"id": 940}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 465}, "assignee": {"id": 579}, "organization": {"id": 191}, "project": {"owner": {"id": 766}, "assignee": {"id": 894}, "organization": {"id": 904}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 463}, "assignee": {"id": 502}, "organization": {"id": 698}, "project": {"owner": {"id": 788}, "assignee": {"id": 894}, "organization": {"id": 954}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 404}, "assignee": {"id": 561}, "organization": {"id": 103}, "project": {"owner": {"id": 762}, "assignee": {"id": 829}, "organization": {"id": 929}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 442}, "assignee": {"id": 596}, "organization": {"id": 610}, "project": {"owner": {"id": 763}, "assignee": {"id": 884}, "organization": {"id": 966}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 442}, "assignee": {"id": 522}, "organization": {"id": 158}, "project": {"owner": {"id": 780}, "assignee": {"id": 886}, "organization": {"id": 942}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 462}, "assignee": {"id": 585}, "organization": {"id": 633}, "project": {"owner": {"id": 789}, "assignee": {"id": 804}, "organization": {"id": 967}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 417}, "assignee": {"id": 563}, "organization": {"id": 132}, "project": {"owner": {"id": 732}, "assignee": {"id": 829}, "organization": {"id": 997}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 420}, "assignee": {"id": 521}, "organization": {"id": 687}, "project": {"owner": {"id": 702}, "assignee": {"id": 848}, "organization": {"id": 964}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 422}, "assignee": {"id": 500}, "organization": {"id": 172}, "project": {"owner": {"id": 781}, "assignee": {"id": 813}, "organization": {"id": 972}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 460}, "assignee": {"id": 578}, "organization": {"id": 659}, "project": {"owner": {"id": 757}, "assignee": {"id": 832}, "organization": {"id": 996}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 440}, "assignee": {"id": 551}, "organization": {"id": 105}, "project": {"owner": {"id": 791}, "assignee": {"id": 888}, "organization": {"id": 947}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 470}, "assignee": {"id": 563}, "organization": {"id": 697}, "project": {"owner": {"id": 785}, "assignee": {"id": 873}, "organization": {"id": 925}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 499}, "assignee": {"id": 552}, "organization": {"id": 110}, "project": {"owner": {"id": 782}, "assignee": {"id": 818}, "organization": {"id": 958}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 421}, "assignee": {"id": 574}, "organization": {"id": 672}, "project": {"owner": {"id": 719}, "assignee": {"id": 814}, "organization": {"id": 912}}}} +} + +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": 80, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 494}, "assignee": {"id": 503}, "organization": {"id": 115}, "project": {"owner": {"id": 706}, "assignee": {"id": 870}, "organization": {"id": 965}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 473}, "assignee": {"id": 587}, "organization": {"id": 677}, "project": {"owner": {"id": 796}, "assignee": {"id": 834}, "organization": {"id": 970}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 428}, "assignee": {"id": 510}, "organization": {"id": 174}, "project": {"owner": {"id": 747}, "assignee": {"id": 807}, "organization": {"id": 911}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 422}, "assignee": {"id": 592}, "organization": {"id": 665}, "project": {"owner": {"id": 751}, "assignee": {"id": 852}, "organization": {"id": 913}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 437}, "assignee": {"id": 546}, "organization": {"id": 165}, "project": {"owner": {"id": 756}, "assignee": {"id": 802}, "organization": {"id": 963}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 435}, "assignee": {"id": 544}, "organization": {"id": 644}, "project": {"owner": {"id": 749}, "assignee": {"id": 806}, "organization": {"id": 903}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 440}, "assignee": {"id": 536}, "organization": {"id": 177}, "project": {"owner": {"id": 790}, "assignee": {"id": 806}, "organization": {"id": 949}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 462}, "assignee": {"id": 541}, "organization": {"id": 613}, "project": {"owner": {"id": 767}, "assignee": {"id": 823}, "organization": {"id": 983}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 475}, "assignee": {"id": 591}, "organization": {"id": 145}, "project": {"owner": {"id": 728}, "assignee": {"id": 860}, "organization": {"id": 929}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 473}, "assignee": {"id": 534}, "organization": {"id": 643}, "project": {"owner": {"id": 708}, "assignee": {"id": 867}, "organization": {"id": 999}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 480}, "assignee": {"id": 573}, "organization": {"id": 133}, "project": {"owner": {"id": 778}, "assignee": {"id": 877}, "organization": {"id": 979}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 455}, "assignee": {"id": 568}, "organization": {"id": 687}, "project": {"owner": {"id": 703}, "assignee": {"id": 869}, "organization": {"id": 979}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 411}, "assignee": {"id": 531}, "organization": {"id": 119}, "project": {"owner": {"id": 781}, "assignee": {"id": 827}, "organization": {"id": 999}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 430}, "assignee": {"id": 536}, "organization": {"id": 659}, "project": {"owner": {"id": 799}, "assignee": {"id": 810}, "organization": {"id": 970}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 433}, "assignee": {"id": 560}, "organization": {"id": 160}, "project": {"owner": {"id": 792}, "assignee": {"id": 856}, "organization": {"id": 915}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 401}, "assignee": {"id": 581}, "organization": {"id": 649}, "project": {"owner": {"id": 742}, "assignee": {"id": 867}, "organization": {"id": 972}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 446}, "assignee": {"id": 558}, "organization": {"id": 118}, "project": {"owner": {"id": 737}, "assignee": {"id": 879}, "organization": {"id": 900}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 429}, "assignee": {"id": 520}, "organization": {"id": 654}, "project": {"owner": {"id": 797}, "assignee": {"id": 877}, "organization": {"id": 931}}}} +} + +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": 63, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 490}, "assignee": {"id": 571}, "organization": {"id": 657}, "project": {"owner": {"id": 63}, "assignee": {"id": 800}, "organization": {"id": 996}}}} +} + +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": 9, "privilege": "business"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 451}, "assignee": {"id": 579}, "organization": {"id": 696}, "project": {"owner": {"id": 9}, "assignee": {"id": 832}, "organization": {"id": 906}}}} +} + +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": 11, "privilege": "user"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 448}, "assignee": {"id": 534}, "organization": {"id": 643}, "project": {"owner": {"id": 11}, "assignee": {"id": 834}, "organization": {"id": 939}}}} +} + +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": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 415}, "assignee": {"id": 532}, "organization": {"id": 680}, "project": {"owner": {"id": 76}, "assignee": {"id": 827}, "organization": {"id": 999}}}} +} + +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": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 475}, "assignee": {"id": 513}, "organization": {"id": 644}, "project": {"owner": {"id": 46}, "assignee": {"id": 811}, "organization": {"id": 970}}}} +} + +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": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 486}, "assignee": {"id": 543}, "organization": {"id": 650}, "project": {"owner": {"id": 792}, "assignee": {"id": 44}, "organization": {"id": 972}}}} +} + +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": 56, "privilege": "business"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 469}, "assignee": {"id": 512}, "organization": {"id": 644}, "project": {"owner": {"id": 752}, "assignee": {"id": 56}, "organization": {"id": 955}}}} +} + +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": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 467}, "assignee": {"id": 529}, "organization": {"id": 677}, "project": {"owner": {"id": 725}, "assignee": {"id": 24}, "organization": {"id": 948}}}} +} + +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": 91, "privilege": "worker"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 428}, "assignee": {"id": 583}, "organization": {"id": 665}, "project": {"owner": {"id": 733}, "assignee": {"id": 91}, "organization": {"id": 934}}}} +} + +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": 39, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 478}, "assignee": {"id": 570}, "organization": {"id": 612}, "project": {"owner": {"id": 749}, "assignee": {"id": 39}, "organization": {"id": 940}}}} +} + +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": 14, "privilege": "admin"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 14}, "assignee": {"id": 517}, "organization": {"id": 688}, "project": {"owner": {"id": 797}, "assignee": {"id": 881}, "organization": {"id": 904}}}} +} + +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": 34, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 34}, "assignee": {"id": 527}, "organization": {"id": 651}, "project": {"owner": {"id": 722}, "assignee": {"id": 870}, "organization": {"id": 974}}}} +} + +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": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 9}, "assignee": {"id": 570}, "organization": {"id": 674}, "project": {"owner": {"id": 756}, "assignee": {"id": 839}, "organization": {"id": 995}}}} +} + +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": 81, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 81}, "assignee": {"id": 568}, "organization": {"id": 629}, "project": {"owner": {"id": 793}, "assignee": {"id": 861}, "organization": {"id": 983}}}} +} + +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": 79, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 79}, "assignee": {"id": 517}, "organization": {"id": 647}, "project": {"owner": {"id": 711}, "assignee": {"id": 859}, "organization": {"id": 927}}}} +} + +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": 73, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 400}, "assignee": {"id": 73}, "organization": {"id": 637}, "project": {"owner": {"id": 749}, "assignee": {"id": 889}, "organization": {"id": 935}}}} +} + +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": 9, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 435}, "assignee": {"id": 9}, "organization": {"id": 637}, "project": {"owner": {"id": 741}, "assignee": {"id": 888}, "organization": {"id": 924}}}} +} + +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": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 456}, "assignee": {"id": 50}, "organization": {"id": 628}, "project": {"owner": {"id": 724}, "assignee": {"id": 877}, "organization": {"id": 965}}}} +} + +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": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 475}, "assignee": {"id": 73}, "organization": {"id": 623}, "project": {"owner": {"id": 753}, "assignee": {"id": 855}, "organization": {"id": 912}}}} +} + +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": 74, "privilege": "none"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 430}, "assignee": {"id": 74}, "organization": {"id": 623}, "project": {"owner": {"id": 734}, "assignee": {"id": 863}, "organization": {"id": 970}}}} +} + +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": 85, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 403}, "assignee": {"id": 589}, "organization": {"id": 608}, "project": {"owner": {"id": 789}, "assignee": {"id": 831}, "organization": {"id": 963}}}} +} + +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": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 460}, "assignee": {"id": 562}, "organization": {"id": 627}, "project": {"owner": {"id": 716}, "assignee": {"id": 808}, "organization": {"id": 957}}}} +} + +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": 61, "privilege": "user"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 443}, "assignee": {"id": 541}, "organization": {"id": 694}, "project": {"owner": {"id": 745}, "assignee": {"id": 837}, "organization": {"id": 924}}}} +} + +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": 63, "privilege": "worker"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 491}, "assignee": {"id": 555}, "organization": {"id": 608}, "project": {"owner": {"id": 718}, "assignee": {"id": 826}, "organization": {"id": 917}}}} +} + +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": 49, "privilege": "none"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 442}, "assignee": {"id": 544}, "organization": {"id": 644}, "project": {"owner": {"id": 786}, "assignee": {"id": 839}, "organization": {"id": 942}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 480}, "assignee": {"id": 565}, "organization": {"id": 121}, "project": {"owner": {"id": 44}, "assignee": {"id": 829}, "organization": {"id": 987}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 473}, "assignee": {"id": 583}, "organization": {"id": 614}, "project": {"owner": {"id": 9}, "assignee": {"id": 865}, "organization": {"id": 925}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 480}, "assignee": {"id": 585}, "organization": {"id": 176}, "project": {"owner": {"id": 23}, "assignee": {"id": 881}, "organization": {"id": 979}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 456}, "assignee": {"id": 561}, "organization": {"id": 643}, "project": {"owner": {"id": 51}, "assignee": {"id": 829}, "organization": {"id": 988}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 466}, "assignee": {"id": 547}, "organization": {"id": 100}, "project": {"owner": {"id": 54}, "assignee": {"id": 863}, "organization": {"id": 963}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 425}, "assignee": {"id": 581}, "organization": {"id": 690}, "project": {"owner": {"id": 17}, "assignee": {"id": 877}, "organization": {"id": 913}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 488}, "assignee": {"id": 572}, "organization": {"id": 171}, "project": {"owner": {"id": 20}, "assignee": {"id": 888}, "organization": {"id": 954}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 407}, "assignee": {"id": 597}, "organization": {"id": 683}, "project": {"owner": {"id": 30}, "assignee": {"id": 825}, "organization": {"id": 960}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 412}, "assignee": {"id": 542}, "organization": {"id": 197}, "project": {"owner": {"id": 40}, "assignee": {"id": 802}, "organization": {"id": 946}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 457}, "assignee": {"id": 522}, "organization": {"id": 657}, "project": {"owner": {"id": 60}, "assignee": {"id": 801}, "organization": {"id": 935}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 402}, "assignee": {"id": 560}, "organization": {"id": 133}, "project": {"owner": {"id": 51}, "assignee": {"id": 807}, "organization": {"id": 932}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 471}, "assignee": {"id": 520}, "organization": {"id": 690}, "project": {"owner": {"id": 40}, "assignee": {"id": 821}, "organization": {"id": 943}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 437}, "assignee": {"id": 558}, "organization": {"id": 127}, "project": {"owner": {"id": 97}, "assignee": {"id": 886}, "organization": {"id": 982}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 407}, "assignee": {"id": 515}, "organization": {"id": 679}, "project": {"owner": {"id": 65}, "assignee": {"id": 840}, "organization": {"id": 935}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 432}, "assignee": {"id": 508}, "organization": {"id": 135}, "project": {"owner": {"id": 40}, "assignee": {"id": 834}, "organization": {"id": 944}}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 401}, "assignee": {"id": 541}, "organization": {"id": 629}, "project": {"owner": {"id": 17}, "assignee": {"id": 895}, "organization": {"id": 945}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 463}, "assignee": {"id": 572}, "organization": {"id": 153}, "project": {"owner": {"id": 38}, "assignee": {"id": 894}, "organization": {"id": 991}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 413}, "assignee": {"id": 564}, "organization": {"id": 640}, "project": {"owner": {"id": 75}, "assignee": {"id": 839}, "organization": {"id": 941}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 431}, "assignee": {"id": 597}, "organization": {"id": 109}, "project": {"owner": {"id": 61}, "assignee": {"id": 829}, "organization": {"id": 928}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 459}, "assignee": {"id": 533}, "organization": {"id": 615}, "project": {"owner": {"id": 53}, "assignee": {"id": 813}, "organization": {"id": 908}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 481}, "assignee": {"id": 570}, "organization": {"id": 179}, "project": {"owner": {"id": 8}, "assignee": {"id": 839}, "organization": {"id": 977}}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 478}, "assignee": {"id": 582}, "organization": {"id": 665}, "project": {"owner": {"id": 98}, "assignee": {"id": 869}, "organization": {"id": 976}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 416}, "assignee": {"id": 529}, "organization": {"id": 146}, "project": {"owner": {"id": 70}, "assignee": {"id": 824}, "organization": {"id": 910}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 465}, "assignee": {"id": 533}, "organization": {"id": 683}, "project": {"owner": {"id": 91}, "assignee": {"id": 856}, "organization": {"id": 922}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 454}, "assignee": {"id": 549}, "organization": {"id": 159}, "project": {"owner": {"id": 96}, "assignee": {"id": 875}, "organization": {"id": 938}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 465}, "assignee": {"id": 557}, "organization": {"id": 695}, "project": {"owner": {"id": 75}, "assignee": {"id": 802}, "organization": {"id": 970}}}} +} + +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": 36, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 488}, "assignee": {"id": 508}, "organization": {"id": 108}, "project": {"owner": {"id": 36}, "assignee": {"id": 851}, "organization": {"id": 911}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 416}, "assignee": {"id": 512}, "organization": {"id": 653}, "project": {"owner": {"id": 19}, "assignee": {"id": 881}, "organization": {"id": 902}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 488}, "assignee": {"id": 581}, "organization": {"id": 197}, "project": {"owner": {"id": 19}, "assignee": {"id": 881}, "organization": {"id": 928}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 408}, "assignee": {"id": 541}, "organization": {"id": 695}, "project": {"owner": {"id": 46}, "assignee": {"id": 808}, "organization": {"id": 958}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 436}, "assignee": {"id": 519}, "organization": {"id": 106}, "project": {"owner": {"id": 75}, "assignee": {"id": 830}, "organization": {"id": 973}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 478}, "assignee": {"id": 550}, "organization": {"id": 685}, "project": {"owner": {"id": 43}, "assignee": {"id": 845}, "organization": {"id": 901}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 448}, "assignee": {"id": 518}, "organization": {"id": 115}, "project": {"owner": {"id": 83}, "assignee": {"id": 888}, "organization": {"id": 949}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 445}, "assignee": {"id": 593}, "organization": {"id": 622}, "project": {"owner": {"id": 61}, "assignee": {"id": 859}, "organization": {"id": 915}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 422}, "assignee": {"id": 532}, "organization": {"id": 156}, "project": {"owner": {"id": 3}, "assignee": {"id": 839}, "organization": {"id": 992}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 464}, "assignee": {"id": 519}, "organization": {"id": 634}, "project": {"owner": {"id": 78}, "assignee": {"id": 892}, "organization": {"id": 951}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 482}, "assignee": {"id": 516}, "organization": {"id": 130}, "project": {"owner": {"id": 95}, "assignee": {"id": 875}, "organization": {"id": 960}}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 444}, "assignee": {"id": 524}, "organization": {"id": 621}, "project": {"owner": {"id": 8}, "assignee": {"id": 859}, "organization": {"id": 905}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 464}, "assignee": {"id": 536}, "organization": {"id": 102}, "project": {"owner": {"id": 82}, "assignee": {"id": 822}, "organization": {"id": 976}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 460}, "assignee": {"id": 518}, "organization": {"id": 648}, "project": {"owner": {"id": 94}, "assignee": {"id": 801}, "organization": {"id": 938}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 409}, "assignee": {"id": 519}, "organization": {"id": 113}, "project": {"owner": {"id": 15}, "assignee": {"id": 852}, "organization": {"id": 988}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 409}, "assignee": {"id": 536}, "organization": {"id": 699}, "project": {"owner": {"id": 6}, "assignee": {"id": 834}, "organization": {"id": 902}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 436}, "assignee": {"id": 586}, "organization": {"id": 145}, "project": {"owner": {"id": 85}, "assignee": {"id": 800}, "organization": {"id": 908}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 404}, "assignee": {"id": 588}, "organization": {"id": 605}, "project": {"owner": {"id": 63}, "assignee": {"id": 853}, "organization": {"id": 942}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 472}, "assignee": {"id": 558}, "organization": {"id": 104}, "project": {"owner": {"id": 84}, "assignee": {"id": 895}, "organization": {"id": 947}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 404}, "assignee": {"id": 565}, "organization": {"id": 656}, "project": {"owner": {"id": 14}, "assignee": {"id": 815}, "organization": {"id": 989}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 446}, "assignee": {"id": 590}, "organization": {"id": 112}, "project": {"owner": {"id": 89}, "assignee": {"id": 895}, "organization": {"id": 926}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 491}, "assignee": {"id": 561}, "organization": {"id": 625}, "project": {"owner": {"id": 52}, "assignee": {"id": 893}, "organization": {"id": 930}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 454}, "assignee": {"id": 524}, "organization": {"id": 164}, "project": {"owner": {"id": 3}, "assignee": {"id": 816}, "organization": {"id": 947}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 427}, "assignee": {"id": 532}, "organization": {"id": 608}, "project": {"owner": {"id": 80}, "assignee": {"id": 852}, "organization": {"id": 987}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 463}, "assignee": {"id": 575}, "organization": {"id": 161}, "project": {"owner": {"id": 786}, "assignee": {"id": 22}, "organization": {"id": 981}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 486}, "assignee": {"id": 548}, "organization": {"id": 690}, "project": {"owner": {"id": 703}, "assignee": {"id": 10}, "organization": {"id": 943}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 466}, "assignee": {"id": 582}, "organization": {"id": 189}, "project": {"owner": {"id": 749}, "assignee": {"id": 66}, "organization": {"id": 984}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 410}, "assignee": {"id": 552}, "organization": {"id": 699}, "project": {"owner": {"id": 764}, "assignee": {"id": 27}, "organization": {"id": 983}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 493}, "assignee": {"id": 541}, "organization": {"id": 148}, "project": {"owner": {"id": 702}, "assignee": {"id": 57}, "organization": {"id": 976}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 490}, "assignee": {"id": 579}, "organization": {"id": 696}, "project": {"owner": {"id": 773}, "assignee": {"id": 74}, "organization": {"id": 904}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 436}, "assignee": {"id": 527}, "organization": {"id": 193}, "project": {"owner": {"id": 744}, "assignee": {"id": 78}, "organization": {"id": 995}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 403}, "assignee": {"id": 579}, "organization": {"id": 618}, "project": {"owner": {"id": 769}, "assignee": {"id": 80}, "organization": {"id": 926}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 475}, "assignee": {"id": 547}, "organization": {"id": 154}, "project": {"owner": {"id": 786}, "assignee": {"id": 18}, "organization": {"id": 998}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 462}, "assignee": {"id": 575}, "organization": {"id": 613}, "project": {"owner": {"id": 768}, "assignee": {"id": 43}, "organization": {"id": 960}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 494}, "assignee": {"id": 597}, "organization": {"id": 179}, "project": {"owner": {"id": 738}, "assignee": {"id": 7}, "organization": {"id": 935}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 462}, "assignee": {"id": 592}, "organization": {"id": 671}, "project": {"owner": {"id": 791}, "assignee": {"id": 89}, "organization": {"id": 983}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 479}, "assignee": {"id": 576}, "organization": {"id": 117}, "project": {"owner": {"id": 730}, "assignee": {"id": 64}, "organization": {"id": 917}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 450}, "assignee": {"id": 517}, "organization": {"id": 693}, "project": {"owner": {"id": 769}, "assignee": {"id": 30}, "organization": {"id": 926}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 430}, "assignee": {"id": 591}, "organization": {"id": 136}, "project": {"owner": {"id": 704}, "assignee": {"id": 54}, "organization": {"id": 902}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 415}, "assignee": {"id": 571}, "organization": {"id": 677}, "project": {"owner": {"id": 724}, "assignee": {"id": 12}, "organization": {"id": 997}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 409}, "assignee": {"id": 593}, "organization": {"id": 178}, "project": {"owner": {"id": 709}, "assignee": {"id": 42}, "organization": {"id": 909}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 455}, "assignee": {"id": 525}, "organization": {"id": 685}, "project": {"owner": {"id": 724}, "assignee": {"id": 39}, "organization": {"id": 909}}}} +} + +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": 64, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 429}, "assignee": {"id": 596}, "organization": {"id": 153}, "project": {"owner": {"id": 785}, "assignee": {"id": 64}, "organization": {"id": 912}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 470}, "assignee": {"id": 550}, "organization": {"id": 639}, "project": {"owner": {"id": 728}, "assignee": {"id": 92}, "organization": {"id": 937}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 449}, "assignee": {"id": 599}, "organization": {"id": 187}, "project": {"owner": {"id": 778}, "assignee": {"id": 99}, "organization": {"id": 902}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 406}, "assignee": {"id": 563}, "organization": {"id": 622}, "project": {"owner": {"id": 720}, "assignee": {"id": 88}, "organization": {"id": 997}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 446}, "assignee": {"id": 513}, "organization": {"id": 113}, "project": {"owner": {"id": 732}, "assignee": {"id": 74}, "organization": {"id": 971}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 499}, "assignee": {"id": 580}, "organization": {"id": 627}, "project": {"owner": {"id": 748}, "assignee": {"id": 23}, "organization": {"id": 900}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 447}, "assignee": {"id": 562}, "organization": {"id": 199}, "project": {"owner": {"id": 736}, "assignee": {"id": 31}, "organization": {"id": 974}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 400}, "assignee": {"id": 551}, "organization": {"id": 635}, "project": {"owner": {"id": 708}, "assignee": {"id": 35}, "organization": {"id": 992}}}} +} + +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": 90, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 403}, "assignee": {"id": 576}, "organization": {"id": 104}, "project": {"owner": {"id": 724}, "assignee": {"id": 90}, "organization": {"id": 921}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 429}, "assignee": {"id": 569}, "organization": {"id": 650}, "project": {"owner": {"id": 730}, "assignee": {"id": 82}, "organization": {"id": 951}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 412}, "assignee": {"id": 511}, "organization": {"id": 126}, "project": {"owner": {"id": 766}, "assignee": {"id": 49}, "organization": {"id": 939}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 405}, "assignee": {"id": 535}, "organization": {"id": 611}, "project": {"owner": {"id": 723}, "assignee": {"id": 60}, "organization": {"id": 968}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 417}, "assignee": {"id": 558}, "organization": {"id": 180}, "project": {"owner": {"id": 762}, "assignee": {"id": 0}, "organization": {"id": 958}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 462}, "assignee": {"id": 522}, "organization": {"id": 605}, "project": {"owner": {"id": 750}, "assignee": {"id": 16}, "organization": {"id": 965}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 434}, "assignee": {"id": 552}, "organization": {"id": 154}, "project": {"owner": {"id": 708}, "assignee": {"id": 21}, "organization": {"id": 972}}}} +} + +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": 189, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 484}, "assignee": {"id": 547}, "organization": {"id": 629}, "project": {"owner": {"id": 745}, "assignee": {"id": 79}, "organization": {"id": 978}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 476}, "assignee": {"id": 579}, "organization": {"id": 109}, "project": {"owner": {"id": 767}, "assignee": {"id": 94}, "organization": {"id": 922}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 438}, "assignee": {"id": 528}, "organization": {"id": 659}, "project": {"owner": {"id": 708}, "assignee": {"id": 37}, "organization": {"id": 921}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 496}, "assignee": {"id": 524}, "organization": {"id": 187}, "project": {"owner": {"id": 784}, "assignee": {"id": 64}, "organization": {"id": 968}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 466}, "assignee": {"id": 561}, "organization": {"id": 691}, "project": {"owner": {"id": 713}, "assignee": {"id": 13}, "organization": {"id": 908}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 421}, "assignee": {"id": 509}, "organization": {"id": 114}, "project": {"owner": {"id": 709}, "assignee": {"id": 28}, "organization": {"id": 947}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 465}, "assignee": {"id": 589}, "organization": {"id": 638}, "project": {"owner": {"id": 711}, "assignee": {"id": 88}, "organization": {"id": 997}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 495}, "assignee": {"id": 547}, "organization": {"id": 139}, "project": {"owner": {"id": 746}, "assignee": {"id": 27}, "organization": {"id": 942}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 409}, "assignee": {"id": 506}, "organization": {"id": 649}, "project": {"owner": {"id": 703}, "assignee": {"id": 5}, "organization": {"id": 949}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 478}, "assignee": {"id": 554}, "organization": {"id": 184}, "project": {"owner": {"id": 752}, "assignee": {"id": 89}, "organization": {"id": 903}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 445}, "assignee": {"id": 562}, "organization": {"id": 645}, "project": {"owner": {"id": 767}, "assignee": {"id": 85}, "organization": {"id": 948}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 478}, "assignee": {"id": 568}, "organization": {"id": 113}, "project": {"owner": {"id": 712}, "assignee": {"id": 46}, "organization": {"id": 906}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 467}, "assignee": {"id": 534}, "organization": {"id": 654}, "project": {"owner": {"id": 756}, "assignee": {"id": 98}, "organization": {"id": 964}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 417}, "assignee": {"id": 580}, "organization": {"id": 163}, "project": {"owner": {"id": 721}, "assignee": {"id": 27}, "organization": {"id": 934}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 476}, "assignee": {"id": 556}, "organization": {"id": 622}, "project": {"owner": {"id": 757}, "assignee": {"id": 50}, "organization": {"id": 904}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 497}, "assignee": {"id": 509}, "organization": {"id": 127}, "project": {"owner": {"id": 700}, "assignee": {"id": 48}, "organization": {"id": 974}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 425}, "assignee": {"id": 559}, "organization": {"id": 663}, "project": {"owner": {"id": 756}, "assignee": {"id": 52}, "organization": {"id": 908}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 63}, "assignee": {"id": 595}, "organization": {"id": 164}, "project": {"owner": {"id": 781}, "assignee": {"id": 866}, "organization": {"id": 958}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 47}, "assignee": {"id": 537}, "organization": {"id": 611}, "project": {"owner": {"id": 701}, "assignee": {"id": 871}, "organization": {"id": 986}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 65}, "assignee": {"id": 594}, "organization": {"id": 165}, "project": {"owner": {"id": 730}, "assignee": {"id": 823}, "organization": {"id": 999}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 74}, "assignee": {"id": 502}, "organization": {"id": 698}, "project": {"owner": {"id": 763}, "assignee": {"id": 833}, "organization": {"id": 995}}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 82}, "assignee": {"id": 514}, "organization": {"id": 164}, "project": {"owner": {"id": 703}, "assignee": {"id": 898}, "organization": {"id": 967}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 40}, "assignee": {"id": 508}, "organization": {"id": 641}, "project": {"owner": {"id": 744}, "assignee": {"id": 835}, "organization": {"id": 955}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 4}, "assignee": {"id": 500}, "organization": {"id": 175}, "project": {"owner": {"id": 703}, "assignee": {"id": 841}, "organization": {"id": 943}}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 73}, "assignee": {"id": 599}, "organization": {"id": 658}, "project": {"owner": {"id": 714}, "assignee": {"id": 888}, "organization": {"id": 946}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 86}, "assignee": {"id": 543}, "organization": {"id": 180}, "project": {"owner": {"id": 799}, "assignee": {"id": 855}, "organization": {"id": 932}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 17}, "assignee": {"id": 534}, "organization": {"id": 682}, "project": {"owner": {"id": 702}, "assignee": {"id": 822}, "organization": {"id": 915}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 97}, "assignee": {"id": 522}, "organization": {"id": 100}, "project": {"owner": {"id": 770}, "assignee": {"id": 816}, "organization": {"id": 958}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 51}, "assignee": {"id": 541}, "organization": {"id": 618}, "project": {"owner": {"id": 748}, "assignee": {"id": 865}, "organization": {"id": 931}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 10}, "assignee": {"id": 549}, "organization": {"id": 132}, "project": {"owner": {"id": 740}, "assignee": {"id": 866}, "organization": {"id": 987}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 59}, "assignee": {"id": 535}, "organization": {"id": 616}, "project": {"owner": {"id": 708}, "assignee": {"id": 819}, "organization": {"id": 961}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 50}, "assignee": {"id": 502}, "organization": {"id": 169}, "project": {"owner": {"id": 710}, "assignee": {"id": 884}, "organization": {"id": 990}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 71}, "assignee": {"id": 513}, "organization": {"id": 608}, "project": {"owner": {"id": 771}, "assignee": {"id": 829}, "organization": {"id": 962}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 4}, "assignee": {"id": 551}, "organization": {"id": 194}, "project": {"owner": {"id": 764}, "assignee": {"id": 815}, "organization": {"id": 923}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 46}, "assignee": {"id": 574}, "organization": {"id": 622}, "project": {"owner": {"id": 777}, "assignee": {"id": 895}, "organization": {"id": 971}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 73}, "assignee": {"id": 509}, "organization": {"id": 125}, "project": {"owner": {"id": 797}, "assignee": {"id": 805}, "organization": {"id": 918}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 71}, "assignee": {"id": 535}, "organization": {"id": 697}, "project": {"owner": {"id": 720}, "assignee": {"id": 863}, "organization": {"id": 987}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 54}, "assignee": {"id": 573}, "organization": {"id": 196}, "project": {"owner": {"id": 745}, "assignee": {"id": 838}, "organization": {"id": 928}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 91}, "assignee": {"id": 596}, "organization": {"id": 652}, "project": {"owner": {"id": 715}, "assignee": {"id": 862}, "organization": {"id": 950}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 88}, "assignee": {"id": 551}, "organization": {"id": 154}, "project": {"owner": {"id": 748}, "assignee": {"id": 834}, "organization": {"id": 970}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 5}, "assignee": {"id": 562}, "organization": {"id": 682}, "project": {"owner": {"id": 751}, "assignee": {"id": 892}, "organization": {"id": 984}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 44}, "assignee": {"id": 562}, "organization": {"id": 108}, "project": {"owner": {"id": 727}, "assignee": {"id": 886}, "organization": {"id": 987}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 25}, "assignee": {"id": 599}, "organization": {"id": 657}, "project": {"owner": {"id": 722}, "assignee": {"id": 837}, "organization": {"id": 986}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 17}, "assignee": {"id": 554}, "organization": {"id": 186}, "project": {"owner": {"id": 737}, "assignee": {"id": 826}, "organization": {"id": 935}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 21}, "assignee": {"id": 596}, "organization": {"id": 639}, "project": {"owner": {"id": 752}, "assignee": {"id": 822}, "organization": {"id": 943}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 49}, "assignee": {"id": 544}, "organization": {"id": 173}, "project": {"owner": {"id": 765}, "assignee": {"id": 822}, "organization": {"id": 957}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 15}, "assignee": {"id": 596}, "organization": {"id": 643}, "project": {"owner": {"id": 712}, "assignee": {"id": 846}, "organization": {"id": 987}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 56}, "assignee": {"id": 545}, "organization": {"id": 195}, "project": {"owner": {"id": 718}, "assignee": {"id": 886}, "organization": {"id": 995}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 41}, "assignee": {"id": 514}, "organization": {"id": 635}, "project": {"owner": {"id": 795}, "assignee": {"id": 857}, "organization": {"id": 944}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 42}, "assignee": {"id": 516}, "organization": {"id": 119}, "project": {"owner": {"id": 702}, "assignee": {"id": 804}, "organization": {"id": 993}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 60}, "assignee": {"id": 549}, "organization": {"id": 691}, "project": {"owner": {"id": 742}, "assignee": {"id": 809}, "organization": {"id": 976}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 27}, "assignee": {"id": 576}, "organization": {"id": 153}, "project": {"owner": {"id": 719}, "assignee": {"id": 873}, "organization": {"id": 973}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 38}, "assignee": {"id": 529}, "organization": {"id": 660}, "project": {"owner": {"id": 786}, "assignee": {"id": 829}, "organization": {"id": 942}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 85}, "assignee": {"id": 586}, "organization": {"id": 181}, "project": {"owner": {"id": 787}, "assignee": {"id": 861}, "organization": {"id": 958}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 95}, "assignee": {"id": 579}, "organization": {"id": 603}, "project": {"owner": {"id": 734}, "assignee": {"id": 887}, "organization": {"id": 902}}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 14}, "assignee": {"id": 570}, "organization": {"id": 186}, "project": {"owner": {"id": 755}, "assignee": {"id": 879}, "organization": {"id": 917}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 79}, "assignee": {"id": 501}, "organization": {"id": 677}, "project": {"owner": {"id": 782}, "assignee": {"id": 800}, "organization": {"id": 990}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 69}, "assignee": {"id": 516}, "organization": {"id": 184}, "project": {"owner": {"id": 791}, "assignee": {"id": 814}, "organization": {"id": 967}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 72}, "assignee": {"id": 565}, "organization": {"id": 635}, "project": {"owner": {"id": 784}, "assignee": {"id": 829}, "organization": {"id": 996}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 29}, "assignee": {"id": 503}, "organization": {"id": 127}, "project": {"owner": {"id": 742}, "assignee": {"id": 811}, "organization": {"id": 988}}}} +} + +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": 46, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 46}, "assignee": {"id": 510}, "organization": {"id": 652}, "project": {"owner": {"id": 775}, "assignee": {"id": 892}, "organization": {"id": 994}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 5}, "assignee": {"id": 586}, "organization": {"id": 113}, "project": {"owner": {"id": 719}, "assignee": {"id": 840}, "organization": {"id": 925}}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 66}, "assignee": {"id": 563}, "organization": {"id": 686}, "project": {"owner": {"id": 718}, "assignee": {"id": 843}, "organization": {"id": 951}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 49}, "assignee": {"id": 528}, "organization": {"id": 163}, "project": {"owner": {"id": 706}, "assignee": {"id": 853}, "organization": {"id": 977}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 18}, "assignee": {"id": 555}, "organization": {"id": 669}, "project": {"owner": {"id": 770}, "assignee": {"id": 817}, "organization": {"id": 994}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 0}, "assignee": {"id": 512}, "organization": {"id": 120}, "project": {"owner": {"id": 764}, "assignee": {"id": 881}, "organization": {"id": 964}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 57}, "assignee": {"id": 567}, "organization": {"id": 600}, "project": {"owner": {"id": 747}, "assignee": {"id": 897}, "organization": {"id": 964}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 435}, "assignee": {"id": 22}, "organization": {"id": 165}, "project": {"owner": {"id": 754}, "assignee": {"id": 831}, "organization": {"id": 926}}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 424}, "assignee": {"id": 73}, "organization": {"id": 629}, "project": {"owner": {"id": 790}, "assignee": {"id": 834}, "organization": {"id": 945}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 461}, "assignee": {"id": 38}, "organization": {"id": 163}, "project": {"owner": {"id": 719}, "assignee": {"id": 861}, "organization": {"id": 976}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 407}, "assignee": {"id": 85}, "organization": {"id": 673}, "project": {"owner": {"id": 711}, "assignee": {"id": 826}, "organization": {"id": 988}}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 450}, "assignee": {"id": 83}, "organization": {"id": 131}, "project": {"owner": {"id": 750}, "assignee": {"id": 807}, "organization": {"id": 992}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 432}, "assignee": {"id": 9}, "organization": {"id": 622}, "project": {"owner": {"id": 791}, "assignee": {"id": 878}, "organization": {"id": 953}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 493}, "assignee": {"id": 47}, "organization": {"id": 195}, "project": {"owner": {"id": 792}, "assignee": {"id": 897}, "organization": {"id": 974}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 469}, "assignee": {"id": 84}, "organization": {"id": 667}, "project": {"owner": {"id": 766}, "assignee": {"id": 828}, "organization": {"id": 975}}}} +} + +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": 27, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 466}, "assignee": {"id": 27}, "organization": {"id": 189}, "project": {"owner": {"id": 733}, "assignee": {"id": 881}, "organization": {"id": 947}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 491}, "assignee": {"id": 96}, "organization": {"id": 637}, "project": {"owner": {"id": 783}, "assignee": {"id": 869}, "organization": {"id": 926}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 499}, "assignee": {"id": 45}, "organization": {"id": 191}, "project": {"owner": {"id": 779}, "assignee": {"id": 880}, "organization": {"id": 921}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 447}, "assignee": {"id": 80}, "organization": {"id": 616}, "project": {"owner": {"id": 788}, "assignee": {"id": 865}, "organization": {"id": 941}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 412}, "assignee": {"id": 4}, "organization": {"id": 143}, "project": {"owner": {"id": 786}, "assignee": {"id": 807}, "organization": {"id": 964}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 473}, "assignee": {"id": 35}, "organization": {"id": 656}, "project": {"owner": {"id": 741}, "assignee": {"id": 890}, "organization": {"id": 995}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 409}, "assignee": {"id": 3}, "organization": {"id": 108}, "project": {"owner": {"id": 753}, "assignee": {"id": 867}, "organization": {"id": 908}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 465}, "assignee": {"id": 70}, "organization": {"id": 658}, "project": {"owner": {"id": 764}, "assignee": {"id": 810}, "organization": {"id": 918}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 420}, "assignee": {"id": 98}, "organization": {"id": 183}, "project": {"owner": {"id": 767}, "assignee": {"id": 839}, "organization": {"id": 919}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 419}, "assignee": {"id": 40}, "organization": {"id": 637}, "project": {"owner": {"id": 716}, "assignee": {"id": 873}, "organization": {"id": 919}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 450}, "assignee": {"id": 45}, "organization": {"id": 163}, "project": {"owner": {"id": 700}, "assignee": {"id": 808}, "organization": {"id": 954}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 489}, "assignee": {"id": 42}, "organization": {"id": 668}, "project": {"owner": {"id": 746}, "assignee": {"id": 881}, "organization": {"id": 948}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 471}, "assignee": {"id": 91}, "organization": {"id": 147}, "project": {"owner": {"id": 715}, "assignee": {"id": 836}, "organization": {"id": 966}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 465}, "assignee": {"id": 43}, "organization": {"id": 605}, "project": {"owner": {"id": 797}, "assignee": {"id": 883}, "organization": {"id": 998}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 460}, "assignee": {"id": 26}, "organization": {"id": 182}, "project": {"owner": {"id": 709}, "assignee": {"id": 802}, "organization": {"id": 972}}}} +} + +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": 68, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 472}, "assignee": {"id": 68}, "organization": {"id": 620}, "project": {"owner": {"id": 779}, "assignee": {"id": 835}, "organization": {"id": 929}}}} +} + +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": 134, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 466}, "assignee": {"id": 4}, "organization": {"id": 134}, "project": {"owner": {"id": 784}, "assignee": {"id": 825}, "organization": {"id": 935}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 442}, "assignee": {"id": 16}, "organization": {"id": 600}, "project": {"owner": {"id": 770}, "assignee": {"id": 866}, "organization": {"id": 909}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 435}, "assignee": {"id": 99}, "organization": {"id": 198}, "project": {"owner": {"id": 779}, "assignee": {"id": 862}, "organization": {"id": 981}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 471}, "assignee": {"id": 30}, "organization": {"id": 604}, "project": {"owner": {"id": 754}, "assignee": {"id": 802}, "organization": {"id": 956}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 459}, "assignee": {"id": 19}, "organization": {"id": 154}, "project": {"owner": {"id": 713}, "assignee": {"id": 869}, "organization": {"id": 967}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 476}, "assignee": {"id": 80}, "organization": {"id": 692}, "project": {"owner": {"id": 764}, "assignee": {"id": 873}, "organization": {"id": 986}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 437}, "assignee": {"id": 27}, "organization": {"id": 155}, "project": {"owner": {"id": 753}, "assignee": {"id": 859}, "organization": {"id": 920}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 443}, "assignee": {"id": 99}, "organization": {"id": 682}, "project": {"owner": {"id": 725}, "assignee": {"id": 807}, "organization": {"id": 979}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 402}, "assignee": {"id": 89}, "organization": {"id": 181}, "project": {"owner": {"id": 775}, "assignee": {"id": 899}, "organization": {"id": 975}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 459}, "assignee": {"id": 67}, "organization": {"id": 602}, "project": {"owner": {"id": 719}, "assignee": {"id": 813}, "organization": {"id": 974}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 456}, "assignee": {"id": 44}, "organization": {"id": 143}, "project": {"owner": {"id": 784}, "assignee": {"id": 851}, "organization": {"id": 940}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 456}, "assignee": {"id": 99}, "organization": {"id": 623}, "project": {"owner": {"id": 732}, "assignee": {"id": 834}, "organization": {"id": 968}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 444}, "assignee": {"id": 5}, "organization": {"id": 171}, "project": {"owner": {"id": 714}, "assignee": {"id": 884}, "organization": {"id": 998}}}} +} + +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": 55, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 426}, "assignee": {"id": 55}, "organization": {"id": 611}, "project": {"owner": {"id": 706}, "assignee": {"id": 871}, "organization": {"id": 910}}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 488}, "assignee": {"id": 76}, "organization": {"id": 189}, "project": {"owner": {"id": 705}, "assignee": {"id": 803}, "organization": {"id": 940}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 473}, "assignee": {"id": 39}, "organization": {"id": 623}, "project": {"owner": {"id": 737}, "assignee": {"id": 805}, "organization": {"id": 920}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 489}, "assignee": {"id": 34}, "organization": {"id": 176}, "project": {"owner": {"id": 799}, "assignee": {"id": 866}, "organization": {"id": 994}}}} +} + +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": 65, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 443}, "assignee": {"id": 65}, "organization": {"id": 691}, "project": {"owner": {"id": 700}, "assignee": {"id": 898}, "organization": {"id": 996}}}} +} + +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": 8, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 404}, "assignee": {"id": 8}, "organization": {"id": 182}, "project": {"owner": {"id": 791}, "assignee": {"id": 896}, "organization": {"id": 936}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 459}, "assignee": {"id": 78}, "organization": {"id": 647}, "project": {"owner": {"id": 795}, "assignee": {"id": 887}, "organization": {"id": 950}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 471}, "assignee": {"id": 63}, "organization": {"id": 123}, "project": {"owner": {"id": 749}, "assignee": {"id": 835}, "organization": {"id": 982}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 429}, "assignee": {"id": 7}, "organization": {"id": 653}, "project": {"owner": {"id": 747}, "assignee": {"id": 886}, "organization": {"id": 935}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 485}, "assignee": {"id": 27}, "organization": {"id": 147}, "project": {"owner": {"id": 715}, "assignee": {"id": 876}, "organization": {"id": 927}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 483}, "assignee": {"id": 47}, "organization": {"id": 688}, "project": {"owner": {"id": 787}, "assignee": {"id": 881}, "organization": {"id": 969}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 457}, "assignee": {"id": 13}, "organization": {"id": 170}, "project": {"owner": {"id": 749}, "assignee": {"id": 861}, "organization": {"id": 988}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 438}, "assignee": {"id": 84}, "organization": {"id": 672}, "project": {"owner": {"id": 753}, "assignee": {"id": 831}, "organization": {"id": 927}}}} +} + +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": 83, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 445}, "assignee": {"id": 542}, "organization": {"id": 139}, "project": {"owner": {"id": 705}, "assignee": {"id": 860}, "organization": {"id": 909}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 463}, "assignee": {"id": 572}, "organization": {"id": 623}, "project": {"owner": {"id": 781}, "assignee": {"id": 860}, "organization": {"id": 960}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 416}, "assignee": {"id": 505}, "organization": {"id": 194}, "project": {"owner": {"id": 736}, "assignee": {"id": 837}, "organization": {"id": 982}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 427}, "assignee": {"id": 588}, "organization": {"id": 697}, "project": {"owner": {"id": 717}, "assignee": {"id": 823}, "organization": {"id": 942}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 484}, "assignee": {"id": 545}, "organization": {"id": 160}, "project": {"owner": {"id": 725}, "assignee": {"id": 871}, "organization": {"id": 970}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 440}, "assignee": {"id": 513}, "organization": {"id": 623}, "project": {"owner": {"id": 744}, "assignee": {"id": 848}, "organization": {"id": 996}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 431}, "assignee": {"id": 599}, "organization": {"id": 144}, "project": {"owner": {"id": 792}, "assignee": {"id": 849}, "organization": {"id": 971}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 410}, "assignee": {"id": 564}, "organization": {"id": 699}, "project": {"owner": {"id": 757}, "assignee": {"id": 872}, "organization": {"id": 981}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 427}, "assignee": {"id": 536}, "organization": {"id": 118}, "project": {"owner": {"id": 729}, "assignee": {"id": 877}, "organization": {"id": 971}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 409}, "assignee": {"id": 562}, "organization": {"id": 606}, "project": {"owner": {"id": 731}, "assignee": {"id": 885}, "organization": {"id": 942}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 439}, "assignee": {"id": 584}, "organization": {"id": 181}, "project": {"owner": {"id": 758}, "assignee": {"id": 855}, "organization": {"id": 953}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 400}, "assignee": {"id": 511}, "organization": {"id": 694}, "project": {"owner": {"id": 743}, "assignee": {"id": 872}, "organization": {"id": 963}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 450}, "assignee": {"id": 567}, "organization": {"id": 145}, "project": {"owner": {"id": 703}, "assignee": {"id": 862}, "organization": {"id": 940}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 440}, "assignee": {"id": 583}, "organization": {"id": 630}, "project": {"owner": {"id": 707}, "assignee": {"id": 833}, "organization": {"id": 955}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 471}, "assignee": {"id": 576}, "organization": {"id": 151}, "project": {"owner": {"id": 701}, "assignee": {"id": 852}, "organization": {"id": 946}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 475}, "assignee": {"id": 542}, "organization": {"id": 640}, "project": {"owner": {"id": 757}, "assignee": {"id": 800}, "organization": {"id": 978}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 456}, "assignee": {"id": 596}, "organization": {"id": 100}, "project": {"owner": {"id": 733}, "assignee": {"id": 862}, "organization": {"id": 900}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 423}, "assignee": {"id": 592}, "organization": {"id": 604}, "project": {"owner": {"id": 778}, "assignee": {"id": 821}, "organization": {"id": 987}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 453}, "assignee": {"id": 532}, "organization": {"id": 166}, "project": {"owner": {"id": 765}, "assignee": {"id": 821}, "organization": {"id": 982}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 445}, "assignee": {"id": 524}, "organization": {"id": 699}, "project": {"owner": {"id": 794}, "assignee": {"id": 826}, "organization": {"id": 928}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 454}, "assignee": {"id": 512}, "organization": {"id": 173}, "project": {"owner": {"id": 740}, "assignee": {"id": 821}, "organization": {"id": 935}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 497}, "assignee": {"id": 571}, "organization": {"id": 638}, "project": {"owner": {"id": 729}, "assignee": {"id": 888}, "organization": {"id": 944}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 422}, "assignee": {"id": 574}, "organization": {"id": 158}, "project": {"owner": {"id": 762}, "assignee": {"id": 833}, "organization": {"id": 961}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 424}, "assignee": {"id": 581}, "organization": {"id": 625}, "project": {"owner": {"id": 790}, "assignee": {"id": 896}, "organization": {"id": 929}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 462}, "assignee": {"id": 517}, "organization": {"id": 167}, "project": {"owner": {"id": 763}, "assignee": {"id": 890}, "organization": {"id": 958}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 410}, "assignee": {"id": 555}, "organization": {"id": 698}, "project": {"owner": {"id": 787}, "assignee": {"id": 834}, "organization": {"id": 971}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 451}, "assignee": {"id": 579}, "organization": {"id": 145}, "project": {"owner": {"id": 758}, "assignee": {"id": 876}, "organization": {"id": 979}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 420}, "assignee": {"id": 548}, "organization": {"id": 678}, "project": {"owner": {"id": 797}, "assignee": {"id": 845}, "organization": {"id": 911}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 495}, "assignee": {"id": 542}, "organization": {"id": 151}, "project": {"owner": {"id": 743}, "assignee": {"id": 885}, "organization": {"id": 932}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 457}, "assignee": {"id": 565}, "organization": {"id": 611}, "project": {"owner": {"id": 747}, "assignee": {"id": 839}, "organization": {"id": 955}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 406}, "assignee": {"id": 508}, "organization": {"id": 139}, "project": {"owner": {"id": 741}, "assignee": {"id": 803}, "organization": {"id": 951}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 462}, "assignee": {"id": 587}, "organization": {"id": 630}, "project": {"owner": {"id": 785}, "assignee": {"id": 816}, "organization": {"id": 933}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 479}, "assignee": {"id": 537}, "organization": {"id": 101}, "project": {"owner": {"id": 785}, "assignee": {"id": 876}, "organization": {"id": 991}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 477}, "assignee": {"id": 511}, "organization": {"id": 673}, "project": {"owner": {"id": 719}, "assignee": {"id": 814}, "organization": {"id": 930}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 466}, "assignee": {"id": 553}, "organization": {"id": 148}, "project": {"owner": {"id": 713}, "assignee": {"id": 821}, "organization": {"id": 956}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 428}, "assignee": {"id": 523}, "organization": {"id": 651}, "project": {"owner": {"id": 737}, "assignee": {"id": 816}, "organization": {"id": 973}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 402}, "assignee": {"id": 566}, "organization": {"id": 147}, "project": {"owner": {"id": 715}, "assignee": {"id": 889}, "organization": {"id": 931}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 424}, "assignee": {"id": 521}, "organization": {"id": 607}, "project": {"owner": {"id": 789}, "assignee": {"id": 848}, "organization": {"id": 982}}}} +} + +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": 77, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 450}, "assignee": {"id": 570}, "organization": {"id": 125}, "project": {"owner": {"id": 774}, "assignee": {"id": 847}, "organization": {"id": 937}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 479}, "assignee": {"id": 501}, "organization": {"id": 693}, "project": {"owner": {"id": 761}, "assignee": {"id": 834}, "organization": {"id": 973}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 414}, "assignee": {"id": 592}, "organization": {"id": 179}, "project": {"owner": {"id": 742}, "assignee": {"id": 814}, "organization": {"id": 902}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 463}, "assignee": {"id": 540}, "organization": {"id": 632}, "project": {"owner": {"id": 720}, "assignee": {"id": 894}, "organization": {"id": 900}}}} +} + +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": 41, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 458}, "assignee": {"id": 520}, "organization": {"id": 151}, "project": {"owner": {"id": 735}, "assignee": {"id": 858}, "organization": {"id": 997}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 418}, "assignee": {"id": 511}, "organization": {"id": 653}, "project": {"owner": {"id": 712}, "assignee": {"id": 823}, "organization": {"id": 915}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 419}, "assignee": {"id": 525}, "organization": {"id": 134}, "project": {"owner": {"id": 791}, "assignee": {"id": 805}, "organization": {"id": 913}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 465}, "assignee": {"id": 591}, "organization": {"id": 614}, "project": {"owner": {"id": 710}, "assignee": {"id": 877}, "organization": {"id": 901}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 409}, "assignee": {"id": 568}, "organization": {"id": 108}, "project": {"owner": {"id": 792}, "assignee": {"id": 854}, "organization": {"id": 936}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 492}, "assignee": {"id": 573}, "organization": {"id": 664}, "project": {"owner": {"id": 784}, "assignee": {"id": 834}, "organization": {"id": 967}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 407}, "assignee": {"id": 519}, "organization": {"id": 169}, "project": {"owner": {"id": 720}, "assignee": {"id": 876}, "organization": {"id": 984}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 499}, "assignee": {"id": 576}, "organization": {"id": 663}, "project": {"owner": {"id": 707}, "assignee": {"id": 883}, "organization": {"id": 947}}}} +} + +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": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 466}, "assignee": {"id": 598}, "organization": {"id": 625}, "project": {"owner": {"id": 66}, "assignee": {"id": 812}, "organization": {"id": 961}}}} +} + +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": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 493}, "assignee": {"id": 573}, "organization": {"id": 682}, "project": {"owner": {"id": 3}, "assignee": {"id": 873}, "organization": {"id": 931}}}} +} + +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": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 472}, "assignee": {"id": 522}, "organization": {"id": 658}, "project": {"owner": {"id": 29}, "assignee": {"id": 874}, "organization": {"id": 978}}}} +} + +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": 36, "privilege": "worker"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 425}, "assignee": {"id": 532}, "organization": {"id": 665}, "project": {"owner": {"id": 36}, "assignee": {"id": 898}, "organization": {"id": 954}}}} +} + +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": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 479}, "assignee": {"id": 597}, "organization": {"id": 694}, "project": {"owner": {"id": 80}, "assignee": {"id": 806}, "organization": {"id": 980}}}} +} + +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": 11, "privilege": "admin"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 416}, "assignee": {"id": 560}, "organization": {"id": 688}, "project": {"owner": {"id": 731}, "assignee": {"id": 11}, "organization": {"id": 962}}}} +} + +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": 38, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 498}, "assignee": {"id": 591}, "organization": {"id": 634}, "project": {"owner": {"id": 736}, "assignee": {"id": 38}, "organization": {"id": 923}}}} +} + +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": 82, "privilege": "user"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 426}, "assignee": {"id": 501}, "organization": {"id": 695}, "project": {"owner": {"id": 756}, "assignee": {"id": 82}, "organization": {"id": 917}}}} +} + +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": 37, "privilege": "worker"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 440}, "assignee": {"id": 587}, "organization": {"id": 656}, "project": {"owner": {"id": 795}, "assignee": {"id": 37}, "organization": {"id": 990}}}} +} + +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": 24, "privilege": "none"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 408}, "assignee": {"id": 549}, "organization": {"id": 675}, "project": {"owner": {"id": 711}, "assignee": {"id": 24}, "organization": {"id": 911}}}} +} + +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": 14, "privilege": "admin"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 14}, "assignee": {"id": 500}, "organization": {"id": 660}, "project": {"owner": {"id": 749}, "assignee": {"id": 884}, "organization": {"id": 975}}}} +} + +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": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 79}, "assignee": {"id": 522}, "organization": {"id": 626}, "project": {"owner": {"id": 778}, "assignee": {"id": 830}, "organization": {"id": 928}}}} +} + +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": 58, "privilege": "user"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 58}, "assignee": {"id": 558}, "organization": {"id": 692}, "project": {"owner": {"id": 763}, "assignee": {"id": 809}, "organization": {"id": 971}}}} +} + +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": 36, "privilege": "worker"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 36}, "assignee": {"id": 530}, "organization": {"id": 645}, "project": {"owner": {"id": 731}, "assignee": {"id": 836}, "organization": {"id": 974}}}} +} + +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": 23, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 23}, "assignee": {"id": 506}, "organization": {"id": 654}, "project": {"owner": {"id": 799}, "assignee": {"id": 897}, "organization": {"id": 906}}}} +} + +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": 62, "privilege": "admin"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 408}, "assignee": {"id": 62}, "organization": {"id": 693}, "project": {"owner": {"id": 737}, "assignee": {"id": 831}, "organization": {"id": 913}}}} +} + +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": 25, "privilege": "business"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 434}, "assignee": {"id": 25}, "organization": {"id": 675}, "project": {"owner": {"id": 758}, "assignee": {"id": 845}, "organization": {"id": 911}}}} +} + +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": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 456}, "assignee": {"id": 17}, "organization": {"id": 601}, "project": {"owner": {"id": 715}, "assignee": {"id": 823}, "organization": {"id": 989}}}} +} + +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": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 437}, "assignee": {"id": 92}, "organization": {"id": 606}, "project": {"owner": {"id": 773}, "assignee": {"id": 832}, "organization": {"id": 961}}}} +} + +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": 91, "privilege": "none"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 474}, "assignee": {"id": 91}, "organization": {"id": 664}, "project": {"owner": {"id": 795}, "assignee": {"id": 885}, "organization": {"id": 971}}}} +} + +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": 80, "privilege": "admin"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 481}, "assignee": {"id": 545}, "organization": {"id": 606}, "project": {"owner": {"id": 786}, "assignee": {"id": 802}, "organization": {"id": 913}}}} +} + +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": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 479}, "assignee": {"id": 581}, "organization": {"id": 609}, "project": {"owner": {"id": 746}, "assignee": {"id": 840}, "organization": {"id": 997}}}} +} + +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": 87, "privilege": "user"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 496}, "assignee": {"id": 577}, "organization": {"id": 653}, "project": {"owner": {"id": 719}, "assignee": {"id": 883}, "organization": {"id": 989}}}} +} + +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": 48, "privilege": "worker"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 452}, "assignee": {"id": 545}, "organization": {"id": 638}, "project": {"owner": {"id": 779}, "assignee": {"id": 858}, "organization": {"id": 991}}}} +} + +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": 6, "privilege": "none"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 488}, "assignee": {"id": 509}, "organization": {"id": 609}, "project": {"owner": {"id": 758}, "assignee": {"id": 839}, "organization": {"id": 952}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 417}, "assignee": {"id": 554}, "organization": {"id": 188}, "project": {"owner": {"id": 86}, "assignee": {"id": 866}, "organization": {"id": 926}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 422}, "assignee": {"id": 591}, "organization": {"id": 633}, "project": {"owner": {"id": 57}, "assignee": {"id": 850}, "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": 10, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 476}, "assignee": {"id": 561}, "organization": {"id": 123}, "project": {"owner": {"id": 10}, "assignee": {"id": 866}, "organization": {"id": 925}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 439}, "assignee": {"id": 538}, "organization": {"id": 684}, "project": {"owner": {"id": 37}, "assignee": {"id": 888}, "organization": {"id": 972}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 490}, "assignee": {"id": 542}, "organization": {"id": 136}, "project": {"owner": {"id": 32}, "assignee": {"id": 865}, "organization": {"id": 931}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 482}, "assignee": {"id": 546}, "organization": {"id": 601}, "project": {"owner": {"id": 54}, "assignee": {"id": 853}, "organization": {"id": 907}}}} +} + +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": 68, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 465}, "assignee": {"id": 537}, "organization": {"id": 106}, "project": {"owner": {"id": 68}, "assignee": {"id": 850}, "organization": {"id": 909}}}} +} + +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": 130, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 412}, "assignee": {"id": 568}, "organization": {"id": 630}, "project": {"owner": {"id": 39}, "assignee": {"id": 842}, "organization": {"id": 928}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 494}, "assignee": {"id": 514}, "organization": {"id": 196}, "project": {"owner": {"id": 65}, "assignee": {"id": 896}, "organization": {"id": 979}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 404}, "assignee": {"id": 596}, "organization": {"id": 693}, "project": {"owner": {"id": 85}, "assignee": {"id": 811}, "organization": {"id": 941}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 419}, "assignee": {"id": 549}, "organization": {"id": 116}, "project": {"owner": {"id": 9}, "assignee": {"id": 833}, "organization": {"id": 904}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 450}, "assignee": {"id": 543}, "organization": {"id": 666}, "project": {"owner": {"id": 31}, "assignee": {"id": 843}, "organization": {"id": 906}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 427}, "assignee": {"id": 583}, "organization": {"id": 107}, "project": {"owner": {"id": 23}, "assignee": {"id": 888}, "organization": {"id": 972}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 440}, "assignee": {"id": 573}, "organization": {"id": 615}, "project": {"owner": {"id": 13}, "assignee": {"id": 804}, "organization": {"id": 902}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 485}, "assignee": {"id": 552}, "organization": {"id": 153}, "project": {"owner": {"id": 47}, "assignee": {"id": 892}, "organization": {"id": 937}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 471}, "assignee": {"id": 541}, "organization": {"id": 689}, "project": {"owner": {"id": 21}, "assignee": {"id": 800}, "organization": {"id": 920}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 477}, "assignee": {"id": 517}, "organization": {"id": 134}, "project": {"owner": {"id": 28}, "assignee": {"id": 816}, "organization": {"id": 956}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 492}, "assignee": {"id": 535}, "organization": {"id": 654}, "project": {"owner": {"id": 70}, "assignee": {"id": 836}, "organization": {"id": 940}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 483}, "assignee": {"id": 567}, "organization": {"id": 186}, "project": {"owner": {"id": 2}, "assignee": {"id": 855}, "organization": {"id": 906}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 457}, "assignee": {"id": 540}, "organization": {"id": 616}, "project": {"owner": {"id": 97}, "assignee": {"id": 890}, "organization": {"id": 991}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 470}, "assignee": {"id": 501}, "organization": {"id": 141}, "project": {"owner": {"id": 25}, "assignee": {"id": 895}, "organization": {"id": 967}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 486}, "assignee": {"id": 590}, "organization": {"id": 628}, "project": {"owner": {"id": 99}, "assignee": {"id": 856}, "organization": {"id": 939}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 448}, "assignee": {"id": 526}, "organization": {"id": 145}, "project": {"owner": {"id": 26}, "assignee": {"id": 871}, "organization": {"id": 951}}}} +} + +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": 52, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 424}, "assignee": {"id": 559}, "organization": {"id": 654}, "project": {"owner": {"id": 52}, "assignee": {"id": 864}, "organization": {"id": 937}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 412}, "assignee": {"id": 531}, "organization": {"id": 162}, "project": {"owner": {"id": 16}, "assignee": {"id": 827}, "organization": {"id": 965}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 451}, "assignee": {"id": 514}, "organization": {"id": 664}, "project": {"owner": {"id": 89}, "assignee": {"id": 869}, "organization": {"id": 926}}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 480}, "assignee": {"id": 500}, "organization": {"id": 130}, "project": {"owner": {"id": 93}, "assignee": {"id": 880}, "organization": {"id": 922}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 448}, "assignee": {"id": 590}, "organization": {"id": 690}, "project": {"owner": {"id": 41}, "assignee": {"id": 866}, "organization": {"id": 946}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 491}, "assignee": {"id": 531}, "organization": {"id": 116}, "project": {"owner": {"id": 95}, "assignee": {"id": 839}, "organization": {"id": 975}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 499}, "assignee": {"id": 545}, "organization": {"id": 613}, "project": {"owner": {"id": 41}, "assignee": {"id": 877}, "organization": {"id": 945}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 449}, "assignee": {"id": 545}, "organization": {"id": 159}, "project": {"owner": {"id": 7}, "assignee": {"id": 833}, "organization": {"id": 961}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 413}, "assignee": {"id": 532}, "organization": {"id": 667}, "project": {"owner": {"id": 66}, "assignee": {"id": 866}, "organization": {"id": 911}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 457}, "assignee": {"id": 583}, "organization": {"id": 163}, "project": {"owner": {"id": 39}, "assignee": {"id": 841}, "organization": {"id": 908}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 412}, "assignee": {"id": 575}, "organization": {"id": 675}, "project": {"owner": {"id": 35}, "assignee": {"id": 828}, "organization": {"id": 927}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 412}, "assignee": {"id": 525}, "organization": {"id": 155}, "project": {"owner": {"id": 48}, "assignee": {"id": 846}, "organization": {"id": 966}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 412}, "assignee": {"id": 511}, "organization": {"id": 627}, "project": {"owner": {"id": 71}, "assignee": {"id": 857}, "organization": {"id": 924}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 457}, "assignee": {"id": 515}, "organization": {"id": 141}, "project": {"owner": {"id": 15}, "assignee": {"id": 869}, "organization": {"id": 944}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 485}, "assignee": {"id": 506}, "organization": {"id": 646}, "project": {"owner": {"id": 86}, "assignee": {"id": 876}, "organization": {"id": 997}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 403}, "assignee": {"id": 595}, "organization": {"id": 181}, "project": {"owner": {"id": 16}, "assignee": {"id": 855}, "organization": {"id": 968}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 418}, "assignee": {"id": 511}, "organization": {"id": 664}, "project": {"owner": {"id": 59}, "assignee": {"id": 822}, "organization": {"id": 983}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 475}, "assignee": {"id": 583}, "organization": {"id": 195}, "project": {"owner": {"id": 57}, "assignee": {"id": 835}, "organization": {"id": 976}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 429}, "assignee": {"id": 586}, "organization": {"id": 695}, "project": {"owner": {"id": 22}, "assignee": {"id": 853}, "organization": {"id": 943}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 498}, "assignee": {"id": 575}, "organization": {"id": 183}, "project": {"owner": {"id": 52}, "assignee": {"id": 807}, "organization": {"id": 952}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 494}, "assignee": {"id": 541}, "organization": {"id": 691}, "project": {"owner": {"id": 1}, "assignee": {"id": 843}, "organization": {"id": 978}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 417}, "assignee": {"id": 594}, "organization": {"id": 178}, "project": {"owner": {"id": 34}, "assignee": {"id": 845}, "organization": {"id": 983}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 467}, "assignee": {"id": 564}, "organization": {"id": 655}, "project": {"owner": {"id": 5}, "assignee": {"id": 851}, "organization": {"id": 945}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 428}, "assignee": {"id": 503}, "organization": {"id": 100}, "project": {"owner": {"id": 62}, "assignee": {"id": 896}, "organization": {"id": 937}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 465}, "assignee": {"id": 592}, "organization": {"id": 639}, "project": {"owner": {"id": 83}, "assignee": {"id": 832}, "organization": {"id": 909}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 440}, "assignee": {"id": 550}, "organization": {"id": 100}, "project": {"owner": {"id": 58}, "assignee": {"id": 811}, "organization": {"id": 928}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 422}, "assignee": {"id": 578}, "organization": {"id": 607}, "project": {"owner": {"id": 35}, "assignee": {"id": 861}, "organization": {"id": 964}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 438}, "assignee": {"id": 564}, "organization": {"id": 129}, "project": {"owner": {"id": 793}, "assignee": {"id": 60}, "organization": {"id": 988}}}} +} + +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": 38, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 465}, "assignee": {"id": 561}, "organization": {"id": 632}, "project": {"owner": {"id": 760}, "assignee": {"id": 38}, "organization": {"id": 944}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 435}, "assignee": {"id": 566}, "organization": {"id": 126}, "project": {"owner": {"id": 725}, "assignee": {"id": 11}, "organization": {"id": 952}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 442}, "assignee": {"id": 505}, "organization": {"id": 666}, "project": {"owner": {"id": 765}, "assignee": {"id": 2}, "organization": {"id": 912}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 435}, "assignee": {"id": 549}, "organization": {"id": 194}, "project": {"owner": {"id": 757}, "assignee": {"id": 84}, "organization": {"id": 955}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 424}, "assignee": {"id": 513}, "organization": {"id": 685}, "project": {"owner": {"id": 725}, "assignee": {"id": 37}, "organization": {"id": 918}}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 412}, "assignee": {"id": 506}, "organization": {"id": 187}, "project": {"owner": {"id": 749}, "assignee": {"id": 62}, "organization": {"id": 932}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 413}, "assignee": {"id": 587}, "organization": {"id": 617}, "project": {"owner": {"id": 782}, "assignee": {"id": 5}, "organization": {"id": 939}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 460}, "assignee": {"id": 587}, "organization": {"id": 106}, "project": {"owner": {"id": 733}, "assignee": {"id": 3}, "organization": {"id": 930}}}} +} + +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": 150, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 491}, "assignee": {"id": 553}, "organization": {"id": 625}, "project": {"owner": {"id": 724}, "assignee": {"id": 23}, "organization": {"id": 945}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 440}, "assignee": {"id": 547}, "organization": {"id": 147}, "project": {"owner": {"id": 728}, "assignee": {"id": 47}, "organization": {"id": 957}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 429}, "assignee": {"id": 504}, "organization": {"id": 692}, "project": {"owner": {"id": 723}, "assignee": {"id": 7}, "organization": {"id": 973}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 401}, "assignee": {"id": 513}, "organization": {"id": 192}, "project": {"owner": {"id": 721}, "assignee": {"id": 9}, "organization": {"id": 929}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 474}, "assignee": {"id": 596}, "organization": {"id": 670}, "project": {"owner": {"id": 785}, "assignee": {"id": 22}, "organization": {"id": 947}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 475}, "assignee": {"id": 514}, "organization": {"id": 131}, "project": {"owner": {"id": 756}, "assignee": {"id": 95}, "organization": {"id": 993}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 483}, "assignee": {"id": 598}, "organization": {"id": 660}, "project": {"owner": {"id": 798}, "assignee": {"id": 15}, "organization": {"id": 904}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 417}, "assignee": {"id": 592}, "organization": {"id": 181}, "project": {"owner": {"id": 781}, "assignee": {"id": 73}, "organization": {"id": 997}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 459}, "assignee": {"id": 593}, "organization": {"id": 620}, "project": {"owner": {"id": 755}, "assignee": {"id": 39}, "organization": {"id": 903}}}} +} + +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": 71, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 404}, "assignee": {"id": 516}, "organization": {"id": 163}, "project": {"owner": {"id": 703}, "assignee": {"id": 71}, "organization": {"id": 982}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 438}, "assignee": {"id": 585}, "organization": {"id": 602}, "project": {"owner": {"id": 765}, "assignee": {"id": 70}, "organization": {"id": 990}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 425}, "assignee": {"id": 562}, "organization": {"id": 180}, "project": {"owner": {"id": 742}, "assignee": {"id": 89}, "organization": {"id": 939}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 485}, "assignee": {"id": 595}, "organization": {"id": 606}, "project": {"owner": {"id": 774}, "assignee": {"id": 88}, "organization": {"id": 946}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 417}, "assignee": {"id": 526}, "organization": {"id": 149}, "project": {"owner": {"id": 759}, "assignee": {"id": 23}, "organization": {"id": 944}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 431}, "assignee": {"id": 562}, "organization": {"id": 657}, "project": {"owner": {"id": 709}, "assignee": {"id": 49}, "organization": {"id": 912}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 472}, "assignee": {"id": 556}, "organization": {"id": 146}, "project": {"owner": {"id": 783}, "assignee": {"id": 51}, "organization": {"id": 904}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 446}, "assignee": {"id": 505}, "organization": {"id": 601}, "project": {"owner": {"id": 773}, "assignee": {"id": 75}, "organization": {"id": 943}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 438}, "assignee": {"id": 584}, "organization": {"id": 146}, "project": {"owner": {"id": 709}, "assignee": {"id": 46}, "organization": {"id": 974}}}} +} + +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": 93, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 457}, "assignee": {"id": 535}, "organization": {"id": 666}, "project": {"owner": {"id": 726}, "assignee": {"id": 93}, "organization": {"id": 936}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 427}, "assignee": {"id": 581}, "organization": {"id": 166}, "project": {"owner": {"id": 719}, "assignee": {"id": 62}, "organization": {"id": 959}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 452}, "assignee": {"id": 587}, "organization": {"id": 695}, "project": {"owner": {"id": 764}, "assignee": {"id": 79}, "organization": {"id": 927}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 436}, "assignee": {"id": 561}, "organization": {"id": 164}, "project": {"owner": {"id": 783}, "assignee": {"id": 39}, "organization": {"id": 916}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 417}, "assignee": {"id": 532}, "organization": {"id": 622}, "project": {"owner": {"id": 743}, "assignee": {"id": 20}, "organization": {"id": 953}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 456}, "assignee": {"id": 590}, "organization": {"id": 186}, "project": {"owner": {"id": 717}, "assignee": {"id": 43}, "organization": {"id": 930}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 467}, "assignee": {"id": 592}, "organization": {"id": 611}, "project": {"owner": {"id": 730}, "assignee": {"id": 57}, "organization": {"id": 902}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 421}, "assignee": {"id": 558}, "organization": {"id": 110}, "project": {"owner": {"id": 735}, "assignee": {"id": 28}, "organization": {"id": 995}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 466}, "assignee": {"id": 587}, "organization": {"id": 629}, "project": {"owner": {"id": 781}, "assignee": {"id": 85}, "organization": {"id": 921}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 492}, "assignee": {"id": 549}, "organization": {"id": 131}, "project": {"owner": {"id": 779}, "assignee": {"id": 83}, "organization": {"id": 998}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 491}, "assignee": {"id": 532}, "organization": {"id": 678}, "project": {"owner": {"id": 795}, "assignee": {"id": 0}, "organization": {"id": 957}}}} +} + +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": 18, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 439}, "assignee": {"id": 599}, "organization": {"id": 126}, "project": {"owner": {"id": 797}, "assignee": {"id": 18}, "organization": {"id": 911}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 480}, "assignee": {"id": 581}, "organization": {"id": 609}, "project": {"owner": {"id": 707}, "assignee": {"id": 50}, "organization": {"id": 930}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 453}, "assignee": {"id": 551}, "organization": {"id": 121}, "project": {"owner": {"id": 786}, "assignee": {"id": 54}, "organization": {"id": 925}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 449}, "assignee": {"id": 544}, "organization": {"id": 628}, "project": {"owner": {"id": 723}, "assignee": {"id": 29}, "organization": {"id": 948}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 491}, "assignee": {"id": 531}, "organization": {"id": 154}, "project": {"owner": {"id": 703}, "assignee": {"id": 98}, "organization": {"id": 954}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 415}, "assignee": {"id": 571}, "organization": {"id": 684}, "project": {"owner": {"id": 746}, "assignee": {"id": 40}, "organization": {"id": 902}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 460}, "assignee": {"id": 509}, "organization": {"id": 128}, "project": {"owner": {"id": 718}, "assignee": {"id": 93}, "organization": {"id": 969}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 432}, "assignee": {"id": 574}, "organization": {"id": 620}, "project": {"owner": {"id": 781}, "assignee": {"id": 12}, "organization": {"id": 967}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 442}, "assignee": {"id": 518}, "organization": {"id": 145}, "project": {"owner": {"id": 730}, "assignee": {"id": 44}, "organization": {"id": 939}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 469}, "assignee": {"id": 582}, "organization": {"id": 659}, "project": {"owner": {"id": 765}, "assignee": {"id": 28}, "organization": {"id": 958}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 403}, "assignee": {"id": 594}, "organization": {"id": 165}, "project": {"owner": {"id": 756}, "assignee": {"id": 98}, "organization": {"id": 997}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 451}, "assignee": {"id": 541}, "organization": {"id": 618}, "project": {"owner": {"id": 729}, "assignee": {"id": 0}, "organization": {"id": 972}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 21}, "assignee": {"id": 553}, "organization": {"id": 163}, "project": {"owner": {"id": 702}, "assignee": {"id": 832}, "organization": {"id": 949}}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 28}, "assignee": {"id": 522}, "organization": {"id": 698}, "project": {"owner": {"id": 722}, "assignee": {"id": 822}, "organization": {"id": 973}}}} +} + +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": 60, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 60}, "assignee": {"id": 577}, "organization": {"id": 112}, "project": {"owner": {"id": 794}, "assignee": {"id": 813}, "organization": {"id": 956}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 9}, "assignee": {"id": 552}, "organization": {"id": 661}, "project": {"owner": {"id": 759}, "assignee": {"id": 839}, "organization": {"id": 972}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 48}, "assignee": {"id": 500}, "organization": {"id": 132}, "project": {"owner": {"id": 764}, "assignee": {"id": 867}, "organization": {"id": 939}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 4}, "assignee": {"id": 565}, "organization": {"id": 616}, "project": {"owner": {"id": 765}, "assignee": {"id": 808}, "organization": {"id": 941}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 15}, "assignee": {"id": 500}, "organization": {"id": 135}, "project": {"owner": {"id": 772}, "assignee": {"id": 841}, "organization": {"id": 963}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 45}, "assignee": {"id": 515}, "organization": {"id": 658}, "project": {"owner": {"id": 792}, "assignee": {"id": 819}, "organization": {"id": 964}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 65}, "assignee": {"id": 593}, "organization": {"id": 133}, "project": {"owner": {"id": 764}, "assignee": {"id": 823}, "organization": {"id": 998}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 77}, "assignee": {"id": 589}, "organization": {"id": 655}, "project": {"owner": {"id": 745}, "assignee": {"id": 808}, "organization": {"id": 915}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 53}, "assignee": {"id": 563}, "organization": {"id": 199}, "project": {"owner": {"id": 747}, "assignee": {"id": 826}, "organization": {"id": 920}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 87}, "assignee": {"id": 593}, "organization": {"id": 659}, "project": {"owner": {"id": 758}, "assignee": {"id": 853}, "organization": {"id": 915}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 95}, "assignee": {"id": 574}, "organization": {"id": 166}, "project": {"owner": {"id": 720}, "assignee": {"id": 842}, "organization": {"id": 968}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 35}, "assignee": {"id": 599}, "organization": {"id": 643}, "project": {"owner": {"id": 709}, "assignee": {"id": 808}, "organization": {"id": 911}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 3}, "assignee": {"id": 598}, "organization": {"id": 106}, "project": {"owner": {"id": 737}, "assignee": {"id": 859}, "organization": {"id": 967}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 75}, "assignee": {"id": 555}, "organization": {"id": 685}, "project": {"owner": {"id": 774}, "assignee": {"id": 837}, "organization": {"id": 913}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 41}, "assignee": {"id": 576}, "organization": {"id": 175}, "project": {"owner": {"id": 789}, "assignee": {"id": 864}, "organization": {"id": 995}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 97}, "assignee": {"id": 527}, "organization": {"id": 651}, "project": {"owner": {"id": 794}, "assignee": {"id": 815}, "organization": {"id": 910}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 83}, "assignee": {"id": 569}, "organization": {"id": 199}, "project": {"owner": {"id": 749}, "assignee": {"id": 862}, "organization": {"id": 937}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 2}, "assignee": {"id": 531}, "organization": {"id": 694}, "project": {"owner": {"id": 776}, "assignee": {"id": 894}, "organization": {"id": 900}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 92}, "assignee": {"id": 599}, "organization": {"id": 158}, "project": {"owner": {"id": 721}, "assignee": {"id": 863}, "organization": {"id": 992}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 45}, "assignee": {"id": 522}, "organization": {"id": 673}, "project": {"owner": {"id": 748}, "assignee": {"id": 884}, "organization": {"id": 992}}}} +} + +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": 6, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 6}, "assignee": {"id": 535}, "organization": {"id": 153}, "project": {"owner": {"id": 732}, "assignee": {"id": 809}, "organization": {"id": 992}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 29}, "assignee": {"id": 520}, "organization": {"id": 632}, "project": {"owner": {"id": 771}, "assignee": {"id": 876}, "organization": {"id": 949}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 69}, "assignee": {"id": 539}, "organization": {"id": 155}, "project": {"owner": {"id": 728}, "assignee": {"id": 835}, "organization": {"id": 955}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 74}, "assignee": {"id": 582}, "organization": {"id": 688}, "project": {"owner": {"id": 797}, "assignee": {"id": 893}, "organization": {"id": 992}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 37}, "assignee": {"id": 509}, "organization": {"id": 135}, "project": {"owner": {"id": 757}, "assignee": {"id": 869}, "organization": {"id": 906}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 96}, "assignee": {"id": 531}, "organization": {"id": 648}, "project": {"owner": {"id": 739}, "assignee": {"id": 803}, "organization": {"id": 988}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 84}, "assignee": {"id": 524}, "organization": {"id": 132}, "project": {"owner": {"id": 701}, "assignee": {"id": 813}, "organization": {"id": 917}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 84}, "assignee": {"id": 569}, "organization": {"id": 681}, "project": {"owner": {"id": 780}, "assignee": {"id": 834}, "organization": {"id": 952}}}} +} + +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": 81, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 81}, "assignee": {"id": 543}, "organization": {"id": 194}, "project": {"owner": {"id": 765}, "assignee": {"id": 874}, "organization": {"id": 999}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 64}, "assignee": {"id": 549}, "organization": {"id": 668}, "project": {"owner": {"id": 717}, "assignee": {"id": 818}, "organization": {"id": 918}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 52}, "assignee": {"id": 588}, "organization": {"id": 165}, "project": {"owner": {"id": 747}, "assignee": {"id": 864}, "organization": {"id": 974}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 30}, "assignee": {"id": 501}, "organization": {"id": 684}, "project": {"owner": {"id": 735}, "assignee": {"id": 854}, "organization": {"id": 907}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 87}, "assignee": {"id": 509}, "organization": {"id": 125}, "project": {"owner": {"id": 742}, "assignee": {"id": 800}, "organization": {"id": 980}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 10}, "assignee": {"id": 525}, "organization": {"id": 628}, "project": {"owner": {"id": 777}, "assignee": {"id": 802}, "organization": {"id": 906}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 66}, "assignee": {"id": 556}, "organization": {"id": 122}, "project": {"owner": {"id": 771}, "assignee": {"id": 859}, "organization": {"id": 996}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 27}, "assignee": {"id": 549}, "organization": {"id": 671}, "project": {"owner": {"id": 704}, "assignee": {"id": 816}, "organization": {"id": 984}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 99}, "assignee": {"id": 523}, "organization": {"id": 166}, "project": {"owner": {"id": 732}, "assignee": {"id": 839}, "organization": {"id": 998}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 64}, "assignee": {"id": 568}, "organization": {"id": 604}, "project": {"owner": {"id": 703}, "assignee": {"id": 853}, "organization": {"id": 918}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 38}, "assignee": {"id": 524}, "organization": {"id": 131}, "project": {"owner": {"id": 754}, "assignee": {"id": 847}, "organization": {"id": 974}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 3}, "assignee": {"id": 503}, "organization": {"id": 652}, "project": {"owner": {"id": 785}, "assignee": {"id": 850}, "organization": {"id": 999}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 72}, "assignee": {"id": 559}, "organization": {"id": 151}, "project": {"owner": {"id": 738}, "assignee": {"id": 891}, "organization": {"id": 992}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 30}, "assignee": {"id": 583}, "organization": {"id": 655}, "project": {"owner": {"id": 713}, "assignee": {"id": 823}, "organization": {"id": 965}}}} +} + +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": 20, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 20}, "assignee": {"id": 583}, "organization": {"id": 119}, "project": {"owner": {"id": 757}, "assignee": {"id": 835}, "organization": {"id": 928}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 53}, "assignee": {"id": 593}, "organization": {"id": 611}, "project": {"owner": {"id": 762}, "assignee": {"id": 806}, "organization": {"id": 973}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 96}, "assignee": {"id": 518}, "organization": {"id": 180}, "project": {"owner": {"id": 759}, "assignee": {"id": 869}, "organization": {"id": 978}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 35}, "assignee": {"id": 596}, "organization": {"id": 642}, "project": {"owner": {"id": 741}, "assignee": {"id": 849}, "organization": {"id": 962}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 4}, "assignee": {"id": 519}, "organization": {"id": 125}, "project": {"owner": {"id": 725}, "assignee": {"id": 829}, "organization": {"id": 981}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 40}, "assignee": {"id": 591}, "organization": {"id": 614}, "project": {"owner": {"id": 783}, "assignee": {"id": 896}, "organization": {"id": 967}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 428}, "assignee": {"id": 95}, "organization": {"id": 112}, "project": {"owner": {"id": 732}, "assignee": {"id": 883}, "organization": {"id": 944}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 408}, "assignee": {"id": 40}, "organization": {"id": 661}, "project": {"owner": {"id": 730}, "assignee": {"id": 854}, "organization": {"id": 905}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 430}, "assignee": {"id": 3}, "organization": {"id": 165}, "project": {"owner": {"id": 747}, "assignee": {"id": 877}, "organization": {"id": 964}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 440}, "assignee": {"id": 13}, "organization": {"id": 652}, "project": {"owner": {"id": 725}, "assignee": {"id": 855}, "organization": {"id": 978}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 455}, "assignee": {"id": 26}, "organization": {"id": 149}, "project": {"owner": {"id": 702}, "assignee": {"id": 823}, "organization": {"id": 972}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 486}, "assignee": {"id": 92}, "organization": {"id": 699}, "project": {"owner": {"id": 783}, "assignee": {"id": 851}, "organization": {"id": 972}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 420}, "assignee": {"id": 31}, "organization": {"id": 179}, "project": {"owner": {"id": 783}, "assignee": {"id": 894}, "organization": {"id": 917}}}} +} + +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": 135, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 451}, "assignee": {"id": 80}, "organization": {"id": 660}, "project": {"owner": {"id": 713}, "assignee": {"id": 894}, "organization": {"id": 917}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 435}, "assignee": {"id": 4}, "organization": {"id": 156}, "project": {"owner": {"id": 738}, "assignee": {"id": 862}, "organization": {"id": 938}}}} +} + +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": 66, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 443}, "assignee": {"id": 66}, "organization": {"id": 675}, "project": {"owner": {"id": 755}, "assignee": {"id": 879}, "organization": {"id": 931}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 411}, "assignee": {"id": 25}, "organization": {"id": 172}, "project": {"owner": {"id": 724}, "assignee": {"id": 888}, "organization": {"id": 944}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 492}, "assignee": {"id": 63}, "organization": {"id": 646}, "project": {"owner": {"id": 721}, "assignee": {"id": 824}, "organization": {"id": 997}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 407}, "assignee": {"id": 18}, "organization": {"id": 193}, "project": {"owner": {"id": 746}, "assignee": {"id": 827}, "organization": {"id": 937}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 459}, "assignee": {"id": 40}, "organization": {"id": 663}, "project": {"owner": {"id": 786}, "assignee": {"id": 875}, "organization": {"id": 986}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 444}, "assignee": {"id": 66}, "organization": {"id": 118}, "project": {"owner": {"id": 715}, "assignee": {"id": 891}, "organization": {"id": 919}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 428}, "assignee": {"id": 52}, "organization": {"id": 621}, "project": {"owner": {"id": 778}, "assignee": {"id": 809}, "organization": {"id": 968}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 471}, "assignee": {"id": 69}, "organization": {"id": 182}, "project": {"owner": {"id": 730}, "assignee": {"id": 867}, "organization": {"id": 925}}}} +} + +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": 54, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 432}, "assignee": {"id": 54}, "organization": {"id": 677}, "project": {"owner": {"id": 776}, "assignee": {"id": 889}, "organization": {"id": 945}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 441}, "assignee": {"id": 39}, "organization": {"id": 140}, "project": {"owner": {"id": 782}, "assignee": {"id": 831}, "organization": {"id": 987}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 437}, "assignee": {"id": 84}, "organization": {"id": 626}, "project": {"owner": {"id": 708}, "assignee": {"id": 806}, "organization": {"id": 992}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 480}, "assignee": {"id": 4}, "organization": {"id": 178}, "project": {"owner": {"id": 772}, "assignee": {"id": 806}, "organization": {"id": 981}}}} +} + +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": 13, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 495}, "assignee": {"id": 13}, "organization": {"id": 637}, "project": {"owner": {"id": 775}, "assignee": {"id": 827}, "organization": {"id": 963}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 496}, "assignee": {"id": 29}, "organization": {"id": 189}, "project": {"owner": {"id": 774}, "assignee": {"id": 843}, "organization": {"id": 978}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 434}, "assignee": {"id": 54}, "organization": {"id": 605}, "project": {"owner": {"id": 756}, "assignee": {"id": 807}, "organization": {"id": 982}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 430}, "assignee": {"id": 79}, "organization": {"id": 140}, "project": {"owner": {"id": 711}, "assignee": {"id": 803}, "organization": {"id": 980}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 479}, "assignee": {"id": 21}, "organization": {"id": 674}, "project": {"owner": {"id": 727}, "assignee": {"id": 885}, "organization": {"id": 966}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 474}, "assignee": {"id": 86}, "organization": {"id": 129}, "project": {"owner": {"id": 757}, "assignee": {"id": 866}, "organization": {"id": 983}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 408}, "assignee": {"id": 39}, "organization": {"id": 690}, "project": {"owner": {"id": 705}, "assignee": {"id": 894}, "organization": {"id": 926}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 415}, "assignee": {"id": 69}, "organization": {"id": 115}, "project": {"owner": {"id": 712}, "assignee": {"id": 880}, "organization": {"id": 904}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 408}, "assignee": {"id": 64}, "organization": {"id": 665}, "project": {"owner": {"id": 794}, "assignee": {"id": 818}, "organization": {"id": 962}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 479}, "assignee": {"id": 32}, "organization": {"id": 129}, "project": {"owner": {"id": 733}, "assignee": {"id": 814}, "organization": {"id": 914}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 450}, "assignee": {"id": 37}, "organization": {"id": 657}, "project": {"owner": {"id": 793}, "assignee": {"id": 896}, "organization": {"id": 915}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 480}, "assignee": {"id": 65}, "organization": {"id": 156}, "project": {"owner": {"id": 769}, "assignee": {"id": 862}, "organization": {"id": 972}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 460}, "assignee": {"id": 56}, "organization": {"id": 627}, "project": {"owner": {"id": 743}, "assignee": {"id": 823}, "organization": {"id": 969}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 456}, "assignee": {"id": 13}, "organization": {"id": 183}, "project": {"owner": {"id": 793}, "assignee": {"id": 858}, "organization": {"id": 901}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 417}, "assignee": {"id": 19}, "organization": {"id": 679}, "project": {"owner": {"id": 732}, "assignee": {"id": 873}, "organization": {"id": 957}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 400}, "assignee": {"id": 23}, "organization": {"id": 182}, "project": {"owner": {"id": 723}, "assignee": {"id": 847}, "organization": {"id": 932}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 417}, "assignee": {"id": 30}, "organization": {"id": 654}, "project": {"owner": {"id": 719}, "assignee": {"id": 844}, "organization": {"id": 944}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 455}, "assignee": {"id": 24}, "organization": {"id": 164}, "project": {"owner": {"id": 719}, "assignee": {"id": 841}, "organization": {"id": 914}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 477}, "assignee": {"id": 70}, "organization": {"id": 674}, "project": {"owner": {"id": 746}, "assignee": {"id": 865}, "organization": {"id": 973}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 452}, "assignee": {"id": 13}, "organization": {"id": 110}, "project": {"owner": {"id": 720}, "assignee": {"id": 851}, "organization": {"id": 999}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 414}, "assignee": {"id": 68}, "organization": {"id": 638}, "project": {"owner": {"id": 773}, "assignee": {"id": 846}, "organization": {"id": 946}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 486}, "assignee": {"id": 16}, "organization": {"id": 180}, "project": {"owner": {"id": 743}, "assignee": {"id": 849}, "organization": {"id": 929}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 440}, "assignee": {"id": 32}, "organization": {"id": 677}, "project": {"owner": {"id": 732}, "assignee": {"id": 843}, "organization": {"id": 914}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 467}, "assignee": {"id": 54}, "organization": {"id": 101}, "project": {"owner": {"id": 748}, "assignee": {"id": 877}, "organization": {"id": 962}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 478}, "assignee": {"id": 53}, "organization": {"id": 663}, "project": {"owner": {"id": 759}, "assignee": {"id": 877}, "organization": {"id": 968}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 400}, "assignee": {"id": 26}, "organization": {"id": 181}, "project": {"owner": {"id": 778}, "assignee": {"id": 877}, "organization": {"id": 926}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 433}, "assignee": {"id": 42}, "organization": {"id": 601}, "project": {"owner": {"id": 720}, "assignee": {"id": 817}, "organization": {"id": 919}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 495}, "assignee": {"id": 91}, "organization": {"id": 185}, "project": {"owner": {"id": 774}, "assignee": {"id": 822}, "organization": {"id": 948}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 443}, "assignee": {"id": 88}, "organization": {"id": 692}, "project": {"owner": {"id": 726}, "assignee": {"id": 803}, "organization": {"id": 973}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 422}, "assignee": {"id": 508}, "organization": {"id": 131}, "project": {"owner": {"id": 779}, "assignee": {"id": 820}, "organization": {"id": 941}}}} +} + +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": 29, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 485}, "assignee": {"id": 594}, "organization": {"id": 614}, "project": {"owner": {"id": 752}, "assignee": {"id": 888}, "organization": {"id": 938}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 498}, "assignee": {"id": 596}, "organization": {"id": 165}, "project": {"owner": {"id": 715}, "assignee": {"id": 845}, "organization": {"id": 942}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 453}, "assignee": {"id": 518}, "organization": {"id": 609}, "project": {"owner": {"id": 797}, "assignee": {"id": 889}, "organization": {"id": 913}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 455}, "assignee": {"id": 524}, "organization": {"id": 162}, "project": {"owner": {"id": 726}, "assignee": {"id": 801}, "organization": {"id": 959}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 435}, "assignee": {"id": 566}, "organization": {"id": 607}, "project": {"owner": {"id": 799}, "assignee": {"id": 824}, "organization": {"id": 931}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 471}, "assignee": {"id": 517}, "organization": {"id": 162}, "project": {"owner": {"id": 749}, "assignee": {"id": 847}, "organization": {"id": 990}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 403}, "assignee": {"id": 533}, "organization": {"id": 682}, "project": {"owner": {"id": 714}, "assignee": {"id": 856}, "organization": {"id": 945}}}} +} + +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": 57, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 472}, "assignee": {"id": 587}, "organization": {"id": 140}, "project": {"owner": {"id": 708}, "assignee": {"id": 825}, "organization": {"id": 935}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 405}, "assignee": {"id": 585}, "organization": {"id": 660}, "project": {"owner": {"id": 731}, "assignee": {"id": 881}, "organization": {"id": 977}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 416}, "assignee": {"id": 507}, "organization": {"id": 107}, "project": {"owner": {"id": 706}, "assignee": {"id": 829}, "organization": {"id": 913}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 454}, "assignee": {"id": 531}, "organization": {"id": 677}, "project": {"owner": {"id": 728}, "assignee": {"id": 862}, "organization": {"id": 950}}}} +} + +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": 88, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 454}, "assignee": {"id": 519}, "organization": {"id": 172}, "project": {"owner": {"id": 752}, "assignee": {"id": 871}, "organization": {"id": 995}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 450}, "assignee": {"id": 504}, "organization": {"id": 643}, "project": {"owner": {"id": 760}, "assignee": {"id": 845}, "organization": {"id": 964}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 495}, "assignee": {"id": 526}, "organization": {"id": 162}, "project": {"owner": {"id": 763}, "assignee": {"id": 883}, "organization": {"id": 960}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 404}, "assignee": {"id": 564}, "organization": {"id": 694}, "project": {"owner": {"id": 747}, "assignee": {"id": 889}, "organization": {"id": 935}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 477}, "assignee": {"id": 586}, "organization": {"id": 119}, "project": {"owner": {"id": 729}, "assignee": {"id": 828}, "organization": {"id": 969}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 449}, "assignee": {"id": 550}, "organization": {"id": 648}, "project": {"owner": {"id": 729}, "assignee": {"id": 840}, "organization": {"id": 987}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 402}, "assignee": {"id": 512}, "organization": {"id": 106}, "project": {"owner": {"id": 796}, "assignee": {"id": 893}, "organization": {"id": 995}}}} +} + +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": 149, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 416}, "assignee": {"id": 593}, "organization": {"id": 661}, "project": {"owner": {"id": 741}, "assignee": {"id": 889}, "organization": {"id": 930}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 464}, "assignee": {"id": 500}, "organization": {"id": 166}, "project": {"owner": {"id": 764}, "assignee": {"id": 846}, "organization": {"id": 914}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 421}, "assignee": {"id": 554}, "organization": {"id": 604}, "project": {"owner": {"id": 757}, "assignee": {"id": 899}, "organization": {"id": 907}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 489}, "assignee": {"id": 518}, "organization": {"id": 172}, "project": {"owner": {"id": 730}, "assignee": {"id": 835}, "organization": {"id": 970}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 496}, "assignee": {"id": 584}, "organization": {"id": 698}, "project": {"owner": {"id": 734}, "assignee": {"id": 890}, "organization": {"id": 908}}}} +} + +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": 47, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 448}, "assignee": {"id": 590}, "organization": {"id": 187}, "project": {"owner": {"id": 774}, "assignee": {"id": 820}, "organization": {"id": 999}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 448}, "assignee": {"id": 549}, "organization": {"id": 682}, "project": {"owner": {"id": 761}, "assignee": {"id": 844}, "organization": {"id": 951}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 458}, "assignee": {"id": 565}, "organization": {"id": 158}, "project": {"owner": {"id": 741}, "assignee": {"id": 846}, "organization": {"id": 967}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 412}, "assignee": {"id": 523}, "organization": {"id": 661}, "project": {"owner": {"id": 784}, "assignee": {"id": 885}, "organization": {"id": 984}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 495}, "assignee": {"id": 531}, "organization": {"id": 183}, "project": {"owner": {"id": 756}, "assignee": {"id": 803}, "organization": {"id": 942}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 449}, "assignee": {"id": 598}, "organization": {"id": 618}, "project": {"owner": {"id": 776}, "assignee": {"id": 878}, "organization": {"id": 928}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 476}, "assignee": {"id": 500}, "organization": {"id": 191}, "project": {"owner": {"id": 796}, "assignee": {"id": 847}, "organization": {"id": 996}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 429}, "assignee": {"id": 515}, "organization": {"id": 684}, "project": {"owner": {"id": 794}, "assignee": {"id": 853}, "organization": {"id": 904}}}} +} + +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": 94, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 482}, "assignee": {"id": 538}, "organization": {"id": 149}, "project": {"owner": {"id": 781}, "assignee": {"id": 810}, "organization": {"id": 900}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 499}, "assignee": {"id": 501}, "organization": {"id": 649}, "project": {"owner": {"id": 715}, "assignee": {"id": 887}, "organization": {"id": 952}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 403}, "assignee": {"id": 574}, "organization": {"id": 178}, "project": {"owner": {"id": 767}, "assignee": {"id": 859}, "organization": {"id": 900}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 400}, "assignee": {"id": 591}, "organization": {"id": 666}, "project": {"owner": {"id": 708}, "assignee": {"id": 815}, "organization": {"id": 946}}}} +} + +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": 79, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 416}, "assignee": {"id": 531}, "organization": {"id": 100}, "project": {"owner": {"id": 761}, "assignee": {"id": 802}, "organization": {"id": 993}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 493}, "assignee": {"id": 522}, "organization": {"id": 675}, "project": {"owner": {"id": 769}, "assignee": {"id": 864}, "organization": {"id": 904}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 437}, "assignee": {"id": 536}, "organization": {"id": 148}, "project": {"owner": {"id": 746}, "assignee": {"id": 800}, "organization": {"id": 973}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 474}, "assignee": {"id": 575}, "organization": {"id": 645}, "project": {"owner": {"id": 735}, "assignee": {"id": 866}, "organization": {"id": 959}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 494}, "assignee": {"id": 582}, "organization": {"id": 175}, "project": {"owner": {"id": 729}, "assignee": {"id": 825}, "organization": {"id": 951}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 441}, "assignee": {"id": 581}, "organization": {"id": 622}, "project": {"owner": {"id": 778}, "assignee": {"id": 847}, "organization": {"id": 969}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 482}, "assignee": {"id": 582}, "organization": {"id": 152}, "project": {"owner": {"id": 790}, "assignee": {"id": 857}, "organization": {"id": 930}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 444}, "assignee": {"id": 542}, "organization": {"id": 602}, "project": {"owner": {"id": 776}, "assignee": {"id": 813}, "organization": {"id": 954}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 429}, "assignee": {"id": 524}, "organization": {"id": 186}, "project": {"owner": {"id": 741}, "assignee": {"id": 834}, "organization": {"id": 957}}}} +} + +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": 63, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 485}, "assignee": {"id": 581}, "organization": {"id": 663}, "project": {"owner": {"id": 787}, "assignee": {"id": 838}, "organization": {"id": 927}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 464}, "assignee": {"id": 583}, "organization": {"id": 170}, "project": {"owner": {"id": 720}, "assignee": {"id": 833}, "organization": {"id": 991}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 465}, "assignee": {"id": 572}, "organization": {"id": 686}, "project": {"owner": {"id": 716}, "assignee": {"id": 802}, "organization": {"id": 908}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 490}, "assignee": {"id": 577}, "organization": {"id": 189}, "project": {"owner": {"id": 767}, "assignee": {"id": 871}, "organization": {"id": 924}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 409}, "assignee": {"id": 584}, "organization": {"id": 665}, "project": {"owner": {"id": 745}, "assignee": {"id": 881}, "organization": {"id": 935}}}} +} + +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": 71, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 434}, "assignee": {"id": 504}, "organization": {"id": 617}, "project": {"owner": {"id": 71}, "assignee": {"id": 837}, "organization": {"id": 937}}}} +} + +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": 52, "privilege": "business"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 483}, "assignee": {"id": 553}, "organization": {"id": 639}, "project": {"owner": {"id": 52}, "assignee": {"id": 889}, "organization": {"id": 940}}}} +} + +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": 7, "privilege": "user"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 471}, "assignee": {"id": 527}, "organization": {"id": 673}, "project": {"owner": {"id": 7}, "assignee": {"id": 876}, "organization": {"id": 999}}}} +} + +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": 34, "privilege": "worker"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 463}, "assignee": {"id": 580}, "organization": {"id": 650}, "project": {"owner": {"id": 34}, "assignee": {"id": 887}, "organization": {"id": 954}}}} +} + +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": 63, "privilege": "none"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 400}, "assignee": {"id": 545}, "organization": {"id": 682}, "project": {"owner": {"id": 63}, "assignee": {"id": 802}, "organization": {"id": 979}}}} +} + +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": 58, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 474}, "assignee": {"id": 504}, "organization": {"id": 666}, "project": {"owner": {"id": 785}, "assignee": {"id": 58}, "organization": {"id": 934}}}} +} + +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": 45, "privilege": "business"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 475}, "assignee": {"id": 539}, "organization": {"id": 612}, "project": {"owner": {"id": 724}, "assignee": {"id": 45}, "organization": {"id": 993}}}} +} + +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": 82, "privilege": "user"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 468}, "assignee": {"id": 570}, "organization": {"id": 689}, "project": {"owner": {"id": 715}, "assignee": {"id": 82}, "organization": {"id": 954}}}} +} + +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": 61, "privilege": "worker"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 459}, "assignee": {"id": 545}, "organization": {"id": 669}, "project": {"owner": {"id": 732}, "assignee": {"id": 61}, "organization": {"id": 971}}}} +} + +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": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 493}, "assignee": {"id": 562}, "organization": {"id": 629}, "project": {"owner": {"id": 751}, "assignee": {"id": 29}, "organization": {"id": 980}}}} +} + +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": 32, "privilege": "admin"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 32}, "assignee": {"id": 580}, "organization": {"id": 668}, "project": {"owner": {"id": 787}, "assignee": {"id": 883}, "organization": {"id": 988}}}} +} + +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": 92, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 92}, "assignee": {"id": 594}, "organization": {"id": 611}, "project": {"owner": {"id": 721}, "assignee": {"id": 879}, "organization": {"id": 915}}}} +} + +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": 5, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 5}, "assignee": {"id": 533}, "organization": {"id": 642}, "project": {"owner": {"id": 740}, "assignee": {"id": 881}, "organization": {"id": 954}}}} +} + +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": 65, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 65}, "assignee": {"id": 505}, "organization": {"id": 622}, "project": {"owner": {"id": 742}, "assignee": {"id": 805}, "organization": {"id": 964}}}} +} + +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": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 38}, "assignee": {"id": 583}, "organization": {"id": 687}, "project": {"owner": {"id": 738}, "assignee": {"id": 806}, "organization": {"id": 993}}}} +} + +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": 40, "privilege": "admin"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 400}, "assignee": {"id": 40}, "organization": {"id": 660}, "project": {"owner": {"id": 780}, "assignee": {"id": 895}, "organization": {"id": 938}}}} +} + +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": 76, "privilege": "business"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 475}, "assignee": {"id": 76}, "organization": {"id": 638}, "project": {"owner": {"id": 740}, "assignee": {"id": 853}, "organization": {"id": 924}}}} +} + +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": 47, "privilege": "user"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 452}, "assignee": {"id": 47}, "organization": {"id": 601}, "project": {"owner": {"id": 706}, "assignee": {"id": 834}, "organization": {"id": 902}}}} +} + +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": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 436}, "assignee": {"id": 39}, "organization": {"id": 614}, "project": {"owner": {"id": 787}, "assignee": {"id": 891}, "organization": {"id": 987}}}} +} + +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": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 402}, "assignee": {"id": 88}, "organization": {"id": 604}, "project": {"owner": {"id": 769}, "assignee": {"id": 835}, "organization": {"id": 963}}}} +} + +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": 32, "privilege": "admin"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 481}, "assignee": {"id": 581}, "organization": {"id": 629}, "project": {"owner": {"id": 771}, "assignee": {"id": 834}, "organization": {"id": 910}}}} +} + +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": 30, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 471}, "assignee": {"id": 519}, "organization": {"id": 698}, "project": {"owner": {"id": 710}, "assignee": {"id": 840}, "organization": {"id": 989}}}} +} + +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": 45, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 495}, "assignee": {"id": 536}, "organization": {"id": 622}, "project": {"owner": {"id": 788}, "assignee": {"id": 828}, "organization": {"id": 944}}}} +} + +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": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 435}, "assignee": {"id": 532}, "organization": {"id": 634}, "project": {"owner": {"id": 757}, "assignee": {"id": 886}, "organization": {"id": 969}}}} +} + +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": 24, "privilege": "none"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 466}, "assignee": {"id": 566}, "organization": {"id": 640}, "project": {"owner": {"id": 731}, "assignee": {"id": 874}, "organization": {"id": 974}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 469}, "assignee": {"id": 520}, "organization": {"id": 181}, "project": {"owner": {"id": 53}, "assignee": {"id": 860}, "organization": {"id": 954}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 420}, "assignee": {"id": 529}, "organization": {"id": 629}, "project": {"owner": {"id": 5}, "assignee": {"id": 864}, "organization": {"id": 917}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 450}, "assignee": {"id": 589}, "organization": {"id": 185}, "project": {"owner": {"id": 88}, "assignee": {"id": 894}, "organization": {"id": 984}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 494}, "assignee": {"id": 593}, "organization": {"id": 636}, "project": {"owner": {"id": 91}, "assignee": {"id": 817}, "organization": {"id": 952}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 439}, "assignee": {"id": 531}, "organization": {"id": 161}, "project": {"owner": {"id": 77}, "assignee": {"id": 827}, "organization": {"id": 999}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 467}, "assignee": {"id": 549}, "organization": {"id": 693}, "project": {"owner": {"id": 20}, "assignee": {"id": 887}, "organization": {"id": 915}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 492}, "assignee": {"id": 512}, "organization": {"id": 195}, "project": {"owner": {"id": 40}, "assignee": {"id": 822}, "organization": {"id": 966}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 464}, "assignee": {"id": 555}, "organization": {"id": 656}, "project": {"owner": {"id": 17}, "assignee": {"id": 885}, "organization": {"id": 945}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 447}, "assignee": {"id": 587}, "organization": {"id": 113}, "project": {"owner": {"id": 49}, "assignee": {"id": 847}, "organization": {"id": 971}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 476}, "assignee": {"id": 516}, "organization": {"id": 653}, "project": {"owner": {"id": 9}, "assignee": {"id": 888}, "organization": {"id": 984}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 471}, "assignee": {"id": 592}, "organization": {"id": 152}, "project": {"owner": {"id": 87}, "assignee": {"id": 881}, "organization": {"id": 932}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 478}, "assignee": {"id": 525}, "organization": {"id": 692}, "project": {"owner": {"id": 9}, "assignee": {"id": 829}, "organization": {"id": 988}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 418}, "assignee": {"id": 566}, "organization": {"id": 116}, "project": {"owner": {"id": 70}, "assignee": {"id": 899}, "organization": {"id": 974}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 488}, "assignee": {"id": 554}, "organization": {"id": 625}, "project": {"owner": {"id": 24}, "assignee": {"id": 899}, "organization": {"id": 960}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 488}, "assignee": {"id": 509}, "organization": {"id": 176}, "project": {"owner": {"id": 60}, "assignee": {"id": 819}, "organization": {"id": 907}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 432}, "assignee": {"id": 529}, "organization": {"id": 614}, "project": {"owner": {"id": 21}, "assignee": {"id": 868}, "organization": {"id": 983}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 409}, "assignee": {"id": 581}, "organization": {"id": 104}, "project": {"owner": {"id": 61}, "assignee": {"id": 816}, "organization": {"id": 977}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 424}, "assignee": {"id": 570}, "organization": {"id": 657}, "project": {"owner": {"id": 2}, "assignee": {"id": 891}, "organization": {"id": 999}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 430}, "assignee": {"id": 530}, "organization": {"id": 118}, "project": {"owner": {"id": 50}, "assignee": {"id": 846}, "organization": {"id": 943}}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 487}, "assignee": {"id": 558}, "organization": {"id": 690}, "project": {"owner": {"id": 93}, "assignee": {"id": 840}, "organization": {"id": 925}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 426}, "assignee": {"id": 538}, "organization": {"id": 175}, "project": {"owner": {"id": 84}, "assignee": {"id": 836}, "organization": {"id": 932}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 408}, "assignee": {"id": 512}, "organization": {"id": 663}, "project": {"owner": {"id": 54}, "assignee": {"id": 848}, "organization": {"id": 947}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 406}, "assignee": {"id": 543}, "organization": {"id": 146}, "project": {"owner": {"id": 32}, "assignee": {"id": 828}, "organization": {"id": 921}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 434}, "assignee": {"id": 524}, "organization": {"id": 650}, "project": {"owner": {"id": 65}, "assignee": {"id": 879}, "organization": {"id": 912}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 446}, "assignee": {"id": 597}, "organization": {"id": 101}, "project": {"owner": {"id": 61}, "assignee": {"id": 819}, "organization": {"id": 920}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 423}, "assignee": {"id": 544}, "organization": {"id": 609}, "project": {"owner": {"id": 27}, "assignee": {"id": 862}, "organization": {"id": 938}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 449}, "assignee": {"id": 576}, "organization": {"id": 169}, "project": {"owner": {"id": 19}, "assignee": {"id": 833}, "organization": {"id": 999}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 409}, "assignee": {"id": 530}, "organization": {"id": 694}, "project": {"owner": {"id": 20}, "assignee": {"id": 889}, "organization": {"id": 931}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 496}, "assignee": {"id": 506}, "organization": {"id": 144}, "project": {"owner": {"id": 99}, "assignee": {"id": 803}, "organization": {"id": 967}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 400}, "assignee": {"id": 563}, "organization": {"id": 647}, "project": {"owner": {"id": 41}, "assignee": {"id": 821}, "organization": {"id": 962}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 403}, "assignee": {"id": 558}, "organization": {"id": 133}, "project": {"owner": {"id": 69}, "assignee": {"id": 828}, "organization": {"id": 981}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 439}, "assignee": {"id": 574}, "organization": {"id": 621}, "project": {"owner": {"id": 69}, "assignee": {"id": 809}, "organization": {"id": 952}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 442}, "assignee": {"id": 524}, "organization": {"id": 142}, "project": {"owner": {"id": 1}, "assignee": {"id": 837}, "organization": {"id": 961}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 405}, "assignee": {"id": 578}, "organization": {"id": 697}, "project": {"owner": {"id": 83}, "assignee": {"id": 850}, "organization": {"id": 941}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 422}, "assignee": {"id": 561}, "organization": {"id": 119}, "project": {"owner": {"id": 1}, "assignee": {"id": 860}, "organization": {"id": 990}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 476}, "assignee": {"id": 527}, "organization": {"id": 697}, "project": {"owner": {"id": 5}, "assignee": {"id": 821}, "organization": {"id": 973}}}} +} + +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": 72, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 432}, "assignee": {"id": 570}, "organization": {"id": 178}, "project": {"owner": {"id": 72}, "assignee": {"id": 820}, "organization": {"id": 968}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 492}, "assignee": {"id": 556}, "organization": {"id": 628}, "project": {"owner": {"id": 4}, "assignee": {"id": 805}, "organization": {"id": 924}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 474}, "assignee": {"id": 580}, "organization": {"id": 151}, "project": {"owner": {"id": 73}, "assignee": {"id": 839}, "organization": {"id": 927}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 411}, "assignee": {"id": 566}, "organization": {"id": 635}, "project": {"owner": {"id": 88}, "assignee": {"id": 839}, "organization": {"id": 972}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 462}, "assignee": {"id": 526}, "organization": {"id": 152}, "project": {"owner": {"id": 68}, "assignee": {"id": 816}, "organization": {"id": 941}}}} +} + +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": 53, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 427}, "assignee": {"id": 528}, "organization": {"id": 630}, "project": {"owner": {"id": 53}, "assignee": {"id": 840}, "organization": {"id": 966}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 408}, "assignee": {"id": 523}, "organization": {"id": 184}, "project": {"owner": {"id": 77}, "assignee": {"id": 885}, "organization": {"id": 942}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 451}, "assignee": {"id": 572}, "organization": {"id": 697}, "project": {"owner": {"id": 49}, "assignee": {"id": 861}, "organization": {"id": 972}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 476}, "assignee": {"id": 513}, "organization": {"id": 162}, "project": {"owner": {"id": 16}, "assignee": {"id": 835}, "organization": {"id": 942}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 443}, "assignee": {"id": 590}, "organization": {"id": 653}, "project": {"owner": {"id": 45}, "assignee": {"id": 871}, "organization": {"id": 938}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 416}, "assignee": {"id": 516}, "organization": {"id": 175}, "project": {"owner": {"id": 69}, "assignee": {"id": 858}, "organization": {"id": 942}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 405}, "assignee": {"id": 503}, "organization": {"id": 614}, "project": {"owner": {"id": 47}, "assignee": {"id": 845}, "organization": {"id": 913}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 414}, "assignee": {"id": 589}, "organization": {"id": 141}, "project": {"owner": {"id": 83}, "assignee": {"id": 888}, "organization": {"id": 991}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 430}, "assignee": {"id": 536}, "organization": {"id": 628}, "project": {"owner": {"id": 36}, "assignee": {"id": 840}, "organization": {"id": 908}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 407}, "assignee": {"id": 574}, "organization": {"id": 179}, "project": {"owner": {"id": 798}, "assignee": {"id": 0}, "organization": {"id": 909}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 421}, "assignee": {"id": 567}, "organization": {"id": 635}, "project": {"owner": {"id": 714}, "assignee": {"id": 0}, "organization": {"id": 980}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 429}, "assignee": {"id": 581}, "organization": {"id": 140}, "project": {"owner": {"id": 734}, "assignee": {"id": 17}, "organization": {"id": 904}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 403}, "assignee": {"id": 544}, "organization": {"id": 636}, "project": {"owner": {"id": 770}, "assignee": {"id": 6}, "organization": {"id": 951}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 492}, "assignee": {"id": 582}, "organization": {"id": 103}, "project": {"owner": {"id": 748}, "assignee": {"id": 47}, "organization": {"id": 946}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 438}, "assignee": {"id": 515}, "organization": {"id": 682}, "project": {"owner": {"id": 759}, "assignee": {"id": 78}, "organization": {"id": 947}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 446}, "assignee": {"id": 508}, "organization": {"id": 176}, "project": {"owner": {"id": 761}, "assignee": {"id": 65}, "organization": {"id": 926}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 415}, "assignee": {"id": 590}, "organization": {"id": 637}, "project": {"owner": {"id": 716}, "assignee": {"id": 44}, "organization": {"id": 977}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 437}, "assignee": {"id": 599}, "organization": {"id": 134}, "project": {"owner": {"id": 788}, "assignee": {"id": 74}, "organization": {"id": 977}}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 458}, "assignee": {"id": 581}, "organization": {"id": 631}, "project": {"owner": {"id": 765}, "assignee": {"id": 76}, "organization": {"id": 911}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 482}, "assignee": {"id": 595}, "organization": {"id": 186}, "project": {"owner": {"id": 731}, "assignee": {"id": 50}, "organization": {"id": 937}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 427}, "assignee": {"id": 545}, "organization": {"id": 699}, "project": {"owner": {"id": 784}, "assignee": {"id": 51}, "organization": {"id": 988}}}} +} + +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": 167, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 473}, "assignee": {"id": 555}, "organization": {"id": 167}, "project": {"owner": {"id": 708}, "assignee": {"id": 21}, "organization": {"id": 907}}}} +} + +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": 28, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 451}, "assignee": {"id": 534}, "organization": {"id": 650}, "project": {"owner": {"id": 756}, "assignee": {"id": 28}, "organization": {"id": 971}}}} +} + +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": 66, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 452}, "assignee": {"id": 545}, "organization": {"id": 150}, "project": {"owner": {"id": 755}, "assignee": {"id": 66}, "organization": {"id": 982}}}} +} + +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": 0, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 462}, "assignee": {"id": 590}, "organization": {"id": 688}, "project": {"owner": {"id": 747}, "assignee": {"id": 0}, "organization": {"id": 957}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 499}, "assignee": {"id": 517}, "organization": {"id": 130}, "project": {"owner": {"id": 754}, "assignee": {"id": 40}, "organization": {"id": 924}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 401}, "assignee": {"id": 537}, "organization": {"id": 601}, "project": {"owner": {"id": 785}, "assignee": {"id": 82}, "organization": {"id": 914}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 470}, "assignee": {"id": 534}, "organization": {"id": 185}, "project": {"owner": {"id": 745}, "assignee": {"id": 99}, "organization": {"id": 910}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 491}, "assignee": {"id": 583}, "organization": {"id": 684}, "project": {"owner": {"id": 706}, "assignee": {"id": 34}, "organization": {"id": 946}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 471}, "assignee": {"id": 549}, "organization": {"id": 142}, "project": {"owner": {"id": 763}, "assignee": {"id": 42}, "organization": {"id": 924}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 481}, "assignee": {"id": 572}, "organization": {"id": 616}, "project": {"owner": {"id": 737}, "assignee": {"id": 63}, "organization": {"id": 978}}}} +} + +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": 77, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 451}, "assignee": {"id": 522}, "organization": {"id": 179}, "project": {"owner": {"id": 780}, "assignee": {"id": 77}, "organization": {"id": 941}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 435}, "assignee": {"id": 518}, "organization": {"id": 660}, "project": {"owner": {"id": 706}, "assignee": {"id": 12}, "organization": {"id": 974}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 436}, "assignee": {"id": 549}, "organization": {"id": 121}, "project": {"owner": {"id": 776}, "assignee": {"id": 0}, "organization": {"id": 956}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 436}, "assignee": {"id": 524}, "organization": {"id": 639}, "project": {"owner": {"id": 772}, "assignee": {"id": 44}, "organization": {"id": 960}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 479}, "assignee": {"id": 525}, "organization": {"id": 111}, "project": {"owner": {"id": 768}, "assignee": {"id": 60}, "organization": {"id": 963}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 463}, "assignee": {"id": 592}, "organization": {"id": 662}, "project": {"owner": {"id": 769}, "assignee": {"id": 73}, "organization": {"id": 999}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 437}, "assignee": {"id": 517}, "organization": {"id": 180}, "project": {"owner": {"id": 792}, "assignee": {"id": 72}, "organization": {"id": 967}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 460}, "assignee": {"id": 584}, "organization": {"id": 690}, "project": {"owner": {"id": 725}, "assignee": {"id": 5}, "organization": {"id": 959}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 459}, "assignee": {"id": 513}, "organization": {"id": 175}, "project": {"owner": {"id": 708}, "assignee": {"id": 96}, "organization": {"id": 984}}}} +} + +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": 21, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 459}, "assignee": {"id": 542}, "organization": {"id": 650}, "project": {"owner": {"id": 732}, "assignee": {"id": 21}, "organization": {"id": 937}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 424}, "assignee": {"id": 598}, "organization": {"id": 114}, "project": {"owner": {"id": 784}, "assignee": {"id": 24}, "organization": {"id": 966}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 469}, "assignee": {"id": 535}, "organization": {"id": 636}, "project": {"owner": {"id": 771}, "assignee": {"id": 68}, "organization": {"id": 962}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 464}, "assignee": {"id": 509}, "organization": {"id": 166}, "project": {"owner": {"id": 734}, "assignee": {"id": 73}, "organization": {"id": 956}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 464}, "assignee": {"id": 514}, "organization": {"id": 601}, "project": {"owner": {"id": 706}, "assignee": {"id": 27}, "organization": {"id": 936}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 448}, "assignee": {"id": 556}, "organization": {"id": 168}, "project": {"owner": {"id": 797}, "assignee": {"id": 15}, "organization": {"id": 926}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 490}, "assignee": {"id": 500}, "organization": {"id": 619}, "project": {"owner": {"id": 754}, "assignee": {"id": 1}, "organization": {"id": 978}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 484}, "assignee": {"id": 582}, "organization": {"id": 148}, "project": {"owner": {"id": 729}, "assignee": {"id": 74}, "organization": {"id": 974}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 444}, "assignee": {"id": 510}, "organization": {"id": 610}, "project": {"owner": {"id": 735}, "assignee": {"id": 0}, "organization": {"id": 969}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 497}, "assignee": {"id": 545}, "organization": {"id": 157}, "project": {"owner": {"id": 799}, "assignee": {"id": 70}, "organization": {"id": 934}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 426}, "assignee": {"id": 534}, "organization": {"id": 687}, "project": {"owner": {"id": 783}, "assignee": {"id": 97}, "organization": {"id": 956}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 478}, "assignee": {"id": 544}, "organization": {"id": 106}, "project": {"owner": {"id": 710}, "assignee": {"id": 55}, "organization": {"id": 950}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 414}, "assignee": {"id": 508}, "organization": {"id": 681}, "project": {"owner": {"id": 740}, "assignee": {"id": 21}, "organization": {"id": 985}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 464}, "assignee": {"id": 518}, "organization": {"id": 117}, "project": {"owner": {"id": 787}, "assignee": {"id": 43}, "organization": {"id": 937}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 433}, "assignee": {"id": 586}, "organization": {"id": 680}, "project": {"owner": {"id": 768}, "assignee": {"id": 70}, "organization": {"id": 921}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 492}, "assignee": {"id": 520}, "organization": {"id": 135}, "project": {"owner": {"id": 788}, "assignee": {"id": 40}, "organization": {"id": 922}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 455}, "assignee": {"id": 518}, "organization": {"id": 623}, "project": {"owner": {"id": 770}, "assignee": {"id": 81}, "organization": {"id": 909}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 461}, "assignee": {"id": 589}, "organization": {"id": 136}, "project": {"owner": {"id": 704}, "assignee": {"id": 83}, "organization": {"id": 933}}}} +} + +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": 12, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 486}, "assignee": {"id": 574}, "organization": {"id": 674}, "project": {"owner": {"id": 760}, "assignee": {"id": 12}, "organization": {"id": 946}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 88}, "assignee": {"id": 543}, "organization": {"id": 131}, "project": {"owner": {"id": 753}, "assignee": {"id": 803}, "organization": {"id": 962}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 3}, "assignee": {"id": 573}, "organization": {"id": 643}, "project": {"owner": {"id": 758}, "assignee": {"id": 831}, "organization": {"id": 976}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 92}, "assignee": {"id": 533}, "organization": {"id": 154}, "project": {"owner": {"id": 744}, "assignee": {"id": 851}, "organization": {"id": 955}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 91}, "assignee": {"id": 543}, "organization": {"id": 603}, "project": {"owner": {"id": 782}, "assignee": {"id": 840}, "organization": {"id": 982}}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 7}, "assignee": {"id": 515}, "organization": {"id": 180}, "project": {"owner": {"id": 707}, "assignee": {"id": 802}, "organization": {"id": 935}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 44}, "assignee": {"id": 543}, "organization": {"id": 620}, "project": {"owner": {"id": 721}, "assignee": {"id": 896}, "organization": {"id": 966}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 32}, "assignee": {"id": 585}, "organization": {"id": 139}, "project": {"owner": {"id": 722}, "assignee": {"id": 830}, "organization": {"id": 967}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 97}, "assignee": {"id": 598}, "organization": {"id": 657}, "project": {"owner": {"id": 703}, "assignee": {"id": 816}, "organization": {"id": 927}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 9}, "assignee": {"id": 517}, "organization": {"id": 100}, "project": {"owner": {"id": 711}, "assignee": {"id": 814}, "organization": {"id": 991}}}} +} + +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": 55, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 55}, "assignee": {"id": 539}, "organization": {"id": 623}, "project": {"owner": {"id": 788}, "assignee": {"id": 844}, "organization": {"id": 953}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 50}, "assignee": {"id": 503}, "organization": {"id": 107}, "project": {"owner": {"id": 798}, "assignee": {"id": 849}, "organization": {"id": 997}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 47}, "assignee": {"id": 536}, "organization": {"id": 627}, "project": {"owner": {"id": 796}, "assignee": {"id": 818}, "organization": {"id": 944}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 55}, "assignee": {"id": 558}, "organization": {"id": 154}, "project": {"owner": {"id": 728}, "assignee": {"id": 888}, "organization": {"id": 913}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 39}, "assignee": {"id": 578}, "organization": {"id": 635}, "project": {"owner": {"id": 756}, "assignee": {"id": 811}, "organization": {"id": 948}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 31}, "assignee": {"id": 532}, "organization": {"id": 192}, "project": {"owner": {"id": 754}, "assignee": {"id": 857}, "organization": {"id": 903}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 79}, "assignee": {"id": 514}, "organization": {"id": 669}, "project": {"owner": {"id": 754}, "assignee": {"id": 898}, "organization": {"id": 965}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 9}, "assignee": {"id": 559}, "organization": {"id": 154}, "project": {"owner": {"id": 719}, "assignee": {"id": 890}, "organization": {"id": 967}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 89}, "assignee": {"id": 597}, "organization": {"id": 658}, "project": {"owner": {"id": 769}, "assignee": {"id": 817}, "organization": {"id": 911}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 55}, "assignee": {"id": 585}, "organization": {"id": 156}, "project": {"owner": {"id": 703}, "assignee": {"id": 832}, "organization": {"id": 979}}}} +} + +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": 81, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 81}, "assignee": {"id": 512}, "organization": {"id": 654}, "project": {"owner": {"id": 795}, "assignee": {"id": 857}, "organization": {"id": 932}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 35}, "assignee": {"id": 593}, "organization": {"id": 190}, "project": {"owner": {"id": 755}, "assignee": {"id": 831}, "organization": {"id": 927}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 75}, "assignee": {"id": 596}, "organization": {"id": 683}, "project": {"owner": {"id": 738}, "assignee": {"id": 804}, "organization": {"id": 913}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 37}, "assignee": {"id": 597}, "organization": {"id": 163}, "project": {"owner": {"id": 773}, "assignee": {"id": 814}, "organization": {"id": 945}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 78}, "assignee": {"id": 598}, "organization": {"id": 603}, "project": {"owner": {"id": 721}, "assignee": {"id": 888}, "organization": {"id": 967}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 65}, "assignee": {"id": 532}, "organization": {"id": 132}, "project": {"owner": {"id": 702}, "assignee": {"id": 891}, "organization": {"id": 929}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 20}, "assignee": {"id": 586}, "organization": {"id": 610}, "project": {"owner": {"id": 720}, "assignee": {"id": 809}, "organization": {"id": 981}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 25}, "assignee": {"id": 531}, "organization": {"id": 156}, "project": {"owner": {"id": 705}, "assignee": {"id": 857}, "organization": {"id": 949}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 45}, "assignee": {"id": 579}, "organization": {"id": 684}, "project": {"owner": {"id": 736}, "assignee": {"id": 860}, "organization": {"id": 968}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 49}, "assignee": {"id": 594}, "organization": {"id": 117}, "project": {"owner": {"id": 711}, "assignee": {"id": 899}, "organization": {"id": 981}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 51}, "assignee": {"id": 590}, "organization": {"id": 606}, "project": {"owner": {"id": 736}, "assignee": {"id": 848}, "organization": {"id": 974}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 52}, "assignee": {"id": 585}, "organization": {"id": 176}, "project": {"owner": {"id": 715}, "assignee": {"id": 855}, "organization": {"id": 967}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 42}, "assignee": {"id": 549}, "organization": {"id": 665}, "project": {"owner": {"id": 728}, "assignee": {"id": 874}, "organization": {"id": 953}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 32}, "assignee": {"id": 518}, "organization": {"id": 101}, "project": {"owner": {"id": 747}, "assignee": {"id": 842}, "organization": {"id": 928}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 50}, "assignee": {"id": 509}, "organization": {"id": 678}, "project": {"owner": {"id": 725}, "assignee": {"id": 811}, "organization": {"id": 962}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 65}, "assignee": {"id": 568}, "organization": {"id": 182}, "project": {"owner": {"id": 791}, "assignee": {"id": 835}, "organization": {"id": 932}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 56}, "assignee": {"id": 599}, "organization": {"id": 639}, "project": {"owner": {"id": 748}, "assignee": {"id": 833}, "organization": {"id": 973}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 30}, "assignee": {"id": 529}, "organization": {"id": 125}, "project": {"owner": {"id": 702}, "assignee": {"id": 877}, "organization": {"id": 968}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 19}, "assignee": {"id": 582}, "organization": {"id": 633}, "project": {"owner": {"id": 700}, "assignee": {"id": 857}, "organization": {"id": 955}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 60}, "assignee": {"id": 512}, "organization": {"id": 135}, "project": {"owner": {"id": 743}, "assignee": {"id": 852}, "organization": {"id": 982}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 31}, "assignee": {"id": 571}, "organization": {"id": 613}, "project": {"owner": {"id": 759}, "assignee": {"id": 899}, "organization": {"id": 950}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 9}, "assignee": {"id": 530}, "organization": {"id": 194}, "project": {"owner": {"id": 715}, "assignee": {"id": 872}, "organization": {"id": 934}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 51}, "assignee": {"id": 596}, "organization": {"id": 690}, "project": {"owner": {"id": 758}, "assignee": {"id": 817}, "organization": {"id": 922}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 33}, "assignee": {"id": 515}, "organization": {"id": 173}, "project": {"owner": {"id": 728}, "assignee": {"id": 825}, "organization": {"id": 992}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 45}, "assignee": {"id": 505}, "organization": {"id": 678}, "project": {"owner": {"id": 775}, "assignee": {"id": 876}, "organization": {"id": 981}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 96}, "assignee": {"id": 503}, "organization": {"id": 184}, "project": {"owner": {"id": 719}, "assignee": {"id": 829}, "organization": {"id": 972}}}} +} + +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": 92, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 92}, "assignee": {"id": 594}, "organization": {"id": 622}, "project": {"owner": {"id": 719}, "assignee": {"id": 832}, "organization": {"id": 923}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 82}, "assignee": {"id": 570}, "organization": {"id": 167}, "project": {"owner": {"id": 750}, "assignee": {"id": 873}, "organization": {"id": 920}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 36}, "assignee": {"id": 572}, "organization": {"id": 671}, "project": {"owner": {"id": 716}, "assignee": {"id": 803}, "organization": {"id": 994}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 91}, "assignee": {"id": 506}, "organization": {"id": 112}, "project": {"owner": {"id": 758}, "assignee": {"id": 840}, "organization": {"id": 945}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 0}, "assignee": {"id": 533}, "organization": {"id": 645}, "project": {"owner": {"id": 728}, "assignee": {"id": 823}, "organization": {"id": 902}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 429}, "assignee": {"id": 95}, "organization": {"id": 184}, "project": {"owner": {"id": 725}, "assignee": {"id": 862}, "organization": {"id": 981}}}} +} + +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": 0, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 478}, "assignee": {"id": 0}, "organization": {"id": 653}, "project": {"owner": {"id": 768}, "assignee": {"id": 841}, "organization": {"id": 985}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 446}, "assignee": {"id": 40}, "organization": {"id": 160}, "project": {"owner": {"id": 765}, "assignee": {"id": 859}, "organization": {"id": 946}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 414}, "assignee": {"id": 26}, "organization": {"id": 658}, "project": {"owner": {"id": 714}, "assignee": {"id": 816}, "organization": {"id": 948}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 434}, "assignee": {"id": 41}, "organization": {"id": 110}, "project": {"owner": {"id": 752}, "assignee": {"id": 870}, "organization": {"id": 900}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 463}, "assignee": {"id": 71}, "organization": {"id": 696}, "project": {"owner": {"id": 758}, "assignee": {"id": 825}, "organization": {"id": 954}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 438}, "assignee": {"id": 77}, "organization": {"id": 120}, "project": {"owner": {"id": 789}, "assignee": {"id": 860}, "organization": {"id": 966}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 491}, "assignee": {"id": 94}, "organization": {"id": 609}, "project": {"owner": {"id": 797}, "assignee": {"id": 832}, "organization": {"id": 950}}}} +} + +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": 90, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 490}, "assignee": {"id": 90}, "organization": {"id": 143}, "project": {"owner": {"id": 752}, "assignee": {"id": 869}, "organization": {"id": 930}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 421}, "assignee": {"id": 88}, "organization": {"id": 697}, "project": {"owner": {"id": 727}, "assignee": {"id": 849}, "organization": {"id": 902}}}} +} + +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": 46, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 441}, "assignee": {"id": 46}, "organization": {"id": 125}, "project": {"owner": {"id": 794}, "assignee": {"id": 815}, "organization": {"id": 945}}}} +} + +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": 174, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 408}, "assignee": {"id": 61}, "organization": {"id": 610}, "project": {"owner": {"id": 759}, "assignee": {"id": 868}, "organization": {"id": 946}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 450}, "assignee": {"id": 25}, "organization": {"id": 146}, "project": {"owner": {"id": 734}, "assignee": {"id": 882}, "organization": {"id": 922}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 451}, "assignee": {"id": 45}, "organization": {"id": 692}, "project": {"owner": {"id": 719}, "assignee": {"id": 852}, "organization": {"id": 968}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 405}, "assignee": {"id": 86}, "organization": {"id": 171}, "project": {"owner": {"id": 790}, "assignee": {"id": 875}, "organization": {"id": 901}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 441}, "assignee": {"id": 63}, "organization": {"id": 696}, "project": {"owner": {"id": 701}, "assignee": {"id": 896}, "organization": {"id": 922}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 427}, "assignee": {"id": 98}, "organization": {"id": 128}, "project": {"owner": {"id": 766}, "assignee": {"id": 857}, "organization": {"id": 990}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 429}, "assignee": {"id": 41}, "organization": {"id": 655}, "project": {"owner": {"id": 797}, "assignee": {"id": 866}, "organization": {"id": 951}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 474}, "assignee": {"id": 8}, "organization": {"id": 168}, "project": {"owner": {"id": 796}, "assignee": {"id": 813}, "organization": {"id": 999}}}} +} + +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": 10, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 445}, "assignee": {"id": 10}, "organization": {"id": 660}, "project": {"owner": {"id": 723}, "assignee": {"id": 842}, "organization": {"id": 999}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 492}, "assignee": {"id": 33}, "organization": {"id": 163}, "project": {"owner": {"id": 762}, "assignee": {"id": 865}, "organization": {"id": 907}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 405}, "assignee": {"id": 21}, "organization": {"id": 602}, "project": {"owner": {"id": 717}, "assignee": {"id": 845}, "organization": {"id": 932}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 425}, "assignee": {"id": 27}, "organization": {"id": 134}, "project": {"owner": {"id": 731}, "assignee": {"id": 850}, "organization": {"id": 969}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 455}, "assignee": {"id": 86}, "organization": {"id": 698}, "project": {"owner": {"id": 712}, "assignee": {"id": 889}, "organization": {"id": 976}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 446}, "assignee": {"id": 44}, "organization": {"id": 144}, "project": {"owner": {"id": 731}, "assignee": {"id": 857}, "organization": {"id": 958}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 493}, "assignee": {"id": 97}, "organization": {"id": 675}, "project": {"owner": {"id": 777}, "assignee": {"id": 846}, "organization": {"id": 989}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 408}, "assignee": {"id": 28}, "organization": {"id": 152}, "project": {"owner": {"id": 772}, "assignee": {"id": 802}, "organization": {"id": 976}}}} +} + +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": 20, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 443}, "assignee": {"id": 20}, "organization": {"id": 633}, "project": {"owner": {"id": 716}, "assignee": {"id": 818}, "organization": {"id": 977}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 426}, "assignee": {"id": 51}, "organization": {"id": 171}, "project": {"owner": {"id": 796}, "assignee": {"id": 826}, "organization": {"id": 969}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 496}, "assignee": {"id": 25}, "organization": {"id": 662}, "project": {"owner": {"id": 773}, "assignee": {"id": 831}, "organization": {"id": 918}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 481}, "assignee": {"id": 73}, "organization": {"id": 101}, "project": {"owner": {"id": 786}, "assignee": {"id": 875}, "organization": {"id": 996}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 427}, "assignee": {"id": 95}, "organization": {"id": 623}, "project": {"owner": {"id": 709}, "assignee": {"id": 865}, "organization": {"id": 927}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 478}, "assignee": {"id": 56}, "organization": {"id": 147}, "project": {"owner": {"id": 773}, "assignee": {"id": 848}, "organization": {"id": 992}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 464}, "assignee": {"id": 40}, "organization": {"id": 674}, "project": {"owner": {"id": 744}, "assignee": {"id": 858}, "organization": {"id": 946}}}} +} + +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": 8, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 439}, "assignee": {"id": 8}, "organization": {"id": 125}, "project": {"owner": {"id": 765}, "assignee": {"id": 817}, "organization": {"id": 934}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 434}, "assignee": {"id": 40}, "organization": {"id": 666}, "project": {"owner": {"id": 799}, "assignee": {"id": 824}, "organization": {"id": 977}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 455}, "assignee": {"id": 6}, "organization": {"id": 183}, "project": {"owner": {"id": 718}, "assignee": {"id": 808}, "organization": {"id": 901}}}} +} + +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": 47, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 404}, "assignee": {"id": 47}, "organization": {"id": 679}, "project": {"owner": {"id": 719}, "assignee": {"id": 859}, "organization": {"id": 938}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 436}, "assignee": {"id": 41}, "organization": {"id": 179}, "project": {"owner": {"id": 759}, "assignee": {"id": 864}, "organization": {"id": 993}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 481}, "assignee": {"id": 5}, "organization": {"id": 699}, "project": {"owner": {"id": 718}, "assignee": {"id": 818}, "organization": {"id": 997}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 465}, "assignee": {"id": 10}, "organization": {"id": 180}, "project": {"owner": {"id": 722}, "assignee": {"id": 880}, "organization": {"id": 961}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 405}, "assignee": {"id": 81}, "organization": {"id": 699}, "project": {"owner": {"id": 738}, "assignee": {"id": 831}, "organization": {"id": 930}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 424}, "assignee": {"id": 29}, "organization": {"id": 168}, "project": {"owner": {"id": 701}, "assignee": {"id": 859}, "organization": {"id": 974}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 464}, "assignee": {"id": 50}, "organization": {"id": 630}, "project": {"owner": {"id": 714}, "assignee": {"id": 820}, "organization": {"id": 980}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 420}, "assignee": {"id": 11}, "organization": {"id": 162}, "project": {"owner": {"id": 754}, "assignee": {"id": 806}, "organization": {"id": 933}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 412}, "assignee": {"id": 4}, "organization": {"id": 631}, "project": {"owner": {"id": 721}, "assignee": {"id": 899}, "organization": {"id": 949}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 465}, "assignee": {"id": 78}, "organization": {"id": 132}, "project": {"owner": {"id": 776}, "assignee": {"id": 821}, "organization": {"id": 947}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 428}, "assignee": {"id": 24}, "organization": {"id": 695}, "project": {"owner": {"id": 757}, "assignee": {"id": 862}, "organization": {"id": 969}}}} +} + +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": 48, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 463}, "assignee": {"id": 48}, "organization": {"id": 123}, "project": {"owner": {"id": 790}, "assignee": {"id": 869}, "organization": {"id": 912}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 432}, "assignee": {"id": 79}, "organization": {"id": 608}, "project": {"owner": {"id": 760}, "assignee": {"id": 888}, "organization": {"id": 922}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 419}, "assignee": {"id": 567}, "organization": {"id": 193}, "project": {"owner": {"id": 723}, "assignee": {"id": 825}, "organization": {"id": 945}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 497}, "assignee": {"id": 551}, "organization": {"id": 674}, "project": {"owner": {"id": 725}, "assignee": {"id": 822}, "organization": {"id": 998}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 461}, "assignee": {"id": 531}, "organization": {"id": 167}, "project": {"owner": {"id": 718}, "assignee": {"id": 883}, "organization": {"id": 926}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 429}, "assignee": {"id": 592}, "organization": {"id": 696}, "project": {"owner": {"id": 764}, "assignee": {"id": 879}, "organization": {"id": 900}}}} +} + +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": 5, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 456}, "assignee": {"id": 585}, "organization": {"id": 150}, "project": {"owner": {"id": 753}, "assignee": {"id": 841}, "organization": {"id": 961}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 481}, "assignee": {"id": 571}, "organization": {"id": 687}, "project": {"owner": {"id": 719}, "assignee": {"id": 824}, "organization": {"id": 921}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 420}, "assignee": {"id": 549}, "organization": {"id": 106}, "project": {"owner": {"id": 792}, "assignee": {"id": 867}, "organization": {"id": 975}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 484}, "assignee": {"id": 541}, "organization": {"id": 681}, "project": {"owner": {"id": 703}, "assignee": {"id": 889}, "organization": {"id": 981}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 469}, "assignee": {"id": 538}, "organization": {"id": 145}, "project": {"owner": {"id": 750}, "assignee": {"id": 873}, "organization": {"id": 961}}}} +} + +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": 74, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 444}, "assignee": {"id": 574}, "organization": {"id": 638}, "project": {"owner": {"id": 773}, "assignee": {"id": 870}, "organization": {"id": 983}}}} +} + +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": 70, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 496}, "assignee": {"id": 546}, "organization": {"id": 145}, "project": {"owner": {"id": 748}, "assignee": {"id": 815}, "organization": {"id": 969}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 473}, "assignee": {"id": 572}, "organization": {"id": 676}, "project": {"owner": {"id": 723}, "assignee": {"id": 880}, "organization": {"id": 995}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 435}, "assignee": {"id": 586}, "organization": {"id": 191}, "project": {"owner": {"id": 787}, "assignee": {"id": 842}, "organization": {"id": 999}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 449}, "assignee": {"id": 543}, "organization": {"id": 699}, "project": {"owner": {"id": 789}, "assignee": {"id": 856}, "organization": {"id": 994}}}} +} + +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": 42, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 490}, "assignee": {"id": 585}, "organization": {"id": 120}, "project": {"owner": {"id": 718}, "assignee": {"id": 825}, "organization": {"id": 946}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 485}, "assignee": {"id": 565}, "organization": {"id": 645}, "project": {"owner": {"id": 748}, "assignee": {"id": 843}, "organization": {"id": 970}}}} +} + +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": 55, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 411}, "assignee": {"id": 580}, "organization": {"id": 100}, "project": {"owner": {"id": 738}, "assignee": {"id": 843}, "organization": {"id": 983}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 409}, "assignee": {"id": 550}, "organization": {"id": 637}, "project": {"owner": {"id": 717}, "assignee": {"id": 818}, "organization": {"id": 964}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 407}, "assignee": {"id": 543}, "organization": {"id": 148}, "project": {"owner": {"id": 793}, "assignee": {"id": 848}, "organization": {"id": 953}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 417}, "assignee": {"id": 585}, "organization": {"id": 682}, "project": {"owner": {"id": 715}, "assignee": {"id": 837}, "organization": {"id": 904}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 405}, "assignee": {"id": 592}, "organization": {"id": 183}, "project": {"owner": {"id": 764}, "assignee": {"id": 873}, "organization": {"id": 986}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 412}, "assignee": {"id": 507}, "organization": {"id": 667}, "project": {"owner": {"id": 756}, "assignee": {"id": 869}, "organization": {"id": 907}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 442}, "assignee": {"id": 560}, "organization": {"id": 171}, "project": {"owner": {"id": 700}, "assignee": {"id": 821}, "organization": {"id": 908}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 487}, "assignee": {"id": 564}, "organization": {"id": 668}, "project": {"owner": {"id": 776}, "assignee": {"id": 806}, "organization": {"id": 963}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 456}, "assignee": {"id": 534}, "organization": {"id": 142}, "project": {"owner": {"id": 708}, "assignee": {"id": 899}, "organization": {"id": 978}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 450}, "assignee": {"id": 593}, "organization": {"id": 688}, "project": {"owner": {"id": 792}, "assignee": {"id": 847}, "organization": {"id": 979}}}} +} + +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": 41, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 401}, "assignee": {"id": 557}, "organization": {"id": 170}, "project": {"owner": {"id": 743}, "assignee": {"id": 892}, "organization": {"id": 991}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 462}, "assignee": {"id": 589}, "organization": {"id": 688}, "project": {"owner": {"id": 715}, "assignee": {"id": 816}, "organization": {"id": 950}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 412}, "assignee": {"id": 570}, "organization": {"id": 184}, "project": {"owner": {"id": 735}, "assignee": {"id": 820}, "organization": {"id": 961}}}} +} + +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": 98, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 416}, "assignee": {"id": 561}, "organization": {"id": 687}, "project": {"owner": {"id": 795}, "assignee": {"id": 811}, "organization": {"id": 940}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 442}, "assignee": {"id": 554}, "organization": {"id": 111}, "project": {"owner": {"id": 776}, "assignee": {"id": 845}, "organization": {"id": 998}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 470}, "assignee": {"id": 508}, "organization": {"id": 643}, "project": {"owner": {"id": 778}, "assignee": {"id": 812}, "organization": {"id": 999}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 444}, "assignee": {"id": 546}, "organization": {"id": 194}, "project": {"owner": {"id": 773}, "assignee": {"id": 816}, "organization": {"id": 989}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 408}, "assignee": {"id": 526}, "organization": {"id": 630}, "project": {"owner": {"id": 725}, "assignee": {"id": 816}, "organization": {"id": 985}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 488}, "assignee": {"id": 565}, "organization": {"id": 163}, "project": {"owner": {"id": 721}, "assignee": {"id": 830}, "organization": {"id": 958}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 499}, "assignee": {"id": 544}, "organization": {"id": 609}, "project": {"owner": {"id": 747}, "assignee": {"id": 889}, "organization": {"id": 992}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 478}, "assignee": {"id": 543}, "organization": {"id": 103}, "project": {"owner": {"id": 792}, "assignee": {"id": 830}, "organization": {"id": 997}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 468}, "assignee": {"id": 516}, "organization": {"id": 655}, "project": {"owner": {"id": 781}, "assignee": {"id": 854}, "organization": {"id": 950}}}} +} + +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": 74, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 480}, "assignee": {"id": 553}, "organization": {"id": 159}, "project": {"owner": {"id": 786}, "assignee": {"id": 894}, "organization": {"id": 915}}}} +} + +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": 48, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 466}, "assignee": {"id": 526}, "organization": {"id": 686}, "project": {"owner": {"id": 792}, "assignee": {"id": 803}, "organization": {"id": 969}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 429}, "assignee": {"id": 593}, "organization": {"id": 122}, "project": {"owner": {"id": 707}, "assignee": {"id": 834}, "organization": {"id": 957}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 477}, "assignee": {"id": 562}, "organization": {"id": 674}, "project": {"owner": {"id": 732}, "assignee": {"id": 864}, "organization": {"id": 946}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 416}, "assignee": {"id": 577}, "organization": {"id": 124}, "project": {"owner": {"id": 766}, "assignee": {"id": 834}, "organization": {"id": 946}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 441}, "assignee": {"id": 590}, "organization": {"id": 635}, "project": {"owner": {"id": 748}, "assignee": {"id": 843}, "organization": {"id": 920}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 482}, "assignee": {"id": 537}, "organization": {"id": 146}, "project": {"owner": {"id": 758}, "assignee": {"id": 888}, "organization": {"id": 950}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 424}, "assignee": {"id": 502}, "organization": {"id": 625}, "project": {"owner": {"id": 792}, "assignee": {"id": 856}, "organization": {"id": 965}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 410}, "assignee": {"id": 516}, "organization": {"id": 171}, "project": {"owner": {"id": 750}, "assignee": {"id": 857}, "organization": {"id": 942}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 490}, "assignee": {"id": 501}, "organization": {"id": 604}, "project": {"owner": {"id": 726}, "assignee": {"id": 863}, "organization": {"id": 983}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 499}, "assignee": {"id": 532}, "organization": {"id": 198}, "project": {"owner": {"id": 737}, "assignee": {"id": 847}, "organization": {"id": 981}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 458}, "assignee": {"id": 511}, "organization": {"id": 604}, "project": {"owner": {"id": 756}, "assignee": {"id": 837}, "organization": {"id": 998}}}} +} + +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": 27, "privilege": "admin"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 451}, "assignee": {"id": 597}, "organization": {"id": 667}, "project": {"owner": {"id": 27}, "assignee": {"id": 869}, "organization": {"id": 937}}}} +} + +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": 51, "privilege": "business"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 473}, "assignee": {"id": 537}, "organization": {"id": 671}, "project": {"owner": {"id": 51}, "assignee": {"id": 869}, "organization": {"id": 957}}}} +} + +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": 37, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 495}, "assignee": {"id": 598}, "organization": {"id": 686}, "project": {"owner": {"id": 37}, "assignee": {"id": 867}, "organization": {"id": 990}}}} +} + +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": 45, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 440}, "assignee": {"id": 517}, "organization": {"id": 627}, "project": {"owner": {"id": 45}, "assignee": {"id": 898}, "organization": {"id": 992}}}} +} + +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": 90, "privilege": "none"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 494}, "assignee": {"id": 528}, "organization": {"id": 644}, "project": {"owner": {"id": 90}, "assignee": {"id": 892}, "organization": {"id": 948}}}} +} + +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": 14, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 400}, "assignee": {"id": 599}, "organization": {"id": 637}, "project": {"owner": {"id": 700}, "assignee": {"id": 14}, "organization": {"id": 913}}}} +} + +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": 97, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 489}, "assignee": {"id": 515}, "organization": {"id": 691}, "project": {"owner": {"id": 728}, "assignee": {"id": 97}, "organization": {"id": 975}}}} +} + +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": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 429}, "assignee": {"id": 561}, "organization": {"id": 692}, "project": {"owner": {"id": 730}, "assignee": {"id": 57}, "organization": {"id": 993}}}} +} + +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": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 409}, "assignee": {"id": 537}, "organization": {"id": 699}, "project": {"owner": {"id": 773}, "assignee": {"id": 9}, "organization": {"id": 933}}}} +} + +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": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 468}, "assignee": {"id": 501}, "organization": {"id": 658}, "project": {"owner": {"id": 706}, "assignee": {"id": 38}, "organization": {"id": 939}}}} +} + +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": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 52}, "assignee": {"id": 558}, "organization": {"id": 676}, "project": {"owner": {"id": 749}, "assignee": {"id": 838}, "organization": {"id": 977}}}} +} + +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": 67, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 67}, "assignee": {"id": 559}, "organization": {"id": 624}, "project": {"owner": {"id": 729}, "assignee": {"id": 888}, "organization": {"id": 990}}}} +} + +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": 15, "privilege": "user"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 15}, "assignee": {"id": 598}, "organization": {"id": 613}, "project": {"owner": {"id": 705}, "assignee": {"id": 886}, "organization": {"id": 977}}}} +} + +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": 84, "privilege": "worker"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 84}, "assignee": {"id": 542}, "organization": {"id": 620}, "project": {"owner": {"id": 729}, "assignee": {"id": 843}, "organization": {"id": 939}}}} +} + +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": 85, "privilege": "none"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 85}, "assignee": {"id": 577}, "organization": {"id": 681}, "project": {"owner": {"id": 708}, "assignee": {"id": 832}, "organization": {"id": 950}}}} +} + +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": 34, "privilege": "admin"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 426}, "assignee": {"id": 34}, "organization": {"id": 622}, "project": {"owner": {"id": 780}, "assignee": {"id": 879}, "organization": {"id": 914}}}} +} + +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": 29, "privilege": "business"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 414}, "assignee": {"id": 29}, "organization": {"id": 615}, "project": {"owner": {"id": 787}, "assignee": {"id": 803}, "organization": {"id": 997}}}} +} + +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": 80, "privilege": "user"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 408}, "assignee": {"id": 80}, "organization": {"id": 621}, "project": {"owner": {"id": 749}, "assignee": {"id": 891}, "organization": {"id": 936}}}} +} + +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": 61, "privilege": "worker"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 438}, "assignee": {"id": 61}, "organization": {"id": 631}, "project": {"owner": {"id": 758}, "assignee": {"id": 802}, "organization": {"id": 926}}}} +} + +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": 1, "privilege": "none"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 476}, "assignee": {"id": 1}, "organization": {"id": 619}, "project": {"owner": {"id": 743}, "assignee": {"id": 833}, "organization": {"id": 969}}}} +} + +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": 2, "privilege": "admin"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 419}, "assignee": {"id": 541}, "organization": {"id": 655}, "project": {"owner": {"id": 746}, "assignee": {"id": 877}, "organization": {"id": 959}}}} +} + +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": 26, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 471}, "assignee": {"id": 593}, "organization": {"id": 629}, "project": {"owner": {"id": 776}, "assignee": {"id": 893}, "organization": {"id": 973}}}} +} + +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": 1, "privilege": "user"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 426}, "assignee": {"id": 510}, "organization": {"id": 639}, "project": {"owner": {"id": 757}, "assignee": {"id": 869}, "organization": {"id": 974}}}} +} + +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": 53, "privilege": "worker"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 470}, "assignee": {"id": 505}, "organization": {"id": 657}, "project": {"owner": {"id": 747}, "assignee": {"id": 852}, "organization": {"id": 920}}}} +} + +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": 9, "privilege": "none"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 401}, "assignee": {"id": 569}, "organization": {"id": 693}, "project": {"owner": {"id": 749}, "assignee": {"id": 897}, "organization": {"id": 915}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 434}, "assignee": {"id": 517}, "organization": {"id": 116}, "project": {"owner": {"id": 85}, "assignee": {"id": 888}, "organization": {"id": 921}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 493}, "assignee": {"id": 581}, "organization": {"id": 611}, "project": {"owner": {"id": 6}, "assignee": {"id": 825}, "organization": {"id": 959}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 438}, "assignee": {"id": 579}, "organization": {"id": 198}, "project": {"owner": {"id": 39}, "assignee": {"id": 886}, "organization": {"id": 928}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 442}, "assignee": {"id": 574}, "organization": {"id": 606}, "project": {"owner": {"id": 56}, "assignee": {"id": 837}, "organization": {"id": 938}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 426}, "assignee": {"id": 557}, "organization": {"id": 128}, "project": {"owner": {"id": 64}, "assignee": {"id": 892}, "organization": {"id": 912}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 433}, "assignee": {"id": 585}, "organization": {"id": 604}, "project": {"owner": {"id": 64}, "assignee": {"id": 801}, "organization": {"id": 981}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 498}, "assignee": {"id": 506}, "organization": {"id": 148}, "project": {"owner": {"id": 34}, "assignee": {"id": 800}, "organization": {"id": 930}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 423}, "assignee": {"id": 543}, "organization": {"id": 677}, "project": {"owner": {"id": 15}, "assignee": {"id": 862}, "organization": {"id": 965}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 411}, "assignee": {"id": 579}, "organization": {"id": 159}, "project": {"owner": {"id": 54}, "assignee": {"id": 879}, "organization": {"id": 975}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 492}, "assignee": {"id": 523}, "organization": {"id": 646}, "project": {"owner": {"id": 69}, "assignee": {"id": 834}, "organization": {"id": 934}}}} +} + +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": 99, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 495}, "assignee": {"id": 518}, "organization": {"id": 191}, "project": {"owner": {"id": 99}, "assignee": {"id": 860}, "organization": {"id": 959}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 455}, "assignee": {"id": 598}, "organization": {"id": 613}, "project": {"owner": {"id": 75}, "assignee": {"id": 834}, "organization": {"id": 904}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 430}, "assignee": {"id": 501}, "organization": {"id": 111}, "project": {"owner": {"id": 61}, "assignee": {"id": 892}, "organization": {"id": 930}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 447}, "assignee": {"id": 573}, "organization": {"id": 654}, "project": {"owner": {"id": 51}, "assignee": {"id": 877}, "organization": {"id": 989}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 415}, "assignee": {"id": 596}, "organization": {"id": 137}, "project": {"owner": {"id": 33}, "assignee": {"id": 822}, "organization": {"id": 914}}}} +} + +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": 32, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 462}, "assignee": {"id": 521}, "organization": {"id": 608}, "project": {"owner": {"id": 32}, "assignee": {"id": 872}, "organization": {"id": 912}}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 419}, "assignee": {"id": 589}, "organization": {"id": 173}, "project": {"owner": {"id": 43}, "assignee": {"id": 859}, "organization": {"id": 958}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 467}, "assignee": {"id": 551}, "organization": {"id": 689}, "project": {"owner": {"id": 39}, "assignee": {"id": 846}, "organization": {"id": 917}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 481}, "assignee": {"id": 590}, "organization": {"id": 135}, "project": {"owner": {"id": 29}, "assignee": {"id": 876}, "organization": {"id": 972}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 496}, "assignee": {"id": 585}, "organization": {"id": 617}, "project": {"owner": {"id": 5}, "assignee": {"id": 862}, "organization": {"id": 928}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 482}, "assignee": {"id": 561}, "organization": {"id": 175}, "project": {"owner": {"id": 54}, "assignee": {"id": 809}, "organization": {"id": 984}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 426}, "assignee": {"id": 572}, "organization": {"id": 648}, "project": {"owner": {"id": 12}, "assignee": {"id": 823}, "organization": {"id": 924}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 450}, "assignee": {"id": 517}, "organization": {"id": 128}, "project": {"owner": {"id": 9}, "assignee": {"id": 856}, "organization": {"id": 981}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 487}, "assignee": {"id": 501}, "organization": {"id": 686}, "project": {"owner": {"id": 42}, "assignee": {"id": 818}, "organization": {"id": 922}}}} +} + +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": 127, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 415}, "assignee": {"id": 509}, "organization": {"id": 127}, "project": {"owner": {"id": 15}, "assignee": {"id": 854}, "organization": {"id": 963}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 401}, "assignee": {"id": 584}, "organization": {"id": 620}, "project": {"owner": {"id": 0}, "assignee": {"id": 826}, "organization": {"id": 954}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 495}, "assignee": {"id": 505}, "organization": {"id": 161}, "project": {"owner": {"id": 23}, "assignee": {"id": 801}, "organization": {"id": 900}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 404}, "assignee": {"id": 515}, "organization": {"id": 679}, "project": {"owner": {"id": 56}, "assignee": {"id": 840}, "organization": {"id": 963}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 430}, "assignee": {"id": 595}, "organization": {"id": 160}, "project": {"owner": {"id": 33}, "assignee": {"id": 825}, "organization": {"id": 936}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 413}, "assignee": {"id": 564}, "organization": {"id": 682}, "project": {"owner": {"id": 2}, "assignee": {"id": 893}, "organization": {"id": 952}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 412}, "assignee": {"id": 544}, "organization": {"id": 191}, "project": {"owner": {"id": 13}, "assignee": {"id": 879}, "organization": {"id": 918}}}} +} + +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": 198, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 429}, "assignee": {"id": 509}, "organization": {"id": 610}, "project": {"owner": {"id": 63}, "assignee": {"id": 800}, "organization": {"id": 994}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 404}, "assignee": {"id": 585}, "organization": {"id": 156}, "project": {"owner": {"id": 17}, "assignee": {"id": 805}, "organization": {"id": 929}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 430}, "assignee": {"id": 558}, "organization": {"id": 688}, "project": {"owner": {"id": 56}, "assignee": {"id": 857}, "organization": {"id": 917}}}} +} + +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": 41, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 483}, "assignee": {"id": 505}, "organization": {"id": 194}, "project": {"owner": {"id": 41}, "assignee": {"id": 828}, "organization": {"id": 909}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 484}, "assignee": {"id": 542}, "organization": {"id": 644}, "project": {"owner": {"id": 23}, "assignee": {"id": 854}, "organization": {"id": 969}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 442}, "assignee": {"id": 597}, "organization": {"id": 101}, "project": {"owner": {"id": 63}, "assignee": {"id": 859}, "organization": {"id": 978}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 402}, "assignee": {"id": 583}, "organization": {"id": 647}, "project": {"owner": {"id": 45}, "assignee": {"id": 824}, "organization": {"id": 991}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 468}, "assignee": {"id": 580}, "organization": {"id": 195}, "project": {"owner": {"id": 23}, "assignee": {"id": 862}, "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": 84, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 492}, "assignee": {"id": 512}, "organization": {"id": 651}, "project": {"owner": {"id": 84}, "assignee": {"id": 841}, "organization": {"id": 931}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 452}, "assignee": {"id": 543}, "organization": {"id": 166}, "project": {"owner": {"id": 27}, "assignee": {"id": 845}, "organization": {"id": 979}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 403}, "assignee": {"id": 559}, "organization": {"id": 667}, "project": {"owner": {"id": 95}, "assignee": {"id": 893}, "organization": {"id": 993}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 465}, "assignee": {"id": 569}, "organization": {"id": 151}, "project": {"owner": {"id": 52}, "assignee": {"id": 813}, "organization": {"id": 928}}}} +} + +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": 82, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 486}, "assignee": {"id": 519}, "organization": {"id": 656}, "project": {"owner": {"id": 82}, "assignee": {"id": 818}, "organization": {"id": 965}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 413}, "assignee": {"id": 513}, "organization": {"id": 163}, "project": {"owner": {"id": 73}, "assignee": {"id": 843}, "organization": {"id": 955}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 491}, "assignee": {"id": 547}, "organization": {"id": 622}, "project": {"owner": {"id": 9}, "assignee": {"id": 896}, "organization": {"id": 937}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 405}, "assignee": {"id": 598}, "organization": {"id": 171}, "project": {"owner": {"id": 76}, "assignee": {"id": 814}, "organization": {"id": 983}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 490}, "assignee": {"id": 560}, "organization": {"id": 617}, "project": {"owner": {"id": 88}, "assignee": {"id": 820}, "organization": {"id": 968}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 409}, "assignee": {"id": 527}, "organization": {"id": 137}, "project": {"owner": {"id": 86}, "assignee": {"id": 889}, "organization": {"id": 957}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 467}, "assignee": {"id": 530}, "organization": {"id": 606}, "project": {"owner": {"id": 35}, "assignee": {"id": 892}, "organization": {"id": 987}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 413}, "assignee": {"id": 586}, "organization": {"id": 191}, "project": {"owner": {"id": 766}, "assignee": {"id": 44}, "organization": {"id": 965}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 478}, "assignee": {"id": 530}, "organization": {"id": 643}, "project": {"owner": {"id": 727}, "assignee": {"id": 70}, "organization": {"id": 953}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 430}, "assignee": {"id": 523}, "organization": {"id": 194}, "project": {"owner": {"id": 759}, "assignee": {"id": 71}, "organization": {"id": 938}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 403}, "assignee": {"id": 529}, "organization": {"id": 614}, "project": {"owner": {"id": 787}, "assignee": {"id": 53}, "organization": {"id": 978}}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 454}, "assignee": {"id": 503}, "organization": {"id": 159}, "project": {"owner": {"id": 784}, "assignee": {"id": 7}, "organization": {"id": 924}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 445}, "assignee": {"id": 547}, "organization": {"id": 677}, "project": {"owner": {"id": 770}, "assignee": {"id": 91}, "organization": {"id": 957}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 413}, "assignee": {"id": 556}, "organization": {"id": 147}, "project": {"owner": {"id": 728}, "assignee": {"id": 93}, "organization": {"id": 966}}}} +} + +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": 192, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 457}, "assignee": {"id": 597}, "organization": {"id": 662}, "project": {"owner": {"id": 772}, "assignee": {"id": 54}, "organization": {"id": 900}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 486}, "assignee": {"id": 526}, "organization": {"id": 182}, "project": {"owner": {"id": 750}, "assignee": {"id": 89}, "organization": {"id": 900}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 413}, "assignee": {"id": 557}, "organization": {"id": 608}, "project": {"owner": {"id": 714}, "assignee": {"id": 20}, "organization": {"id": 956}}}} +} + +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": 2, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 425}, "assignee": {"id": 554}, "organization": {"id": 104}, "project": {"owner": {"id": 761}, "assignee": {"id": 2}, "organization": {"id": 962}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 401}, "assignee": {"id": 570}, "organization": {"id": 683}, "project": {"owner": {"id": 761}, "assignee": {"id": 56}, "organization": {"id": 941}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 429}, "assignee": {"id": 553}, "organization": {"id": 191}, "project": {"owner": {"id": 735}, "assignee": {"id": 23}, "organization": {"id": 917}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 481}, "assignee": {"id": 501}, "organization": {"id": 651}, "project": {"owner": {"id": 719}, "assignee": {"id": 65}, "organization": {"id": 952}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 425}, "assignee": {"id": 573}, "organization": {"id": 108}, "project": {"owner": {"id": 781}, "assignee": {"id": 95}, "organization": {"id": 904}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 404}, "assignee": {"id": 587}, "organization": {"id": 647}, "project": {"owner": {"id": 763}, "assignee": {"id": 60}, "organization": {"id": 996}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 465}, "assignee": {"id": 508}, "organization": {"id": 163}, "project": {"owner": {"id": 704}, "assignee": {"id": 13}, "organization": {"id": 928}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 434}, "assignee": {"id": 510}, "organization": {"id": 655}, "project": {"owner": {"id": 766}, "assignee": {"id": 40}, "organization": {"id": 939}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 497}, "assignee": {"id": 537}, "organization": {"id": 117}, "project": {"owner": {"id": 769}, "assignee": {"id": 51}, "organization": {"id": 997}}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 454}, "assignee": {"id": 560}, "organization": {"id": 613}, "project": {"owner": {"id": 790}, "assignee": {"id": 19}, "organization": {"id": 975}}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 410}, "assignee": {"id": 593}, "organization": {"id": 141}, "project": {"owner": {"id": 782}, "assignee": {"id": 59}, "organization": {"id": 997}}}} +} + +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": 121, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 408}, "assignee": {"id": 556}, "organization": {"id": 676}, "project": {"owner": {"id": 772}, "assignee": {"id": 40}, "organization": {"id": 997}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 487}, "assignee": {"id": 583}, "organization": {"id": 100}, "project": {"owner": {"id": 735}, "assignee": {"id": 95}, "organization": {"id": 932}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 443}, "assignee": {"id": 528}, "organization": {"id": 660}, "project": {"owner": {"id": 747}, "assignee": {"id": 46}, "organization": {"id": 989}}}} +} + +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": 33, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 463}, "assignee": {"id": 541}, "organization": {"id": 193}, "project": {"owner": {"id": 740}, "assignee": {"id": 33}, "organization": {"id": 957}}}} +} + +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": 82, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 487}, "assignee": {"id": 544}, "organization": {"id": 660}, "project": {"owner": {"id": 707}, "assignee": {"id": 82}, "organization": {"id": 974}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 473}, "assignee": {"id": 585}, "organization": {"id": 120}, "project": {"owner": {"id": 752}, "assignee": {"id": 88}, "organization": {"id": 970}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 475}, "assignee": {"id": 585}, "organization": {"id": 626}, "project": {"owner": {"id": 700}, "assignee": {"id": 87}, "organization": {"id": 970}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 463}, "assignee": {"id": 589}, "organization": {"id": 164}, "project": {"owner": {"id": 760}, "assignee": {"id": 11}, "organization": {"id": 950}}}} +} + +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": 1, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 431}, "assignee": {"id": 520}, "organization": {"id": 682}, "project": {"owner": {"id": 771}, "assignee": {"id": 1}, "organization": {"id": 943}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 434}, "assignee": {"id": 509}, "organization": {"id": 198}, "project": {"owner": {"id": 798}, "assignee": {"id": 65}, "organization": {"id": 912}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 498}, "assignee": {"id": 558}, "organization": {"id": 663}, "project": {"owner": {"id": 710}, "assignee": {"id": 59}, "organization": {"id": 929}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 489}, "assignee": {"id": 530}, "organization": {"id": 164}, "project": {"owner": {"id": 723}, "assignee": {"id": 9}, "organization": {"id": 997}}}} +} + +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": 45, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 490}, "assignee": {"id": 568}, "organization": {"id": 605}, "project": {"owner": {"id": 747}, "assignee": {"id": 45}, "organization": {"id": 947}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 415}, "assignee": {"id": 582}, "organization": {"id": 101}, "project": {"owner": {"id": 729}, "assignee": {"id": 95}, "organization": {"id": 929}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 417}, "assignee": {"id": 551}, "organization": {"id": 637}, "project": {"owner": {"id": 727}, "assignee": {"id": 22}, "organization": {"id": 908}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 427}, "assignee": {"id": 575}, "organization": {"id": 165}, "project": {"owner": {"id": 797}, "assignee": {"id": 96}, "organization": {"id": 990}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 401}, "assignee": {"id": 505}, "organization": {"id": 663}, "project": {"owner": {"id": 718}, "assignee": {"id": 2}, "organization": {"id": 905}}}} +} + +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": 50, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 479}, "assignee": {"id": 532}, "organization": {"id": 147}, "project": {"owner": {"id": 731}, "assignee": {"id": 50}, "organization": {"id": 994}}}} +} + +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": 64, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 401}, "assignee": {"id": 505}, "organization": {"id": 615}, "project": {"owner": {"id": 738}, "assignee": {"id": 64}, "organization": {"id": 985}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 467}, "assignee": {"id": 586}, "organization": {"id": 152}, "project": {"owner": {"id": 716}, "assignee": {"id": 29}, "organization": {"id": 998}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 483}, "assignee": {"id": 540}, "organization": {"id": 646}, "project": {"owner": {"id": 705}, "assignee": {"id": 73}, "organization": {"id": 986}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 492}, "assignee": {"id": 577}, "organization": {"id": 189}, "project": {"owner": {"id": 730}, "assignee": {"id": 33}, "organization": {"id": 910}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 470}, "assignee": {"id": 591}, "organization": {"id": 651}, "project": {"owner": {"id": 771}, "assignee": {"id": 54}, "organization": {"id": 909}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 428}, "assignee": {"id": 576}, "organization": {"id": 161}, "project": {"owner": {"id": 731}, "assignee": {"id": 30}, "organization": {"id": 955}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 410}, "assignee": {"id": 585}, "organization": {"id": 603}, "project": {"owner": {"id": 711}, "assignee": {"id": 78}, "organization": {"id": 997}}}} +} + +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": 66, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 438}, "assignee": {"id": 579}, "organization": {"id": 199}, "project": {"owner": {"id": 787}, "assignee": {"id": 66}, "organization": {"id": 954}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 450}, "assignee": {"id": 591}, "organization": {"id": 673}, "project": {"owner": {"id": 792}, "assignee": {"id": 74}, "organization": {"id": 993}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 488}, "assignee": {"id": 559}, "organization": {"id": 188}, "project": {"owner": {"id": 753}, "assignee": {"id": 34}, "organization": {"id": 984}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 486}, "assignee": {"id": 521}, "organization": {"id": 691}, "project": {"owner": {"id": 748}, "assignee": {"id": 43}, "organization": {"id": 964}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 15}, "assignee": {"id": 532}, "organization": {"id": 122}, "project": {"owner": {"id": 748}, "assignee": {"id": 834}, "organization": {"id": 917}}}} +} + +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": 30, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 30}, "assignee": {"id": 522}, "organization": {"id": 607}, "project": {"owner": {"id": 780}, "assignee": {"id": 888}, "organization": {"id": 921}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 95}, "assignee": {"id": 556}, "organization": {"id": 110}, "project": {"owner": {"id": 764}, "assignee": {"id": 809}, "organization": {"id": 905}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 3}, "assignee": {"id": 556}, "organization": {"id": 657}, "project": {"owner": {"id": 774}, "assignee": {"id": 891}, "organization": {"id": 910}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 25}, "assignee": {"id": 586}, "organization": {"id": 116}, "project": {"owner": {"id": 785}, "assignee": {"id": 838}, "organization": {"id": 955}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 14}, "assignee": {"id": 520}, "organization": {"id": 617}, "project": {"owner": {"id": 762}, "assignee": {"id": 899}, "organization": {"id": 924}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 93}, "assignee": {"id": 558}, "organization": {"id": 115}, "project": {"owner": {"id": 773}, "assignee": {"id": 833}, "organization": {"id": 906}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 65}, "assignee": {"id": 582}, "organization": {"id": 638}, "project": {"owner": {"id": 755}, "assignee": {"id": 824}, "organization": {"id": 941}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 39}, "assignee": {"id": 597}, "organization": {"id": 133}, "project": {"owner": {"id": 776}, "assignee": {"id": 859}, "organization": {"id": 970}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 26}, "assignee": {"id": 558}, "organization": {"id": 684}, "project": {"owner": {"id": 711}, "assignee": {"id": 802}, "organization": {"id": 982}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 95}, "assignee": {"id": 570}, "organization": {"id": 119}, "project": {"owner": {"id": 707}, "assignee": {"id": 882}, "organization": {"id": 918}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 56}, "assignee": {"id": 556}, "organization": {"id": 681}, "project": {"owner": {"id": 700}, "assignee": {"id": 843}, "organization": {"id": 906}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 31}, "assignee": {"id": 560}, "organization": {"id": 144}, "project": {"owner": {"id": 747}, "assignee": {"id": 894}, "organization": {"id": 974}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 4}, "assignee": {"id": 558}, "organization": {"id": 663}, "project": {"owner": {"id": 718}, "assignee": {"id": 871}, "organization": {"id": 923}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 52}, "assignee": {"id": 502}, "organization": {"id": 163}, "project": {"owner": {"id": 707}, "assignee": {"id": 869}, "organization": {"id": 993}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 37}, "assignee": {"id": 596}, "organization": {"id": 629}, "project": {"owner": {"id": 742}, "assignee": {"id": 814}, "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": 98, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 98}, "assignee": {"id": 576}, "organization": {"id": 180}, "project": {"owner": {"id": 710}, "assignee": {"id": 854}, "organization": {"id": 966}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 7}, "assignee": {"id": 519}, "organization": {"id": 656}, "project": {"owner": {"id": 744}, "assignee": {"id": 879}, "organization": {"id": 958}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 47}, "assignee": {"id": 550}, "organization": {"id": 110}, "project": {"owner": {"id": 798}, "assignee": {"id": 891}, "organization": {"id": 948}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 62}, "assignee": {"id": 535}, "organization": {"id": 620}, "project": {"owner": {"id": 789}, "assignee": {"id": 842}, "organization": {"id": 909}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 78}, "assignee": {"id": 516}, "organization": {"id": 164}, "project": {"owner": {"id": 709}, "assignee": {"id": 888}, "organization": {"id": 928}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 9}, "assignee": {"id": 586}, "organization": {"id": 668}, "project": {"owner": {"id": 726}, "assignee": {"id": 868}, "organization": {"id": 989}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 15}, "assignee": {"id": 506}, "organization": {"id": 154}, "project": {"owner": {"id": 729}, "assignee": {"id": 818}, "organization": {"id": 984}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 95}, "assignee": {"id": 586}, "organization": {"id": 678}, "project": {"owner": {"id": 761}, "assignee": {"id": 814}, "organization": {"id": 991}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 44}, "assignee": {"id": 599}, "organization": {"id": 182}, "project": {"owner": {"id": 784}, "assignee": {"id": 809}, "organization": {"id": 962}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 39}, "assignee": {"id": 562}, "organization": {"id": 684}, "project": {"owner": {"id": 718}, "assignee": {"id": 857}, "organization": {"id": 972}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 69}, "assignee": {"id": 501}, "organization": {"id": 108}, "project": {"owner": {"id": 758}, "assignee": {"id": 824}, "organization": {"id": 966}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 92}, "assignee": {"id": 576}, "organization": {"id": 615}, "project": {"owner": {"id": 792}, "assignee": {"id": 830}, "organization": {"id": 933}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 0}, "assignee": {"id": 578}, "organization": {"id": 195}, "project": {"owner": {"id": 794}, "assignee": {"id": 862}, "organization": {"id": 911}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 31}, "assignee": {"id": 555}, "organization": {"id": 682}, "project": {"owner": {"id": 712}, "assignee": {"id": 889}, "organization": {"id": 979}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 63}, "assignee": {"id": 593}, "organization": {"id": 119}, "project": {"owner": {"id": 783}, "assignee": {"id": 834}, "organization": {"id": 935}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 24}, "assignee": {"id": 557}, "organization": {"id": 699}, "project": {"owner": {"id": 770}, "assignee": {"id": 882}, "organization": {"id": 942}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 99}, "assignee": {"id": 548}, "organization": {"id": 173}, "project": {"owner": {"id": 765}, "assignee": {"id": 859}, "organization": {"id": 965}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 22}, "assignee": {"id": 570}, "organization": {"id": 617}, "project": {"owner": {"id": 773}, "assignee": {"id": 859}, "organization": {"id": 955}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 3}, "assignee": {"id": 509}, "organization": {"id": 110}, "project": {"owner": {"id": 761}, "assignee": {"id": 809}, "organization": {"id": 900}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 63}, "assignee": {"id": 549}, "organization": {"id": 652}, "project": {"owner": {"id": 736}, "assignee": {"id": 862}, "organization": {"id": 939}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 59}, "assignee": {"id": 544}, "organization": {"id": 181}, "project": {"owner": {"id": 770}, "assignee": {"id": 813}, "organization": {"id": 971}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 75}, "assignee": {"id": 535}, "organization": {"id": 631}, "project": {"owner": {"id": 745}, "assignee": {"id": 851}, "organization": {"id": 975}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 97}, "assignee": {"id": 583}, "organization": {"id": 165}, "project": {"owner": {"id": 733}, "assignee": {"id": 882}, "organization": {"id": 979}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 1}, "assignee": {"id": 555}, "organization": {"id": 630}, "project": {"owner": {"id": 751}, "assignee": {"id": 814}, "organization": {"id": 948}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 78}, "assignee": {"id": 536}, "organization": {"id": 121}, "project": {"owner": {"id": 756}, "assignee": {"id": 890}, "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": 26, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 26}, "assignee": {"id": 574}, "organization": {"id": 623}, "project": {"owner": {"id": 782}, "assignee": {"id": 821}, "organization": {"id": 978}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 84}, "assignee": {"id": 532}, "organization": {"id": 111}, "project": {"owner": {"id": 775}, "assignee": {"id": 857}, "organization": {"id": 955}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 38}, "assignee": {"id": 535}, "organization": {"id": 602}, "project": {"owner": {"id": 775}, "assignee": {"id": 896}, "organization": {"id": 945}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 0}, "assignee": {"id": 503}, "organization": {"id": 106}, "project": {"owner": {"id": 763}, "assignee": {"id": 858}, "organization": {"id": 931}}}} +} + +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": 31, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 31}, "assignee": {"id": 572}, "organization": {"id": 656}, "project": {"owner": {"id": 736}, "assignee": {"id": 854}, "organization": {"id": 902}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 83}, "assignee": {"id": 542}, "organization": {"id": 123}, "project": {"owner": {"id": 753}, "assignee": {"id": 872}, "organization": {"id": 958}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 38}, "assignee": {"id": 508}, "organization": {"id": 648}, "project": {"owner": {"id": 736}, "assignee": {"id": 857}, "organization": {"id": 911}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 77}, "assignee": {"id": 531}, "organization": {"id": 146}, "project": {"owner": {"id": 759}, "assignee": {"id": 872}, "organization": {"id": 934}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 54}, "assignee": {"id": 579}, "organization": {"id": 607}, "project": {"owner": {"id": 745}, "assignee": {"id": 837}, "organization": {"id": 917}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 497}, "assignee": {"id": 96}, "organization": {"id": 118}, "project": {"owner": {"id": 795}, "assignee": {"id": 807}, "organization": {"id": 929}}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 456}, "assignee": {"id": 99}, "organization": {"id": 628}, "project": {"owner": {"id": 783}, "assignee": {"id": 876}, "organization": {"id": 988}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 419}, "assignee": {"id": 75}, "organization": {"id": 169}, "project": {"owner": {"id": 798}, "assignee": {"id": 828}, "organization": {"id": 936}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 400}, "assignee": {"id": 45}, "organization": {"id": 638}, "project": {"owner": {"id": 752}, "assignee": {"id": 891}, "organization": {"id": 907}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 427}, "assignee": {"id": 91}, "organization": {"id": 137}, "project": {"owner": {"id": 725}, "assignee": {"id": 804}, "organization": {"id": 971}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 472}, "assignee": {"id": 75}, "organization": {"id": 626}, "project": {"owner": {"id": 742}, "assignee": {"id": 890}, "organization": {"id": 904}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 419}, "assignee": {"id": 54}, "organization": {"id": 142}, "project": {"owner": {"id": 781}, "assignee": {"id": 876}, "organization": {"id": 978}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 420}, "assignee": {"id": 79}, "organization": {"id": 679}, "project": {"owner": {"id": 756}, "assignee": {"id": 888}, "organization": {"id": 932}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 487}, "assignee": {"id": 75}, "organization": {"id": 115}, "project": {"owner": {"id": 707}, "assignee": {"id": 837}, "organization": {"id": 964}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 402}, "assignee": {"id": 18}, "organization": {"id": 692}, "project": {"owner": {"id": 769}, "assignee": {"id": 867}, "organization": {"id": 988}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 426}, "assignee": {"id": 73}, "organization": {"id": 157}, "project": {"owner": {"id": 765}, "assignee": {"id": 806}, "organization": {"id": 974}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 486}, "assignee": {"id": 79}, "organization": {"id": 607}, "project": {"owner": {"id": 723}, "assignee": {"id": 871}, "organization": {"id": 989}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 411}, "assignee": {"id": 47}, "organization": {"id": 170}, "project": {"owner": {"id": 710}, "assignee": {"id": 842}, "organization": {"id": 980}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 460}, "assignee": {"id": 69}, "organization": {"id": 622}, "project": {"owner": {"id": 729}, "assignee": {"id": 860}, "organization": {"id": 956}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 472}, "assignee": {"id": 83}, "organization": {"id": 126}, "project": {"owner": {"id": 790}, "assignee": {"id": 818}, "organization": {"id": 975}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 482}, "assignee": {"id": 25}, "organization": {"id": 677}, "project": {"owner": {"id": 733}, "assignee": {"id": 888}, "organization": {"id": 927}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 477}, "assignee": {"id": 76}, "organization": {"id": 169}, "project": {"owner": {"id": 706}, "assignee": {"id": 801}, "organization": {"id": 913}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 478}, "assignee": {"id": 48}, "organization": {"id": 617}, "project": {"owner": {"id": 737}, "assignee": {"id": 838}, "organization": {"id": 938}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 434}, "assignee": {"id": 75}, "organization": {"id": 106}, "project": {"owner": {"id": 724}, "assignee": {"id": 832}, "organization": {"id": 955}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 402}, "assignee": {"id": 96}, "organization": {"id": 638}, "project": {"owner": {"id": 773}, "assignee": {"id": 851}, "organization": {"id": 999}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 457}, "assignee": {"id": 2}, "organization": {"id": 197}, "project": {"owner": {"id": 721}, "assignee": {"id": 874}, "organization": {"id": 975}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 411}, "assignee": {"id": 94}, "organization": {"id": 637}, "project": {"owner": {"id": 738}, "assignee": {"id": 893}, "organization": {"id": 999}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 458}, "assignee": {"id": 89}, "organization": {"id": 193}, "project": {"owner": {"id": 712}, "assignee": {"id": 851}, "organization": {"id": 938}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 415}, "assignee": {"id": 42}, "organization": {"id": 681}, "project": {"owner": {"id": 758}, "assignee": {"id": 841}, "organization": {"id": 908}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 440}, "assignee": {"id": 55}, "organization": {"id": 186}, "project": {"owner": {"id": 756}, "assignee": {"id": 898}, "organization": {"id": 906}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 411}, "assignee": {"id": 14}, "organization": {"id": 671}, "project": {"owner": {"id": 731}, "assignee": {"id": 875}, "organization": {"id": 949}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 423}, "assignee": {"id": 15}, "organization": {"id": 167}, "project": {"owner": {"id": 751}, "assignee": {"id": 891}, "organization": {"id": 917}}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 494}, "assignee": {"id": 53}, "organization": {"id": 623}, "project": {"owner": {"id": 752}, "assignee": {"id": 871}, "organization": {"id": 954}}}} +} + +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": 42, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 446}, "assignee": {"id": 42}, "organization": {"id": 166}, "project": {"owner": {"id": 761}, "assignee": {"id": 816}, "organization": {"id": 908}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 424}, "assignee": {"id": 96}, "organization": {"id": 637}, "project": {"owner": {"id": 786}, "assignee": {"id": 838}, "organization": {"id": 977}}}} +} + +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": 96, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 461}, "assignee": {"id": 96}, "organization": {"id": 116}, "project": {"owner": {"id": 729}, "assignee": {"id": 862}, "organization": {"id": 954}}}} +} + +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": 1, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 433}, "assignee": {"id": 1}, "organization": {"id": 687}, "project": {"owner": {"id": 730}, "assignee": {"id": 815}, "organization": {"id": 951}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 447}, "assignee": {"id": 59}, "organization": {"id": 138}, "project": {"owner": {"id": 727}, "assignee": {"id": 831}, "organization": {"id": 924}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 441}, "assignee": {"id": 38}, "organization": {"id": 623}, "project": {"owner": {"id": 780}, "assignee": {"id": 869}, "organization": {"id": 945}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 403}, "assignee": {"id": 73}, "organization": {"id": 164}, "project": {"owner": {"id": 737}, "assignee": {"id": 810}, "organization": {"id": 935}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 405}, "assignee": {"id": 66}, "organization": {"id": 649}, "project": {"owner": {"id": 730}, "assignee": {"id": 897}, "organization": {"id": 900}}}} +} + +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": 26, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 465}, "assignee": {"id": 26}, "organization": {"id": 198}, "project": {"owner": {"id": 749}, "assignee": {"id": 858}, "organization": {"id": 934}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 458}, "assignee": {"id": 34}, "organization": {"id": 624}, "project": {"owner": {"id": 752}, "assignee": {"id": 851}, "organization": {"id": 961}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 429}, "assignee": {"id": 68}, "organization": {"id": 171}, "project": {"owner": {"id": 779}, "assignee": {"id": 863}, "organization": {"id": 937}}}} +} + +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": 86, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 444}, "assignee": {"id": 86}, "organization": {"id": 620}, "project": {"owner": {"id": 758}, "assignee": {"id": 850}, "organization": {"id": 972}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 400}, "assignee": {"id": 11}, "organization": {"id": 159}, "project": {"owner": {"id": 787}, "assignee": {"id": 831}, "organization": {"id": 912}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 405}, "assignee": {"id": 97}, "organization": {"id": 693}, "project": {"owner": {"id": 701}, "assignee": {"id": 839}, "organization": {"id": 927}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 494}, "assignee": {"id": 0}, "organization": {"id": 145}, "project": {"owner": {"id": 788}, "assignee": {"id": 870}, "organization": {"id": 978}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 449}, "assignee": {"id": 52}, "organization": {"id": 602}, "project": {"owner": {"id": 796}, "assignee": {"id": 891}, "organization": {"id": 911}}}} +} + +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": 5, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 486}, "assignee": {"id": 5}, "organization": {"id": 154}, "project": {"owner": {"id": 772}, "assignee": {"id": 866}, "organization": {"id": 940}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 499}, "assignee": {"id": 98}, "organization": {"id": 620}, "project": {"owner": {"id": 777}, "assignee": {"id": 816}, "organization": {"id": 975}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 433}, "assignee": {"id": 55}, "organization": {"id": 185}, "project": {"owner": {"id": 729}, "assignee": {"id": 821}, "organization": {"id": 997}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 436}, "assignee": {"id": 86}, "organization": {"id": 609}, "project": {"owner": {"id": 705}, "assignee": {"id": 818}, "organization": {"id": 913}}}} +} + +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": 24, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 439}, "assignee": {"id": 24}, "organization": {"id": 149}, "project": {"owner": {"id": 756}, "assignee": {"id": 831}, "organization": {"id": 922}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 482}, "assignee": {"id": 30}, "organization": {"id": 624}, "project": {"owner": {"id": 736}, "assignee": {"id": 830}, "organization": {"id": 955}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 417}, "assignee": {"id": 530}, "organization": {"id": 100}, "project": {"owner": {"id": 785}, "assignee": {"id": 844}, "organization": {"id": 934}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 407}, "assignee": {"id": 549}, "organization": {"id": 617}, "project": {"owner": {"id": 749}, "assignee": {"id": 828}, "organization": {"id": 943}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 478}, "assignee": {"id": 557}, "organization": {"id": 118}, "project": {"owner": {"id": 736}, "assignee": {"id": 890}, "organization": {"id": 954}}}} +} + +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": 93, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 434}, "assignee": {"id": 557}, "organization": {"id": 600}, "project": {"owner": {"id": 768}, "assignee": {"id": 893}, "organization": {"id": 949}}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 474}, "assignee": {"id": 566}, "organization": {"id": 131}, "project": {"owner": {"id": 709}, "assignee": {"id": 864}, "organization": {"id": 954}}}} +} + +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": 92, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 412}, "assignee": {"id": 557}, "organization": {"id": 636}, "project": {"owner": {"id": 724}, "assignee": {"id": 829}, "organization": {"id": 938}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 447}, "assignee": {"id": 564}, "organization": {"id": 153}, "project": {"owner": {"id": 724}, "assignee": {"id": 802}, "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": 2, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 432}, "assignee": {"id": 599}, "organization": {"id": 662}, "project": {"owner": {"id": 768}, "assignee": {"id": 823}, "organization": {"id": 913}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 460}, "assignee": {"id": 553}, "organization": {"id": 149}, "project": {"owner": {"id": 712}, "assignee": {"id": 809}, "organization": {"id": 962}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 452}, "assignee": {"id": 571}, "organization": {"id": 655}, "project": {"owner": {"id": 743}, "assignee": {"id": 846}, "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": 3, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 497}, "assignee": {"id": 527}, "organization": {"id": 102}, "project": {"owner": {"id": 751}, "assignee": {"id": 849}, "organization": {"id": 975}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 401}, "assignee": {"id": 519}, "organization": {"id": 626}, "project": {"owner": {"id": 790}, "assignee": {"id": 846}, "organization": {"id": 997}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 401}, "assignee": {"id": 567}, "organization": {"id": 188}, "project": {"owner": {"id": 770}, "assignee": {"id": 860}, "organization": {"id": 951}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 454}, "assignee": {"id": 517}, "organization": {"id": 613}, "project": {"owner": {"id": 792}, "assignee": {"id": 842}, "organization": {"id": 999}}}} +} + +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": 86, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 445}, "assignee": {"id": 529}, "organization": {"id": 170}, "project": {"owner": {"id": 776}, "assignee": {"id": 846}, "organization": {"id": 937}}}} +} + +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": 75, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 478}, "assignee": {"id": 581}, "organization": {"id": 690}, "project": {"owner": {"id": 713}, "assignee": {"id": 801}, "organization": {"id": 931}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 472}, "assignee": {"id": 536}, "organization": {"id": 161}, "project": {"owner": {"id": 744}, "assignee": {"id": 830}, "organization": {"id": 927}}}} +} + +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": 45, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 404}, "assignee": {"id": 586}, "organization": {"id": 682}, "project": {"owner": {"id": 745}, "assignee": {"id": 837}, "organization": {"id": 974}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 449}, "assignee": {"id": 516}, "organization": {"id": 190}, "project": {"owner": {"id": 787}, "assignee": {"id": 814}, "organization": {"id": 981}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 451}, "assignee": {"id": 520}, "organization": {"id": 656}, "project": {"owner": {"id": 721}, "assignee": {"id": 834}, "organization": {"id": 920}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 444}, "assignee": {"id": 545}, "organization": {"id": 107}, "project": {"owner": {"id": 712}, "assignee": {"id": 844}, "organization": {"id": 934}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 429}, "assignee": {"id": 543}, "organization": {"id": 622}, "project": {"owner": {"id": 749}, "assignee": {"id": 804}, "organization": {"id": 945}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 417}, "assignee": {"id": 536}, "organization": {"id": 181}, "project": {"owner": {"id": 760}, "assignee": {"id": 852}, "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": 72, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 449}, "assignee": {"id": 501}, "organization": {"id": 636}, "project": {"owner": {"id": 761}, "assignee": {"id": 861}, "organization": {"id": 933}}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 447}, "assignee": {"id": 518}, "organization": {"id": 147}, "project": {"owner": {"id": 784}, "assignee": {"id": 889}, "organization": {"id": 971}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 416}, "assignee": {"id": 551}, "organization": {"id": 631}, "project": {"owner": {"id": 782}, "assignee": {"id": 872}, "organization": {"id": 996}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 473}, "assignee": {"id": 588}, "organization": {"id": 165}, "project": {"owner": {"id": 777}, "assignee": {"id": 846}, "organization": {"id": 911}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 408}, "assignee": {"id": 524}, "organization": {"id": 653}, "project": {"owner": {"id": 700}, "assignee": {"id": 827}, "organization": {"id": 908}}}} +} + +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": 86, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 422}, "assignee": {"id": 525}, "organization": {"id": 151}, "project": {"owner": {"id": 705}, "assignee": {"id": 880}, "organization": {"id": 958}}}} +} + +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": 58, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 407}, "assignee": {"id": 544}, "organization": {"id": 682}, "project": {"owner": {"id": 733}, "assignee": {"id": 849}, "organization": {"id": 998}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 423}, "assignee": {"id": 500}, "organization": {"id": 110}, "project": {"owner": {"id": 779}, "assignee": {"id": 814}, "organization": {"id": 923}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 437}, "assignee": {"id": 598}, "organization": {"id": 685}, "project": {"owner": {"id": 746}, "assignee": {"id": 884}, "organization": {"id": 972}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 449}, "assignee": {"id": 524}, "organization": {"id": 126}, "project": {"owner": {"id": 708}, "assignee": {"id": 860}, "organization": {"id": 915}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 434}, "assignee": {"id": 564}, "organization": {"id": 628}, "project": {"owner": {"id": 744}, "assignee": {"id": 837}, "organization": {"id": 942}}}} +} + +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": 84, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 436}, "assignee": {"id": 540}, "organization": {"id": 138}, "project": {"owner": {"id": 748}, "assignee": {"id": 873}, "organization": {"id": 930}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 497}, "assignee": {"id": 584}, "organization": {"id": 685}, "project": {"owner": {"id": 745}, "assignee": {"id": 819}, "organization": {"id": 946}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 412}, "assignee": {"id": 526}, "organization": {"id": 166}, "project": {"owner": {"id": 740}, "assignee": {"id": 864}, "organization": {"id": 922}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 467}, "assignee": {"id": 545}, "organization": {"id": 668}, "project": {"owner": {"id": 734}, "assignee": {"id": 811}, "organization": {"id": 923}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 497}, "assignee": {"id": 523}, "organization": {"id": 105}, "project": {"owner": {"id": 732}, "assignee": {"id": 833}, "organization": {"id": 900}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 453}, "assignee": {"id": 526}, "organization": {"id": 698}, "project": {"owner": {"id": 762}, "assignee": {"id": 841}, "organization": {"id": 986}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 460}, "assignee": {"id": 566}, "organization": {"id": 157}, "project": {"owner": {"id": 791}, "assignee": {"id": 846}, "organization": {"id": 909}}}} +} + +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": 90, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 455}, "assignee": {"id": 582}, "organization": {"id": 669}, "project": {"owner": {"id": 759}, "assignee": {"id": 838}, "organization": {"id": 972}}}} +} + +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": 13, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 440}, "assignee": {"id": 583}, "organization": {"id": 164}, "project": {"owner": {"id": 763}, "assignee": {"id": 858}, "organization": {"id": 967}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 499}, "assignee": {"id": 535}, "organization": {"id": 648}, "project": {"owner": {"id": 700}, "assignee": {"id": 884}, "organization": {"id": 946}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 438}, "assignee": {"id": 520}, "organization": {"id": 155}, "project": {"owner": {"id": 787}, "assignee": {"id": 831}, "organization": {"id": 918}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 421}, "assignee": {"id": 597}, "organization": {"id": 659}, "project": {"owner": {"id": 724}, "assignee": {"id": 845}, "organization": {"id": 940}}}} +} + +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": 50, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 491}, "assignee": {"id": 506}, "organization": {"id": 141}, "project": {"owner": {"id": 756}, "assignee": {"id": 896}, "organization": {"id": 975}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 432}, "assignee": {"id": 550}, "organization": {"id": 626}, "project": {"owner": {"id": 746}, "assignee": {"id": 807}, "organization": {"id": 914}}}} +} + +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": 74, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 481}, "assignee": {"id": 575}, "organization": {"id": 146}, "project": {"owner": {"id": 727}, "assignee": {"id": 838}, "organization": {"id": 928}}}} +} + +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": 21, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 421}, "assignee": {"id": 565}, "organization": {"id": 653}, "project": {"owner": {"id": 784}, "assignee": {"id": 844}, "organization": {"id": 973}}}} +} + +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": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 494}, "assignee": {"id": 504}, "organization": {"id": 695}, "project": {"owner": {"id": 49}, "assignee": {"id": 814}, "organization": {"id": 945}}}} +} + +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": 26, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 400}, "assignee": {"id": 569}, "organization": {"id": 662}, "project": {"owner": {"id": 26}, "assignee": {"id": 802}, "organization": {"id": 943}}}} +} + +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": 34, "privilege": "user"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 471}, "assignee": {"id": 542}, "organization": {"id": 698}, "project": {"owner": {"id": 34}, "assignee": {"id": 884}, "organization": {"id": 991}}}} +} + +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": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 448}, "assignee": {"id": 556}, "organization": {"id": 630}, "project": {"owner": {"id": 73}, "assignee": {"id": 828}, "organization": {"id": 937}}}} +} + +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": 99, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 496}, "assignee": {"id": 574}, "organization": {"id": 669}, "project": {"owner": {"id": 99}, "assignee": {"id": 843}, "organization": {"id": 937}}}} +} + +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": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 417}, "assignee": {"id": 530}, "organization": {"id": 662}, "project": {"owner": {"id": 729}, "assignee": {"id": 97}, "organization": {"id": 941}}}} +} + +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": 2, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 439}, "assignee": {"id": 513}, "organization": {"id": 662}, "project": {"owner": {"id": 760}, "assignee": {"id": 2}, "organization": {"id": 960}}}} +} + +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": 52, "privilege": "user"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 464}, "assignee": {"id": 525}, "organization": {"id": 647}, "project": {"owner": {"id": 721}, "assignee": {"id": 52}, "organization": {"id": 914}}}} +} + +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": 95, "privilege": "worker"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 414}, "assignee": {"id": 548}, "organization": {"id": 637}, "project": {"owner": {"id": 715}, "assignee": {"id": 95}, "organization": {"id": 902}}}} +} + +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": 64, "privilege": "none"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 469}, "assignee": {"id": 547}, "organization": {"id": 682}, "project": {"owner": {"id": 786}, "assignee": {"id": 64}, "organization": {"id": 989}}}} +} + +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": 36, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 36}, "assignee": {"id": 544}, "organization": {"id": 643}, "project": {"owner": {"id": 767}, "assignee": {"id": 811}, "organization": {"id": 967}}}} +} + +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": 30, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 30}, "assignee": {"id": 517}, "organization": {"id": 656}, "project": {"owner": {"id": 751}, "assignee": {"id": 855}, "organization": {"id": 927}}}} +} + +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": 94, "privilege": "user"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 94}, "assignee": {"id": 556}, "organization": {"id": 603}, "project": {"owner": {"id": 747}, "assignee": {"id": 814}, "organization": {"id": 982}}}} +} + +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": 97, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 97}, "assignee": {"id": 592}, "organization": {"id": 610}, "project": {"owner": {"id": 739}, "assignee": {"id": 818}, "organization": {"id": 963}}}} +} + +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": 61, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 61}, "assignee": {"id": 549}, "organization": {"id": 664}, "project": {"owner": {"id": 744}, "assignee": {"id": 888}, "organization": {"id": 938}}}} +} + +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": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 417}, "assignee": {"id": 61}, "organization": {"id": 695}, "project": {"owner": {"id": 769}, "assignee": {"id": 828}, "organization": {"id": 968}}}} +} + +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": 56, "privilege": "business"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 415}, "assignee": {"id": 56}, "organization": {"id": 635}, "project": {"owner": {"id": 782}, "assignee": {"id": 847}, "organization": {"id": 983}}}} +} + +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": 27, "privilege": "user"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 476}, "assignee": {"id": 27}, "organization": {"id": 674}, "project": {"owner": {"id": 706}, "assignee": {"id": 853}, "organization": {"id": 909}}}} +} + +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": 14, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 461}, "assignee": {"id": 14}, "organization": {"id": 628}, "project": {"owner": {"id": 793}, "assignee": {"id": 881}, "organization": {"id": 916}}}} +} + +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": 91, "privilege": "none"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 429}, "assignee": {"id": 91}, "organization": {"id": 658}, "project": {"owner": {"id": 756}, "assignee": {"id": 887}, "organization": {"id": 985}}}} +} + +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": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 443}, "assignee": {"id": 572}, "organization": {"id": 688}, "project": {"owner": {"id": 753}, "assignee": {"id": 886}, "organization": {"id": 997}}}} +} + +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": 62, "privilege": "business"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 429}, "assignee": {"id": 585}, "organization": {"id": 605}, "project": {"owner": {"id": 723}, "assignee": {"id": 893}, "organization": {"id": 940}}}} +} + +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": 36, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 466}, "assignee": {"id": 593}, "organization": {"id": 642}, "project": {"owner": {"id": 799}, "assignee": {"id": 876}, "organization": {"id": 924}}}} +} + +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": 20, "privilege": "worker"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 463}, "assignee": {"id": 592}, "organization": {"id": 699}, "project": {"owner": {"id": 763}, "assignee": {"id": 800}, "organization": {"id": 933}}}} +} + +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": 49, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 499}, "assignee": {"id": 584}, "organization": {"id": 661}, "project": {"owner": {"id": 768}, "assignee": {"id": 873}, "organization": {"id": 905}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 465}, "assignee": {"id": 570}, "organization": {"id": 149}, "project": {"owner": {"id": 79}, "assignee": {"id": 803}, "organization": {"id": 915}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 430}, "assignee": {"id": 579}, "organization": {"id": 617}, "project": {"owner": {"id": 34}, "assignee": {"id": 812}, "organization": {"id": 954}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 401}, "assignee": {"id": 550}, "organization": {"id": 157}, "project": {"owner": {"id": 61}, "assignee": {"id": 852}, "organization": {"id": 901}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 488}, "assignee": {"id": 511}, "organization": {"id": 622}, "project": {"owner": {"id": 40}, "assignee": {"id": 839}, "organization": {"id": 958}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 474}, "assignee": {"id": 537}, "organization": {"id": 185}, "project": {"owner": {"id": 64}, "assignee": {"id": 880}, "organization": {"id": 968}}}} +} + +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": 85, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 450}, "assignee": {"id": 579}, "organization": {"id": 681}, "project": {"owner": {"id": 85}, "assignee": {"id": 845}, "organization": {"id": 961}}}} +} + +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": 52, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 448}, "assignee": {"id": 590}, "organization": {"id": 123}, "project": {"owner": {"id": 52}, "assignee": {"id": 887}, "organization": {"id": 965}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 444}, "assignee": {"id": 548}, "organization": {"id": 684}, "project": {"owner": {"id": 15}, "assignee": {"id": 813}, "organization": {"id": 981}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 468}, "assignee": {"id": 505}, "organization": {"id": 140}, "project": {"owner": {"id": 94}, "assignee": {"id": 888}, "organization": {"id": 915}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 437}, "assignee": {"id": 538}, "organization": {"id": 633}, "project": {"owner": {"id": 51}, "assignee": {"id": 861}, "organization": {"id": 985}}}} +} + +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": 25, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 454}, "assignee": {"id": 515}, "organization": {"id": 168}, "project": {"owner": {"id": 25}, "assignee": {"id": 828}, "organization": {"id": 902}}}} +} + +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": 35, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 419}, "assignee": {"id": 570}, "organization": {"id": 686}, "project": {"owner": {"id": 35}, "assignee": {"id": 851}, "organization": {"id": 959}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 400}, "assignee": {"id": 547}, "organization": {"id": 118}, "project": {"owner": {"id": 8}, "assignee": {"id": 826}, "organization": {"id": 963}}}} +} + +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": 36, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 439}, "assignee": {"id": 542}, "organization": {"id": 668}, "project": {"owner": {"id": 36}, "assignee": {"id": 864}, "organization": {"id": 996}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 440}, "assignee": {"id": 599}, "organization": {"id": 190}, "project": {"owner": {"id": 15}, "assignee": {"id": 864}, "organization": {"id": 910}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 453}, "assignee": {"id": 516}, "organization": {"id": 661}, "project": {"owner": {"id": 79}, "assignee": {"id": 830}, "organization": {"id": 903}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 402}, "assignee": {"id": 574}, "organization": {"id": 107}, "project": {"owner": {"id": 26}, "assignee": {"id": 803}, "organization": {"id": 907}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 407}, "assignee": {"id": 518}, "organization": {"id": 642}, "project": {"owner": {"id": 84}, "assignee": {"id": 857}, "organization": {"id": 906}}}} +} + +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": 78, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 497}, "assignee": {"id": 527}, "organization": {"id": 194}, "project": {"owner": {"id": 78}, "assignee": {"id": 814}, "organization": {"id": 977}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 432}, "assignee": {"id": 556}, "organization": {"id": 689}, "project": {"owner": {"id": 59}, "assignee": {"id": 814}, "organization": {"id": 912}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 478}, "assignee": {"id": 527}, "organization": {"id": 191}, "project": {"owner": {"id": 19}, "assignee": {"id": 840}, "organization": {"id": 934}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 420}, "assignee": {"id": 588}, "organization": {"id": 616}, "project": {"owner": {"id": 56}, "assignee": {"id": 886}, "organization": {"id": 909}}}} +} + +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": 34, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 439}, "assignee": {"id": 519}, "organization": {"id": 192}, "project": {"owner": {"id": 34}, "assignee": {"id": 882}, "organization": {"id": 904}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 448}, "assignee": {"id": 567}, "organization": {"id": 651}, "project": {"owner": {"id": 94}, "assignee": {"id": 858}, "organization": {"id": 966}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 449}, "assignee": {"id": 566}, "organization": {"id": 112}, "project": {"owner": {"id": 10}, "assignee": {"id": 835}, "organization": {"id": 910}}}} +} + +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": 57, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 496}, "assignee": {"id": 559}, "organization": {"id": 614}, "project": {"owner": {"id": 57}, "assignee": {"id": 800}, "organization": {"id": 978}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 402}, "assignee": {"id": 570}, "organization": {"id": 111}, "project": {"owner": {"id": 2}, "assignee": {"id": 868}, "organization": {"id": 977}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 403}, "assignee": {"id": 574}, "organization": {"id": 663}, "project": {"owner": {"id": 71}, "assignee": {"id": 868}, "organization": {"id": 922}}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 493}, "assignee": {"id": 583}, "organization": {"id": 188}, "project": {"owner": {"id": 53}, "assignee": {"id": 893}, "organization": {"id": 938}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 439}, "assignee": {"id": 556}, "organization": {"id": 625}, "project": {"owner": {"id": 95}, "assignee": {"id": 827}, "organization": {"id": 915}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 470}, "assignee": {"id": 512}, "organization": {"id": 190}, "project": {"owner": {"id": 5}, "assignee": {"id": 806}, "organization": {"id": 931}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 411}, "assignee": {"id": 525}, "organization": {"id": 669}, "project": {"owner": {"id": 31}, "assignee": {"id": 860}, "organization": {"id": 908}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 450}, "assignee": {"id": 535}, "organization": {"id": 129}, "project": {"owner": {"id": 75}, "assignee": {"id": 815}, "organization": {"id": 976}}}} +} + +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": 60, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 485}, "assignee": {"id": 538}, "organization": {"id": 690}, "project": {"owner": {"id": 60}, "assignee": {"id": 846}, "organization": {"id": 938}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 416}, "assignee": {"id": 564}, "organization": {"id": 169}, "project": {"owner": {"id": 23}, "assignee": {"id": 879}, "organization": {"id": 964}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 440}, "assignee": {"id": 568}, "organization": {"id": 661}, "project": {"owner": {"id": 71}, "assignee": {"id": 856}, "organization": {"id": 929}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 444}, "assignee": {"id": 564}, "organization": {"id": 132}, "project": {"owner": {"id": 27}, "assignee": {"id": 884}, "organization": {"id": 923}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 499}, "assignee": {"id": 571}, "organization": {"id": 692}, "project": {"owner": {"id": 42}, "assignee": {"id": 802}, "organization": {"id": 950}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 443}, "assignee": {"id": 551}, "organization": {"id": 110}, "project": {"owner": {"id": 2}, "assignee": {"id": 892}, "organization": {"id": 970}}}} +} + +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": 58, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 494}, "assignee": {"id": 562}, "organization": {"id": 624}, "project": {"owner": {"id": 58}, "assignee": {"id": 867}, "organization": {"id": 934}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 450}, "assignee": {"id": 573}, "organization": {"id": 126}, "project": {"owner": {"id": 83}, "assignee": {"id": 869}, "organization": {"id": 980}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 412}, "assignee": {"id": 544}, "organization": {"id": 657}, "project": {"owner": {"id": 55}, "assignee": {"id": 855}, "organization": {"id": 919}}}} +} + +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": 71, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 486}, "assignee": {"id": 588}, "organization": {"id": 157}, "project": {"owner": {"id": 71}, "assignee": {"id": 802}, "organization": {"id": 948}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 402}, "assignee": {"id": 565}, "organization": {"id": 685}, "project": {"owner": {"id": 73}, "assignee": {"id": 837}, "organization": {"id": 907}}}} +} + +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": 64, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 441}, "assignee": {"id": 597}, "organization": {"id": 117}, "project": {"owner": {"id": 64}, "assignee": {"id": 851}, "organization": {"id": 919}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 467}, "assignee": {"id": 518}, "organization": {"id": 658}, "project": {"owner": {"id": 25}, "assignee": {"id": 806}, "organization": {"id": 913}}}} +} + +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": 47, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 428}, "assignee": {"id": 547}, "organization": {"id": 192}, "project": {"owner": {"id": 47}, "assignee": {"id": 800}, "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": 25, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 434}, "assignee": {"id": 572}, "organization": {"id": 617}, "project": {"owner": {"id": 25}, "assignee": {"id": 832}, "organization": {"id": 942}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 416}, "assignee": {"id": 516}, "organization": {"id": 112}, "project": {"owner": {"id": 3}, "assignee": {"id": 825}, "organization": {"id": 992}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 413}, "assignee": {"id": 560}, "organization": {"id": 655}, "project": {"owner": {"id": 44}, "assignee": {"id": 828}, "organization": {"id": 931}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 477}, "assignee": {"id": 545}, "organization": {"id": 137}, "project": {"owner": {"id": 778}, "assignee": {"id": 89}, "organization": {"id": 920}}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 405}, "assignee": {"id": 586}, "organization": {"id": 636}, "project": {"owner": {"id": 724}, "assignee": {"id": 87}, "organization": {"id": 937}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 441}, "assignee": {"id": 507}, "organization": {"id": 195}, "project": {"owner": {"id": 726}, "assignee": {"id": 49}, "organization": {"id": 909}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 464}, "assignee": {"id": 589}, "organization": {"id": 611}, "project": {"owner": {"id": 721}, "assignee": {"id": 10}, "organization": {"id": 922}}}} +} + +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": 34, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 417}, "assignee": {"id": 536}, "organization": {"id": 150}, "project": {"owner": {"id": 722}, "assignee": {"id": 34}, "organization": {"id": 965}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 479}, "assignee": {"id": 578}, "organization": {"id": 658}, "project": {"owner": {"id": 700}, "assignee": {"id": 21}, "organization": {"id": 916}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 454}, "assignee": {"id": 519}, "organization": {"id": 153}, "project": {"owner": {"id": 748}, "assignee": {"id": 71}, "organization": {"id": 912}}}} +} + +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": 94, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 446}, "assignee": {"id": 563}, "organization": {"id": 632}, "project": {"owner": {"id": 738}, "assignee": {"id": 94}, "organization": {"id": 907}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 487}, "assignee": {"id": 573}, "organization": {"id": 164}, "project": {"owner": {"id": 729}, "assignee": {"id": 37}, "organization": {"id": 970}}}} +} + +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": 61, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 438}, "assignee": {"id": 501}, "organization": {"id": 661}, "project": {"owner": {"id": 797}, "assignee": {"id": 61}, "organization": {"id": 908}}}} +} + +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": 20, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 436}, "assignee": {"id": 540}, "organization": {"id": 133}, "project": {"owner": {"id": 769}, "assignee": {"id": 20}, "organization": {"id": 931}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 433}, "assignee": {"id": 595}, "organization": {"id": 605}, "project": {"owner": {"id": 715}, "assignee": {"id": 87}, "organization": {"id": 928}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 462}, "assignee": {"id": 532}, "organization": {"id": 152}, "project": {"owner": {"id": 779}, "assignee": {"id": 58}, "organization": {"id": 926}}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 495}, "assignee": {"id": 573}, "organization": {"id": 669}, "project": {"owner": {"id": 750}, "assignee": {"id": 93}, "organization": {"id": 951}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 420}, "assignee": {"id": 586}, "organization": {"id": 193}, "project": {"owner": {"id": 779}, "assignee": {"id": 95}, "organization": {"id": 992}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 422}, "assignee": {"id": 567}, "organization": {"id": 627}, "project": {"owner": {"id": 794}, "assignee": {"id": 16}, "organization": {"id": 936}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 494}, "assignee": {"id": 516}, "organization": {"id": 170}, "project": {"owner": {"id": 721}, "assignee": {"id": 96}, "organization": {"id": 976}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 476}, "assignee": {"id": 516}, "organization": {"id": 648}, "project": {"owner": {"id": 799}, "assignee": {"id": 97}, "organization": {"id": 951}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 490}, "assignee": {"id": 599}, "organization": {"id": 143}, "project": {"owner": {"id": 781}, "assignee": {"id": 4}, "organization": {"id": 997}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 449}, "assignee": {"id": 507}, "organization": {"id": 620}, "project": {"owner": {"id": 783}, "assignee": {"id": 65}, "organization": {"id": 956}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 458}, "assignee": {"id": 509}, "organization": {"id": 196}, "project": {"owner": {"id": 733}, "assignee": {"id": 54}, "organization": {"id": 980}}}} +} + +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": 69, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 411}, "assignee": {"id": 569}, "organization": {"id": 608}, "project": {"owner": {"id": 709}, "assignee": {"id": 69}, "organization": {"id": 922}}}} +} + +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": 21, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 484}, "assignee": {"id": 510}, "organization": {"id": 152}, "project": {"owner": {"id": 788}, "assignee": {"id": 21}, "organization": {"id": 965}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 404}, "assignee": {"id": 526}, "organization": {"id": 602}, "project": {"owner": {"id": 793}, "assignee": {"id": 73}, "organization": {"id": 982}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 413}, "assignee": {"id": 538}, "organization": {"id": 144}, "project": {"owner": {"id": 746}, "assignee": {"id": 16}, "organization": {"id": 976}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 480}, "assignee": {"id": 577}, "organization": {"id": 626}, "project": {"owner": {"id": 780}, "assignee": {"id": 37}, "organization": {"id": 948}}}} +} + +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": 50, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 446}, "assignee": {"id": 592}, "organization": {"id": 145}, "project": {"owner": {"id": 709}, "assignee": {"id": 50}, "organization": {"id": 948}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 422}, "assignee": {"id": 585}, "organization": {"id": 662}, "project": {"owner": {"id": 774}, "assignee": {"id": 73}, "organization": {"id": 988}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 437}, "assignee": {"id": 509}, "organization": {"id": 145}, "project": {"owner": {"id": 758}, "assignee": {"id": 80}, "organization": {"id": 916}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 441}, "assignee": {"id": 594}, "organization": {"id": 654}, "project": {"owner": {"id": 728}, "assignee": {"id": 95}, "organization": {"id": 901}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 471}, "assignee": {"id": 504}, "organization": {"id": 134}, "project": {"owner": {"id": 746}, "assignee": {"id": 89}, "organization": {"id": 978}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 476}, "assignee": {"id": 524}, "organization": {"id": 612}, "project": {"owner": {"id": 734}, "assignee": {"id": 35}, "organization": {"id": 920}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 464}, "assignee": {"id": 511}, "organization": {"id": 176}, "project": {"owner": {"id": 779}, "assignee": {"id": 24}, "organization": {"id": 955}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 473}, "assignee": {"id": 549}, "organization": {"id": 629}, "project": {"owner": {"id": 771}, "assignee": {"id": 88}, "organization": {"id": 981}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 422}, "assignee": {"id": 535}, "organization": {"id": 172}, "project": {"owner": {"id": 721}, "assignee": {"id": 17}, "organization": {"id": 998}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 436}, "assignee": {"id": 588}, "organization": {"id": 672}, "project": {"owner": {"id": 710}, "assignee": {"id": 97}, "organization": {"id": 963}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 429}, "assignee": {"id": 572}, "organization": {"id": 154}, "project": {"owner": {"id": 701}, "assignee": {"id": 22}, "organization": {"id": 901}}}} +} + +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": 14, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 480}, "assignee": {"id": 532}, "organization": {"id": 695}, "project": {"owner": {"id": 784}, "assignee": {"id": 14}, "organization": {"id": 951}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 444}, "assignee": {"id": 547}, "organization": {"id": 159}, "project": {"owner": {"id": 725}, "assignee": {"id": 71}, "organization": {"id": 962}}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 453}, "assignee": {"id": 565}, "organization": {"id": 608}, "project": {"owner": {"id": 721}, "assignee": {"id": 76}, "organization": {"id": 989}}}} +} + +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": 77, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 416}, "assignee": {"id": 506}, "organization": {"id": 153}, "project": {"owner": {"id": 740}, "assignee": {"id": 77}, "organization": {"id": 988}}}} +} + +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": 91, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 405}, "assignee": {"id": 576}, "organization": {"id": 618}, "project": {"owner": {"id": 763}, "assignee": {"id": 91}, "organization": {"id": 985}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 460}, "assignee": {"id": 542}, "organization": {"id": 178}, "project": {"owner": {"id": 798}, "assignee": {"id": 73}, "organization": {"id": 914}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 458}, "assignee": {"id": 583}, "organization": {"id": 612}, "project": {"owner": {"id": 726}, "assignee": {"id": 7}, "organization": {"id": 995}}}} +} + +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": 35, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 494}, "assignee": {"id": 553}, "organization": {"id": 149}, "project": {"owner": {"id": 729}, "assignee": {"id": 35}, "organization": {"id": 908}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 401}, "assignee": {"id": 507}, "organization": {"id": 697}, "project": {"owner": {"id": 719}, "assignee": {"id": 10}, "organization": {"id": 912}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 402}, "assignee": {"id": 538}, "organization": {"id": 158}, "project": {"owner": {"id": 774}, "assignee": {"id": 32}, "organization": {"id": 936}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 415}, "assignee": {"id": 513}, "organization": {"id": 685}, "project": {"owner": {"id": 700}, "assignee": {"id": 25}, "organization": {"id": 945}}}} +} + +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": 45, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 433}, "assignee": {"id": 599}, "organization": {"id": 160}, "project": {"owner": {"id": 753}, "assignee": {"id": 45}, "organization": {"id": 930}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 444}, "assignee": {"id": 506}, "organization": {"id": 657}, "project": {"owner": {"id": 787}, "assignee": {"id": 54}, "organization": {"id": 918}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 33}, "assignee": {"id": 518}, "organization": {"id": 117}, "project": {"owner": {"id": 766}, "assignee": {"id": 819}, "organization": {"id": 911}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 9}, "assignee": {"id": 511}, "organization": {"id": 622}, "project": {"owner": {"id": 774}, "assignee": {"id": 870}, "organization": {"id": 979}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 12}, "assignee": {"id": 599}, "organization": {"id": 190}, "project": {"owner": {"id": 776}, "assignee": {"id": 856}, "organization": {"id": 918}}}} +} + +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": 70, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 70}, "assignee": {"id": 508}, "organization": {"id": 699}, "project": {"owner": {"id": 790}, "assignee": {"id": 866}, "organization": {"id": 900}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 40}, "assignee": {"id": 543}, "organization": {"id": 106}, "project": {"owner": {"id": 719}, "assignee": {"id": 852}, "organization": {"id": 913}}}} +} + +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": 72, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 72}, "assignee": {"id": 567}, "organization": {"id": 695}, "project": {"owner": {"id": 756}, "assignee": {"id": 872}, "organization": {"id": 974}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 18}, "assignee": {"id": 540}, "organization": {"id": 114}, "project": {"owner": {"id": 764}, "assignee": {"id": 803}, "organization": {"id": 937}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 11}, "assignee": {"id": 535}, "organization": {"id": 688}, "project": {"owner": {"id": 759}, "assignee": {"id": 845}, "organization": {"id": 968}}}} +} + +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": 6, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 6}, "assignee": {"id": 505}, "organization": {"id": 162}, "project": {"owner": {"id": 729}, "assignee": {"id": 831}, "organization": {"id": 919}}}} +} + +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": 3, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 3}, "assignee": {"id": 533}, "organization": {"id": 632}, "project": {"owner": {"id": 731}, "assignee": {"id": 862}, "organization": {"id": 971}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 53}, "assignee": {"id": 588}, "organization": {"id": 103}, "project": {"owner": {"id": 742}, "assignee": {"id": 833}, "organization": {"id": 907}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 61}, "assignee": {"id": 539}, "organization": {"id": 688}, "project": {"owner": {"id": 759}, "assignee": {"id": 856}, "organization": {"id": 966}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 31}, "assignee": {"id": 534}, "organization": {"id": 199}, "project": {"owner": {"id": 757}, "assignee": {"id": 897}, "organization": {"id": 929}}}} +} + +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": 18, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 18}, "assignee": {"id": 520}, "organization": {"id": 680}, "project": {"owner": {"id": 788}, "assignee": {"id": 890}, "organization": {"id": 979}}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 19}, "assignee": {"id": 584}, "organization": {"id": 145}, "project": {"owner": {"id": 752}, "assignee": {"id": 866}, "organization": {"id": 968}}}} +} + +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": 48, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 48}, "assignee": {"id": 586}, "organization": {"id": 631}, "project": {"owner": {"id": 753}, "assignee": {"id": 828}, "organization": {"id": 999}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 83}, "assignee": {"id": 588}, "organization": {"id": 162}, "project": {"owner": {"id": 740}, "assignee": {"id": 893}, "organization": {"id": 939}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 51}, "assignee": {"id": 558}, "organization": {"id": 668}, "project": {"owner": {"id": 772}, "assignee": {"id": 808}, "organization": {"id": 947}}}} +} + +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": 17, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 17}, "assignee": {"id": 529}, "organization": {"id": 108}, "project": {"owner": {"id": 706}, "assignee": {"id": 829}, "organization": {"id": 902}}}} +} + +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": 63, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 63}, "assignee": {"id": 531}, "organization": {"id": 608}, "project": {"owner": {"id": 723}, "assignee": {"id": 855}, "organization": {"id": 945}}}} +} + +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": 44, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 44}, "assignee": {"id": 539}, "organization": {"id": 149}, "project": {"owner": {"id": 788}, "assignee": {"id": 898}, "organization": {"id": 973}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 26}, "assignee": {"id": 513}, "organization": {"id": 647}, "project": {"owner": {"id": 738}, "assignee": {"id": 885}, "organization": {"id": 954}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 71}, "assignee": {"id": 500}, "organization": {"id": 173}, "project": {"owner": {"id": 755}, "assignee": {"id": 824}, "organization": {"id": 908}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 12}, "assignee": {"id": 554}, "organization": {"id": 662}, "project": {"owner": {"id": 715}, "assignee": {"id": 812}, "organization": {"id": 986}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 30}, "assignee": {"id": 549}, "organization": {"id": 189}, "project": {"owner": {"id": 785}, "assignee": {"id": 886}, "organization": {"id": 938}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 67}, "assignee": {"id": 587}, "organization": {"id": 653}, "project": {"owner": {"id": 779}, "assignee": {"id": 871}, "organization": {"id": 940}}}} +} + +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": 99, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 99}, "assignee": {"id": 513}, "organization": {"id": 194}, "project": {"owner": {"id": 798}, "assignee": {"id": 823}, "organization": {"id": 912}}}} +} + +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": 24, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 24}, "assignee": {"id": 512}, "organization": {"id": 647}, "project": {"owner": {"id": 716}, "assignee": {"id": 834}, "organization": {"id": 926}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 27}, "assignee": {"id": 581}, "organization": {"id": 151}, "project": {"owner": {"id": 760}, "assignee": {"id": 891}, "organization": {"id": 977}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 31}, "assignee": {"id": 579}, "organization": {"id": 676}, "project": {"owner": {"id": 787}, "assignee": {"id": 830}, "organization": {"id": 921}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 62}, "assignee": {"id": 588}, "organization": {"id": 126}, "project": {"owner": {"id": 752}, "assignee": {"id": 865}, "organization": {"id": 926}}}} +} + +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": 132, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 46}, "assignee": {"id": 537}, "organization": {"id": 658}, "project": {"owner": {"id": 752}, "assignee": {"id": 808}, "organization": {"id": 947}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 75}, "assignee": {"id": 543}, "organization": {"id": 143}, "project": {"owner": {"id": 715}, "assignee": {"id": 867}, "organization": {"id": 999}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 65}, "assignee": {"id": 575}, "organization": {"id": 652}, "project": {"owner": {"id": 722}, "assignee": {"id": 886}, "organization": {"id": 946}}}} +} + +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": 49, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 49}, "assignee": {"id": 525}, "organization": {"id": 148}, "project": {"owner": {"id": 771}, "assignee": {"id": 877}, "organization": {"id": 939}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 34}, "assignee": {"id": 513}, "organization": {"id": 620}, "project": {"owner": {"id": 749}, "assignee": {"id": 897}, "organization": {"id": 986}}}} +} + +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": 30, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 30}, "assignee": {"id": 570}, "organization": {"id": 173}, "project": {"owner": {"id": 794}, "assignee": {"id": 839}, "organization": {"id": 977}}}} +} + +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": 36, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 36}, "assignee": {"id": 588}, "organization": {"id": 654}, "project": {"owner": {"id": 767}, "assignee": {"id": 896}, "organization": {"id": 908}}}} +} + +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": 90, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 90}, "assignee": {"id": 596}, "organization": {"id": 130}, "project": {"owner": {"id": 772}, "assignee": {"id": 822}, "organization": {"id": 921}}}} +} + +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": 44, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 44}, "assignee": {"id": 552}, "organization": {"id": 649}, "project": {"owner": {"id": 707}, "assignee": {"id": 881}, "organization": {"id": 968}}}} +} + +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": 85, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 85}, "assignee": {"id": 530}, "organization": {"id": 153}, "project": {"owner": {"id": 731}, "assignee": {"id": 859}, "organization": {"id": 913}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 56}, "assignee": {"id": 532}, "organization": {"id": 626}, "project": {"owner": {"id": 773}, "assignee": {"id": 818}, "organization": {"id": 980}}}} +} + +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": 22, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 22}, "assignee": {"id": 583}, "organization": {"id": 196}, "project": {"owner": {"id": 717}, "assignee": {"id": 851}, "organization": {"id": 920}}}} +} + +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": 30, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 30}, "assignee": {"id": 583}, "organization": {"id": 623}, "project": {"owner": {"id": 734}, "assignee": {"id": 874}, "organization": {"id": 970}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 95}, "assignee": {"id": 566}, "organization": {"id": 104}, "project": {"owner": {"id": 731}, "assignee": {"id": 801}, "organization": {"id": 911}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 40}, "assignee": {"id": 511}, "organization": {"id": 680}, "project": {"owner": {"id": 786}, "assignee": {"id": 847}, "organization": {"id": 926}}}} +} + +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": 197, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 49}, "assignee": {"id": 537}, "organization": {"id": 197}, "project": {"owner": {"id": 764}, "assignee": {"id": 894}, "organization": {"id": 945}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 83}, "assignee": {"id": 567}, "organization": {"id": 636}, "project": {"owner": {"id": 737}, "assignee": {"id": 802}, "organization": {"id": 998}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 23}, "assignee": {"id": 559}, "organization": {"id": 105}, "project": {"owner": {"id": 729}, "assignee": {"id": 859}, "organization": {"id": 969}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 40}, "assignee": {"id": 559}, "organization": {"id": 693}, "project": {"owner": {"id": 708}, "assignee": {"id": 863}, "organization": {"id": 925}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 475}, "assignee": {"id": 19}, "organization": {"id": 180}, "project": {"owner": {"id": 767}, "assignee": {"id": 884}, "organization": {"id": 929}}}} +} + +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": 80, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 431}, "assignee": {"id": 80}, "organization": {"id": 602}, "project": {"owner": {"id": 709}, "assignee": {"id": 823}, "organization": {"id": 906}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 468}, "assignee": {"id": 64}, "organization": {"id": 145}, "project": {"owner": {"id": 782}, "assignee": {"id": 864}, "organization": {"id": 966}}}} +} + +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": 49, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 447}, "assignee": {"id": 49}, "organization": {"id": 647}, "project": {"owner": {"id": 714}, "assignee": {"id": 816}, "organization": {"id": 974}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 452}, "assignee": {"id": 8}, "organization": {"id": 163}, "project": {"owner": {"id": 724}, "assignee": {"id": 809}, "organization": {"id": 906}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 401}, "assignee": {"id": 39}, "organization": {"id": 676}, "project": {"owner": {"id": 768}, "assignee": {"id": 831}, "organization": {"id": 961}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 429}, "assignee": {"id": 96}, "organization": {"id": 117}, "project": {"owner": {"id": 791}, "assignee": {"id": 819}, "organization": {"id": 930}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 459}, "assignee": {"id": 89}, "organization": {"id": 639}, "project": {"owner": {"id": 781}, "assignee": {"id": 892}, "organization": {"id": 916}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 442}, "assignee": {"id": 51}, "organization": {"id": 156}, "project": {"owner": {"id": 752}, "assignee": {"id": 897}, "organization": {"id": 907}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 428}, "assignee": {"id": 41}, "organization": {"id": 630}, "project": {"owner": {"id": 710}, "assignee": {"id": 870}, "organization": {"id": 960}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 443}, "assignee": {"id": 61}, "organization": {"id": 142}, "project": {"owner": {"id": 741}, "assignee": {"id": 800}, "organization": {"id": 910}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 430}, "assignee": {"id": 53}, "organization": {"id": 659}, "project": {"owner": {"id": 741}, "assignee": {"id": 813}, "organization": {"id": 999}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 477}, "assignee": {"id": 85}, "organization": {"id": 157}, "project": {"owner": {"id": 748}, "assignee": {"id": 826}, "organization": {"id": 967}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 498}, "assignee": {"id": 62}, "organization": {"id": 638}, "project": {"owner": {"id": 759}, "assignee": {"id": 830}, "organization": {"id": 925}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 462}, "assignee": {"id": 61}, "organization": {"id": 178}, "project": {"owner": {"id": 739}, "assignee": {"id": 832}, "organization": {"id": 977}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 446}, "assignee": {"id": 47}, "organization": {"id": 648}, "project": {"owner": {"id": 757}, "assignee": {"id": 826}, "organization": {"id": 987}}}} +} + +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": 40, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 406}, "assignee": {"id": 40}, "organization": {"id": 109}, "project": {"owner": {"id": 765}, "assignee": {"id": 856}, "organization": {"id": 911}}}} +} + +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": 84, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 447}, "assignee": {"id": 84}, "organization": {"id": 632}, "project": {"owner": {"id": 780}, "assignee": {"id": 821}, "organization": {"id": 992}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 453}, "assignee": {"id": 26}, "organization": {"id": 162}, "project": {"owner": {"id": 750}, "assignee": {"id": 857}, "organization": {"id": 969}}}} +} + +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": 4, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 472}, "assignee": {"id": 4}, "organization": {"id": 677}, "project": {"owner": {"id": 778}, "assignee": {"id": 881}, "organization": {"id": 932}}}} +} + +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": 37, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 456}, "assignee": {"id": 37}, "organization": {"id": 142}, "project": {"owner": {"id": 763}, "assignee": {"id": 875}, "organization": {"id": 927}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 413}, "assignee": {"id": 14}, "organization": {"id": 698}, "project": {"owner": {"id": 778}, "assignee": {"id": 866}, "organization": {"id": 939}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 489}, "assignee": {"id": 96}, "organization": {"id": 193}, "project": {"owner": {"id": 746}, "assignee": {"id": 889}, "organization": {"id": 967}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 495}, "assignee": {"id": 51}, "organization": {"id": 652}, "project": {"owner": {"id": 780}, "assignee": {"id": 867}, "organization": {"id": 932}}}} +} + +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": 88, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 448}, "assignee": {"id": 88}, "organization": {"id": 196}, "project": {"owner": {"id": 786}, "assignee": {"id": 827}, "organization": {"id": 952}}}} +} + +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": 10, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 424}, "assignee": {"id": 10}, "organization": {"id": 663}, "project": {"owner": {"id": 708}, "assignee": {"id": 898}, "organization": {"id": 947}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 416}, "assignee": {"id": 96}, "organization": {"id": 128}, "project": {"owner": {"id": 732}, "assignee": {"id": 810}, "organization": {"id": 962}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 478}, "assignee": {"id": 66}, "organization": {"id": 621}, "project": {"owner": {"id": 799}, "assignee": {"id": 825}, "organization": {"id": 981}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 470}, "assignee": {"id": 51}, "organization": {"id": 124}, "project": {"owner": {"id": 791}, "assignee": {"id": 887}, "organization": {"id": 921}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 418}, "assignee": {"id": 15}, "organization": {"id": 607}, "project": {"owner": {"id": 711}, "assignee": {"id": 814}, "organization": {"id": 916}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 447}, "assignee": {"id": 62}, "organization": {"id": 120}, "project": {"owner": {"id": 702}, "assignee": {"id": 815}, "organization": {"id": 936}}}} +} + +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": 23, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 484}, "assignee": {"id": 23}, "organization": {"id": 616}, "project": {"owner": {"id": 760}, "assignee": {"id": 826}, "organization": {"id": 975}}}} +} + +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": 71, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 406}, "assignee": {"id": 71}, "organization": {"id": 178}, "project": {"owner": {"id": 778}, "assignee": {"id": 834}, "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": 81, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 476}, "assignee": {"id": 81}, "organization": {"id": 639}, "project": {"owner": {"id": 740}, "assignee": {"id": 806}, "organization": {"id": 954}}}} +} + +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": 66, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 440}, "assignee": {"id": 66}, "organization": {"id": 133}, "project": {"owner": {"id": 706}, "assignee": {"id": 875}, "organization": {"id": 966}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 426}, "assignee": {"id": 99}, "organization": {"id": 657}, "project": {"owner": {"id": 744}, "assignee": {"id": 821}, "organization": {"id": 988}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 441}, "assignee": {"id": 9}, "organization": {"id": 161}, "project": {"owner": {"id": 738}, "assignee": {"id": 855}, "organization": {"id": 981}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 447}, "assignee": {"id": 11}, "organization": {"id": 615}, "project": {"owner": {"id": 724}, "assignee": {"id": 845}, "organization": {"id": 945}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 412}, "assignee": {"id": 5}, "organization": {"id": 109}, "project": {"owner": {"id": 725}, "assignee": {"id": 827}, "organization": {"id": 952}}}} +} + +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": 19, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 448}, "assignee": {"id": 19}, "organization": {"id": 639}, "project": {"owner": {"id": 729}, "assignee": {"id": 899}, "organization": {"id": 913}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 420}, "assignee": {"id": 54}, "organization": {"id": 142}, "project": {"owner": {"id": 729}, "assignee": {"id": 800}, "organization": {"id": 934}}}} +} + +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": 55, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 421}, "assignee": {"id": 55}, "organization": {"id": 670}, "project": {"owner": {"id": 750}, "assignee": {"id": 838}, "organization": {"id": 982}}}} +} + +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": 34, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 420}, "assignee": {"id": 34}, "organization": {"id": 186}, "project": {"owner": {"id": 756}, "assignee": {"id": 879}, "organization": {"id": 913}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 416}, "assignee": {"id": 98}, "organization": {"id": 696}, "project": {"owner": {"id": 761}, "assignee": {"id": 871}, "organization": {"id": 915}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 426}, "assignee": {"id": 96}, "organization": {"id": 163}, "project": {"owner": {"id": 783}, "assignee": {"id": 862}, "organization": {"id": 946}}}} +} + +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": 4, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 435}, "assignee": {"id": 4}, "organization": {"id": 627}, "project": {"owner": {"id": 715}, "assignee": {"id": 855}, "organization": {"id": 937}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 406}, "assignee": {"id": 18}, "organization": {"id": 175}, "project": {"owner": {"id": 755}, "assignee": {"id": 818}, "organization": {"id": 936}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 415}, "assignee": {"id": 62}, "organization": {"id": 672}, "project": {"owner": {"id": 747}, "assignee": {"id": 817}, "organization": {"id": 997}}}} +} + +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": 84, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 476}, "assignee": {"id": 84}, "organization": {"id": 182}, "project": {"owner": {"id": 736}, "assignee": {"id": 807}, "organization": {"id": 988}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 467}, "assignee": {"id": 38}, "organization": {"id": 628}, "project": {"owner": {"id": 787}, "assignee": {"id": 856}, "organization": {"id": 936}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 408}, "assignee": {"id": 586}, "organization": {"id": 133}, "project": {"owner": {"id": 734}, "assignee": {"id": 832}, "organization": {"id": 936}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 457}, "assignee": {"id": 571}, "organization": {"id": 627}, "project": {"owner": {"id": 783}, "assignee": {"id": 870}, "organization": {"id": 989}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 445}, "assignee": {"id": 550}, "organization": {"id": 125}, "project": {"owner": {"id": 764}, "assignee": {"id": 810}, "organization": {"id": 997}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 423}, "assignee": {"id": 507}, "organization": {"id": 621}, "project": {"owner": {"id": 778}, "assignee": {"id": 843}, "organization": {"id": 973}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 482}, "assignee": {"id": 559}, "organization": {"id": 192}, "project": {"owner": {"id": 762}, "assignee": {"id": 862}, "organization": {"id": 994}}}} +} + +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": 144, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 458}, "assignee": {"id": 591}, "organization": {"id": 685}, "project": {"owner": {"id": 751}, "assignee": {"id": 807}, "organization": {"id": 903}}}} +} + +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": 7, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 458}, "assignee": {"id": 548}, "organization": {"id": 192}, "project": {"owner": {"id": 753}, "assignee": {"id": 883}, "organization": {"id": 977}}}} +} + +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": 97, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 485}, "assignee": {"id": 524}, "organization": {"id": 639}, "project": {"owner": {"id": 725}, "assignee": {"id": 805}, "organization": {"id": 958}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 481}, "assignee": {"id": 560}, "organization": {"id": 138}, "project": {"owner": {"id": 718}, "assignee": {"id": 859}, "organization": {"id": 945}}}} +} + +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": 14, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 404}, "assignee": {"id": 533}, "organization": {"id": 609}, "project": {"owner": {"id": 790}, "assignee": {"id": 819}, "organization": {"id": 945}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 487}, "assignee": {"id": 561}, "organization": {"id": 162}, "project": {"owner": {"id": 731}, "assignee": {"id": 868}, "organization": {"id": 969}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 421}, "assignee": {"id": 573}, "organization": {"id": 629}, "project": {"owner": {"id": 776}, "assignee": {"id": 810}, "organization": {"id": 952}}}} +} + +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": 19, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 407}, "assignee": {"id": 590}, "organization": {"id": 117}, "project": {"owner": {"id": 787}, "assignee": {"id": 814}, "organization": {"id": 904}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 423}, "assignee": {"id": 544}, "organization": {"id": 676}, "project": {"owner": {"id": 779}, "assignee": {"id": 825}, "organization": {"id": 903}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 439}, "assignee": {"id": 575}, "organization": {"id": 191}, "project": {"owner": {"id": 789}, "assignee": {"id": 815}, "organization": {"id": 987}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 430}, "assignee": {"id": 545}, "organization": {"id": 619}, "project": {"owner": {"id": 768}, "assignee": {"id": 807}, "organization": {"id": 918}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 498}, "assignee": {"id": 587}, "organization": {"id": 189}, "project": {"owner": {"id": 761}, "assignee": {"id": 848}, "organization": {"id": 921}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 427}, "assignee": {"id": 564}, "organization": {"id": 674}, "project": {"owner": {"id": 735}, "assignee": {"id": 895}, "organization": {"id": 990}}}} +} + +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": 27, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 442}, "assignee": {"id": 597}, "organization": {"id": 153}, "project": {"owner": {"id": 762}, "assignee": {"id": 802}, "organization": {"id": 994}}}} +} + +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": 93, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 483}, "assignee": {"id": 569}, "organization": {"id": 686}, "project": {"owner": {"id": 702}, "assignee": {"id": 814}, "organization": {"id": 972}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 477}, "assignee": {"id": 547}, "organization": {"id": 142}, "project": {"owner": {"id": 760}, "assignee": {"id": 830}, "organization": {"id": 994}}}} +} + +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": 76, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 490}, "assignee": {"id": 584}, "organization": {"id": 637}, "project": {"owner": {"id": 730}, "assignee": {"id": 808}, "organization": {"id": 913}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 492}, "assignee": {"id": 595}, "organization": {"id": 166}, "project": {"owner": {"id": 795}, "assignee": {"id": 866}, "organization": {"id": 932}}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 478}, "assignee": {"id": 522}, "organization": {"id": 693}, "project": {"owner": {"id": 711}, "assignee": {"id": 862}, "organization": {"id": 909}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 432}, "assignee": {"id": 507}, "organization": {"id": 130}, "project": {"owner": {"id": 761}, "assignee": {"id": 825}, "organization": {"id": 920}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 449}, "assignee": {"id": 585}, "organization": {"id": 677}, "project": {"owner": {"id": 741}, "assignee": {"id": 837}, "organization": {"id": 950}}}} +} + +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": 18, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 476}, "assignee": {"id": 568}, "organization": {"id": 180}, "project": {"owner": {"id": 780}, "assignee": {"id": 844}, "organization": {"id": 941}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 466}, "assignee": {"id": 524}, "organization": {"id": 664}, "project": {"owner": {"id": 749}, "assignee": {"id": 890}, "organization": {"id": 952}}}} +} + +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": 7, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 424}, "assignee": {"id": 595}, "organization": {"id": 153}, "project": {"owner": {"id": 738}, "assignee": {"id": 821}, "organization": {"id": 947}}}} +} + +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": 66, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 498}, "assignee": {"id": 568}, "organization": {"id": 623}, "project": {"owner": {"id": 712}, "assignee": {"id": 897}, "organization": {"id": 948}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 471}, "assignee": {"id": 590}, "organization": {"id": 105}, "project": {"owner": {"id": 737}, "assignee": {"id": 800}, "organization": {"id": 960}}}} +} + +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": 63, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 492}, "assignee": {"id": 559}, "organization": {"id": 695}, "project": {"owner": {"id": 746}, "assignee": {"id": 858}, "organization": {"id": 940}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 466}, "assignee": {"id": 594}, "organization": {"id": 105}, "project": {"owner": {"id": 794}, "assignee": {"id": 831}, "organization": {"id": 935}}}} +} + +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": 73, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 414}, "assignee": {"id": 555}, "organization": {"id": 627}, "project": {"owner": {"id": 779}, "assignee": {"id": 876}, "organization": {"id": 908}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 418}, "assignee": {"id": 558}, "organization": {"id": 132}, "project": {"owner": {"id": 767}, "assignee": {"id": 826}, "organization": {"id": 979}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 452}, "assignee": {"id": 574}, "organization": {"id": 632}, "project": {"owner": {"id": 716}, "assignee": {"id": 848}, "organization": {"id": 976}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 494}, "assignee": {"id": 561}, "organization": {"id": 163}, "project": {"owner": {"id": 764}, "assignee": {"id": 884}, "organization": {"id": 924}}}} +} + +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": 76, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 486}, "assignee": {"id": 510}, "organization": {"id": 618}, "project": {"owner": {"id": 765}, "assignee": {"id": 813}, "organization": {"id": 909}}}} +} + +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": 3, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 424}, "assignee": {"id": 520}, "organization": {"id": 143}, "project": {"owner": {"id": 797}, "assignee": {"id": 867}, "organization": {"id": 986}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 493}, "assignee": {"id": 552}, "organization": {"id": 676}, "project": {"owner": {"id": 765}, "assignee": {"id": 843}, "organization": {"id": 924}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 401}, "assignee": {"id": 521}, "organization": {"id": 116}, "project": {"owner": {"id": 705}, "assignee": {"id": 863}, "organization": {"id": 949}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 464}, "assignee": {"id": 585}, "organization": {"id": 638}, "project": {"owner": {"id": 765}, "assignee": {"id": 839}, "organization": {"id": 973}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 474}, "assignee": {"id": 514}, "organization": {"id": 101}, "project": {"owner": {"id": 783}, "assignee": {"id": 865}, "organization": {"id": 947}}}} +} + +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": 72, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 477}, "assignee": {"id": 559}, "organization": {"id": 622}, "project": {"owner": {"id": 783}, "assignee": {"id": 844}, "organization": {"id": 962}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 431}, "assignee": {"id": 593}, "organization": {"id": 103}, "project": {"owner": {"id": 771}, "assignee": {"id": 860}, "organization": {"id": 997}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 418}, "assignee": {"id": 550}, "organization": {"id": 609}, "project": {"owner": {"id": 724}, "assignee": {"id": 834}, "organization": {"id": 940}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 446}, "assignee": {"id": 556}, "organization": {"id": 119}, "project": {"owner": {"id": 713}, "assignee": {"id": 851}, "organization": {"id": 974}}}} +} + +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": 7, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 431}, "assignee": {"id": 550}, "organization": {"id": 600}, "project": {"owner": {"id": 793}, "assignee": {"id": 878}, "organization": {"id": 951}}}} +} + +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": 96, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 435}, "assignee": {"id": 541}, "organization": {"id": 113}, "project": {"owner": {"id": 720}, "assignee": {"id": 849}, "organization": {"id": 976}}}} +} + +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": 49, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 497}, "assignee": {"id": 550}, "organization": {"id": 639}, "project": {"owner": {"id": 783}, "assignee": {"id": 803}, "organization": {"id": 914}}}} +} + +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": 85, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 446}, "assignee": {"id": 518}, "organization": {"id": 603}, "project": {"owner": {"id": 85}, "assignee": {"id": 810}, "organization": {"id": 973}}}} +} + +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": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 448}, "assignee": {"id": 528}, "organization": {"id": 645}, "project": {"owner": {"id": 66}, "assignee": {"id": 853}, "organization": {"id": 917}}}} +} + +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": 10, "privilege": "user"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 465}, "assignee": {"id": 530}, "organization": {"id": 601}, "project": {"owner": {"id": 10}, "assignee": {"id": 823}, "organization": {"id": 959}}}} +} + +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": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 446}, "assignee": {"id": 585}, "organization": {"id": 616}, "project": {"owner": {"id": 57}, "assignee": {"id": 809}, "organization": {"id": 917}}}} +} + +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": 40, "privilege": "none"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 464}, "assignee": {"id": 517}, "organization": {"id": 666}, "project": {"owner": {"id": 40}, "assignee": {"id": 873}, "organization": {"id": 967}}}} +} + +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": 42, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 475}, "assignee": {"id": 577}, "organization": {"id": 608}, "project": {"owner": {"id": 709}, "assignee": {"id": 42}, "organization": {"id": 925}}}} +} + +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": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 446}, "assignee": {"id": 573}, "organization": {"id": 639}, "project": {"owner": {"id": 781}, "assignee": {"id": 65}, "organization": {"id": 997}}}} +} + +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": 73, "privilege": "user"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 490}, "assignee": {"id": 510}, "organization": {"id": 601}, "project": {"owner": {"id": 769}, "assignee": {"id": 73}, "organization": {"id": 968}}}} +} + +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": 16, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 447}, "assignee": {"id": 584}, "organization": {"id": 600}, "project": {"owner": {"id": 737}, "assignee": {"id": 16}, "organization": {"id": 914}}}} +} + +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": 76, "privilege": "none"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 480}, "assignee": {"id": 581}, "organization": {"id": 615}, "project": {"owner": {"id": 760}, "assignee": {"id": 76}, "organization": {"id": 905}}}} +} + +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": 95, "privilege": "admin"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 95}, "assignee": {"id": 532}, "organization": {"id": 609}, "project": {"owner": {"id": 770}, "assignee": {"id": 862}, "organization": {"id": 927}}}} +} + +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": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 72}, "assignee": {"id": 531}, "organization": {"id": 621}, "project": {"owner": {"id": 725}, "assignee": {"id": 899}, "organization": {"id": 933}}}} +} + +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": 20, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 20}, "assignee": {"id": 500}, "organization": {"id": 605}, "project": {"owner": {"id": 709}, "assignee": {"id": 894}, "organization": {"id": 912}}}} +} + +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": 26, "privilege": "worker"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 26}, "assignee": {"id": 575}, "organization": {"id": 616}, "project": {"owner": {"id": 766}, "assignee": {"id": 814}, "organization": {"id": 972}}}} +} + +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": 20, "privilege": "none"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 20}, "assignee": {"id": 586}, "organization": {"id": 614}, "project": {"owner": {"id": 727}, "assignee": {"id": 853}, "organization": {"id": 929}}}} +} + +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": 93, "privilege": "admin"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 415}, "assignee": {"id": 93}, "organization": {"id": 638}, "project": {"owner": {"id": 766}, "assignee": {"id": 830}, "organization": {"id": 996}}}} +} + +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": 73, "privilege": "business"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 454}, "assignee": {"id": 73}, "organization": {"id": 607}, "project": {"owner": {"id": 759}, "assignee": {"id": 848}, "organization": {"id": 975}}}} +} + +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": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 497}, "assignee": {"id": 38}, "organization": {"id": 653}, "project": {"owner": {"id": 749}, "assignee": {"id": 861}, "organization": {"id": 903}}}} +} + +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": 16, "privilege": "worker"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 428}, "assignee": {"id": 16}, "organization": {"id": 623}, "project": {"owner": {"id": 791}, "assignee": {"id": 867}, "organization": {"id": 914}}}} +} + +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": 47, "privilege": "none"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 449}, "assignee": {"id": 47}, "organization": {"id": 686}, "project": {"owner": {"id": 725}, "assignee": {"id": 898}, "organization": {"id": 942}}}} +} + +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": 67, "privilege": "admin"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 436}, "assignee": {"id": 537}, "organization": {"id": 629}, "project": {"owner": {"id": 702}, "assignee": {"id": 886}, "organization": {"id": 966}}}} +} + +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": 8, "privilege": "business"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 491}, "assignee": {"id": 583}, "organization": {"id": 623}, "project": {"owner": {"id": 721}, "assignee": {"id": 854}, "organization": {"id": 917}}}} +} + +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": 89, "privilege": "user"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 457}, "assignee": {"id": 529}, "organization": {"id": 643}, "project": {"owner": {"id": 721}, "assignee": {"id": 836}, "organization": {"id": 955}}}} +} + +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": 65, "privilege": "worker"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 491}, "assignee": {"id": 529}, "organization": {"id": 632}, "project": {"owner": {"id": 790}, "assignee": {"id": 888}, "organization": {"id": 908}}}} +} + +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": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 456}, "assignee": {"id": 570}, "organization": {"id": 685}, "project": {"owner": {"id": 797}, "assignee": {"id": 843}, "organization": {"id": 957}}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 464}, "assignee": {"id": 505}, "organization": {"id": 160}, "project": {"owner": {"id": 76}, "assignee": {"id": 854}, "organization": {"id": 974}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 465}, "assignee": {"id": 511}, "organization": {"id": 646}, "project": {"owner": {"id": 84}, "assignee": {"id": 818}, "organization": {"id": 936}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 470}, "assignee": {"id": 577}, "organization": {"id": 130}, "project": {"owner": {"id": 22}, "assignee": {"id": 837}, "organization": {"id": 989}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 487}, "assignee": {"id": 597}, "organization": {"id": 636}, "project": {"owner": {"id": 53}, "assignee": {"id": 856}, "organization": {"id": 920}}}} +} + +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": 1, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 412}, "assignee": {"id": 558}, "organization": {"id": 133}, "project": {"owner": {"id": 1}, "assignee": {"id": 878}, "organization": {"id": 976}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 405}, "assignee": {"id": 596}, "organization": {"id": 647}, "project": {"owner": {"id": 45}, "assignee": {"id": 811}, "organization": {"id": 959}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 487}, "assignee": {"id": 578}, "organization": {"id": 131}, "project": {"owner": {"id": 35}, "assignee": {"id": 894}, "organization": {"id": 915}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 476}, "assignee": {"id": 597}, "organization": {"id": 628}, "project": {"owner": {"id": 41}, "assignee": {"id": 814}, "organization": {"id": 954}}}} +} + +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": 69, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 432}, "assignee": {"id": 503}, "organization": {"id": 192}, "project": {"owner": {"id": 69}, "assignee": {"id": 819}, "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": 36, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 495}, "assignee": {"id": 575}, "organization": {"id": 682}, "project": {"owner": {"id": 36}, "assignee": {"id": 807}, "organization": {"id": 971}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 473}, "assignee": {"id": 571}, "organization": {"id": 100}, "project": {"owner": {"id": 98}, "assignee": {"id": 838}, "organization": {"id": 924}}}} +} + +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": 76, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 402}, "assignee": {"id": 551}, "organization": {"id": 660}, "project": {"owner": {"id": 76}, "assignee": {"id": 866}, "organization": {"id": 959}}}} +} + +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": 73, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 496}, "assignee": {"id": 560}, "organization": {"id": 132}, "project": {"owner": {"id": 73}, "assignee": {"id": 811}, "organization": {"id": 910}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 458}, "assignee": {"id": 553}, "organization": {"id": 608}, "project": {"owner": {"id": 94}, "assignee": {"id": 883}, "organization": {"id": 974}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 491}, "assignee": {"id": 587}, "organization": {"id": 105}, "project": {"owner": {"id": 9}, "assignee": {"id": 880}, "organization": {"id": 938}}}} +} + +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": 38, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 423}, "assignee": {"id": 532}, "organization": {"id": 678}, "project": {"owner": {"id": 38}, "assignee": {"id": 895}, "organization": {"id": 915}}}} +} + +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": 22, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 471}, "assignee": {"id": 561}, "organization": {"id": 133}, "project": {"owner": {"id": 22}, "assignee": {"id": 857}, "organization": {"id": 956}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 441}, "assignee": {"id": 585}, "organization": {"id": 640}, "project": {"owner": {"id": 61}, "assignee": {"id": 885}, "organization": {"id": 975}}}} +} + +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": 26, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 474}, "assignee": {"id": 541}, "organization": {"id": 140}, "project": {"owner": {"id": 26}, "assignee": {"id": 815}, "organization": {"id": 914}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 443}, "assignee": {"id": 580}, "organization": {"id": 664}, "project": {"owner": {"id": 5}, "assignee": {"id": 843}, "organization": {"id": 985}}}} +} + +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": 38, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 401}, "assignee": {"id": 584}, "organization": {"id": 133}, "project": {"owner": {"id": 38}, "assignee": {"id": 858}, "organization": {"id": 983}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 454}, "assignee": {"id": 568}, "organization": {"id": 699}, "project": {"owner": {"id": 74}, "assignee": {"id": 899}, "organization": {"id": 906}}}} +} + +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": 49, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 456}, "assignee": {"id": 557}, "organization": {"id": 173}, "project": {"owner": {"id": 49}, "assignee": {"id": 850}, "organization": {"id": 903}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 436}, "assignee": {"id": 519}, "organization": {"id": 663}, "project": {"owner": {"id": 43}, "assignee": {"id": 892}, "organization": {"id": 993}}}} +} + +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": 39, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 417}, "assignee": {"id": 513}, "organization": {"id": 102}, "project": {"owner": {"id": 39}, "assignee": {"id": 841}, "organization": {"id": 953}}}} +} + +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": 12, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 471}, "assignee": {"id": 576}, "organization": {"id": 630}, "project": {"owner": {"id": 12}, "assignee": {"id": 897}, "organization": {"id": 961}}}} +} + +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": 48, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 486}, "assignee": {"id": 529}, "organization": {"id": 192}, "project": {"owner": {"id": 48}, "assignee": {"id": 819}, "organization": {"id": 961}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 402}, "assignee": {"id": 584}, "organization": {"id": 679}, "project": {"owner": {"id": 4}, "assignee": {"id": 840}, "organization": {"id": 901}}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 442}, "assignee": {"id": 532}, "organization": {"id": 177}, "project": {"owner": {"id": 59}, "assignee": {"id": 838}, "organization": {"id": 927}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 431}, "assignee": {"id": 503}, "organization": {"id": 633}, "project": {"owner": {"id": 30}, "assignee": {"id": 809}, "organization": {"id": 989}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 469}, "assignee": {"id": 574}, "organization": {"id": 145}, "project": {"owner": {"id": 78}, "assignee": {"id": 819}, "organization": {"id": 992}}}} +} + +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": 171, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 449}, "assignee": {"id": 555}, "organization": {"id": 685}, "project": {"owner": {"id": 18}, "assignee": {"id": 862}, "organization": {"id": 979}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 486}, "assignee": {"id": 561}, "organization": {"id": 180}, "project": {"owner": {"id": 15}, "assignee": {"id": 841}, "organization": {"id": 923}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 401}, "assignee": {"id": 578}, "organization": {"id": 676}, "project": {"owner": {"id": 22}, "assignee": {"id": 855}, "organization": {"id": 928}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 427}, "assignee": {"id": 589}, "organization": {"id": 180}, "project": {"owner": {"id": 35}, "assignee": {"id": 846}, "organization": {"id": 975}}}} +} + +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": 57, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 493}, "assignee": {"id": 538}, "organization": {"id": 617}, "project": {"owner": {"id": 57}, "assignee": {"id": 898}, "organization": {"id": 927}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 472}, "assignee": {"id": 514}, "organization": {"id": 184}, "project": {"owner": {"id": 59}, "assignee": {"id": 809}, "organization": {"id": 909}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 411}, "assignee": {"id": 542}, "organization": {"id": 622}, "project": {"owner": {"id": 99}, "assignee": {"id": 834}, "organization": {"id": 946}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 454}, "assignee": {"id": 524}, "organization": {"id": 137}, "project": {"owner": {"id": 0}, "assignee": {"id": 805}, "organization": {"id": 994}}}} +} + +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": 70, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 492}, "assignee": {"id": 577}, "organization": {"id": 670}, "project": {"owner": {"id": 70}, "assignee": {"id": 869}, "organization": {"id": 998}}}} +} + +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": 16, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 419}, "assignee": {"id": 520}, "organization": {"id": 148}, "project": {"owner": {"id": 16}, "assignee": {"id": 824}, "organization": {"id": 901}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 420}, "assignee": {"id": 596}, "organization": {"id": 663}, "project": {"owner": {"id": 0}, "assignee": {"id": 855}, "organization": {"id": 914}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 457}, "assignee": {"id": 557}, "organization": {"id": 140}, "project": {"owner": {"id": 28}, "assignee": {"id": 893}, "organization": {"id": 920}}}} +} + +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": 37, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 430}, "assignee": {"id": 511}, "organization": {"id": 613}, "project": {"owner": {"id": 37}, "assignee": {"id": 885}, "organization": {"id": 990}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 417}, "assignee": {"id": 556}, "organization": {"id": 139}, "project": {"owner": {"id": 36}, "assignee": {"id": 826}, "organization": {"id": 910}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 468}, "assignee": {"id": 517}, "organization": {"id": 627}, "project": {"owner": {"id": 89}, "assignee": {"id": 894}, "organization": {"id": 992}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 465}, "assignee": {"id": 539}, "organization": {"id": 186}, "project": {"owner": {"id": 52}, "assignee": {"id": 877}, "organization": {"id": 951}}}} +} + +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": 44, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 430}, "assignee": {"id": 596}, "organization": {"id": 651}, "project": {"owner": {"id": 44}, "assignee": {"id": 853}, "organization": {"id": 928}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 445}, "assignee": {"id": 571}, "organization": {"id": 197}, "project": {"owner": {"id": 36}, "assignee": {"id": 860}, "organization": {"id": 999}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 467}, "assignee": {"id": 577}, "organization": {"id": 680}, "project": {"owner": {"id": 38}, "assignee": {"id": 883}, "organization": {"id": 994}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 403}, "assignee": {"id": 580}, "organization": {"id": 170}, "project": {"owner": {"id": 725}, "assignee": {"id": 36}, "organization": {"id": 915}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 411}, "assignee": {"id": 502}, "organization": {"id": 631}, "project": {"owner": {"id": 794}, "assignee": {"id": 23}, "organization": {"id": 906}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 406}, "assignee": {"id": 557}, "organization": {"id": 199}, "project": {"owner": {"id": 784}, "assignee": {"id": 59}, "organization": {"id": 915}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 405}, "assignee": {"id": 505}, "organization": {"id": 629}, "project": {"owner": {"id": 754}, "assignee": {"id": 63}, "organization": {"id": 969}}}} +} + +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": 120, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 447}, "assignee": {"id": 557}, "organization": {"id": 120}, "project": {"owner": {"id": 771}, "assignee": {"id": 19}, "organization": {"id": 922}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 470}, "assignee": {"id": 541}, "organization": {"id": 644}, "project": {"owner": {"id": 798}, "assignee": {"id": 20}, "organization": {"id": 945}}}} +} + +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": 31, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 445}, "assignee": {"id": 592}, "organization": {"id": 173}, "project": {"owner": {"id": 705}, "assignee": {"id": 31}, "organization": {"id": 995}}}} +} + +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": 54, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 479}, "assignee": {"id": 589}, "organization": {"id": 688}, "project": {"owner": {"id": 762}, "assignee": {"id": 54}, "organization": {"id": 985}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 460}, "assignee": {"id": 518}, "organization": {"id": 121}, "project": {"owner": {"id": 761}, "assignee": {"id": 65}, "organization": {"id": 999}}}} +} + +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": 22, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 485}, "assignee": {"id": 570}, "organization": {"id": 600}, "project": {"owner": {"id": 731}, "assignee": {"id": 22}, "organization": {"id": 919}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 487}, "assignee": {"id": 591}, "organization": {"id": 147}, "project": {"owner": {"id": 788}, "assignee": {"id": 41}, "organization": {"id": 948}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 444}, "assignee": {"id": 573}, "organization": {"id": 629}, "project": {"owner": {"id": 704}, "assignee": {"id": 15}, "organization": {"id": 998}}}} +} + +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": 79, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 456}, "assignee": {"id": 513}, "organization": {"id": 139}, "project": {"owner": {"id": 772}, "assignee": {"id": 79}, "organization": {"id": 973}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 436}, "assignee": {"id": 599}, "organization": {"id": 603}, "project": {"owner": {"id": 712}, "assignee": {"id": 3}, "organization": {"id": 971}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 482}, "assignee": {"id": 538}, "organization": {"id": 156}, "project": {"owner": {"id": 796}, "assignee": {"id": 50}, "organization": {"id": 945}}}} +} + +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": 29, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 456}, "assignee": {"id": 561}, "organization": {"id": 666}, "project": {"owner": {"id": 702}, "assignee": {"id": 29}, "organization": {"id": 929}}}} +} + +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": 3, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 454}, "assignee": {"id": 529}, "organization": {"id": 116}, "project": {"owner": {"id": 712}, "assignee": {"id": 3}, "organization": {"id": 984}}}} +} + +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": 44, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 486}, "assignee": {"id": 595}, "organization": {"id": 637}, "project": {"owner": {"id": 711}, "assignee": {"id": 44}, "organization": {"id": 958}}}} +} + +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": 5, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 431}, "assignee": {"id": 575}, "organization": {"id": 115}, "project": {"owner": {"id": 733}, "assignee": {"id": 5}, "organization": {"id": 964}}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 492}, "assignee": {"id": 573}, "organization": {"id": 692}, "project": {"owner": {"id": 789}, "assignee": {"id": 43}, "organization": {"id": 992}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 415}, "assignee": {"id": 518}, "organization": {"id": 138}, "project": {"owner": {"id": 709}, "assignee": {"id": 5}, "organization": {"id": 971}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 407}, "assignee": {"id": 549}, "organization": {"id": 676}, "project": {"owner": {"id": 773}, "assignee": {"id": 17}, "organization": {"id": 911}}}} +} + +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": 73, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 432}, "assignee": {"id": 561}, "organization": {"id": 142}, "project": {"owner": {"id": 796}, "assignee": {"id": 73}, "organization": {"id": 980}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 401}, "assignee": {"id": 523}, "organization": {"id": 686}, "project": {"owner": {"id": 743}, "assignee": {"id": 5}, "organization": {"id": 974}}}} +} + +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": 25, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 481}, "assignee": {"id": 584}, "organization": {"id": 139}, "project": {"owner": {"id": 728}, "assignee": {"id": 25}, "organization": {"id": 946}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 451}, "assignee": {"id": 531}, "organization": {"id": 669}, "project": {"owner": {"id": 770}, "assignee": {"id": 95}, "organization": {"id": 988}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 476}, "assignee": {"id": 597}, "organization": {"id": 146}, "project": {"owner": {"id": 759}, "assignee": {"id": 27}, "organization": {"id": 952}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 419}, "assignee": {"id": 517}, "organization": {"id": 606}, "project": {"owner": {"id": 737}, "assignee": {"id": 75}, "organization": {"id": 944}}}} +} + +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": 79, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 471}, "assignee": {"id": 533}, "organization": {"id": 118}, "project": {"owner": {"id": 788}, "assignee": {"id": 79}, "organization": {"id": 976}}}} +} + +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": 29, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 411}, "assignee": {"id": 559}, "organization": {"id": 637}, "project": {"owner": {"id": 737}, "assignee": {"id": 29}, "organization": {"id": 930}}}} +} + +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": 78, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 464}, "assignee": {"id": 560}, "organization": {"id": 189}, "project": {"owner": {"id": 721}, "assignee": {"id": 78}, "organization": {"id": 999}}}} +} + +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": 46, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 420}, "assignee": {"id": 518}, "organization": {"id": 655}, "project": {"owner": {"id": 717}, "assignee": {"id": 46}, "organization": {"id": 994}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 407}, "assignee": {"id": 587}, "organization": {"id": 196}, "project": {"owner": {"id": 706}, "assignee": {"id": 11}, "organization": {"id": 934}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 482}, "assignee": {"id": 533}, "organization": {"id": 656}, "project": {"owner": {"id": 748}, "assignee": {"id": 32}, "organization": {"id": 934}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 428}, "assignee": {"id": 579}, "organization": {"id": 110}, "project": {"owner": {"id": 787}, "assignee": {"id": 83}, "organization": {"id": 948}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 413}, "assignee": {"id": 508}, "organization": {"id": 689}, "project": {"owner": {"id": 762}, "assignee": {"id": 10}, "organization": {"id": 933}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 490}, "assignee": {"id": 572}, "organization": {"id": 186}, "project": {"owner": {"id": 715}, "assignee": {"id": 87}, "organization": {"id": 955}}}} +} + +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": 28, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 464}, "assignee": {"id": 558}, "organization": {"id": 610}, "project": {"owner": {"id": 723}, "assignee": {"id": 28}, "organization": {"id": 963}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 447}, "assignee": {"id": 588}, "organization": {"id": 102}, "project": {"owner": {"id": 755}, "assignee": {"id": 24}, "organization": {"id": 963}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 433}, "assignee": {"id": 576}, "organization": {"id": 654}, "project": {"owner": {"id": 725}, "assignee": {"id": 89}, "organization": {"id": 937}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 482}, "assignee": {"id": 561}, "organization": {"id": 192}, "project": {"owner": {"id": 753}, "assignee": {"id": 78}, "organization": {"id": 990}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 400}, "assignee": {"id": 537}, "organization": {"id": 679}, "project": {"owner": {"id": 747}, "assignee": {"id": 81}, "organization": {"id": 954}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 438}, "assignee": {"id": 551}, "organization": {"id": 137}, "project": {"owner": {"id": 721}, "assignee": {"id": 61}, "organization": {"id": 980}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 440}, "assignee": {"id": 543}, "organization": {"id": 658}, "project": {"owner": {"id": 772}, "assignee": {"id": 59}, "organization": {"id": 969}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 466}, "assignee": {"id": 596}, "organization": {"id": 127}, "project": {"owner": {"id": 707}, "assignee": {"id": 6}, "organization": {"id": 987}}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 427}, "assignee": {"id": 557}, "organization": {"id": 610}, "project": {"owner": {"id": 704}, "assignee": {"id": 94}, "organization": {"id": 915}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 410}, "assignee": {"id": 520}, "organization": {"id": 125}, "project": {"owner": {"id": 707}, "assignee": {"id": 51}, "organization": {"id": 994}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 427}, "assignee": {"id": 546}, "organization": {"id": 654}, "project": {"owner": {"id": 753}, "assignee": {"id": 28}, "organization": {"id": 983}}}} +} + +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": 88, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 483}, "assignee": {"id": 574}, "organization": {"id": 117}, "project": {"owner": {"id": 758}, "assignee": {"id": 88}, "organization": {"id": 927}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 496}, "assignee": {"id": 567}, "organization": {"id": 618}, "project": {"owner": {"id": 717}, "assignee": {"id": 11}, "organization": {"id": 958}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 17}, "assignee": {"id": 507}, "organization": {"id": 138}, "project": {"owner": {"id": 777}, "assignee": {"id": 815}, "organization": {"id": 920}}}} +} + +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": 40, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 40}, "assignee": {"id": 537}, "organization": {"id": 681}, "project": {"owner": {"id": 719}, "assignee": {"id": 807}, "organization": {"id": 935}}}} +} + +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": 9, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 9}, "assignee": {"id": 574}, "organization": {"id": 130}, "project": {"owner": {"id": 779}, "assignee": {"id": 833}, "organization": {"id": 952}}}} +} + +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": 20, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 20}, "assignee": {"id": 567}, "organization": {"id": 654}, "project": {"owner": {"id": 766}, "assignee": {"id": 809}, "organization": {"id": 976}}}} +} + +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": 76, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 76}, "assignee": {"id": 501}, "organization": {"id": 161}, "project": {"owner": {"id": 761}, "assignee": {"id": 807}, "organization": {"id": 921}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 45}, "assignee": {"id": 518}, "organization": {"id": 669}, "project": {"owner": {"id": 772}, "assignee": {"id": 828}, "organization": {"id": 947}}}} +} + +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": 12, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 12}, "assignee": {"id": 501}, "organization": {"id": 163}, "project": {"owner": {"id": 743}, "assignee": {"id": 815}, "organization": {"id": 941}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 96}, "assignee": {"id": 554}, "organization": {"id": 657}, "project": {"owner": {"id": 766}, "assignee": {"id": 825}, "organization": {"id": 957}}}} +} + +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": 56, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 56}, "assignee": {"id": 518}, "organization": {"id": 140}, "project": {"owner": {"id": 701}, "assignee": {"id": 851}, "organization": {"id": 906}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 26}, "assignee": {"id": 574}, "organization": {"id": 645}, "project": {"owner": {"id": 782}, "assignee": {"id": 829}, "organization": {"id": 943}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 59}, "assignee": {"id": 575}, "organization": {"id": 153}, "project": {"owner": {"id": 702}, "assignee": {"id": 847}, "organization": {"id": 983}}}} +} + +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": 31, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 31}, "assignee": {"id": 527}, "organization": {"id": 668}, "project": {"owner": {"id": 737}, "assignee": {"id": 846}, "organization": {"id": 943}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 65}, "assignee": {"id": 558}, "organization": {"id": 137}, "project": {"owner": {"id": 797}, "assignee": {"id": 897}, "organization": {"id": 924}}}} +} + +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": 61, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 61}, "assignee": {"id": 546}, "organization": {"id": 636}, "project": {"owner": {"id": 709}, "assignee": {"id": 804}, "organization": {"id": 924}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 8}, "assignee": {"id": 582}, "organization": {"id": 188}, "project": {"owner": {"id": 703}, "assignee": {"id": 812}, "organization": {"id": 953}}}} +} + +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": 37, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 37}, "assignee": {"id": 549}, "organization": {"id": 605}, "project": {"owner": {"id": 723}, "assignee": {"id": 853}, "organization": {"id": 973}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 51}, "assignee": {"id": 573}, "organization": {"id": 134}, "project": {"owner": {"id": 754}, "assignee": {"id": 800}, "organization": {"id": 939}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 39}, "assignee": {"id": 552}, "organization": {"id": 626}, "project": {"owner": {"id": 759}, "assignee": {"id": 846}, "organization": {"id": 906}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 15}, "assignee": {"id": 548}, "organization": {"id": 147}, "project": {"owner": {"id": 725}, "assignee": {"id": 898}, "organization": {"id": 937}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 90}, "assignee": {"id": 589}, "organization": {"id": 672}, "project": {"owner": {"id": 730}, "assignee": {"id": 888}, "organization": {"id": 969}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 91}, "assignee": {"id": 527}, "organization": {"id": 106}, "project": {"owner": {"id": 721}, "assignee": {"id": 828}, "organization": {"id": 906}}}} +} + +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": 23, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 23}, "assignee": {"id": 562}, "organization": {"id": 663}, "project": {"owner": {"id": 733}, "assignee": {"id": 892}, "organization": {"id": 953}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 96}, "assignee": {"id": 565}, "organization": {"id": 186}, "project": {"owner": {"id": 704}, "assignee": {"id": 864}, "organization": {"id": 986}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 61}, "assignee": {"id": 577}, "organization": {"id": 608}, "project": {"owner": {"id": 717}, "assignee": {"id": 855}, "organization": {"id": 900}}}} +} + +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": 46, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 46}, "assignee": {"id": 579}, "organization": {"id": 170}, "project": {"owner": {"id": 705}, "assignee": {"id": 850}, "organization": {"id": 948}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 43}, "assignee": {"id": 562}, "organization": {"id": 630}, "project": {"owner": {"id": 760}, "assignee": {"id": 857}, "organization": {"id": 971}}}} +} + +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": 55, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 55}, "assignee": {"id": 534}, "organization": {"id": 139}, "project": {"owner": {"id": 774}, "assignee": {"id": 888}, "organization": {"id": 970}}}} +} + +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": 95, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 95}, "assignee": {"id": 544}, "organization": {"id": 687}, "project": {"owner": {"id": 736}, "assignee": {"id": 896}, "organization": {"id": 968}}}} +} + +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": 75, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 75}, "assignee": {"id": 520}, "organization": {"id": 122}, "project": {"owner": {"id": 707}, "assignee": {"id": 836}, "organization": {"id": 933}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 60}, "assignee": {"id": 534}, "organization": {"id": 661}, "project": {"owner": {"id": 741}, "assignee": {"id": 807}, "organization": {"id": 983}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 88}, "assignee": {"id": 532}, "organization": {"id": 194}, "project": {"owner": {"id": 761}, "assignee": {"id": 836}, "organization": {"id": 915}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 42}, "assignee": {"id": 566}, "organization": {"id": 622}, "project": {"owner": {"id": 754}, "assignee": {"id": 885}, "organization": {"id": 982}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 67}, "assignee": {"id": 559}, "organization": {"id": 124}, "project": {"owner": {"id": 774}, "assignee": {"id": 893}, "organization": {"id": 967}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 98}, "assignee": {"id": 599}, "organization": {"id": 606}, "project": {"owner": {"id": 772}, "assignee": {"id": 829}, "organization": {"id": 956}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 56}, "assignee": {"id": 585}, "organization": {"id": 107}, "project": {"owner": {"id": 796}, "assignee": {"id": 812}, "organization": {"id": 924}}}} +} + +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": 10, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 10}, "assignee": {"id": 586}, "organization": {"id": 652}, "project": {"owner": {"id": 719}, "assignee": {"id": 883}, "organization": {"id": 993}}}} +} + +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": 61, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 61}, "assignee": {"id": 521}, "organization": {"id": 153}, "project": {"owner": {"id": 766}, "assignee": {"id": 819}, "organization": {"id": 936}}}} +} + +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": 42, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 42}, "assignee": {"id": 550}, "organization": {"id": 615}, "project": {"owner": {"id": 777}, "assignee": {"id": 864}, "organization": {"id": 913}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 65}, "assignee": {"id": 577}, "organization": {"id": 128}, "project": {"owner": {"id": 738}, "assignee": {"id": 835}, "organization": {"id": 972}}}} +} + +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": 62, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 62}, "assignee": {"id": 578}, "organization": {"id": 686}, "project": {"owner": {"id": 783}, "assignee": {"id": 895}, "organization": {"id": 952}}}} +} + +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": 3, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 3}, "assignee": {"id": 530}, "organization": {"id": 191}, "project": {"owner": {"id": 799}, "assignee": {"id": 802}, "organization": {"id": 967}}}} +} + +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": 68, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 68}, "assignee": {"id": 534}, "organization": {"id": 619}, "project": {"owner": {"id": 762}, "assignee": {"id": 868}, "organization": {"id": 916}}}} +} + +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": 75, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 75}, "assignee": {"id": 556}, "organization": {"id": 198}, "project": {"owner": {"id": 786}, "assignee": {"id": 832}, "organization": {"id": 924}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 69}, "assignee": {"id": 518}, "organization": {"id": 669}, "project": {"owner": {"id": 790}, "assignee": {"id": 843}, "organization": {"id": 958}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 97}, "assignee": {"id": 526}, "organization": {"id": 167}, "project": {"owner": {"id": 760}, "assignee": {"id": 871}, "organization": {"id": 918}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 62}, "assignee": {"id": 587}, "organization": {"id": 631}, "project": {"owner": {"id": 786}, "assignee": {"id": 898}, "organization": {"id": 902}}}} +} + +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": 81, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 81}, "assignee": {"id": 534}, "organization": {"id": 194}, "project": {"owner": {"id": 798}, "assignee": {"id": 891}, "organization": {"id": 932}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 97}, "assignee": {"id": 516}, "organization": {"id": 621}, "project": {"owner": {"id": 739}, "assignee": {"id": 841}, "organization": {"id": 922}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 98}, "assignee": {"id": 567}, "organization": {"id": 118}, "project": {"owner": {"id": 735}, "assignee": {"id": 881}, "organization": {"id": 950}}}} +} + +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": 2, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 2}, "assignee": {"id": 573}, "organization": {"id": 699}, "project": {"owner": {"id": 771}, "assignee": {"id": 847}, "organization": {"id": 952}}}} +} + +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": 19, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 462}, "assignee": {"id": 19}, "organization": {"id": 131}, "project": {"owner": {"id": 794}, "assignee": {"id": 836}, "organization": {"id": 940}}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 410}, "assignee": {"id": 99}, "organization": {"id": 693}, "project": {"owner": {"id": 707}, "assignee": {"id": 802}, "organization": {"id": 997}}}} +} + +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": 41, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 458}, "assignee": {"id": 41}, "organization": {"id": 154}, "project": {"owner": {"id": 716}, "assignee": {"id": 819}, "organization": {"id": 997}}}} +} + +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": 18, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 492}, "assignee": {"id": 18}, "organization": {"id": 674}, "project": {"owner": {"id": 712}, "assignee": {"id": 896}, "organization": {"id": 922}}}} +} + +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": 8, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 488}, "assignee": {"id": 8}, "organization": {"id": 159}, "project": {"owner": {"id": 709}, "assignee": {"id": 852}, "organization": {"id": 971}}}} +} + +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": 28, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 413}, "assignee": {"id": 28}, "organization": {"id": 622}, "project": {"owner": {"id": 718}, "assignee": {"id": 823}, "organization": {"id": 985}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 442}, "assignee": {"id": 32}, "organization": {"id": 192}, "project": {"owner": {"id": 783}, "assignee": {"id": 899}, "organization": {"id": 925}}}} +} + +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": 39, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 486}, "assignee": {"id": 39}, "organization": {"id": 644}, "project": {"owner": {"id": 724}, "assignee": {"id": 808}, "organization": {"id": 903}}}} +} + +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": 64, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 452}, "assignee": {"id": 64}, "organization": {"id": 183}, "project": {"owner": {"id": 762}, "assignee": {"id": 813}, "organization": {"id": 976}}}} +} + +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": 33, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 420}, "assignee": {"id": 33}, "organization": {"id": 636}, "project": {"owner": {"id": 760}, "assignee": {"id": 896}, "organization": {"id": 922}}}} +} + +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": 52, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 471}, "assignee": {"id": 52}, "organization": {"id": 107}, "project": {"owner": {"id": 775}, "assignee": {"id": 889}, "organization": {"id": 967}}}} +} + +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": 59, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 488}, "assignee": {"id": 59}, "organization": {"id": 633}, "project": {"owner": {"id": 748}, "assignee": {"id": 800}, "organization": {"id": 983}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 486}, "assignee": {"id": 90}, "organization": {"id": 104}, "project": {"owner": {"id": 742}, "assignee": {"id": 820}, "organization": {"id": 923}}}} +} + +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": 98, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 414}, "assignee": {"id": 98}, "organization": {"id": 657}, "project": {"owner": {"id": 789}, "assignee": {"id": 855}, "organization": {"id": 954}}}} +} + +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": 16, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 414}, "assignee": {"id": 16}, "organization": {"id": 165}, "project": {"owner": {"id": 779}, "assignee": {"id": 859}, "organization": {"id": 962}}}} +} + +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": 49, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 454}, "assignee": {"id": 49}, "organization": {"id": 606}, "project": {"owner": {"id": 777}, "assignee": {"id": 872}, "organization": {"id": 967}}}} +} + +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": 65, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 459}, "assignee": {"id": 65}, "organization": {"id": 153}, "project": {"owner": {"id": 739}, "assignee": {"id": 856}, "organization": {"id": 912}}}} +} + +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": 12, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 460}, "assignee": {"id": 12}, "organization": {"id": 664}, "project": {"owner": {"id": 743}, "assignee": {"id": 809}, "organization": {"id": 904}}}} +} + +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": 87, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 494}, "assignee": {"id": 87}, "organization": {"id": 188}, "project": {"owner": {"id": 761}, "assignee": {"id": 876}, "organization": {"id": 914}}}} +} + +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": 97, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 418}, "assignee": {"id": 97}, "organization": {"id": 613}, "project": {"owner": {"id": 728}, "assignee": {"id": 857}, "organization": {"id": 961}}}} +} + +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": 62, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 472}, "assignee": {"id": 62}, "organization": {"id": 175}, "project": {"owner": {"id": 771}, "assignee": {"id": 850}, "organization": {"id": 934}}}} +} + +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": 43, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 418}, "assignee": {"id": 43}, "organization": {"id": 612}, "project": {"owner": {"id": 722}, "assignee": {"id": 813}, "organization": {"id": 938}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 433}, "assignee": {"id": 14}, "organization": {"id": 142}, "project": {"owner": {"id": 738}, "assignee": {"id": 888}, "organization": {"id": 992}}}} +} + +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": 51, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 487}, "assignee": {"id": 51}, "organization": {"id": 612}, "project": {"owner": {"id": 773}, "assignee": {"id": 857}, "organization": {"id": 983}}}} +} + +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": 3, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 404}, "assignee": {"id": 3}, "organization": {"id": 103}, "project": {"owner": {"id": 784}, "assignee": {"id": 868}, "organization": {"id": 973}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 427}, "assignee": {"id": 60}, "organization": {"id": 667}, "project": {"owner": {"id": 756}, "assignee": {"id": 812}, "organization": {"id": 947}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 428}, "assignee": {"id": 96}, "organization": {"id": 187}, "project": {"owner": {"id": 763}, "assignee": {"id": 865}, "organization": {"id": 926}}}} +} + +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": 15, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 460}, "assignee": {"id": 15}, "organization": {"id": 695}, "project": {"owner": {"id": 767}, "assignee": {"id": 835}, "organization": {"id": 931}}}} +} + +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": 80, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 495}, "assignee": {"id": 80}, "organization": {"id": 100}, "project": {"owner": {"id": 708}, "assignee": {"id": 834}, "organization": {"id": 953}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 456}, "assignee": {"id": 96}, "organization": {"id": 675}, "project": {"owner": {"id": 740}, "assignee": {"id": 875}, "organization": {"id": 938}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 441}, "assignee": {"id": 13}, "organization": {"id": 141}, "project": {"owner": {"id": 706}, "assignee": {"id": 809}, "organization": {"id": 980}}}} +} + +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": 37, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 439}, "assignee": {"id": 37}, "organization": {"id": 689}, "project": {"owner": {"id": 710}, "assignee": {"id": 846}, "organization": {"id": 978}}}} +} + +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": 7, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 467}, "assignee": {"id": 7}, "organization": {"id": 175}, "project": {"owner": {"id": 708}, "assignee": {"id": 881}, "organization": {"id": 981}}}} +} + +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": 6, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 494}, "assignee": {"id": 6}, "organization": {"id": 687}, "project": {"owner": {"id": 702}, "assignee": {"id": 819}, "organization": {"id": 975}}}} +} + +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": 54, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 408}, "assignee": {"id": 54}, "organization": {"id": 155}, "project": {"owner": {"id": 728}, "assignee": {"id": 831}, "organization": {"id": 912}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 470}, "assignee": {"id": 59}, "organization": {"id": 639}, "project": {"owner": {"id": 795}, "assignee": {"id": 830}, "organization": {"id": 972}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 495}, "assignee": {"id": 9}, "organization": {"id": 101}, "project": {"owner": {"id": 782}, "assignee": {"id": 844}, "organization": {"id": 955}}}} +} + +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": 91, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 413}, "assignee": {"id": 91}, "organization": {"id": 647}, "project": {"owner": {"id": 793}, "assignee": {"id": 821}, "organization": {"id": 965}}}} +} + +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": 12, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 439}, "assignee": {"id": 12}, "organization": {"id": 101}, "project": {"owner": {"id": 788}, "assignee": {"id": 857}, "organization": {"id": 933}}}} +} + +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": 39, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 473}, "assignee": {"id": 39}, "organization": {"id": 652}, "project": {"owner": {"id": 735}, "assignee": {"id": 804}, "organization": {"id": 905}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 477}, "assignee": {"id": 62}, "organization": {"id": 188}, "project": {"owner": {"id": 741}, "assignee": {"id": 833}, "organization": {"id": 904}}}} +} + +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": 51, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 425}, "assignee": {"id": 51}, "organization": {"id": 627}, "project": {"owner": {"id": 735}, "assignee": {"id": 881}, "organization": {"id": 982}}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 494}, "assignee": {"id": 99}, "organization": {"id": 143}, "project": {"owner": {"id": 789}, "assignee": {"id": 889}, "organization": {"id": 948}}}} +} + +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": 15, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 490}, "assignee": {"id": 15}, "organization": {"id": 603}, "project": {"owner": {"id": 771}, "assignee": {"id": 877}, "organization": {"id": 904}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 423}, "assignee": {"id": 14}, "organization": {"id": 165}, "project": {"owner": {"id": 701}, "assignee": {"id": 853}, "organization": {"id": 974}}}} +} + +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": 95, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 401}, "assignee": {"id": 95}, "organization": {"id": 667}, "project": {"owner": {"id": 715}, "assignee": {"id": 844}, "organization": {"id": 912}}}} +} + +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": 40, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 418}, "assignee": {"id": 40}, "organization": {"id": 164}, "project": {"owner": {"id": 763}, "assignee": {"id": 818}, "organization": {"id": 916}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 443}, "assignee": {"id": 93}, "organization": {"id": 632}, "project": {"owner": {"id": 785}, "assignee": {"id": 826}, "organization": {"id": 902}}}} +} + +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": 93, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 448}, "assignee": {"id": 93}, "organization": {"id": 165}, "project": {"owner": {"id": 708}, "assignee": {"id": 861}, "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": 15, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 407}, "assignee": {"id": 15}, "organization": {"id": 657}, "project": {"owner": {"id": 709}, "assignee": {"id": 895}, "organization": {"id": 958}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 462}, "assignee": {"id": 537}, "organization": {"id": 110}, "project": {"owner": {"id": 706}, "assignee": {"id": 871}, "organization": {"id": 962}}}} +} + +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": 96, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 408}, "assignee": {"id": 569}, "organization": {"id": 630}, "project": {"owner": {"id": 790}, "assignee": {"id": 852}, "organization": {"id": 944}}}} +} + +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": 46, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 430}, "assignee": {"id": 504}, "organization": {"id": 192}, "project": {"owner": {"id": 722}, "assignee": {"id": 813}, "organization": {"id": 912}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 445}, "assignee": {"id": 580}, "organization": {"id": 672}, "project": {"owner": {"id": 712}, "assignee": {"id": 862}, "organization": {"id": 995}}}} +} + +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": 23, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 401}, "assignee": {"id": 536}, "organization": {"id": 135}, "project": {"owner": {"id": 750}, "assignee": {"id": 895}, "organization": {"id": 900}}}} +} + +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": 10, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 426}, "assignee": {"id": 556}, "organization": {"id": 602}, "project": {"owner": {"id": 717}, "assignee": {"id": 835}, "organization": {"id": 979}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 468}, "assignee": {"id": 599}, "organization": {"id": 125}, "project": {"owner": {"id": 719}, "assignee": {"id": 839}, "organization": {"id": 954}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 462}, "assignee": {"id": 554}, "organization": {"id": 612}, "project": {"owner": {"id": 710}, "assignee": {"id": 885}, "organization": {"id": 979}}}} +} + +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": 26, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 494}, "assignee": {"id": 593}, "organization": {"id": 126}, "project": {"owner": {"id": 776}, "assignee": {"id": 849}, "organization": {"id": 931}}}} +} + +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": 82, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 455}, "assignee": {"id": 532}, "organization": {"id": 698}, "project": {"owner": {"id": 797}, "assignee": {"id": 833}, "organization": {"id": 983}}}} +} + +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": 30, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 484}, "assignee": {"id": 517}, "organization": {"id": 135}, "project": {"owner": {"id": 790}, "assignee": {"id": 868}, "organization": {"id": 964}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 482}, "assignee": {"id": 564}, "organization": {"id": 651}, "project": {"owner": {"id": 738}, "assignee": {"id": 895}, "organization": {"id": 913}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 405}, "assignee": {"id": 523}, "organization": {"id": 156}, "project": {"owner": {"id": 789}, "assignee": {"id": 895}, "organization": {"id": 961}}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 435}, "assignee": {"id": 576}, "organization": {"id": 631}, "project": {"owner": {"id": 754}, "assignee": {"id": 811}, "organization": {"id": 982}}}} +} + +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": 51, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 481}, "assignee": {"id": 593}, "organization": {"id": 124}, "project": {"owner": {"id": 757}, "assignee": {"id": 809}, "organization": {"id": 909}}}} +} + +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": 95, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 499}, "assignee": {"id": 519}, "organization": {"id": 662}, "project": {"owner": {"id": 754}, "assignee": {"id": 897}, "organization": {"id": 944}}}} +} + +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": 15, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 479}, "assignee": {"id": 542}, "organization": {"id": 177}, "project": {"owner": {"id": 733}, "assignee": {"id": 839}, "organization": {"id": 998}}}} +} + +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": 43, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 428}, "assignee": {"id": 525}, "organization": {"id": 613}, "project": {"owner": {"id": 744}, "assignee": {"id": 892}, "organization": {"id": 967}}}} +} + +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": 1, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 461}, "assignee": {"id": 599}, "organization": {"id": 192}, "project": {"owner": {"id": 797}, "assignee": {"id": 873}, "organization": {"id": 905}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 420}, "assignee": {"id": 558}, "organization": {"id": 635}, "project": {"owner": {"id": 779}, "assignee": {"id": 830}, "organization": {"id": 924}}}} +} + +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": 61, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 434}, "assignee": {"id": 526}, "organization": {"id": 117}, "project": {"owner": {"id": 709}, "assignee": {"id": 872}, "organization": {"id": 962}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 433}, "assignee": {"id": 511}, "organization": {"id": 608}, "project": {"owner": {"id": 764}, "assignee": {"id": 842}, "organization": {"id": 903}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 484}, "assignee": {"id": 556}, "organization": {"id": 199}, "project": {"owner": {"id": 763}, "assignee": {"id": 853}, "organization": {"id": 930}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 463}, "assignee": {"id": 566}, "organization": {"id": 675}, "project": {"owner": {"id": 780}, "assignee": {"id": 851}, "organization": {"id": 957}}}} +} + +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": 65, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 401}, "assignee": {"id": 588}, "organization": {"id": 194}, "project": {"owner": {"id": 724}, "assignee": {"id": 881}, "organization": {"id": 930}}}} +} + +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": 53, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 435}, "assignee": {"id": 556}, "organization": {"id": 614}, "project": {"owner": {"id": 759}, "assignee": {"id": 863}, "organization": {"id": 946}}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 477}, "assignee": {"id": 563}, "organization": {"id": 135}, "project": {"owner": {"id": 794}, "assignee": {"id": 885}, "organization": {"id": 945}}}} +} + +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": 92, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 482}, "assignee": {"id": 560}, "organization": {"id": 697}, "project": {"owner": {"id": 755}, "assignee": {"id": 804}, "organization": {"id": 963}}}} +} + +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": 91, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 443}, "assignee": {"id": 594}, "organization": {"id": 170}, "project": {"owner": {"id": 710}, "assignee": {"id": 816}, "organization": {"id": 969}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 460}, "assignee": {"id": 508}, "organization": {"id": 679}, "project": {"owner": {"id": 752}, "assignee": {"id": 845}, "organization": {"id": 999}}}} +} + +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": 111, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 469}, "assignee": {"id": 522}, "organization": {"id": 111}, "project": {"owner": {"id": 746}, "assignee": {"id": 828}, "organization": {"id": 936}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 414}, "assignee": {"id": 532}, "organization": {"id": 680}, "project": {"owner": {"id": 791}, "assignee": {"id": 893}, "organization": {"id": 900}}}} +} + +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": 24, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 437}, "assignee": {"id": 508}, "organization": {"id": 194}, "project": {"owner": {"id": 704}, "assignee": {"id": 863}, "organization": {"id": 987}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 453}, "assignee": {"id": 594}, "organization": {"id": 656}, "project": {"owner": {"id": 756}, "assignee": {"id": 846}, "organization": {"id": 929}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 427}, "assignee": {"id": 558}, "organization": {"id": 104}, "project": {"owner": {"id": 795}, "assignee": {"id": 817}, "organization": {"id": 908}}}} +} + +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": 85, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 421}, "assignee": {"id": 592}, "organization": {"id": 641}, "project": {"owner": {"id": 736}, "assignee": {"id": 839}, "organization": {"id": 962}}}} +} + +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": 97, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 413}, "assignee": {"id": 551}, "organization": {"id": 136}, "project": {"owner": {"id": 782}, "assignee": {"id": 808}, "organization": {"id": 998}}}} +} + +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": 0, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 489}, "assignee": {"id": 519}, "organization": {"id": 639}, "project": {"owner": {"id": 718}, "assignee": {"id": 884}, "organization": {"id": 964}}}} +} + +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": 33, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 463}, "assignee": {"id": 506}, "organization": {"id": 101}, "project": {"owner": {"id": 709}, "assignee": {"id": 849}, "organization": {"id": 965}}}} +} + +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": 2, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 487}, "assignee": {"id": 548}, "organization": {"id": 695}, "project": {"owner": {"id": 776}, "assignee": {"id": 864}, "organization": {"id": 940}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 445}, "assignee": {"id": 531}, "organization": {"id": 197}, "project": {"owner": {"id": 718}, "assignee": {"id": 820}, "organization": {"id": 988}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 452}, "assignee": {"id": 573}, "organization": {"id": 603}, "project": {"owner": {"id": 717}, "assignee": {"id": 802}, "organization": {"id": 946}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 477}, "assignee": {"id": 559}, "organization": {"id": 184}, "project": {"owner": {"id": 740}, "assignee": {"id": 823}, "organization": {"id": 992}}}} +} + +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": 62, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 488}, "assignee": {"id": 501}, "organization": {"id": 647}, "project": {"owner": {"id": 731}, "assignee": {"id": 886}, "organization": {"id": 944}}}} +} + +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": 79, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 479}, "assignee": {"id": 522}, "organization": {"id": 173}, "project": {"owner": {"id": 747}, "assignee": {"id": 818}, "organization": {"id": 979}}}} +} + +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": 27, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 486}, "assignee": {"id": 522}, "organization": {"id": 649}, "project": {"owner": {"id": 745}, "assignee": {"id": 881}, "organization": {"id": 905}}}} +} + +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": 57, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 411}, "assignee": {"id": 583}, "organization": {"id": 132}, "project": {"owner": {"id": 740}, "assignee": {"id": 896}, "organization": {"id": 972}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 482}, "assignee": {"id": 508}, "organization": {"id": 659}, "project": {"owner": {"id": 747}, "assignee": {"id": 870}, "organization": {"id": 949}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 476}, "assignee": {"id": 534}, "organization": {"id": 177}, "project": {"owner": {"id": 770}, "assignee": {"id": 825}, "organization": {"id": 900}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 454}, "assignee": {"id": 576}, "organization": {"id": 681}, "project": {"owner": {"id": 753}, "assignee": {"id": 850}, "organization": {"id": 965}}}} +} + +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": 25, "privilege": "admin"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 416}, "assignee": {"id": 522}, "organization": {"id": 655}, "project": {"owner": {"id": 25}, "assignee": {"id": 848}, "organization": {"id": 901}}}} +} + +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": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 402}, "assignee": {"id": 552}, "organization": {"id": 672}, "project": {"owner": {"id": 66}, "assignee": {"id": 846}, "organization": {"id": 979}}}} +} + +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": 74, "privilege": "user"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 421}, "assignee": {"id": 527}, "organization": {"id": 666}, "project": {"owner": {"id": 74}, "assignee": {"id": 870}, "organization": {"id": 916}}}} +} + +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": 40, "privilege": "worker"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 480}, "assignee": {"id": 599}, "organization": {"id": 613}, "project": {"owner": {"id": 40}, "assignee": {"id": 853}, "organization": {"id": 980}}}} +} + +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": 18, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 484}, "assignee": {"id": 541}, "organization": {"id": 684}, "project": {"owner": {"id": 18}, "assignee": {"id": 827}, "organization": {"id": 985}}}} +} + +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": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 428}, "assignee": {"id": 564}, "organization": {"id": 641}, "project": {"owner": {"id": 779}, "assignee": {"id": 77}, "organization": {"id": 948}}}} +} + +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": 33, "privilege": "business"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 457}, "assignee": {"id": 594}, "organization": {"id": 671}, "project": {"owner": {"id": 757}, "assignee": {"id": 33}, "organization": {"id": 949}}}} +} + +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": 82, "privilege": "user"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 478}, "assignee": {"id": 504}, "organization": {"id": 638}, "project": {"owner": {"id": 776}, "assignee": {"id": 82}, "organization": {"id": 903}}}} +} + +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": 94, "privilege": "worker"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 471}, "assignee": {"id": 520}, "organization": {"id": 644}, "project": {"owner": {"id": 761}, "assignee": {"id": 94}, "organization": {"id": 903}}}} +} + +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": 10, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 484}, "assignee": {"id": 517}, "organization": {"id": 650}, "project": {"owner": {"id": 753}, "assignee": {"id": 10}, "organization": {"id": 939}}}} +} + +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": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 77}, "assignee": {"id": 539}, "organization": {"id": 666}, "project": {"owner": {"id": 713}, "assignee": {"id": 846}, "organization": {"id": 935}}}} +} + +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": 21, "privilege": "business"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 21}, "assignee": {"id": 549}, "organization": {"id": 693}, "project": {"owner": {"id": 740}, "assignee": {"id": 855}, "organization": {"id": 993}}}} +} + +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": 90, "privilege": "user"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 90}, "assignee": {"id": 560}, "organization": {"id": 689}, "project": {"owner": {"id": 789}, "assignee": {"id": 850}, "organization": {"id": 957}}}} +} + +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": 27, "privilege": "worker"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 27}, "assignee": {"id": 599}, "organization": {"id": 622}, "project": {"owner": {"id": 730}, "assignee": {"id": 812}, "organization": {"id": 981}}}} +} + +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": 5, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 5}, "assignee": {"id": 510}, "organization": {"id": 650}, "project": {"owner": {"id": 718}, "assignee": {"id": 843}, "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": 89, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 495}, "assignee": {"id": 89}, "organization": {"id": 689}, "project": {"owner": {"id": 701}, "assignee": {"id": 809}, "organization": {"id": 907}}}} +} + +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": 77, "privilege": "business"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 432}, "assignee": {"id": 77}, "organization": {"id": 679}, "project": {"owner": {"id": 751}, "assignee": {"id": 855}, "organization": {"id": 932}}}} +} + +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": 10, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 473}, "assignee": {"id": 10}, "organization": {"id": 608}, "project": {"owner": {"id": 771}, "assignee": {"id": 814}, "organization": {"id": 937}}}} +} + +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": 66, "privilege": "worker"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 419}, "assignee": {"id": 66}, "organization": {"id": 603}, "project": {"owner": {"id": 783}, "assignee": {"id": 824}, "organization": {"id": 994}}}} +} + +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": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 482}, "assignee": {"id": 94}, "organization": {"id": 629}, "project": {"owner": {"id": 755}, "assignee": {"id": 831}, "organization": {"id": 955}}}} +} + +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": 4, "privilege": "admin"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 428}, "assignee": {"id": 544}, "organization": {"id": 608}, "project": {"owner": {"id": 736}, "assignee": {"id": 834}, "organization": {"id": 989}}}} +} + +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": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 453}, "assignee": {"id": 592}, "organization": {"id": 674}, "project": {"owner": {"id": 716}, "assignee": {"id": 853}, "organization": {"id": 919}}}} +} + +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": 64, "privilege": "user"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 443}, "assignee": {"id": 506}, "organization": {"id": 618}, "project": {"owner": {"id": 723}, "assignee": {"id": 802}, "organization": {"id": 958}}}} +} + +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": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 432}, "assignee": {"id": 583}, "organization": {"id": 688}, "project": {"owner": {"id": 747}, "assignee": {"id": 872}, "organization": {"id": 940}}}} +} + +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": 90, "privilege": "none"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 461}, "assignee": {"id": 502}, "organization": {"id": 649}, "project": {"owner": {"id": 775}, "assignee": {"id": 862}, "organization": {"id": 981}}}} +} + +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": 13, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 497}, "assignee": {"id": 517}, "organization": {"id": 182}, "project": {"owner": {"id": 13}, "assignee": {"id": 827}, "organization": {"id": 993}}}} +} + +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": 87, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 447}, "assignee": {"id": 531}, "organization": {"id": 612}, "project": {"owner": {"id": 87}, "assignee": {"id": 865}, "organization": {"id": 909}}}} +} + +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": 4, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 476}, "assignee": {"id": 516}, "organization": {"id": 196}, "project": {"owner": {"id": 4}, "assignee": {"id": 820}, "organization": {"id": 946}}}} +} + +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": 21, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 432}, "assignee": {"id": 537}, "organization": {"id": 617}, "project": {"owner": {"id": 21}, "assignee": {"id": 894}, "organization": {"id": 998}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 455}, "assignee": {"id": 556}, "organization": {"id": 112}, "project": {"owner": {"id": 98}, "assignee": {"id": 897}, "organization": {"id": 965}}}} +} + +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": 63, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 480}, "assignee": {"id": 577}, "organization": {"id": 691}, "project": {"owner": {"id": 63}, "assignee": {"id": 855}, "organization": {"id": 990}}}} +} + +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": 75, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 459}, "assignee": {"id": 582}, "organization": {"id": 159}, "project": {"owner": {"id": 75}, "assignee": {"id": 889}, "organization": {"id": 952}}}} +} + +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": 91, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 458}, "assignee": {"id": 525}, "organization": {"id": 679}, "project": {"owner": {"id": 91}, "assignee": {"id": 863}, "organization": {"id": 906}}}} +} + +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": 37, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 420}, "assignee": {"id": 501}, "organization": {"id": 123}, "project": {"owner": {"id": 37}, "assignee": {"id": 833}, "organization": {"id": 903}}}} +} + +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": 143, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 404}, "assignee": {"id": 513}, "organization": {"id": 654}, "project": {"owner": {"id": 17}, "assignee": {"id": 894}, "organization": {"id": 981}}}} +} + +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": 7, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 446}, "assignee": {"id": 508}, "organization": {"id": 186}, "project": {"owner": {"id": 7}, "assignee": {"id": 833}, "organization": {"id": 948}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 453}, "assignee": {"id": 566}, "organization": {"id": 617}, "project": {"owner": {"id": 62}, "assignee": {"id": 845}, "organization": {"id": 922}}}} +} + +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": 34, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 488}, "assignee": {"id": 536}, "organization": {"id": 109}, "project": {"owner": {"id": 34}, "assignee": {"id": 811}, "organization": {"id": 952}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 448}, "assignee": {"id": 543}, "organization": {"id": 659}, "project": {"owner": {"id": 85}, "assignee": {"id": 847}, "organization": {"id": 921}}}} +} + +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": 91, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 481}, "assignee": {"id": 517}, "organization": {"id": 134}, "project": {"owner": {"id": 91}, "assignee": {"id": 884}, "organization": {"id": 905}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 427}, "assignee": {"id": 555}, "organization": {"id": 669}, "project": {"owner": {"id": 80}, "assignee": {"id": 877}, "organization": {"id": 930}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 414}, "assignee": {"id": 532}, "organization": {"id": 158}, "project": {"owner": {"id": 92}, "assignee": {"id": 868}, "organization": {"id": 997}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 482}, "assignee": {"id": 544}, "organization": {"id": 606}, "project": {"owner": {"id": 9}, "assignee": {"id": 853}, "organization": {"id": 911}}}} +} + +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": 33, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 442}, "assignee": {"id": 537}, "organization": {"id": 186}, "project": {"owner": {"id": 33}, "assignee": {"id": 842}, "organization": {"id": 955}}}} +} + +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": 58, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 421}, "assignee": {"id": 504}, "organization": {"id": 689}, "project": {"owner": {"id": 58}, "assignee": {"id": 863}, "organization": {"id": 978}}}} +} + +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": 64, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 497}, "assignee": {"id": 570}, "organization": {"id": 102}, "project": {"owner": {"id": 64}, "assignee": {"id": 865}, "organization": {"id": 921}}}} +} + +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": 30, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 496}, "assignee": {"id": 570}, "organization": {"id": 668}, "project": {"owner": {"id": 30}, "assignee": {"id": 828}, "organization": {"id": 912}}}} +} + +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": 94, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 449}, "assignee": {"id": 570}, "organization": {"id": 171}, "project": {"owner": {"id": 94}, "assignee": {"id": 859}, "organization": {"id": 991}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 477}, "assignee": {"id": 549}, "organization": {"id": 614}, "project": {"owner": {"id": 89}, "assignee": {"id": 876}, "organization": {"id": 982}}}} +} + +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": 14, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 412}, "assignee": {"id": 538}, "organization": {"id": 197}, "project": {"owner": {"id": 14}, "assignee": {"id": 848}, "organization": {"id": 948}}}} +} + +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": 59, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 418}, "assignee": {"id": 582}, "organization": {"id": 601}, "project": {"owner": {"id": 59}, "assignee": {"id": 857}, "organization": {"id": 966}}}} +} + +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": 4, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 494}, "assignee": {"id": 598}, "organization": {"id": 132}, "project": {"owner": {"id": 4}, "assignee": {"id": 854}, "organization": {"id": 904}}}} +} + +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": 8, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 494}, "assignee": {"id": 530}, "organization": {"id": 694}, "project": {"owner": {"id": 8}, "assignee": {"id": 822}, "organization": {"id": 967}}}} +} + +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": 19, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 456}, "assignee": {"id": 578}, "organization": {"id": 159}, "project": {"owner": {"id": 19}, "assignee": {"id": 815}, "organization": {"id": 934}}}} +} + +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": 17, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 497}, "assignee": {"id": 546}, "organization": {"id": 643}, "project": {"owner": {"id": 17}, "assignee": {"id": 866}, "organization": {"id": 973}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 496}, "assignee": {"id": 573}, "organization": {"id": 117}, "project": {"owner": {"id": 16}, "assignee": {"id": 830}, "organization": {"id": 998}}}} +} + +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": 5, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 402}, "assignee": {"id": 586}, "organization": {"id": 609}, "project": {"owner": {"id": 5}, "assignee": {"id": 827}, "organization": {"id": 962}}}} +} + +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": 25, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 451}, "assignee": {"id": 512}, "organization": {"id": 178}, "project": {"owner": {"id": 25}, "assignee": {"id": 859}, "organization": {"id": 986}}}} +} + +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": 89, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 459}, "assignee": {"id": 532}, "organization": {"id": 615}, "project": {"owner": {"id": 89}, "assignee": {"id": 842}, "organization": {"id": 928}}}} +} + +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": 95, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 495}, "assignee": {"id": 544}, "organization": {"id": 145}, "project": {"owner": {"id": 95}, "assignee": {"id": 806}, "organization": {"id": 956}}}} +} + +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": 150, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 450}, "assignee": {"id": 542}, "organization": {"id": 662}, "project": {"owner": {"id": 38}, "assignee": {"id": 880}, "organization": {"id": 925}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 413}, "assignee": {"id": 515}, "organization": {"id": 140}, "project": {"owner": {"id": 52}, "assignee": {"id": 832}, "organization": {"id": 925}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 472}, "assignee": {"id": 580}, "organization": {"id": 644}, "project": {"owner": {"id": 16}, "assignee": {"id": 881}, "organization": {"id": 948}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 463}, "assignee": {"id": 503}, "organization": {"id": 127}, "project": {"owner": {"id": 92}, "assignee": {"id": 830}, "organization": {"id": 940}}}} +} + +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": 35, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 437}, "assignee": {"id": 542}, "organization": {"id": 682}, "project": {"owner": {"id": 35}, "assignee": {"id": 886}, "organization": {"id": 934}}}} +} + +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": 28, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 437}, "assignee": {"id": 576}, "organization": {"id": 145}, "project": {"owner": {"id": 28}, "assignee": {"id": 889}, "organization": {"id": 941}}}} +} + +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": 59, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 493}, "assignee": {"id": 528}, "organization": {"id": 636}, "project": {"owner": {"id": 59}, "assignee": {"id": 821}, "organization": {"id": 986}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 458}, "assignee": {"id": 503}, "organization": {"id": 174}, "project": {"owner": {"id": 86}, "assignee": {"id": 864}, "organization": {"id": 979}}}} +} + +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": 32, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 410}, "assignee": {"id": 574}, "organization": {"id": 617}, "project": {"owner": {"id": 32}, "assignee": {"id": 829}, "organization": {"id": 920}}}} +} + +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": 19, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 478}, "assignee": {"id": 566}, "organization": {"id": 166}, "project": {"owner": {"id": 19}, "assignee": {"id": 852}, "organization": {"id": 973}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 466}, "assignee": {"id": 592}, "organization": {"id": 676}, "project": {"owner": {"id": 14}, "assignee": {"id": 820}, "organization": {"id": 930}}}} +} + +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": 94, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 478}, "assignee": {"id": 526}, "organization": {"id": 169}, "project": {"owner": {"id": 94}, "assignee": {"id": 882}, "organization": {"id": 995}}}} +} + +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": 11, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 432}, "assignee": {"id": 578}, "organization": {"id": 649}, "project": {"owner": {"id": 11}, "assignee": {"id": 862}, "organization": {"id": 964}}}} +} + +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": 56, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 407}, "assignee": {"id": 534}, "organization": {"id": 111}, "project": {"owner": {"id": 56}, "assignee": {"id": 847}, "organization": {"id": 958}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 418}, "assignee": {"id": 561}, "organization": {"id": 637}, "project": {"owner": {"id": 67}, "assignee": {"id": 831}, "organization": {"id": 921}}}} +} + +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": 98, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 431}, "assignee": {"id": 590}, "organization": {"id": 118}, "project": {"owner": {"id": 731}, "assignee": {"id": 98}, "organization": {"id": 900}}}} +} + +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": 36, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 419}, "assignee": {"id": 519}, "organization": {"id": 698}, "project": {"owner": {"id": 756}, "assignee": {"id": 36}, "organization": {"id": 905}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 478}, "assignee": {"id": 548}, "organization": {"id": 178}, "project": {"owner": {"id": 796}, "assignee": {"id": 77}, "organization": {"id": 955}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 499}, "assignee": {"id": 539}, "organization": {"id": 653}, "project": {"owner": {"id": 766}, "assignee": {"id": 24}, "organization": {"id": 975}}}} +} + +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": 65, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 446}, "assignee": {"id": 526}, "organization": {"id": 154}, "project": {"owner": {"id": 763}, "assignee": {"id": 65}, "organization": {"id": 947}}}} +} + +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": 89, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 485}, "assignee": {"id": 570}, "organization": {"id": 689}, "project": {"owner": {"id": 715}, "assignee": {"id": 89}, "organization": {"id": 941}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 419}, "assignee": {"id": 587}, "organization": {"id": 111}, "project": {"owner": {"id": 700}, "assignee": {"id": 45}, "organization": {"id": 958}}}} +} + +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": 44, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 429}, "assignee": {"id": 574}, "organization": {"id": 618}, "project": {"owner": {"id": 716}, "assignee": {"id": 44}, "organization": {"id": 976}}}} +} + +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": 43, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 447}, "assignee": {"id": 540}, "organization": {"id": 144}, "project": {"owner": {"id": 703}, "assignee": {"id": 43}, "organization": {"id": 997}}}} +} + +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": 15, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 411}, "assignee": {"id": 551}, "organization": {"id": 698}, "project": {"owner": {"id": 764}, "assignee": {"id": 15}, "organization": {"id": 997}}}} +} + +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": 67, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 429}, "assignee": {"id": 586}, "organization": {"id": 102}, "project": {"owner": {"id": 789}, "assignee": {"id": 67}, "organization": {"id": 991}}}} +} + +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": 94, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 473}, "assignee": {"id": 533}, "organization": {"id": 623}, "project": {"owner": {"id": 793}, "assignee": {"id": 94}, "organization": {"id": 920}}}} +} + +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": 72, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 439}, "assignee": {"id": 509}, "organization": {"id": 141}, "project": {"owner": {"id": 737}, "assignee": {"id": 72}, "organization": {"id": 954}}}} +} + +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": 74, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 417}, "assignee": {"id": 573}, "organization": {"id": 681}, "project": {"owner": {"id": 793}, "assignee": {"id": 74}, "organization": {"id": 920}}}} +} + +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": 80, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 437}, "assignee": {"id": 567}, "organization": {"id": 172}, "project": {"owner": {"id": 757}, "assignee": {"id": 80}, "organization": {"id": 938}}}} +} + +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": 50, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 477}, "assignee": {"id": 518}, "organization": {"id": 632}, "project": {"owner": {"id": 725}, "assignee": {"id": 50}, "organization": {"id": 907}}}} +} + +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": 13, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 495}, "assignee": {"id": 529}, "organization": {"id": 159}, "project": {"owner": {"id": 770}, "assignee": {"id": 13}, "organization": {"id": 905}}}} +} + +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": 24, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 429}, "assignee": {"id": 520}, "organization": {"id": 607}, "project": {"owner": {"id": 723}, "assignee": {"id": 24}, "organization": {"id": 993}}}} +} + +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": 23, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 486}, "assignee": {"id": 528}, "organization": {"id": 157}, "project": {"owner": {"id": 741}, "assignee": {"id": 23}, "organization": {"id": 973}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 452}, "assignee": {"id": 509}, "organization": {"id": 604}, "project": {"owner": {"id": 724}, "assignee": {"id": 8}, "organization": {"id": 993}}}} +} + +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": 96, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 432}, "assignee": {"id": 537}, "organization": {"id": 179}, "project": {"owner": {"id": 702}, "assignee": {"id": 96}, "organization": {"id": 913}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 432}, "assignee": {"id": 521}, "organization": {"id": 609}, "project": {"owner": {"id": 787}, "assignee": {"id": 16}, "organization": {"id": 909}}}} +} + +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": 97, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 496}, "assignee": {"id": 585}, "organization": {"id": 102}, "project": {"owner": {"id": 791}, "assignee": {"id": 97}, "organization": {"id": 919}}}} +} + +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": 63, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 465}, "assignee": {"id": 546}, "organization": {"id": 675}, "project": {"owner": {"id": 755}, "assignee": {"id": 63}, "organization": {"id": 961}}}} +} + +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": 60, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 449}, "assignee": {"id": 536}, "organization": {"id": 109}, "project": {"owner": {"id": 719}, "assignee": {"id": 60}, "organization": {"id": 979}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 408}, "assignee": {"id": 582}, "organization": {"id": 606}, "project": {"owner": {"id": 714}, "assignee": {"id": 27}, "organization": {"id": 918}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 471}, "assignee": {"id": 528}, "organization": {"id": 117}, "project": {"owner": {"id": 735}, "assignee": {"id": 67}, "organization": {"id": 997}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 453}, "assignee": {"id": 520}, "organization": {"id": 659}, "project": {"owner": {"id": 712}, "assignee": {"id": 56}, "organization": {"id": 915}}}} +} + +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": 54, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 446}, "assignee": {"id": 584}, "organization": {"id": 170}, "project": {"owner": {"id": 781}, "assignee": {"id": 54}, "organization": {"id": 985}}}} +} + +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": 83, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 403}, "assignee": {"id": 549}, "organization": {"id": 688}, "project": {"owner": {"id": 716}, "assignee": {"id": 83}, "organization": {"id": 919}}}} +} + +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": 88, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 464}, "assignee": {"id": 509}, "organization": {"id": 107}, "project": {"owner": {"id": 771}, "assignee": {"id": 88}, "organization": {"id": 950}}}} +} + +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": 32, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 401}, "assignee": {"id": 515}, "organization": {"id": 691}, "project": {"owner": {"id": 703}, "assignee": {"id": 32}, "organization": {"id": 919}}}} +} + +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": 9, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 482}, "assignee": {"id": 559}, "organization": {"id": 141}, "project": {"owner": {"id": 740}, "assignee": {"id": 9}, "organization": {"id": 967}}}} +} + +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": 68, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 418}, "assignee": {"id": 512}, "organization": {"id": 694}, "project": {"owner": {"id": 752}, "assignee": {"id": 68}, "organization": {"id": 930}}}} +} + +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": 27, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 430}, "assignee": {"id": 552}, "organization": {"id": 166}, "project": {"owner": {"id": 788}, "assignee": {"id": 27}, "organization": {"id": 968}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 479}, "assignee": {"id": 560}, "organization": {"id": 633}, "project": {"owner": {"id": 741}, "assignee": {"id": 22}, "organization": {"id": 906}}}} +} + +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": 15, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 405}, "assignee": {"id": 558}, "organization": {"id": 153}, "project": {"owner": {"id": 791}, "assignee": {"id": 15}, "organization": {"id": 903}}}} +} + +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": 4, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 433}, "assignee": {"id": 526}, "organization": {"id": 651}, "project": {"owner": {"id": 792}, "assignee": {"id": 4}, "organization": {"id": 962}}}} +} + +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": 20, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 452}, "assignee": {"id": 535}, "organization": {"id": 198}, "project": {"owner": {"id": 743}, "assignee": {"id": 20}, "organization": {"id": 902}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 465}, "assignee": {"id": 550}, "organization": {"id": 633}, "project": {"owner": {"id": 782}, "assignee": {"id": 22}, "organization": {"id": 924}}}} +} + +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": 33, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 436}, "assignee": {"id": 590}, "organization": {"id": 100}, "project": {"owner": {"id": 794}, "assignee": {"id": 33}, "organization": {"id": 962}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 458}, "assignee": {"id": 576}, "organization": {"id": 651}, "project": {"owner": {"id": 759}, "assignee": {"id": 76}, "organization": {"id": 970}}}} +} + +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": 98, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 488}, "assignee": {"id": 532}, "organization": {"id": 119}, "project": {"owner": {"id": 786}, "assignee": {"id": 98}, "organization": {"id": 948}}}} +} + +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": 23, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 444}, "assignee": {"id": 590}, "organization": {"id": 694}, "project": {"owner": {"id": 743}, "assignee": {"id": 23}, "organization": {"id": 973}}}} +} + +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": 70, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 460}, "assignee": {"id": 533}, "organization": {"id": 137}, "project": {"owner": {"id": 713}, "assignee": {"id": 70}, "organization": {"id": 976}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 434}, "assignee": {"id": 587}, "organization": {"id": 684}, "project": {"owner": {"id": 715}, "assignee": {"id": 97}, "organization": {"id": 917}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 458}, "assignee": {"id": 583}, "organization": {"id": 199}, "project": {"owner": {"id": 765}, "assignee": {"id": 54}, "organization": {"id": 998}}}} +} + +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": 29, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 463}, "assignee": {"id": 522}, "organization": {"id": 603}, "project": {"owner": {"id": 749}, "assignee": {"id": 29}, "organization": {"id": 988}}}} +} + +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": 18, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 459}, "assignee": {"id": 581}, "organization": {"id": 107}, "project": {"owner": {"id": 774}, "assignee": {"id": 18}, "organization": {"id": 915}}}} +} + +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": 38, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 403}, "assignee": {"id": 505}, "organization": {"id": 671}, "project": {"owner": {"id": 758}, "assignee": {"id": 38}, "organization": {"id": 954}}}} +} + +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": 78, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 78}, "assignee": {"id": 596}, "organization": {"id": 126}, "project": {"owner": {"id": 761}, "assignee": {"id": 872}, "organization": {"id": 910}}}} +} + +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": 11, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 11}, "assignee": {"id": 553}, "organization": {"id": 633}, "project": {"owner": {"id": 743}, "assignee": {"id": 890}, "organization": {"id": 917}}}} +} + +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": 79, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 79}, "assignee": {"id": 543}, "organization": {"id": 135}, "project": {"owner": {"id": 717}, "assignee": {"id": 899}, "organization": {"id": 939}}}} +} + +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": 2, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 2}, "assignee": {"id": 586}, "organization": {"id": 607}, "project": {"owner": {"id": 742}, "assignee": {"id": 868}, "organization": {"id": 993}}}} +} + +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": 84, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 84}, "assignee": {"id": 519}, "organization": {"id": 103}, "project": {"owner": {"id": 742}, "assignee": {"id": 824}, "organization": {"id": 965}}}} +} + +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": 77, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 77}, "assignee": {"id": 508}, "organization": {"id": 645}, "project": {"owner": {"id": 775}, "assignee": {"id": 896}, "organization": {"id": 985}}}} +} + +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": 53, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 53}, "assignee": {"id": 561}, "organization": {"id": 179}, "project": {"owner": {"id": 734}, "assignee": {"id": 849}, "organization": {"id": 968}}}} +} + +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": 51, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 51}, "assignee": {"id": 509}, "organization": {"id": 694}, "project": {"owner": {"id": 739}, "assignee": {"id": 835}, "organization": {"id": 931}}}} +} + +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": 50, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 50}, "assignee": {"id": 546}, "organization": {"id": 111}, "project": {"owner": {"id": 788}, "assignee": {"id": 810}, "organization": {"id": 907}}}} +} + +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": 88, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 88}, "assignee": {"id": 576}, "organization": {"id": 629}, "project": {"owner": {"id": 785}, "assignee": {"id": 876}, "organization": {"id": 913}}}} +} + +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": 184, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 72}, "assignee": {"id": 598}, "organization": {"id": 184}, "project": {"owner": {"id": 792}, "assignee": {"id": 868}, "organization": {"id": 926}}}} +} + +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": 77, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 77}, "assignee": {"id": 511}, "organization": {"id": 638}, "project": {"owner": {"id": 795}, "assignee": {"id": 863}, "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": 74, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 74}, "assignee": {"id": 575}, "organization": {"id": 102}, "project": {"owner": {"id": 725}, "assignee": {"id": 829}, "organization": {"id": 926}}}} +} + +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": 96, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 96}, "assignee": {"id": 557}, "organization": {"id": 661}, "project": {"owner": {"id": 779}, "assignee": {"id": 877}, "organization": {"id": 928}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 6}, "assignee": {"id": 582}, "organization": {"id": 171}, "project": {"owner": {"id": 777}, "assignee": {"id": 864}, "organization": {"id": 994}}}} +} + +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": 85, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 85}, "assignee": {"id": 598}, "organization": {"id": 661}, "project": {"owner": {"id": 792}, "assignee": {"id": 872}, "organization": {"id": 976}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 90}, "assignee": {"id": 537}, "organization": {"id": 127}, "project": {"owner": {"id": 750}, "assignee": {"id": 851}, "organization": {"id": 997}}}} +} + +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": 21, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 21}, "assignee": {"id": 515}, "organization": {"id": 655}, "project": {"owner": {"id": 761}, "assignee": {"id": 822}, "organization": {"id": 918}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 62}, "assignee": {"id": 564}, "organization": {"id": 186}, "project": {"owner": {"id": 787}, "assignee": {"id": 869}, "organization": {"id": 948}}}} +} + +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": 89, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 89}, "assignee": {"id": 517}, "organization": {"id": 683}, "project": {"owner": {"id": 715}, "assignee": {"id": 810}, "organization": {"id": 973}}}} +} + +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": 5, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 5}, "assignee": {"id": 550}, "organization": {"id": 139}, "project": {"owner": {"id": 740}, "assignee": {"id": 872}, "organization": {"id": 986}}}} +} + +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": 22, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 22}, "assignee": {"id": 567}, "organization": {"id": 636}, "project": {"owner": {"id": 799}, "assignee": {"id": 855}, "organization": {"id": 955}}}} +} + +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": 11, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 11}, "assignee": {"id": 562}, "organization": {"id": 160}, "project": {"owner": {"id": 747}, "assignee": {"id": 893}, "organization": {"id": 986}}}} +} + +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": 2, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 2}, "assignee": {"id": 504}, "organization": {"id": 620}, "project": {"owner": {"id": 766}, "assignee": {"id": 887}, "organization": {"id": 997}}}} +} + +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": 27, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 27}, "assignee": {"id": 552}, "organization": {"id": 179}, "project": {"owner": {"id": 728}, "assignee": {"id": 804}, "organization": {"id": 950}}}} +} + +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": 71, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 71}, "assignee": {"id": 542}, "organization": {"id": 616}, "project": {"owner": {"id": 738}, "assignee": {"id": 896}, "organization": {"id": 964}}}} +} + +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": 40, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 40}, "assignee": {"id": 597}, "organization": {"id": 144}, "project": {"owner": {"id": 728}, "assignee": {"id": 859}, "organization": {"id": 921}}}} +} + +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": 85, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 85}, "assignee": {"id": 528}, "organization": {"id": 699}, "project": {"owner": {"id": 745}, "assignee": {"id": 848}, "organization": {"id": 944}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 35}, "assignee": {"id": 525}, "organization": {"id": 159}, "project": {"owner": {"id": 779}, "assignee": {"id": 836}, "organization": {"id": 973}}}} +} + +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": 84, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 84}, "assignee": {"id": 569}, "organization": {"id": 623}, "project": {"owner": {"id": 735}, "assignee": {"id": 805}, "organization": {"id": 914}}}} +} + +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": 142, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 91}, "assignee": {"id": 551}, "organization": {"id": 142}, "project": {"owner": {"id": 746}, "assignee": {"id": 895}, "organization": {"id": 957}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 13}, "assignee": {"id": 551}, "organization": {"id": 690}, "project": {"owner": {"id": 707}, "assignee": {"id": 875}, "organization": {"id": 907}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 87}, "assignee": {"id": 531}, "organization": {"id": 126}, "project": {"owner": {"id": 709}, "assignee": {"id": 886}, "organization": {"id": 921}}}} +} + +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": 59, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 59}, "assignee": {"id": 583}, "organization": {"id": 617}, "project": {"owner": {"id": 722}, "assignee": {"id": 882}, "organization": {"id": 920}}}} +} + +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": 43, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 43}, "assignee": {"id": 562}, "organization": {"id": 143}, "project": {"owner": {"id": 788}, "assignee": {"id": 896}, "organization": {"id": 992}}}} +} + +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": 99, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 99}, "assignee": {"id": 552}, "organization": {"id": 634}, "project": {"owner": {"id": 777}, "assignee": {"id": 808}, "organization": {"id": 921}}}} +} + +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": 11, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 11}, "assignee": {"id": 592}, "organization": {"id": 142}, "project": {"owner": {"id": 799}, "assignee": {"id": 894}, "organization": {"id": 943}}}} +} + +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": 82, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 82}, "assignee": {"id": 555}, "organization": {"id": 655}, "project": {"owner": {"id": 729}, "assignee": {"id": 897}, "organization": {"id": 927}}}} +} + +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": 87, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 87}, "assignee": {"id": 592}, "organization": {"id": 198}, "project": {"owner": {"id": 739}, "assignee": {"id": 872}, "organization": {"id": 928}}}} +} + +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": 17, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 17}, "assignee": {"id": 582}, "organization": {"id": 653}, "project": {"owner": {"id": 764}, "assignee": {"id": 873}, "organization": {"id": 935}}}} +} + +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": 99, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 99}, "assignee": {"id": 568}, "organization": {"id": 193}, "project": {"owner": {"id": 793}, "assignee": {"id": 816}, "organization": {"id": 974}}}} +} + +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": 25, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 25}, "assignee": {"id": 589}, "organization": {"id": 692}, "project": {"owner": {"id": 769}, "assignee": {"id": 814}, "organization": {"id": 903}}}} +} + +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": 76, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 76}, "assignee": {"id": 546}, "organization": {"id": 112}, "project": {"owner": {"id": 712}, "assignee": {"id": 897}, "organization": {"id": 979}}}} +} + +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": 80, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 80}, "assignee": {"id": 577}, "organization": {"id": 687}, "project": {"owner": {"id": 729}, "assignee": {"id": 827}, "organization": {"id": 995}}}} +} + +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": 61, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 61}, "assignee": {"id": 579}, "organization": {"id": 179}, "project": {"owner": {"id": 760}, "assignee": {"id": 848}, "organization": {"id": 948}}}} +} + +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": 54, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 54}, "assignee": {"id": 541}, "organization": {"id": 651}, "project": {"owner": {"id": 702}, "assignee": {"id": 811}, "organization": {"id": 995}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 14}, "assignee": {"id": 509}, "organization": {"id": 132}, "project": {"owner": {"id": 789}, "assignee": {"id": 821}, "organization": {"id": 920}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 67}, "assignee": {"id": 563}, "organization": {"id": 608}, "project": {"owner": {"id": 779}, "assignee": {"id": 895}, "organization": {"id": 978}}}} +} + +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": 14, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 14}, "assignee": {"id": 583}, "organization": {"id": 155}, "project": {"owner": {"id": 749}, "assignee": {"id": 849}, "organization": {"id": 930}}}} +} + +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": 52, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 52}, "assignee": {"id": 516}, "organization": {"id": 606}, "project": {"owner": {"id": 729}, "assignee": {"id": 830}, "organization": {"id": 994}}}} +} + +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": 24, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 468}, "assignee": {"id": 24}, "organization": {"id": 134}, "project": {"owner": {"id": 705}, "assignee": {"id": 893}, "organization": {"id": 940}}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 445}, "assignee": {"id": 62}, "organization": {"id": 649}, "project": {"owner": {"id": 777}, "assignee": {"id": 830}, "organization": {"id": 927}}}} +} + +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": 95, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 404}, "assignee": {"id": 95}, "organization": {"id": 134}, "project": {"owner": {"id": 704}, "assignee": {"id": 858}, "organization": {"id": 947}}}} +} + +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": 58, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 439}, "assignee": {"id": 58}, "organization": {"id": 617}, "project": {"owner": {"id": 767}, "assignee": {"id": 804}, "organization": {"id": 936}}}} +} + +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": 25, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 420}, "assignee": {"id": 25}, "organization": {"id": 167}, "project": {"owner": {"id": 790}, "assignee": {"id": 847}, "organization": {"id": 931}}}} +} + +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": 32, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 433}, "assignee": {"id": 32}, "organization": {"id": 679}, "project": {"owner": {"id": 757}, "assignee": {"id": 822}, "organization": {"id": 921}}}} +} + +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": 47, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 418}, "assignee": {"id": 47}, "organization": {"id": 152}, "project": {"owner": {"id": 722}, "assignee": {"id": 800}, "organization": {"id": 976}}}} +} + +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": 16, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 487}, "assignee": {"id": 16}, "organization": {"id": 660}, "project": {"owner": {"id": 700}, "assignee": {"id": 899}, "organization": {"id": 961}}}} +} + +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": 48, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 464}, "assignee": {"id": 48}, "organization": {"id": 124}, "project": {"owner": {"id": 794}, "assignee": {"id": 863}, "organization": {"id": 936}}}} +} + +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": 59, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 456}, "assignee": {"id": 59}, "organization": {"id": 671}, "project": {"owner": {"id": 762}, "assignee": {"id": 866}, "organization": {"id": 935}}}} +} + +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": 6, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 433}, "assignee": {"id": 6}, "organization": {"id": 125}, "project": {"owner": {"id": 788}, "assignee": {"id": 863}, "organization": {"id": 920}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 491}, "assignee": {"id": 62}, "organization": {"id": 635}, "project": {"owner": {"id": 730}, "assignee": {"id": 833}, "organization": {"id": 965}}}} +} + +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": 53, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 487}, "assignee": {"id": 53}, "organization": {"id": 184}, "project": {"owner": {"id": 735}, "assignee": {"id": 809}, "organization": {"id": 912}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 454}, "assignee": {"id": 41}, "organization": {"id": 622}, "project": {"owner": {"id": 730}, "assignee": {"id": 832}, "organization": {"id": 950}}}} +} + +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": 47, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 459}, "assignee": {"id": 47}, "organization": {"id": 109}, "project": {"owner": {"id": 774}, "assignee": {"id": 875}, "organization": {"id": 977}}}} +} + +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": 41, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 472}, "assignee": {"id": 41}, "organization": {"id": 625}, "project": {"owner": {"id": 729}, "assignee": {"id": 828}, "organization": {"id": 927}}}} +} + +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": 39, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 412}, "assignee": {"id": 39}, "organization": {"id": 132}, "project": {"owner": {"id": 724}, "assignee": {"id": 896}, "organization": {"id": 974}}}} +} + +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": 69, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 415}, "assignee": {"id": 69}, "organization": {"id": 605}, "project": {"owner": {"id": 759}, "assignee": {"id": 824}, "organization": {"id": 964}}}} +} + +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": 62, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 475}, "assignee": {"id": 62}, "organization": {"id": 178}, "project": {"owner": {"id": 741}, "assignee": {"id": 853}, "organization": {"id": 969}}}} +} + +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": 90, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 464}, "assignee": {"id": 90}, "organization": {"id": 618}, "project": {"owner": {"id": 773}, "assignee": {"id": 823}, "organization": {"id": 986}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 481}, "assignee": {"id": 31}, "organization": {"id": 183}, "project": {"owner": {"id": 700}, "assignee": {"id": 853}, "organization": {"id": 993}}}} +} + +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": 32, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 443}, "assignee": {"id": 32}, "organization": {"id": 622}, "project": {"owner": {"id": 718}, "assignee": {"id": 893}, "organization": {"id": 928}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 483}, "assignee": {"id": 87}, "organization": {"id": 147}, "project": {"owner": {"id": 718}, "assignee": {"id": 853}, "organization": {"id": 929}}}} +} + +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": 78, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 474}, "assignee": {"id": 78}, "organization": {"id": 638}, "project": {"owner": {"id": 727}, "assignee": {"id": 880}, "organization": {"id": 992}}}} +} + +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": 70, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 457}, "assignee": {"id": 70}, "organization": {"id": 147}, "project": {"owner": {"id": 738}, "assignee": {"id": 805}, "organization": {"id": 937}}}} +} + +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": 26, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 481}, "assignee": {"id": 26}, "organization": {"id": 619}, "project": {"owner": {"id": 709}, "assignee": {"id": 847}, "organization": {"id": 978}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 465}, "assignee": {"id": 74}, "organization": {"id": 132}, "project": {"owner": {"id": 767}, "assignee": {"id": 819}, "organization": {"id": 974}}}} +} + +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": 89, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 432}, "assignee": {"id": 89}, "organization": {"id": 639}, "project": {"owner": {"id": 797}, "assignee": {"id": 828}, "organization": {"id": 947}}}} +} + +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": 0, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 456}, "assignee": {"id": 0}, "organization": {"id": 180}, "project": {"owner": {"id": 796}, "assignee": {"id": 872}, "organization": {"id": 912}}}} +} + +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": 16, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 494}, "assignee": {"id": 16}, "organization": {"id": 665}, "project": {"owner": {"id": 797}, "assignee": {"id": 838}, "organization": {"id": 990}}}} +} + +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": 75, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 416}, "assignee": {"id": 75}, "organization": {"id": 105}, "project": {"owner": {"id": 793}, "assignee": {"id": 850}, "organization": {"id": 963}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 457}, "assignee": {"id": 40}, "organization": {"id": 623}, "project": {"owner": {"id": 770}, "assignee": {"id": 825}, "organization": {"id": 923}}}} +} + +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": 56, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 478}, "assignee": {"id": 56}, "organization": {"id": 191}, "project": {"owner": {"id": 726}, "assignee": {"id": 872}, "organization": {"id": 960}}}} +} + +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": 65, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 410}, "assignee": {"id": 65}, "organization": {"id": 609}, "project": {"owner": {"id": 770}, "assignee": {"id": 887}, "organization": {"id": 945}}}} +} + +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": 38, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 409}, "assignee": {"id": 38}, "organization": {"id": 181}, "project": {"owner": {"id": 769}, "assignee": {"id": 890}, "organization": {"id": 994}}}} +} + +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": 92, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 408}, "assignee": {"id": 92}, "organization": {"id": 684}, "project": {"owner": {"id": 743}, "assignee": {"id": 801}, "organization": {"id": 941}}}} +} + +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": 67, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 491}, "assignee": {"id": 67}, "organization": {"id": 149}, "project": {"owner": {"id": 753}, "assignee": {"id": 887}, "organization": {"id": 971}}}} +} + +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": 83, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 486}, "assignee": {"id": 83}, "organization": {"id": 640}, "project": {"owner": {"id": 791}, "assignee": {"id": 876}, "organization": {"id": 906}}}} +} + +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": 13, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 498}, "assignee": {"id": 13}, "organization": {"id": 112}, "project": {"owner": {"id": 749}, "assignee": {"id": 877}, "organization": {"id": 969}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 485}, "assignee": {"id": 93}, "organization": {"id": 658}, "project": {"owner": {"id": 702}, "assignee": {"id": 828}, "organization": {"id": 906}}}} +} + +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": 97, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 426}, "assignee": {"id": 97}, "organization": {"id": 130}, "project": {"owner": {"id": 736}, "assignee": {"id": 856}, "organization": {"id": 954}}}} +} + +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": 73, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 493}, "assignee": {"id": 73}, "organization": {"id": 674}, "project": {"owner": {"id": 759}, "assignee": {"id": 870}, "organization": {"id": 990}}}} +} + +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": 1, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 441}, "assignee": {"id": 1}, "organization": {"id": 190}, "project": {"owner": {"id": 723}, "assignee": {"id": 862}, "organization": {"id": 900}}}} +} + +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": 36, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 410}, "assignee": {"id": 36}, "organization": {"id": 619}, "project": {"owner": {"id": 779}, "assignee": {"id": 818}, "organization": {"id": 913}}}} +} + +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": 6, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 406}, "assignee": {"id": 6}, "organization": {"id": 148}, "project": {"owner": {"id": 768}, "assignee": {"id": 808}, "organization": {"id": 948}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 460}, "assignee": {"id": 58}, "organization": {"id": 609}, "project": {"owner": {"id": 726}, "assignee": {"id": 880}, "organization": {"id": 986}}}} +} + +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": 58, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 435}, "assignee": {"id": 58}, "organization": {"id": 171}, "project": {"owner": {"id": 786}, "assignee": {"id": 829}, "organization": {"id": 940}}}} +} + +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": 78, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 498}, "assignee": {"id": 78}, "organization": {"id": 659}, "project": {"owner": {"id": 737}, "assignee": {"id": 842}, "organization": {"id": 977}}}} +} + +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": 9, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 491}, "assignee": {"id": 9}, "organization": {"id": 164}, "project": {"owner": {"id": 704}, "assignee": {"id": 835}, "organization": {"id": 992}}}} +} + +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": 43, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 420}, "assignee": {"id": 43}, "organization": {"id": 641}, "project": {"owner": {"id": 700}, "assignee": {"id": 843}, "organization": {"id": 978}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 499}, "assignee": {"id": 590}, "organization": {"id": 152}, "project": {"owner": {"id": 756}, "assignee": {"id": 875}, "organization": {"id": 957}}}} +} + +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": 17, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 483}, "assignee": {"id": 524}, "organization": {"id": 694}, "project": {"owner": {"id": 717}, "assignee": {"id": 887}, "organization": {"id": 933}}}} +} + +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": 86, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 462}, "assignee": {"id": 582}, "organization": {"id": 124}, "project": {"owner": {"id": 764}, "assignee": {"id": 884}, "organization": {"id": 945}}}} +} + +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": 62, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 473}, "assignee": {"id": 516}, "organization": {"id": 678}, "project": {"owner": {"id": 701}, "assignee": {"id": 845}, "organization": {"id": 956}}}} +} + +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": 73, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 434}, "assignee": {"id": 581}, "organization": {"id": 127}, "project": {"owner": {"id": 728}, "assignee": {"id": 827}, "organization": {"id": 924}}}} +} + +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": 99, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 456}, "assignee": {"id": 527}, "organization": {"id": 640}, "project": {"owner": {"id": 732}, "assignee": {"id": 857}, "organization": {"id": 954}}}} +} + +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": 35, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 406}, "assignee": {"id": 550}, "organization": {"id": 146}, "project": {"owner": {"id": 780}, "assignee": {"id": 898}, "organization": {"id": 973}}}} +} + +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": 45, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 445}, "assignee": {"id": 591}, "organization": {"id": 624}, "project": {"owner": {"id": 759}, "assignee": {"id": 811}, "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": 9, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 443}, "assignee": {"id": 507}, "organization": {"id": 122}, "project": {"owner": {"id": 721}, "assignee": {"id": 886}, "organization": {"id": 980}}}} +} + +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": 71, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 473}, "assignee": {"id": 504}, "organization": {"id": 692}, "project": {"owner": {"id": 734}, "assignee": {"id": 805}, "organization": {"id": 913}}}} +} + +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": 83, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 461}, "assignee": {"id": 579}, "organization": {"id": 165}, "project": {"owner": {"id": 716}, "assignee": {"id": 838}, "organization": {"id": 970}}}} +} + +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": 8, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 419}, "assignee": {"id": 548}, "organization": {"id": 642}, "project": {"owner": {"id": 722}, "assignee": {"id": 874}, "organization": {"id": 966}}}} +} + +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": 56, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 497}, "assignee": {"id": 567}, "organization": {"id": 191}, "project": {"owner": {"id": 786}, "assignee": {"id": 846}, "organization": {"id": 973}}}} +} + +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": 92, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 437}, "assignee": {"id": 513}, "organization": {"id": 634}, "project": {"owner": {"id": 701}, "assignee": {"id": 878}, "organization": {"id": 995}}}} +} + +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": 9, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 453}, "assignee": {"id": 500}, "organization": {"id": 130}, "project": {"owner": {"id": 775}, "assignee": {"id": 820}, "organization": {"id": 914}}}} +} + +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": 60, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 436}, "assignee": {"id": 584}, "organization": {"id": 620}, "project": {"owner": {"id": 794}, "assignee": {"id": 893}, "organization": {"id": 984}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 405}, "assignee": {"id": 502}, "organization": {"id": 129}, "project": {"owner": {"id": 714}, "assignee": {"id": 807}, "organization": {"id": 924}}}} +} + +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": 82, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 431}, "assignee": {"id": 516}, "organization": {"id": 612}, "project": {"owner": {"id": 771}, "assignee": {"id": 844}, "organization": {"id": 963}}}} +} + +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": 57, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 499}, "assignee": {"id": 522}, "organization": {"id": 134}, "project": {"owner": {"id": 761}, "assignee": {"id": 838}, "organization": {"id": 946}}}} +} + +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": 14, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 416}, "assignee": {"id": 583}, "organization": {"id": 655}, "project": {"owner": {"id": 731}, "assignee": {"id": 803}, "organization": {"id": 921}}}} +} + +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": 31, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 420}, "assignee": {"id": 597}, "organization": {"id": 120}, "project": {"owner": {"id": 799}, "assignee": {"id": 838}, "organization": {"id": 982}}}} +} + +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": 72, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 455}, "assignee": {"id": 571}, "organization": {"id": 600}, "project": {"owner": {"id": 748}, "assignee": {"id": 805}, "organization": {"id": 937}}}} +} + +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": 56, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 441}, "assignee": {"id": 594}, "organization": {"id": 195}, "project": {"owner": {"id": 797}, "assignee": {"id": 876}, "organization": {"id": 979}}}} +} + +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": 35, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 455}, "assignee": {"id": 553}, "organization": {"id": 622}, "project": {"owner": {"id": 790}, "assignee": {"id": 839}, "organization": {"id": 955}}}} +} + +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": 74, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 492}, "assignee": {"id": 522}, "organization": {"id": 109}, "project": {"owner": {"id": 714}, "assignee": {"id": 892}, "organization": {"id": 977}}}} +} + +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": 45, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 450}, "assignee": {"id": 587}, "organization": {"id": 656}, "project": {"owner": {"id": 716}, "assignee": {"id": 818}, "organization": {"id": 937}}}} +} + +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": 67, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 438}, "assignee": {"id": 527}, "organization": {"id": 130}, "project": {"owner": {"id": 748}, "assignee": {"id": 870}, "organization": {"id": 998}}}} +} + +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": 9, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 408}, "assignee": {"id": 583}, "organization": {"id": 634}, "project": {"owner": {"id": 784}, "assignee": {"id": 842}, "organization": {"id": 905}}}} +} + +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": 28, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 446}, "assignee": {"id": 550}, "organization": {"id": 164}, "project": {"owner": {"id": 798}, "assignee": {"id": 818}, "organization": {"id": 921}}}} +} + +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": 87, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 492}, "assignee": {"id": 538}, "organization": {"id": 606}, "project": {"owner": {"id": 714}, "assignee": {"id": 816}, "organization": {"id": 923}}}} +} + +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": 52, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 463}, "assignee": {"id": 551}, "organization": {"id": 100}, "project": {"owner": {"id": 761}, "assignee": {"id": 849}, "organization": {"id": 980}}}} +} + +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": 16, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 493}, "assignee": {"id": 542}, "organization": {"id": 668}, "project": {"owner": {"id": 751}, "assignee": {"id": 893}, "organization": {"id": 960}}}} +} + +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": 31, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 405}, "assignee": {"id": 528}, "organization": {"id": 195}, "project": {"owner": {"id": 715}, "assignee": {"id": 891}, "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": 56, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 457}, "assignee": {"id": 546}, "organization": {"id": 690}, "project": {"owner": {"id": 718}, "assignee": {"id": 817}, "organization": {"id": 969}}}} +} + +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": 34, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 473}, "assignee": {"id": 565}, "organization": {"id": 166}, "project": {"owner": {"id": 795}, "assignee": {"id": 879}, "organization": {"id": 916}}}} +} + +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": 40, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 435}, "assignee": {"id": 515}, "organization": {"id": 652}, "project": {"owner": {"id": 738}, "assignee": {"id": 820}, "organization": {"id": 996}}}} +} + +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": 93, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 441}, "assignee": {"id": 541}, "organization": {"id": 173}, "project": {"owner": {"id": 742}, "assignee": {"id": 854}, "organization": {"id": 946}}}} +} + +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": 22, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 427}, "assignee": {"id": 568}, "organization": {"id": 622}, "project": {"owner": {"id": 729}, "assignee": {"id": 844}, "organization": {"id": 963}}}} +} + +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": 69, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 427}, "assignee": {"id": 571}, "organization": {"id": 127}, "project": {"owner": {"id": 743}, "assignee": {"id": 829}, "organization": {"id": 968}}}} +} + +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": 98, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 454}, "assignee": {"id": 575}, "organization": {"id": 665}, "project": {"owner": {"id": 739}, "assignee": {"id": 875}, "organization": {"id": 979}}}} +} + +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": 0, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 465}, "assignee": {"id": 546}, "organization": {"id": 192}, "project": {"owner": {"id": 759}, "assignee": {"id": 864}, "organization": {"id": 966}}}} +} + +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": 67, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 445}, "assignee": {"id": 508}, "organization": {"id": 611}, "project": {"owner": {"id": 750}, "assignee": {"id": 883}, "organization": {"id": 979}}}} +} + +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": 69, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 495}, "assignee": {"id": 537}, "organization": {"id": 118}, "project": {"owner": {"id": 761}, "assignee": {"id": 825}, "organization": {"id": 952}}}} +} + +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": 83, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 478}, "assignee": {"id": 575}, "organization": {"id": 603}, "project": {"owner": {"id": 759}, "assignee": {"id": 855}, "organization": {"id": 958}}}} +} + +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": 42, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 414}, "assignee": {"id": 531}, "organization": {"id": 129}, "project": {"owner": {"id": 773}, "assignee": {"id": 888}, "organization": {"id": 999}}}} +} + +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": 89, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 404}, "assignee": {"id": 566}, "organization": {"id": 652}, "project": {"owner": {"id": 742}, "assignee": {"id": 882}, "organization": {"id": 969}}}} +} + +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": 10, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 495}, "assignee": {"id": 536}, "organization": {"id": 132}, "project": {"owner": {"id": 725}, "assignee": {"id": 862}, "organization": {"id": 912}}}} +} + +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": 86, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 476}, "assignee": {"id": 503}, "organization": {"id": 658}, "project": {"owner": {"id": 743}, "assignee": {"id": 856}, "organization": {"id": 967}}}} +} + +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": 17, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 404}, "assignee": {"id": 563}, "organization": {"id": 167}, "project": {"owner": {"id": 739}, "assignee": {"id": 833}, "organization": {"id": 964}}}} +} + +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": 26, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 434}, "assignee": {"id": 529}, "organization": {"id": 635}, "project": {"owner": {"id": 746}, "assignee": {"id": 840}, "organization": {"id": 928}}}} +} + + + +# tasks_test.gen.rego.py +# # Copyright (C) 2021 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# import csv +# import json +# import random +# import sys +# import os +# from itertools import product +# +# +# 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 +# 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 \ No newline at end of file diff --git a/cvat/apps/iam/rules/users.csv b/cvat/apps/iam/rules/users.csv new file mode 100644 index 00000000..45776987 --- /dev/null +++ b/cvat/apps/iam/rules/users.csv @@ -0,0 +1,9 @@ +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/users.rego b/cvat/apps/iam/rules/users.rego new file mode 100644 index 00000000..555c6e4b --- /dev/null +++ b/cvat/apps/iam/rules/users.rego @@ -0,0 +1,63 @@ +package users +import data.utils +import data.organizations + +# input: { +# "scope": <"list"|"view"|"delete"|"update"> or null, +# "auth": { +# "user": { +# "id": , +# "privilege": <"admin"|"business"|"user"|"worker"> or null +# }, +# "organization": { +# "id": , +# "owner": { +# "id": +# }, +# "user": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# }, +# "resource": { +# "id": , +# "membership": { +# "role": <"owner"|"maintainer"|"supervisor"|"worker"> or null +# } +# } or null, +# } + +default allow = false +allow { + utils.is_admin +} + +allow { + input.scope == utils.LIST +} + +filter = [] { # Django Q object to filter list of entries + utils.is_admin + utils.is_sandbox +} else = qobject { + utils.is_sandbox + qobject := [ {"id": input.auth.user.id} ] +} else = qobject { + org_id := input.auth.organization.id + qobject := [ {"memberships__organization": org_id} ] +} + +allow { + input.scope == utils.VIEW + input.resource.id == input.auth.user.id +} + +allow { + input.scope == utils.VIEW + input.resource.membership.role != null +} + +allow { + { utils.UPDATE, utils.DELETE }[input.scope] + input.auth.user.id == input.resource.id +} diff --git a/cvat/apps/iam/rules/users_test.gen.rego b/cvat/apps/iam/rules/users_test.gen.rego new file mode 100644 index 00000000..5ea8ed6f --- /dev/null +++ b/cvat/apps/iam/rules/users_test.gen.rego @@ -0,0 +1,2697 @@ +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 Intel Corporation +# # +# # SPDX-License-Identifier: MIT +# +# # Copyright (C) 2021 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/utils.rego b/cvat/apps/iam/rules/utils.rego new file mode 100644 index 00000000..0e3d05c5 --- /dev/null +++ b/cvat/apps/iam/rules/utils.rego @@ -0,0 +1,98 @@ +package utils + +# Groups +ADMIN := "admin" +BUSINESS := "business" +USER := "user" +WORKER := "worker" + +# Visibility of objects +PUBLIC := "public" +PRIVATE := "private" +INTERNAL := "internal" + +# Context +SANDBOX := "sandbox" +ORGANIZATION := "organization" + +# Scopes +CREATE := "create" +LIST := "list" +VIEW := "view" +UPDATE := "update" +ACCEPT := "accept" +DELETE := "delete" +LIST_CONTENT := "list:content" +CALL_ONLINE := "call:online" +CALL_OFFLINE := "call:offline" +SEND_EXCEPTION := "send:exception" +SEND_LOGS := "send:logs" +CHANGE_ROLE := "change:role" +RESEND := "resend" +UPDATE_DESC := "update:desc" +UPDATE_ASSIGNEE := "update:assignee" +UPDATE_OWNER := "update:owner" +EXPORT_ANNOTATIONS := "export:annotations" +EXPORT_DATASET := "export:dataset" +CREATE_IN_PROJECT := "create@project" +UPDATE_PROJECT := "update:project" +VIEW_ANNOTATIONS := "view:annotations" +UPDATE_ANNOTATIONS := "update:annotations" +DELETE_ANNOTATIONS := "delete:annotations" +VIEW_DATA := "view:data" +UPLOAD_DATA := "upload:data" +IMPORT_ANNOTATIONS := "import:annotations" +UPDATE_STATE := "update:state" +UPDATE_STAGE := "update:stage" +CREATE_IN_JOB := "create@job" +CREATE_IN_ISSUE := "create@issue" +IMPORT_DATASET := "import:dataset" +IMPORT_BACKUP := "import:backup" +EXPORT_BACKUP := "export:backup" + + +get_priority(privilege) = priority { + priority := { + ADMIN: 0, + BUSINESS: 50, + USER: 75, + WORKER: 100, + null: 1000 + }[privilege] +} + +has_perm(group) { + get_priority(input.auth.user.privilege) <= get_priority(group) +} + +is_admin { + input.auth.user.privilege == ADMIN +} + +is_business { + input.auth.user.privilege == BUSINESS +} + +is_user { + input.auth.user.privilege == USER +} + +is_worker { + input.auth.user.privilege == WORKER +} + +is_resource_owner { + input.resource.owner.id == input.auth.user.id +} + +is_resource_assignee { + input.resource.assignee.id == input.auth.user.id +} + +is_sandbox { + input.auth.organization == null +} + +is_organization { + input.auth.organization != null +} diff --git a/cvat/apps/authentication/serializers.py b/cvat/apps/iam/serializers.py similarity index 92% rename from cvat/apps/authentication/serializers.py rename to cvat/apps/iam/serializers.py index e04ca18b..44a68870 100644 --- a/cvat/apps/authentication/serializers.py +++ b/cvat/apps/iam/serializers.py @@ -4,7 +4,6 @@ from rest_framework import serializers from django.conf import settings - class RegisterSerializerEx(RegisterSerializer): first_name = serializers.CharField(required=False) last_name = serializers.CharField(required=False) @@ -26,6 +25,6 @@ class PasswordResetSerializerEx(PasswordResetSerializer): if hasattr(settings, 'UI_PORT') and settings.UI_PORT: domain += ':{}'.format(settings.UI_PORT) return { - 'email_template_name': 'authentication/password_reset_email.html', + 'email_template_name': 'auth/password_reset_email.html', 'domain_override': domain } diff --git a/cvat/apps/iam/signals.py b/cvat/apps/iam/signals.py new file mode 100644 index 00000000..5f7819d9 --- /dev/null +++ b/cvat/apps/iam/signals.py @@ -0,0 +1,64 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from django.conf import settings +from django.contrib.auth.models import User, Group +from django.db.models.signals import post_save, post_migrate + + +def register_groups(sender, **kwargs): + # Create all groups which corresponds system roles + for role in settings.IAM_ROLES: + Group.objects.get_or_create(name=role) + +if settings.IAM_TYPE == 'BASIC': + def create_user(sender, instance, created, **kwargs): + from allauth.account import app_settings as allauth_settings + from allauth.account.models import EmailAddress + + if instance.is_superuser and instance.is_staff: + db_group = Group.objects.get(name=settings.IAM_ADMIN_ROLE) + instance.groups.add(db_group) + + # create and verify EmailAddress for superuser accounts + if allauth_settings.EMAIL_REQUIRED: + EmailAddress.objects.get_or_create(user=instance, + email=instance.email, primary=True, verified=True) + else: # don't need to add default groups for superuser + if created: + for role in settings.IAM_DEFAULT_ROLES: + db_group = Group.objects.get(name=role) + instance.groups.add(db_group) + +elif settings.IAM_TYPE == 'LDAP': + def create_user(sender, user=None, ldap_user=None, **kwargs): + user_groups = [] + for role in settings.IAM_ROLES: + db_group = Group.objects.get(name=role) + + for ldap_group in settings.DJANGO_AUTH_LDAP_GROUPS[role]: + if ldap_group.lower() in ldap_user.group_dns: + user_groups.append(db_group) + if role == settings.IAM_ADMIN_ROLE: + user.is_staff = user.is_superuser = True + break + + # It is important to save the user before adding groups. Please read + # https://django-auth-ldap.readthedocs.io/en/latest/users.html#populating-users + # The user instance will be saved automatically after the signal handler + # is run. + user.save() + user.groups.set(user_groups) + + +def register_signals(app_config): + post_migrate.connect(register_groups, app_config) + if settings.IAM_TYPE == 'BASIC': + # Add default groups and add admin rights to super users. + post_save.connect(create_user, sender=User) + elif settings.IAM_TYPE == 'LDAP': + import django_auth_ldap.backend + # Map groups from LDAP to roles, convert a user to super user if he/she + # has an admin group. + django_auth_ldap.backend.populate_user.connect(create_user) diff --git a/cvat/apps/authentication/templates/account/email/email_confirmation_signup_message.html b/cvat/apps/iam/templates/account/email/email_confirmation_signup_message.html similarity index 100% rename from cvat/apps/authentication/templates/account/email/email_confirmation_signup_message.html rename to cvat/apps/iam/templates/account/email/email_confirmation_signup_message.html diff --git a/cvat/apps/authentication/templates/authentication/password_reset_email.html b/cvat/apps/iam/templates/authentication/password_reset_email.html similarity index 100% rename from cvat/apps/authentication/templates/authentication/password_reset_email.html rename to cvat/apps/iam/templates/authentication/password_reset_email.html diff --git a/cvat/apps/authentication/urls.py b/cvat/apps/iam/urls.py similarity index 82% rename from cvat/apps/authentication/urls.py rename to cvat/apps/iam/urls.py index d18ad09a..76b0d319 100644 --- a/cvat/apps/authentication/urls.py +++ b/cvat/apps/iam/urls.py @@ -1,16 +1,17 @@ -# Copyright (C) 2018 Intel Corporation +# Copyright (C) 2021 Intel Corporation # # SPDX-License-Identifier: MIT from django.urls import path, re_path from django.conf import settings +from django.urls.conf import include from rest_auth.views import ( LoginView, LogoutView, PasswordChangeView, PasswordResetView, PasswordResetConfirmView) from allauth.account.views import ConfirmEmailView, EmailVerificationSentView from allauth.account import app_settings as allauth_settings -from cvat.apps.authentication.views import SigningView, RegisterView +from cvat.apps.iam.views import SigningView, RegisterViewEx urlpatterns = [ path('login', LoginView.as_view(), name='rest_login'), @@ -18,9 +19,9 @@ urlpatterns = [ path('signing', SigningView.as_view(), name='signing') ] -if settings.DJANGO_AUTH_TYPE == 'BASIC': +if settings.IAM_TYPE == 'BASIC': urlpatterns += [ - path('register', RegisterView.as_view(), name='rest_register'), + path('register', RegisterViewEx.as_view(), name='rest_register'), path('password/reset', PasswordResetView.as_view(), name='rest_password_reset'), path('password/reset/confirm', PasswordResetConfirmView.as_view(), @@ -36,3 +37,5 @@ if settings.DJANGO_AUTH_TYPE == 'BASIC': path('register/account-email-verification-sent', EmailVerificationSentView.as_view(), name='account_email_verification_sent'), ] + +urlpatterns = [path('auth/', include(urlpatterns))] \ No newline at end of file diff --git a/cvat/apps/iam/views.py b/cvat/apps/iam/views.py new file mode 100644 index 00000000..df986457 --- /dev/null +++ b/cvat/apps/iam/views.py @@ -0,0 +1,114 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from django.core.exceptions import BadRequest +from django.utils.functional import SimpleLazyObject +from rest_framework import views +from rest_framework.exceptions import ValidationError +from django.conf import settings +from rest_framework.response import Response +from rest_auth.registration.views import RegisterView +from allauth.account import app_settings as allauth_settings +from furl import furl + +from django.utils.decorators import method_decorator +from drf_yasg.utils import swagger_auto_schema +from drf_yasg import openapi + +from .authentication import Signer + +def get_context(request): + from cvat.apps.organizations.models import Organization, Membership + + IAM_ROLES = {role:priority for priority, role in enumerate(settings.IAM_ROLES)} + groups = list(request.user.groups.filter(name__in=list(IAM_ROLES.keys()))) + groups.sort(key=lambda group: IAM_ROLES[group.name]) + + organization = None + membership = None + try: + org_slug = request.GET.get('org') + org_id = request.GET.get('org_id') + org_header = request.headers.get('X-Organization') + + if org_id and (org_slug or org_header): + raise BadRequest('You cannot specify "org_id" query parameter with ' + + '"org" query parameter or "X-Organization" HTTP header at the same time.') + if org_slug and org_header and org_slug != org_header: + raise BadRequest('You cannot specify "org" query parameter and ' + + '"X-Organization" HTTP header with different values.') + org_slug = org_slug or org_header + + if org_slug: + organization = Organization.objects.get(slug=org_slug) + membership = Membership.objects.filter(organization=organization, + user=request.user).first() + elif org_id: + organization = Organization.objects.get(id=int(org_id)) + membership = Membership.objects.filter(organization=organization, + user=request.user).first() + except Organization.DoesNotExist: + raise BadRequest(f'{org_slug or org_id} organization does not exist.') + + if membership and not membership.is_active: + membership = None + + context = { + "privilege": groups[0] if groups else None, + "membership": membership, + "organization": organization, + } + + return context +class ContextMiddleware: + def __init__(self, get_response): + self.get_response = get_response + + def __call__(self, request): + + # https://stackoverflow.com/questions/26240832/django-and-middleware-which-uses-request-user-is-always-anonymous + request.iam_context = SimpleLazyObject(lambda: get_context(request)) + + return self.get_response(request) + + +@method_decorator(name='post', decorator=swagger_auto_schema( + request_body=openapi.Schema( + type=openapi.TYPE_OBJECT, + required=[ + 'url' + ], + properties={ + 'url': openapi.Schema(type=openapi.TYPE_STRING) + } + ), + responses={'200': openapi.Response(description='text URL')} +)) +class SigningView(views.APIView): + """ + This method signs URL for access to the server. + + Signed URL contains a token which authenticates a user on the server. + Signed URL is valid during 30 seconds since signing. + """ + def post(self, request): + url = request.data.get('url') + if not url: + raise ValidationError('Please provide `url` parameter') + + signer = Signer() + url = self.request.build_absolute_uri(url) + sign = signer.sign(self.request.user, url) + + url = furl(url).add({Signer.QUERY_PARAM: sign}).url + return Response(url) + + +class RegisterViewEx(RegisterView): + def get_response_data(self, user): + data = self.get_serializer(user).data + data['email_verification_required'] = allauth_settings.EMAIL_VERIFICATION == \ + allauth_settings.EmailVerificationMethod.MANDATORY + + return data diff --git a/cvat/apps/lambda_manager/apps.py b/cvat/apps/lambda_manager/apps.py index eda3a971..2ab9de35 100644 --- a/cvat/apps/lambda_manager/apps.py +++ b/cvat/apps/lambda_manager/apps.py @@ -2,4 +2,4 @@ from django.apps import AppConfig class LambdaManagerConfig(AppConfig): - name = 'lambda_manager' + name = 'cvat.apps.lambda_manager' diff --git a/cvat/apps/lambda_manager/tests/assets/tasks.json b/cvat/apps/lambda_manager/tests/assets/tasks.json index 7e2976e1..019716f3 100644 --- a/cvat/apps/lambda_manager/tests/assets/tasks.json +++ b/cvat/apps/lambda_manager/tests/assets/tasks.json @@ -3,7 +3,6 @@ "name": "main task", "overlap": 0, "segment_size": 100, - "owner_id": 1, "labels": [ { "name": "car", @@ -32,7 +31,6 @@ "name": "assignee to user task", "overlap": 0, "segment_size": 100, - "owner_id": 1, "assignee_id": 2, "labels": [ { diff --git a/cvat/apps/lambda_manager/tests/test_lambda.py b/cvat/apps/lambda_manager/tests/test_lambda.py index bbb70178..e7a086be 100644 --- a/cvat/apps/lambda_manager/tests/test_lambda.py +++ b/cvat/apps/lambda_manager/tests/test_lambda.py @@ -140,7 +140,7 @@ class LambdaTestCase(APITestCase): @classmethod def _create_db_users(cls): (group_admin, _) = Group.objects.get_or_create(name="admin") - (group_user, _) = Group.objects.get_or_create(name="user") + (group_user, _) = Group.objects.get_or_create(name="business") user_admin = User.objects.create_superuser(username="admin", email="", password="admin") @@ -382,9 +382,9 @@ class LambdaTestCase(APITestCase): response = self._post_request(f'{LAMBDA_REQUESTS_PATH}', self.admin, data) id_request = response.data["id"] response = self._delete_request(f'{LAMBDA_REQUESTS_PATH}/{id_request}', self.user) - self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) response = self._get_request(f'{LAMBDA_REQUESTS_PATH}/{id_request}', self.user) - self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + self.assertEqual(response.status_code, status.HTTP_200_OK) @skip("Fail: add mock") diff --git a/cvat/apps/lambda_manager/views.py b/cvat/apps/lambda_manager/views.py index 071aa4ab..a0f40842 100644 --- a/cvat/apps/lambda_manager/views.py +++ b/cvat/apps/lambda_manager/views.py @@ -11,12 +11,10 @@ from django.core.exceptions import ObjectDoesNotExist, ValidationError from rest_framework import status, viewsets from rest_framework.response import Response -from cvat.apps.authentication import auth import cvat.apps.dataset_manager as dm from cvat.apps.engine.frame_provider import FrameProvider from cvat.apps.engine.models import Task as TaskModel from cvat.apps.engine.serializers import LabeledDataSerializer -from rest_framework.permissions import IsAuthenticated from cvat.apps.engine.models import ShapeType, SourceType class LambdaType(Enum): @@ -545,6 +543,9 @@ def return_response(success_code=status.HTTP_200_OK): except ValidationError as err: status_code = err.code data = err.message + except ObjectDoesNotExist as err: + status_code = status.HTTP_400_BAD_REQUEST + data = str(err) return Response(data=data, status=status_code) @@ -555,15 +556,6 @@ class FunctionViewSet(viewsets.ViewSet): lookup_value_regex = '[a-zA-Z0-9_.-]+' lookup_field = 'func_id' - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] - - if http_method in ["POST"]: - permissions.append(auth.TaskAccessPermission) - - return [perm() for perm in permissions] - @return_response() def list(self, request): gateway = LambdaGateway() @@ -571,17 +563,16 @@ class FunctionViewSet(viewsets.ViewSet): @return_response() def retrieve(self, request, func_id): + self.check_object_permissions(request, func_id) gateway = LambdaGateway() return gateway.get(func_id).to_dict() @return_response() def call(self, request, func_id): + self.check_object_permissions(request, func_id) try: task_id = request.data['task'] db_task = TaskModel.objects.get(pk=task_id) - # Check that the user has enough permissions to read - # data from the task. - self.check_object_permissions(self.request, db_task) except (KeyError, ObjectDoesNotExist) as err: raise ValidationError( '`{}` lambda function was run '.format(func_id) + @@ -594,15 +585,6 @@ class FunctionViewSet(viewsets.ViewSet): return lambda_func.invoke(db_task, request.data) class RequestViewSet(viewsets.ViewSet): - def get_permissions(self): - http_method = self.request.method - permissions = [IsAuthenticated] - - if http_method in ["POST", "DELETE"]: - permissions.append(auth.TaskChangePermission) - - return [perm() for perm in permissions] - @return_response() def list(self, request): queue = LambdaQueue() @@ -618,12 +600,7 @@ class RequestViewSet(viewsets.ViewSet): cleanup = request.data.get('cleanup', False) mapping = request.data.get('mapping') max_distance = request.data.get('max_distance') - - db_task = TaskModel.objects.get(pk=task) - # Check that the user has enough permissions to modify - # the task. - self.check_object_permissions(self.request, db_task) - except (KeyError, ObjectDoesNotExist) as err: + except KeyError as err: raise ValidationError( '`{}` lambda function was run '.format(request.data.get('function', 'undefined')) + 'with wrong arguments ({})'.format(str(err)), @@ -639,6 +616,7 @@ class RequestViewSet(viewsets.ViewSet): @return_response() def retrieve(self, request, pk): + self.check_object_permissions(request, pk) queue = LambdaQueue() job = queue.fetch_job(pk) @@ -646,6 +624,7 @@ class RequestViewSet(viewsets.ViewSet): @return_response(status.HTTP_204_NO_CONTENT) def delete(self, request, pk): + self.check_object_permissions(request, pk) queue = LambdaQueue() job = queue.fetch_job(pk) job.delete() diff --git a/cvat/apps/log_viewer/views.py b/cvat/apps/log_viewer/views.py index 6718a18a..ab81a734 100644 --- a/cvat/apps/log_viewer/views.py +++ b/cvat/apps/log_viewer/views.py @@ -9,7 +9,7 @@ from django.utils.decorators import method_decorator from django.conf import settings from rules.contrib.views import PermissionRequiredMixin -from cvat.apps.authentication.decorators import login_required +from cvat.apps.iam import login_required @method_decorator(login_required, name='dispatch') class LogViewerProxy(PermissionRequiredMixin, ProxyView): diff --git a/cvat/apps/opencv/apps.py b/cvat/apps/opencv/apps.py index ad9dd715..88a8667a 100644 --- a/cvat/apps/opencv/apps.py +++ b/cvat/apps/opencv/apps.py @@ -4,5 +4,5 @@ from django.apps import AppConfig -class OpencvConfig(AppConfig): - name = 'opencv' +class OpenCVConfig(AppConfig): + name = 'cvat.apps.opencv' diff --git a/cvat/apps/organizations/__init__.py b/cvat/apps/organizations/__init__.py new file mode 100644 index 00000000..813d16ca --- /dev/null +++ b/cvat/apps/organizations/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + diff --git a/cvat/apps/organizations/apps.py b/cvat/apps/organizations/apps.py new file mode 100644 index 00000000..3015b60d --- /dev/null +++ b/cvat/apps/organizations/apps.py @@ -0,0 +1,4 @@ +from django.apps import AppConfig + +class OrganizationsConfig(AppConfig): + name = 'cvat.apps.organizations' diff --git a/cvat/apps/organizations/migrations/0001_initial.py b/cvat/apps/organizations/migrations/0001_initial.py new file mode 100644 index 00000000..1d2689d3 --- /dev/null +++ b/cvat/apps/organizations/migrations/0001_initial.py @@ -0,0 +1,60 @@ +# Generated by Django 3.2.8 on 2021-10-26 14:52 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Organization', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('slug', models.SlugField(max_length=16, unique=True)), + ('name', models.CharField(blank=True, max_length=64)), + ('description', models.TextField(blank=True)), + ('created_date', models.DateTimeField(auto_now_add=True)), + ('updated_date', models.DateTimeField(auto_now=True)), + ('contact', models.JSONField(blank=True, default=dict)), + ('owner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'default_permissions': (), + }, + ), + migrations.CreateModel( + name='Membership', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('is_active', models.BooleanField(default=False)), + ('joined_date', models.DateTimeField(null=True)), + ('role', models.CharField(choices=[('worker', 'Worker'), ('supervisor', 'Supervisor'), ('maintainer', 'Maintainer'), ('owner', 'Owner')], max_length=16)), + ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='members', to='organizations.organization')), + ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='memberships', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'default_permissions': (), + 'unique_together': {('user', 'organization')}, + }, + ), + migrations.CreateModel( + name='Invitation', + fields=[ + ('key', models.CharField(max_length=64, primary_key=True, serialize=False)), + ('created_date', models.DateTimeField(auto_now_add=True)), + ('membership', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='organizations.membership')), + ('owner', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), + ], + options={ + 'default_permissions': (), + }, + ), + ] diff --git a/cvat/apps/organizations/migrations/__init__.py b/cvat/apps/organizations/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/cvat/apps/organizations/models.py b/cvat/apps/organizations/models.py new file mode 100644 index 00000000..dc3421fa --- /dev/null +++ b/cvat/apps/organizations/models.py @@ -0,0 +1,70 @@ +from distutils.util import strtobool +from django.conf import settings +from django.db import models +from django.contrib.auth import get_user_model +from django.utils import timezone + +class Organization(models.Model): + slug = models.SlugField(max_length=16, blank=False, unique=True) + name = models.CharField(max_length=64, blank=True) + description = models.TextField(blank=True) + created_date = models.DateTimeField(auto_now_add=True) + updated_date = models.DateTimeField(auto_now=True) + contact = models.JSONField(blank=True, default=dict) + + owner = models.ForeignKey(get_user_model(), null=True, + blank=True, on_delete=models.SET_NULL, related_name='+') + + def __str__(self): + return self.slug + class Meta: + default_permissions = () + +class Membership(models.Model): + WORKER = 'worker' + SUPERVISOR = 'supervisor' + MAINTAINER = 'maintainer' + OWNER = 'owner' + + user = models.ForeignKey(get_user_model(), on_delete=models.CASCADE, + null=True, related_name='memberships') + organization = models.ForeignKey(Organization, on_delete=models.CASCADE, + related_name='members') + is_active = models.BooleanField(default=False) + joined_date = models.DateTimeField(null=True) + role = models.CharField(max_length=16, choices=[ + (WORKER, 'Worker'), + (SUPERVISOR, 'Supervisor'), + (MAINTAINER, 'Maintainer'), + (OWNER, 'Owner'), + ]) + + class Meta: + default_permissions = () + unique_together = ('user', 'organization') + + +# Inspried by https://github.com/bee-keeper/django-invitations +class Invitation(models.Model): + key = models.CharField(max_length=64, primary_key=True) + created_date = models.DateTimeField(auto_now_add=True) + owner = models.ForeignKey(get_user_model(), null=True, on_delete=models.SET_NULL) + membership = models.OneToOneField(Membership, on_delete=models.CASCADE) + + def send(self): + if not strtobool(settings.ORG_INVITATION_CONFIRM): + self.accept(self.created_date) + + # TODO: use email backend to send invitations as well + + def accept(self, date=None): + if not self.membership.is_active: + self.membership.is_active = True + if date is None: + self.membership.joined_date = timezone.now() + else: + self.membership.joined_date = date + self.membership.save() + + class Meta: + default_permissions = () diff --git a/cvat/apps/organizations/serializers.py b/cvat/apps/organizations/serializers.py new file mode 100644 index 00000000..2b3b89b0 --- /dev/null +++ b/cvat/apps/organizations/serializers.py @@ -0,0 +1,122 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from django.contrib.auth import get_user_model +from django.core.exceptions import ObjectDoesNotExist +from rest_framework import serializers +from .models import Invitation, Membership, Organization +from cvat.apps.engine.serializers import BasicUserSerializer + +class OrganizationReadSerializer(serializers.ModelSerializer): + owner = BasicUserSerializer() + class Meta: + model = Organization + fields = ['id', 'slug', 'name', 'description', 'created_date', + 'updated_date', 'contact', 'owner'] + read_only_fields = fields + +class OrganizationWriteSerializer(serializers.ModelSerializer): + def to_representation(self, instance): + serializer = OrganizationReadSerializer(instance, context=self.context) + return serializer.data + + class Meta: + model = Organization + fields = ['id', 'slug', 'name', 'description', 'created_date', + 'updated_date', 'contact', 'owner'] + + # TODO: at the moment isn't possible to change the owner. It should + # be a separate feature. Need to change it together with corresponding + # Membership. Also such operation should be well protected. + read_only_fields = ['created_date', 'updated_date', 'owner'] + + def create(self, validated_data): + organization = super().create(validated_data) + Membership.objects.create( + user=organization.owner, + organization=organization, + is_active=True, + joined_date=organization.created_date, + role=Membership.OWNER) + + return organization + +class InvitationReadSerializer(serializers.ModelSerializer): + role = serializers.ChoiceField(Membership.role.field.choices, + source='membership.role') + user = BasicUserSerializer(source='membership.user') + organization = serializers.PrimaryKeyRelatedField( + queryset=Organization.objects.all(), + source='membership.organization') + owner = BasicUserSerializer() + + class Meta: + model = Invitation + fields = ['key', 'created_date', 'owner', 'role', 'user', 'organization'] + read_only_fields = fields + + +class InvitationWriteSerializer(serializers.ModelSerializer): + role = serializers.ChoiceField(Membership.role.field.choices, + source='membership.role') + email = serializers.EmailField(source='membership.user.email') + organization = serializers.PrimaryKeyRelatedField( + source='membership.organization', read_only=True) + + def to_representation(self, instance): + serializer = InvitationReadSerializer(instance, context=self.context) + return serializer.data + + class Meta: + model = Invitation + fields = ['key', 'created_date', 'owner', 'role', 'organization', 'email'] + read_only_fields = ['key', 'created_date', 'owner', 'organization'] + + def create(self, validated_data): + membership_data = validated_data.pop('membership') + organization = validated_data.pop('organization') + try: + user = get_user_model().objects.get(**membership_data['user']) + del membership_data['user'] + except ObjectDoesNotExist: + raise serializers.ValidationError(f'You cannot invite an user ' + f'with {membership_data["user"]["email"]} email. It is not ' + f'a valid email in the system.') + + membership, created = Membership.objects.get_or_create(**membership_data, + user=user, organization=organization) + if not created: + raise serializers.ValidationError('The user is a member of ' + 'the organization already.') + invitation = Invitation.objects.create(**validated_data, + membership=membership) + + return invitation + + def update(self, instance, validated_data): + return super().update(instance, {}) + + def save(self, **kwargs): + invitation = super().save(**kwargs) + invitation.send() + + return invitation + +class MembershipReadSerializer(serializers.ModelSerializer): + user = BasicUserSerializer() + class Meta: + model = Membership + fields = ['id', 'user', 'organization', 'is_active', 'joined_date', 'role', + 'invitation'] + read_only_fields = fields + +class MembershipWriteSerializer(serializers.ModelSerializer): + def to_representation(self, instance): + serializer = MembershipReadSerializer(instance, context=self.context) + return serializer.data + + class Meta: + model = Membership + fields = ['id', 'user', 'organization', 'is_active', 'joined_date', 'role'] + read_only_fields = ['user', 'organization', 'is_active', 'joined_date'] diff --git a/cvat/apps/organizations/urls.py b/cvat/apps/organizations/urls.py new file mode 100644 index 00000000..d0d0b23d --- /dev/null +++ b/cvat/apps/organizations/urls.py @@ -0,0 +1,13 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from rest_framework.routers import DefaultRouter +from .views import InvitationViewSet, MembershipViewSet, OrganizationViewSet + +router = DefaultRouter(trailing_slash=False) +router.register('organizations', OrganizationViewSet) +router.register('invitations', InvitationViewSet) +router.register('memberships', MembershipViewSet) + +urlpatterns = router.urls \ No newline at end of file diff --git a/cvat/apps/organizations/views.py b/cvat/apps/organizations/views.py new file mode 100644 index 00000000..1ba702f4 --- /dev/null +++ b/cvat/apps/organizations/views.py @@ -0,0 +1,95 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +from rest_framework import mixins, viewsets +from rest_framework.permissions import SAFE_METHODS +from django.utils.crypto import get_random_string +from django_filters import rest_framework as filters + +from cvat.apps.iam.permissions import ( + InvitationPermission, MembershipPermission, OrganizationPermission) +from .models import Invitation, Membership, Organization + +from .serializers import ( + InvitationReadSerializer, InvitationWriteSerializer, + MembershipReadSerializer, MembershipWriteSerializer, + OrganizationReadSerializer, OrganizationWriteSerializer) + +class OrganizationViewSet(viewsets.ModelViewSet): + queryset = Organization.objects.all() + ordering = ['-id'] + http_method_names = ['get', 'post', 'patch', 'delete', 'head', 'options'] + pagination_class = None + + def get_queryset(self): + queryset = super().get_queryset() + permission = OrganizationPermission(self.request, self) + return permission.filter(queryset) + + def get_serializer_class(self): + if self.request.method in SAFE_METHODS: + return OrganizationReadSerializer + else: + return OrganizationWriteSerializer + + def perform_create(self, serializer): + extra_kwargs = { 'owner': self.request.user } + if not serializer.validated_data.get('name'): + extra_kwargs.update({ 'name': serializer.validated_data['slug'] }) + serializer.save(**extra_kwargs) + +class MembershipFilter(filters.FilterSet): + user = filters.CharFilter(field_name="user__id") + + class Meta: + model = Membership + fields = ("user", ) + +class MembershipViewSet(mixins.RetrieveModelMixin, mixins.DestroyModelMixin, + mixins.ListModelMixin, mixins.UpdateModelMixin, viewsets.GenericViewSet): + queryset = Membership.objects.all() + ordering = ['-id'] + http_method_names = ['get', 'patch', 'delete', 'head', 'options'] + filterset_class = MembershipFilter + + def get_serializer_class(self): + if self.request.method in SAFE_METHODS: + return MembershipReadSerializer + else: + return MembershipWriteSerializer + + def get_queryset(self): + queryset = super().get_queryset() + permission = MembershipPermission(self.request, self) + return permission.filter(queryset) + +class InvitationViewSet(viewsets.ModelViewSet): + queryset = Invitation.objects.all() + ordering = ['-created_date'] + http_method_names = ['get', 'post', 'patch', 'delete', 'head', 'options'] + + def get_serializer_class(self): + if self.request.method in SAFE_METHODS: + return InvitationReadSerializer + else: + return InvitationWriteSerializer + + def get_queryset(self): + queryset = super().get_queryset() + permission = InvitationPermission(self.request, self) + return permission.filter(queryset) + + def perform_create(self, serializer): + extra_kwargs = { + 'owner': self.request.user, + 'key': get_random_string(length=64), + 'organization': self.request.iam_context['organization'] + } + serializer.save(**extra_kwargs) + + def perform_update(self, serializer): + if 'accepted' in self.request.query_params: + serializer.instance.accept() + else: + super().perform_update(serializer) \ No newline at end of file diff --git a/cvat/apps/restrictions/serializers.py b/cvat/apps/restrictions/serializers.py index d9f15ae9..4c019b3f 100644 --- a/cvat/apps/restrictions/serializers.py +++ b/cvat/apps/restrictions/serializers.py @@ -6,7 +6,7 @@ from rest_framework import serializers from django.conf import settings -from cvat.apps.authentication.serializers import RegisterSerializerEx +from cvat.apps.iam.serializers import RegisterSerializerEx class UserAgreementSerializer(serializers.Serializer): name = serializers.CharField(max_length=256) diff --git a/cvat/apps/restrictions/urls.py b/cvat/apps/restrictions/urls.py index e69de29b..813d16ca 100644 --- a/cvat/apps/restrictions/urls.py +++ b/cvat/apps/restrictions/urls.py @@ -0,0 +1,4 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + diff --git a/cvat/apps/training/__init__.py b/cvat/apps/training/__init__.py index 2bb1b0c8..813d16ca 100644 --- a/cvat/apps/training/__init__.py +++ b/cvat/apps/training/__init__.py @@ -1 +1,4 @@ -default_app_config = 'cvat.apps.training.apps.TrainingConfig' +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + diff --git a/cvat/apps/training/views.py b/cvat/apps/training/views.py index f6fe5dff..acc75463 100644 --- a/cvat/apps/training/views.py +++ b/cvat/apps/training/views.py @@ -2,24 +2,17 @@ from cacheops import cache, CacheMiss from drf_yasg.utils import swagger_auto_schema from rest_framework import viewsets, status from rest_framework.decorators import action -from rest_framework.permissions import IsAuthenticated, SAFE_METHODS +from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response -from cvat.apps.authentication import auth from cvat.apps.engine.models import Project from cvat.apps.training.jobs import save_frame_prediction_to_cache_job, save_prediction_server_status_to_cache_job class PredictView(viewsets.ViewSet): def get_permissions(self): - http_method = self.request.method permissions = [IsAuthenticated] - if http_method in SAFE_METHODS: - permissions.append(auth.ProjectAccessPermission) - else: - permissions.append(auth.AdminRolePermission) - return [perm() for perm in permissions] @swagger_auto_schema(method='get', operation_summary='Returns prediction for image') diff --git a/cvat/requirements/base.txt b/cvat/requirements/base.txt index e83a1271..7a9b1181 100644 --- a/cvat/requirements/base.txt +++ b/cvat/requirements/base.txt @@ -1,6 +1,6 @@ attrs==21.2.0 click==7.1.2 -Django==3.1.13 +Django==3.2.8 django-appconf==1.0.4 django-auth-ldap==2.2.0 django-cacheops==5.0.1 @@ -28,9 +28,9 @@ GitPython==3.1.8 coreapi==2.3.3 django-filter==2.3.0 Markdown==3.2.2 -djangorestframework==3.11.2 +djangorestframework==3.12.4 Pygments==2.7.4 -drf-yasg==1.17.1 +drf-yasg==1.20.0 Shapely==1.7.1 pdf2image==1.14.0 django-rest-auth[with_social]==0.9.5 diff --git a/cvat/settings/base.py b/cvat/settings/base.py index 1fd8271f..373f884d 100644 --- a/cvat/settings/base.py +++ b/cvat/settings/base.py @@ -20,7 +20,6 @@ import fcntl import shutil import subprocess import mimetypes -from distutils.util import strtobool from corsheaders.defaults import default_headers mimetypes.add_type("application/wasm", ".wasm", True) @@ -97,6 +96,7 @@ try: except Exception as ex: print(str(ex)) +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', @@ -104,20 +104,12 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'cvat.apps.authentication', - 'cvat.apps.dataset_manager', - 'cvat.apps.engine', - 'cvat.apps.dataset_repo', - 'cvat.apps.restrictions', - 'cvat.apps.lambda_manager', - 'cvat.apps.opencv', 'django_rq', 'compressor', 'cacheops', 'sendfile', 'dj_pagination', 'revproxy', - 'rules', 'rest_framework', 'rest_framework.authtoken', 'django_filters', @@ -128,21 +120,34 @@ INSTALLED_APPS = [ 'allauth.account', 'corsheaders', 'allauth.socialaccount', - 'rest_auth.registration' + 'rest_auth.registration', + 'cvat.apps.iam', + 'cvat.apps.dataset_manager', + 'cvat.apps.organizations', + 'cvat.apps.engine', + 'cvat.apps.dataset_repo', + 'cvat.apps.restrictions', + 'cvat.apps.lambda_manager', + 'cvat.apps.opencv' ] -if strtobool(os.environ.get("ADAPTIVE_AUTO_ANNOTATION", 'false')): - INSTALLED_APPS.append('cvat.apps.training') - SITE_ID = 1 REST_FRAMEWORK = { + 'DEFAULT_PARSER_CLASSES': [ + 'rest_framework.parsers.JSONParser', + 'rest_framework.parsers.FormParser', + 'rest_framework.parsers.MultiPartParser', + 'cvat.apps.engine.parsers.TusUploadParser', + ], 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated', + 'cvat.apps.iam.permissions.IsMemberInOrganization', + 'cvat.apps.iam.permissions.PolicyEnforcer', ], 'DEFAULT_AUTHENTICATION_CLASSES': [ - 'cvat.apps.authentication.auth.TokenAuthentication', - 'cvat.apps.authentication.auth.SignatureAuthentication', + 'cvat.apps.iam.authentication.TokenAuthenticationEx', + 'cvat.apps.iam.authentication.SignatureAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication' ], @@ -159,7 +164,8 @@ REST_FRAMEWORK = { 'DEFAULT_FILTER_BACKENDS': ( 'rest_framework.filters.SearchFilter', 'django_filters.rest_framework.DjangoFilterBackend', - 'rest_framework.filters.OrderingFilter'), + 'rest_framework.filters.OrderingFilter', + 'cvat.apps.iam.filters.OrganizationFilterBackend'), # Disable default handling of the 'format' query parameter by REST framework 'URL_FORMAT_OVERRIDE': 'scheme', @@ -169,6 +175,7 @@ REST_FRAMEWORK = { 'DEFAULT_THROTTLE_RATES': { 'anon': '100/minute', }, + 'DEFAULT_METADATA_CLASS': 'rest_framework.metadata.SimpleMetadata', } REST_AUTH_REGISTER_SERIALIZERS = { @@ -176,7 +183,7 @@ REST_AUTH_REGISTER_SERIALIZERS = { } REST_AUTH_SERIALIZERS = { - 'PASSWORD_RESET_SERIALIZER': 'cvat.apps.authentication.serializers.PasswordResetSerializerEx', + 'PASSWORD_RESET_SERIALIZER': 'cvat.apps.iam.serializers.PasswordResetSerializerEx', } if os.getenv('DJANGO_LOG_VIEWER_HOST'): @@ -194,6 +201,7 @@ MIDDLEWARE = [ 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'dj_pagination.middleware.PaginationMiddleware', + 'cvat.apps.iam.views.ContextMiddleware', ] UI_URL = '' @@ -224,14 +232,21 @@ TEMPLATES = [ WSGI_APPLICATION = 'cvat.wsgi.application' -# Django Auth -DJANGO_AUTH_TYPE = 'BASIC' -DJANGO_AUTH_DEFAULT_GROUPS = [] +# IAM settings +IAM_TYPE = 'BASIC' +IAM_DEFAULT_ROLES = ['user'] +IAM_ADMIN_ROLE = 'admin' +# Index in the list below corresponds to the priority (0 has highest priority) +IAM_ROLES = [IAM_ADMIN_ROLE, 'business', 'user', 'worker'] +IAM_OPA_DATA_URL = 'http://opa:8181/v1/data' LOGIN_URL = 'rest_login' LOGIN_REDIRECT_URL = '/' +# ORG settings +ORG_INVITATION_CONFIRM = 'No' + + AUTHENTICATION_BACKENDS = [ - 'rules.permissions.ObjectPermissionBackend', 'django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend', ] @@ -493,8 +508,10 @@ CORS_ALLOW_HEADERS = list(default_headers) + [ # extended upload protocol headers 'upload-start', 'upload-finish', - 'upload-multiple' + 'upload-multiple', + 'x-organization', ] TUS_MAX_FILE_SIZE = 26843545600 # 25gb TUS_DEFAULT_CHUNK_SIZE = 104857600 # 100 mb + diff --git a/cvat/settings/development.py b/cvat/settings/development.py index 2474b800..43edc986 100644 --- a/cvat/settings/development.py +++ b/cvat/settings/development.py @@ -42,3 +42,4 @@ ACCOUNT_EMAIL_CONFIRMATION_ANONYMOUS_REDIRECT_URL = '{}/auth/email-confirmation' CORS_ORIGIN_WHITELIST = [UI_URL] CORS_REPLACE_HTTPS_REFERER = True +IAM_OPA_DATA_URL = 'http://localhost:8181/v1/data' diff --git a/docker-compose.yml b/docker-compose.yml index 4c472246..8c67534e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,17 +32,19 @@ services: depends_on: - cvat_redis - cvat_db + - cvat_opa environment: DJANGO_MODWSGI_EXTRA_ARGS: '' ALLOWED_HOSTS: '*' CVAT_REDIS_HOST: 'cvat_redis' CVAT_POSTGRES_HOST: 'cvat_db' ADAPTIVE_AUTO_ANNOTATION: 'false' + no_proxy: elasticsearch,kibana,logstash,nuclio,opa,${no_proxy} labels: - traefik.enable=true - traefik.http.services.cvat.loadbalancer.server.port=8080 - traefik.http.routers.cvat.rule=Host(`${CVAT_HOST:-localhost}`) && - PathPrefix(`/api/`, `/git/`, `/opencv/`, `/analytics/`, `/static/`, `/admin`, `/documentation/`, `/django-rq`) + PathPrefix(`/api/`, `/git/`, `/opencv/`, `/analytics/`, `/static/`, `/admin`, `/documentation/`, `/django-rq`) - traefik.http.routers.cvat.entrypoints=web volumes: - cvat_data:/home/django/data @@ -70,9 +72,9 @@ services: container_name: traefik restart: always command: - - "--providers.docker.exposedByDefault=false" - - "--providers.docker.network=cvat" - - "--entryPoints.web.address=:8080" + - '--providers.docker.exposedByDefault=false' + - '--providers.docker.network=cvat' + - '--entryPoints.web.address=:8080' # Uncomment to get Traefik dashboard # - "--entryPoints.dashboard.address=:8090" # - "--api.dashboard=true" @@ -89,6 +91,20 @@ services: networks: - cvat + cvat_opa: + container_name: cvat_opa + image: openpolicyagent/opa:0.34.2-rootless + restart: always + networks: + cvat: + aliases: + - opa + volumes: + - ./cvat/apps/iam/rules:/rules + ports: + - '8181:8181' + command: run --server --addr :8181 --set=decision_logs.console=true /rules + volumes: cvat_db: cvat_data: diff --git a/site/content/en/docs/administration/advanced/iam_system_roles.md b/site/content/en/docs/administration/advanced/iam_system_roles.md new file mode 100644 index 00000000..11cefdb7 --- /dev/null +++ b/site/content/en/docs/administration/advanced/iam_system_roles.md @@ -0,0 +1,9 @@ +--- +title: 'IAM: system roles' +linkTitle: 'system roles' +weight: 22 +--- + + + +## System roles diff --git a/site/content/en/docs/getting_started.md b/site/content/en/docs/getting_started.md index 0ec6adea..66028a29 100644 --- a/site/content/en/docs/getting_started.md +++ b/site/content/en/docs/getting_started.md @@ -1,6 +1,6 @@ --- -title: "Getting started" -linkTitle: "Getting started" +title: 'Getting started' +linkTitle: 'Getting started' weight: 1 --- @@ -9,6 +9,7 @@ This section contains basic information and links to sections necessary for a qu ## Installation First step is to install CVAT on your system: + - [Installation on Ubuntu](/docs/administration/basics/installation/#ubuntu-1804-x86_64amd64) - [Installation on Windows 10](/docs/administration/basics/installation/#windows-10) - [Installation on Mac OS](/docs/administration/basics/installation/#mac-os-mojave) @@ -41,19 +42,20 @@ Once on the task page, open a link to the job in the jobs list. Choose a correct section for your type of the task and start annotation. -| Shape | Annotation | Interpolation | -| --------- | ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| Rectangle | [Shape mode (basics)](/docs/manual/basics/shape-mode-basics/) | [Track mode (basics)](/docs/manual/basics/track-mode-basics/) | -| Polygon | [Annotation with polygons](/docs/manual/advanced/annotation-with-polygons/) | [Track mode with polygons](/docs/manual/advanced/annotation-with-polygons/track-mode-with-polygons/) | -| Polyline | [Annotation with polylines](/docs/manual/advanced/annotation-with-polylines/) | | +| Shape | Annotation | Interpolation | +| --------- | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | +| Rectangle | [Shape mode (basics)](/docs/manual/basics/shape-mode-basics/) | [Track mode (basics)](/docs/manual/basics/track-mode-basics/) | +| Polygon | [Annotation with polygons](/docs/manual/advanced/annotation-with-polygons/) | [Track mode with polygons](/docs/manual/advanced/annotation-with-polygons/track-mode-with-polygons/) | +| Polyline | [Annotation with polylines](/docs/manual/advanced/annotation-with-polylines/) | | | Points | [Points in shape mode](/docs/manual/advanced/annotation-with-points/points-in-shape-mode/) | [Liner interpolation with one point](/docs/manual/advanced/annotation-with-points/liner-interpolation-with-one-point/) | -| Cuboids | [Annotation with cuboids](/docs/manual/advanced/annotation-with-cuboids/) | [Editing the cuboid](/docs/manual/advanced/annotation-with-cuboids/editing-the-cuboid/) | -| Tag | [Annotation with tags](/docs/manual/advanced/annotation-with-tags/) | | +| Cuboids | [Annotation with cuboids](/docs/manual/advanced/annotation-with-cuboids/) | [Editing the cuboid](/docs/manual/advanced/annotation-with-cuboids/editing-the-cuboid/) | +| Tag | [Annotation with tags](/docs/manual/advanced/annotation-with-tags/) | | ### Advanced In CVAT there is the possibility of using automatic and semi-automatic annotation what gives you the opportunity to speed up the execution of the annotation: + - [OpenCV tools](/docs/manual/advanced/opencv-tools/) - tools included in CVAT by default. - [AI tools](/docs/manual/advanced/ai-tools/) - tools requiring installation. - [Automatic annotation](/docs/manual/advanced/automatic-annotation/) - automatic annotation with using DL models. diff --git a/site/content/en/docs/manual/basics/attach-cloud-storage.md b/site/content/en/docs/manual/basics/attach-cloud-storage.md index c8a56c83..08a29b11 100644 --- a/site/content/en/docs/manual/basics/attach-cloud-storage.md +++ b/site/content/en/docs/manual/basics/attach-cloud-storage.md @@ -56,6 +56,7 @@ they will need to be used in CVAT when adding cloud storage. #### Prepare dataset For example, let's take [The Oxford-IIIT Pet Dataset](https://www.robots.ox.ac.uk/~vgg/data/pets/): + - Download the [archive with images](https://www.robots.ox.ac.uk/~vgg/data/pets/data/images.tar.gz). - Unpack the archive into the prepared folder and create a manifest file as described in [prepare manifest file section](/docs/manual/advanced/dataset_manifest/): @@ -340,6 +341,7 @@ In the window that appears, select the created bucket and click export. ![](/images/aws-s3_tutorial_7.jpg) ### Prepare manifest file + Now you need to prepare a manifest file. I used [AWS cli](https://aws.amazon.com/cli/) and [script for prepare manifest file](https://github.com/openvinotoolkit/cvat/tree/develop/utils/dataset_manifest). Perform the installation using the manual [aws-shell](https://github.com/awslabs/aws-shell), diff --git a/tests/cypress/integration/actions_objects2/case_108_rotated_bounding_boxes.js b/tests/cypress/integration/actions_objects2/case_108_rotated_bounding_boxes.js index ea466b34..8def991d 100644 --- a/tests/cypress/integration/actions_objects2/case_108_rotated_bounding_boxes.js +++ b/tests/cypress/integration/actions_objects2/case_108_rotated_bounding_boxes.js @@ -28,6 +28,9 @@ context('Rotated bounding boxes.', () => { }; function testShapeRotate(shape, x, y, expectedRotate, pressShift) { + // FIXME: find a better way to check expected rotation + // you can not predict rotation degree based on mousemove coordinates + // because it depends on cypress viewport scale cy.get(shape) .trigger('mousemove') .trigger('mouseover') @@ -42,7 +45,7 @@ context('Rotated bounding boxes.', () => { } cy.get('.svg_select_points_rot').trigger('mousedown', { button: 0 }); cy.get('.cvat-canvas-container').trigger('mousemove', x, y); - cy.get('#cvat_canvas_text_content').should('contain.text', expectedRotate); + // cy.get('#cvat_canvas_text_content').should('contain.text', expectedRotate); cy.get('.cvat-canvas-container').trigger('mouseup'); cy.get(shape).should('have.attr', 'transform'); } diff --git a/tests/cypress/integration/actions_projects_models/registration_involved/base_actions_project_task_user.js b/tests/cypress/integration/actions_projects_models/registration_involved/base_actions_project_task_user.js index 6a44773a..d669b395 100644 --- a/tests/cypress/integration/actions_projects_models/registration_involved/base_actions_project_task_user.js +++ b/tests/cypress/integration/actions_projects_models/registration_involved/base_actions_project_task_user.js @@ -44,8 +44,8 @@ context('Base actions on the project', () => { let projectID = ''; const projectSubsetFieldValue = 'Test'; - function getProjectID(projectName) { - cy.contains('.cvat-project-name', projectName) + function getProjectID(myProjectName) { + cy.contains('.cvat-project-name', myProjectName) .parents('.cvat-project-details') .should('have.attr', 'cvat-project-id') .then(($projectID) => { @@ -61,7 +61,7 @@ context('Base actions on the project', () => { cy.deletingRegisteredUsers([userName]); }); - describe(`Testing "Base actions on the project"`, () => { + describe('Testing "Base actions on the project"', () => { it('Add some labels to project.', () => { cy.addNewLabel(newLabelName1); cy.addNewLabel(newLabelName2); @@ -120,12 +120,6 @@ context('Base actions on the project', () => { cy.goToRegisterPage(); cy.userRegistration(firstName, lastName, userName, emailAddr, password); cy.goToProjectsList(); - // tries to create project - const failProjectName = 'failProject'; - cy.createProjects(failProjectName, labelName, attrName, textDefaultValue, null, 'fail'); - cy.closeNotification('.cvat-notification-notice-create-project-failed'); - cy.goToProjectsList(); - cy.contains('.cvat-projects-project-item-title', failProjectName).should('not.exist'); cy.logout(userName); }); it('Login first user. Assign project to second user. Logout.', () => { diff --git a/tests/cypress/integration/actions_tasks/issue_2473_import_annotations_frames_dots_in_name.js b/tests/cypress/integration/actions_tasks/issue_2473_import_annotations_frames_dots_in_name.js index 2d12e325..de726e41 100644 --- a/tests/cypress/integration/actions_tasks/issue_2473_import_annotations_frames_dots_in_name.js +++ b/tests/cypress/integration/actions_tasks/issue_2473_import_annotations_frames_dots_in_name.js @@ -105,7 +105,7 @@ context('Import annotations for frames with dots in name.', { browser: '!firefox .get('input[type=file]') .attachFile(annotationArchiveName); }); - cy.intercept('GET', '/api/v1/jobs/**/annotations').as('uploadAnnotationsGet'); + cy.intercept('GET', '/api/v1/jobs/**/annotations?**').as('uploadAnnotationsGet'); confirmUpdate('.cvat-modal-content-load-job-annotation'); cy.wait('@uploadAnnotationsGet').its('response.statusCode').should('equal', 200); cy.get('.cvat-notification-notice-upload-annotations-fail').should('not.exist'); diff --git a/tests/cypress/integration/actions_tasks/registration_involved/case_39_issue_2572_rename_task.js b/tests/cypress/integration/actions_tasks/registration_involved/case_39_issue_2572_rename_task.js index 289ebf44..ce9921bc 100644 --- a/tests/cypress/integration/actions_tasks/registration_involved/case_39_issue_2572_rename_task.js +++ b/tests/cypress/integration/actions_tasks/registration_involved/case_39_issue_2572_rename_task.js @@ -24,17 +24,17 @@ context('Rename a task.', () => { const newNaskName = taskName.replace('39', '3339'); const secondUserName = 'Case39'; const secondUser = { - firstName: `Firtstnamerenametask`, - lastName: `Lastnamerenametask`, + firstName: 'Firtstnamerenametask', + lastName: 'Lastnamerenametask', emailAddr: `${secondUserName.toLowerCase()}@local.local`, password: 'Pass!UserCase39', }; - function renameTask(taskName, newValue) { + function renameTask(myTaskName, newValue) { cy.get('.cvat-task-details-task-name').within(() => { cy.get('[aria-label="edit"]').click(); }); - cy.contains('.cvat-text-color', taskName).click().type(newValue); + cy.contains('.cvat-text-color', myTaskName).click().type(newValue); } before(() => { @@ -58,7 +58,9 @@ context('Rename a task.', () => { cy.contains('.cvat-task-details-task-name', newNaskName).should('exist'); cy.logout(); }); - it('Registration a second user. Rename the task. Status 403 appear.', () => { + // FIXME: the task isn't visible for the user. Need to register it, assign on + // on the task and only after that try to rename. + it.skip('Registration a second user. Rename the task. Status 403 appear.', () => { cy.goToRegisterPage(); cy.userRegistration( secondUser.firstName, diff --git a/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js b/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js index fbad2847..23673485 100644 --- a/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js +++ b/tests/cypress/integration/actions_tasks/registration_involved/case_69_filters_sorting_jobs.js @@ -28,8 +28,8 @@ context('Filters, sorting jobs.', () => { const secondUserName = 'Case69'; const secondUser = { - firstName: `Firtstname`, - lastName: `Lastname`, + firstName: 'Firtstname', + lastName: 'Lastname', emailAddr: `${secondUserName.toLowerCase()}@local.local`, password: 'Pass!UserCase69', }; @@ -44,13 +44,13 @@ context('Filters, sorting jobs.', () => { } } - function checkContentsRow(index, status, assignee, reviewer) { + function checkContentsRow(index, stage, state, assignee) { cy.get('.cvat-task-jobs-table-row').then(($jobsTableRows) => { cy.get($jobsTableRows[index]).within(() => { - cy.get('.cvat-job-item-status').invoke('text').should('equal', status); + cy.get('.cvat-job-item-stage').invoke('text').should('equal', stage); + cy.get('.cvat-job-item-state').invoke('text').should('equal', state); [ ['.cvat-job-assignee-selector', assignee], - ['.cvat-job-reviewer-selector', reviewer], ].forEach(([el, val]) => { cy.get(el).find('[type="search"]').invoke('val').should('equal', val); }); @@ -100,27 +100,25 @@ context('Filters, sorting jobs.', () => { false, advancedConfigurationParams, ); + cy.openTask(taskName); cy.assignJobToUser(0, secondUserName); cy.assignJobToUser(1, secondUserName); - cy.reviewJobToUser(1, Cypress.env('user')); - - // The first job is transferred to the validation status - cy.openJob(); - cy.interactMenu('Request a review'); - cy.get('.cvat-request-review-dialog') - .should('exist') - .within(() => { - cy.get('.cvat-user-search-field') - .find('[type="search"]') - .type(`${Cypress.env('user')}{Enter}`); - cy.contains('[type="button"]', 'Submit').click(); - }); // The first job is transferred to the complete status cy.openJob(1); - cy.interactMenu('Finish the job'); + cy.contains('.cvat-annotation-header-button', 'Menu').click(); + cy.get('.cvat-annotation-menu').within(() => { + cy.contains('Change job state').click(); + }); + cy.get('.cvat-annotation-menu-job-state-submenu').within(() => { + cy.contains('completed').click(); + }); + cy.contains('[type="button"]', 'Continue').click(); + cy.get('.cvat-spinner').should('not.exist'); + cy.interactMenu('Open the task'); + cy.get('.cvat-spinner').should('not.exist'); }); after(() => { @@ -131,36 +129,37 @@ context('Filters, sorting jobs.', () => { }); describe(`Testing "${labelName}".`, () => { - it('Filtering jobs by status.', () => { - testSetJobFilter({ column: '.cvat-job-item-status', menuItem: 'annotation' }); - checkJobsTableRowCount(1); - checkContentsRow(0, 'annotation', '', ''); + it('Filtering jobs by stage.', () => { + testSetJobFilter({ column: '.cvat-job-item-stage', menuItem: 'annotation' }); + checkJobsTableRowCount(3); + checkContentsRow(0, 'annotation', 'new', secondUserName); }); - it('Filtering jobs by status and by assignee.', () => { + it('Filtering jobs by assignee and stage (annotation).', () => { testSetJobFilter({ column: '.cvat-job-item-assignee', menuItem: secondUserName }); - checkJobsTableRowCount(0); + checkJobsTableRowCount(2); testSetJobFilter({ column: '.cvat-job-item-assignee', reset: true }); - checkJobsTableRowCount(1); + checkJobsTableRowCount(3); }); - it('Filtering jobs by status. Annotation and validation', () => { - testSetJobFilter({ column: '.cvat-job-item-status', menuItem: 'validation' }); - checkJobsTableRowCount(2); - checkContentsRow(0, 'validation', secondUserName, Cypress.env('user')); - checkContentsRow(1, 'annotation', '', ''); + it('Filtering jobs by stage (annotation, validation)', () => { + testSetJobFilter({ column: '.cvat-job-item-stage', menuItem: 'validation' }); + checkJobsTableRowCount(3); + checkContentsRow(0, 'annotation', 'new', secondUserName); }); - it('Filtering jobs by status. Annotation, validation, completed', () => { - testSetJobFilter({ column: '.cvat-job-item-status', menuItem: 'completed' }); + it('Filtering jobs by stage (annotation, validation, acceptance)', () => { + testSetJobFilter({ column: '.cvat-job-item-stage', menuItem: 'acceptance' }); checkJobsTableRowCount(3); - checkContentsRow(0, 'validation', secondUserName, Cypress.env('user')); - checkContentsRow(1, 'completed', secondUserName, Cypress.env('user')); - checkContentsRow(2, 'annotation', '', ''); - testSetJobFilter({ column: '.cvat-job-item-status', reset: true }); // Reset filter by status + checkContentsRow(0, 'annotation', 'new', secondUserName); + checkContentsRow(1, 'annotation', 'completed', secondUserName); + checkContentsRow(2, 'annotation', 'new', ''); + testSetJobFilter({ column: '.cvat-job-item-stage', reset: true }); // Reset filter by status }); - it('Filtering jobs by reviewer and sort by ascending status.', () => { + // FIXME: add tests to check state filtering + // FIXME: no reviewer anymore + it.skip('Filtering jobs by reviewer and sort by ascending status.', () => { testSetJobFilter({ column: '.cvat-job-item-reviewer', menuItem: Cypress.env('user') }); checkContentsRow(0, 'validation', secondUserName, Cypress.env('user')); checkContentsRow(1, 'completed', secondUserName, Cypress.env('user')); @@ -169,7 +168,8 @@ context('Filters, sorting jobs.', () => { checkContentsRow(1, 'validation', secondUserName, Cypress.env('user')); }); - it('Filtering jobs by reviewer and sort by ascending status, assignee.', () => { + // FIXME: no reviewer anymore + it.skip('Filtering jobs by reviewer and sort by ascending status, assignee.', () => { cy.contains('.cvat-job-item-status', 'Status').click(); cy.contains('.cvat-job-item-assignee', 'Assignee').click(); checkContentsRow(0, 'validation', secondUserName, Cypress.env('user')); diff --git a/tests/cypress/integration/actions_tasks2/case_35_search_task_feature.js b/tests/cypress/integration/actions_tasks2/case_35_search_task_feature.js index b4641957..b3a4e75a 100644 --- a/tests/cypress/integration/actions_tasks2/case_35_search_task_feature.js +++ b/tests/cypress/integration/actions_tasks2/case_35_search_task_feature.js @@ -13,6 +13,7 @@ context('Search task feature.', () => { cy.intercept('GET', '/api/v1/tasks**').as('searchTask'); cy.get('.cvat-search-field').find('[placeholder="Search"]').clear().type(`${option}{Enter}`); cy.wait('@searchTask').its('response.statusCode').should('equal', 200); + cy.get('.cvat-spinner').should('not.exist'); cy.contains('.cvat-item-task-name', taskName).should(result); } diff --git a/tests/cypress/integration/actions_tasks2/case_97_export_import_task.js b/tests/cypress/integration/actions_tasks2/case_97_export_import_task.js index 382d5cf9..afed3cdf 100644 --- a/tests/cypress/integration/actions_tasks2/case_97_export_import_task.js +++ b/tests/cypress/integration/actions_tasks2/case_97_export_import_task.js @@ -93,7 +93,7 @@ context('Export, import an annotation task.', { browser: '!firefox' }, () => { }); it('Import the task. Check id, labels, shape.', () => { - cy.intercept('POST', '/api/v1/tasks/backup').as('importTask'); + cy.intercept('POST', '/api/v1/tasks/backup?**').as('importTask'); cy.get('.cvat-import-task').click().find('input[type=file]').attachFile(taskBackupArchiveFullName); cy.wait('@importTask', { timeout: 5000 }).its('response.statusCode').should('equal', 202); cy.wait('@importTask').its('response.statusCode').should('equal', 201); diff --git a/tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js b/tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js index 4309d5a4..52cd134c 100644 --- a/tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js +++ b/tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js @@ -15,7 +15,7 @@ context('Dummy cloud storages.', { browser: '!firefox' }, () => { const imageFolder = '../integration/actions_tasks3/assets/case_109'; function testListDummyCloudStorages(dummyCS) { - cy.intercept('GET', 'api/v1/cloudstorages?page_size=12&page=1', dummyCS).as('listCS'); + cy.intercept('GET', 'api/v1/cloudstorages?**', dummyCS).as('listCS'); cy.contains('.cvat-header-button', 'Cloud Storages').should('be.visible').click(); cy.wait('@listCS').its('response.statusCode').should('eq', 200); cy.get('.cvat-cloud-storage-item-empty-preview').should('have.length', 1); @@ -57,10 +57,10 @@ context('Dummy cloud storages.', { browser: '!firefox' }, () => { } function testCSSetStatusPreview(id, status, image) { - cy.intercept('GET', `api/v1/cloudstorages/${id}/status`, status).as('csStatus'); + cy.intercept('GET', `api/v1/cloudstorages/${id}/status?**`, status).as('csStatus'); cy.intercept( 'GET', - `api/v1/cloudstorages/${id}/preview`, + `api/v1/cloudstorages/${id}/preview?**`, { fixture: `${imageFolder}/${image}` }, ).as('csPreview'); diff --git a/tests/cypress/integration/actions_tasks3/case_18_filters_functionality.js b/tests/cypress/integration/actions_tasks3/case_18_filters_functionality.js index 1e82026c..5a5aa697 100644 --- a/tests/cypress/integration/actions_tasks3/case_18_filters_functionality.js +++ b/tests/cypress/integration/actions_tasks3/case_18_filters_functionality.js @@ -48,9 +48,9 @@ context('Filters functionality.', () => { labelName: labelShape, firstX: 550, firstY: 350, - secondX: 650, + secondX: 750, secondY: 350, - thirdX: 650, + thirdX: 750, thirdY: 450, fourthX: 550, fourthY: 450, @@ -68,8 +68,8 @@ context('Filters functionality.', () => { numberOfPoints: 4, }; - let cvatCanvasShapeList = []; - let cvatFiltesList = []; + const cvatCanvasShapeList = []; + const cvatFiltesList = []; function checkingFilterApplication(ids) { for (let i = 0; i < cvatCanvasShapeList.length; i++) { @@ -123,7 +123,9 @@ context('Filters functionality.', () => { const textFilter = '(shape == "polygon" || shape == "rectangle")'; cvatFiltesList.push(textFilter); cy.addFiltersRule(0); - cy.setFilter({ groupIndex: 0, ruleIndex: 0, field: 'Shape', operator: '==', value: 'polygon' }); + cy.setFilter({ + groupIndex: 0, ruleIndex: 0, field: 'Shape', operator: '==', value: 'polygon', + }); cy.addFiltersRule(0); cy.setGroupCondition(0, 'Or'); cy.setFilter({ @@ -134,7 +136,8 @@ context('Filters functionality.', () => { value: 'rectangle', submit: true, }); - checkingFilterApplication([1, 2, 3, 4]); // #cvat_canvas_shape_1,2,3,4, #cvat-objects-sidebar-state-item-1,2,3,4 + // #cvat_canvas_shape_1,2,3,4, #cvat-objects-sidebar-state-item-1,2,3,4 + checkingFilterApplication([1, 2, 3, 4]); cy.clearFilters(); // Clear filters }); @@ -142,7 +145,9 @@ context('Filters functionality.', () => { const textFilter = 'type == "shape"'; cvatFiltesList.push(textFilter); cy.addFiltersRule(0); - cy.setFilter({ groupIndex: 0, ruleIndex: 0, field: 'Type', operator: '==', value: 'shape', submit: true }); + cy.setFilter({ + groupIndex: 0, ruleIndex: 0, field: 'Type', operator: '==', value: 'shape', submit: true, + }); checkingFilterApplication([1, 3]); // #cvat_canvas_shape_1,3, #cvat-objects-sidebar-state-item-1,3 cy.clearFilters(); // Clear filters }); @@ -177,7 +182,8 @@ context('Filters functionality.', () => { labelAttr: 'count points', submit: true, }); - checkingFilterApplication([2, 4]); // #cvat_canvas_shape_2,4, #cvat-objects-sidebar-state-item-2,4 + // #cvat_canvas_shape_2,4, #cvat-objects-sidebar-state-item-2,4 + checkingFilterApplication([2, 4]); cy.clearFilters(); // Clear filters }); @@ -194,7 +200,8 @@ context('Filters functionality.', () => { value: 'Height', submit: true, }); - checkingFilterApplication([1, 2, 3, 4]); // #cvat_canvas_shape_1,2,3,4, #cvat-objects-sidebar-state-item-1,2,3,4 + // #cvat_canvas_shape_1,2,3,4, #cvat-objects-sidebar-state-item-1,2,3,4 + checkingFilterApplication([1, 2, 3, 4]); cy.clearFilters(); // Clear filters }); @@ -202,8 +209,11 @@ context('Filters functionality.', () => { const textFilter = 'objectID == 4'; cvatFiltesList.push(textFilter); cy.addFiltersRule(0); - cy.setFilter({ groupIndex: 0, ruleIndex: 0, field: 'ObjectID', operator: '==', value: 4, submit: true }); - checkingFilterApplication([4]); // #cvat_canvas_shape_4, #cvat-objects-sidebar-state-item-4 + cy.setFilter({ + groupIndex: 0, ruleIndex: 0, field: 'ObjectID', operator: '==', value: 4, submit: true, + }); + // #cvat_canvas_shape_4, #cvat-objects-sidebar-state-item-4 + checkingFilterApplication([4]); cy.clearFilters(); // Clear filters }); @@ -213,7 +223,9 @@ context('Filters functionality.', () => { cvatFiltesList.push(textFilter); cy.addFiltersGroup(0); cy.addFiltersGroup(0); - cy.setFilter({ groupIndex: 1, ruleIndex: 0, field: 'Label', operator: '==', value: labelShape }); + cy.setFilter({ + groupIndex: 1, ruleIndex: 0, field: 'Label', operator: '==', value: labelShape, + }); cy.addFiltersRule(1); cy.setFilter({ groupIndex: 1, @@ -224,10 +236,14 @@ context('Filters functionality.', () => { label: labelTrack, labelAttr: 'type', }); - cy.setFilter({ groupIndex: 2, ruleIndex: 2, field: 'Label', operator: '==', value: labelTrack }); + cy.setFilter({ + groupIndex: 2, ruleIndex: 2, field: 'Label', operator: '==', value: labelTrack, + }); cy.addFiltersRule(2); cy.setGroupCondition(0, 'Or'); - cy.setFilter({ groupIndex: 2, ruleIndex: 3, field: 'Width', operator: '>', value: '60', submit: true }); + cy.setFilter({ + groupIndex: 2, ruleIndex: 3, field: 'Width', operator: '>', value: '60', submit: true, + }); checkingFilterApplication([2, 4]); // #cvat_canvas_shape_2,4, #cvat-objects-sidebar-state-item-2,4 cy.clearFilters(); // Clear filters }); @@ -237,7 +253,9 @@ context('Filters functionality.', () => { '((label == "shape 3 points" || (attr.shape 3 points.type == "shape" && width > 50)) && height > 50)'; cvatFiltesList.push(textFilter); cy.addFiltersGroup(0); - cy.setFilter({ groupIndex: 1, ruleIndex: 0, field: 'Label', operator: '==', value: labelShape }); + cy.setFilter({ + groupIndex: 1, ruleIndex: 0, field: 'Label', operator: '==', value: labelShape, + }); cy.addFiltersGroup(1); cy.setGroupCondition(1, 'Or'); cy.setFilter({ @@ -250,10 +268,14 @@ context('Filters functionality.', () => { labelAttr: 'type', }); cy.addFiltersRule(2); - cy.setFilter({ groupIndex: 2, ruleIndex: 2, field: 'Width', operator: '>', value: 50 }); + cy.setFilter({ + groupIndex: 2, ruleIndex: 2, field: 'Width', operator: '>', value: 50, + }); cy.addFiltersGroup(0); cy.setGroupCondition(0, 'And'); - cy.setFilter({ groupIndex: 3, ruleIndex: 3, field: 'Height', operator: '>', value: 50, submit: true }); + cy.setFilter({ + groupIndex: 3, ruleIndex: 3, field: 'Height', operator: '>', value: 50, submit: true, + }); checkingFilterApplication([3]); // #cvat_canvas_shape_3, #cvat-objects-sidebar-state-item-3 cy.clearFilters(); // Clear filters }); @@ -264,9 +286,7 @@ context('Filters functionality.', () => { cy.get('.ant-dropdown') .not('.ant-dropdown-hidden') .within(() => { - cvatFiltesList.forEach(function (filterValue) { - cy.contains('[role="menuitem"]', filterValue); - }); + cvatFiltesList.forEach((filterValue) => cy.contains('[role="menuitem"]', filterValue)); }); }); diff --git a/tests/cypress/integration/actions_tasks3/case_44_changing_default_value_for_attribute.js b/tests/cypress/integration/actions_tasks3/case_44_changing_default_value_for_attribute.js index 7f2860ab..a22ac303 100644 --- a/tests/cypress/integration/actions_tasks3/case_44_changing_default_value_for_attribute.js +++ b/tests/cypress/integration/actions_tasks3/case_44_changing_default_value_for_attribute.js @@ -25,7 +25,7 @@ context('Changing a default value for an attribute.', () => { }; const newTextValue = `${additionalLabel} text`; const newCheckboxValue = 'True'; - let wrapperId = []; + const wrapperId = []; before(() => { cy.openTask(taskName); @@ -34,16 +34,15 @@ context('Changing a default value for an attribute.', () => { describe(`Testing case "${caseId}", issue 2968`, () => { it('Add a label, add text (leave it’s value empty by default) & checkbox attributes.', () => { cy.intercept('PATCH', '/api/v1/tasks/**').as('patchTask'); - cy.intercept('GET', '/api/v1/tasks**').as('getTask'); cy.addNewLabel(additionalLabel, additionalAttrsLabel); cy.wait('@patchTask').its('response.statusCode').should('equal', 200); - cy.wait('@getTask').its('response.statusCode').should('equal', 200); cy.get('.cvat-constructor-viewer').should('exist').and('be.visible'); }); it('Open label editor. Change default values for text & checkbox attributes, press Done.', () => { cy.intercept('PATCH', '/api/v1/tasks/**').as('patchTask'); cy.get('.cvat-constructor-viewer').within(() => { + // eslint-disable-next-line security/detect-non-literal-regexp cy.contains(new RegExp(`^${additionalLabel}$`)) .parents('.cvat-constructor-viewer-item') .should('be.visible') @@ -64,6 +63,7 @@ context('Changing a default value for an attribute.', () => { }); }); cy.get('.ant-select-dropdown').not('.ant-select-dropdown-hidden').within(() => { + // eslint-disable-next-line security/detect-non-literal-regexp cy.contains(new RegExp(`^${newCheckboxValue}$`)).click(); }); cy.contains('[type="submit"]', 'Done').click(); @@ -86,6 +86,7 @@ context('Changing a default value for an attribute.', () => { [additionalAttrsLabel[1].additionalAttrName, additionalAttrsLabel[1].additionalValue.split(';')[0]], [additionalAttrsLabel[2].additionalAttrName, newCheckboxValue.toLowerCase()], ].forEach(([attrName, attrValue]) => { + // eslint-disable-next-line security/detect-non-literal-regexp cy.contains(new RegExp(`^${attrName}: ${attrValue}$`)).should('be.visible'); }); }); diff --git a/tests/cypress/integration/actions_users/issue_1810_login_logout.js b/tests/cypress/integration/actions_users/issue_1810_login_logout.js index 05f13f57..142d2c40 100644 --- a/tests/cypress/integration/actions_users/issue_1810_login_logout.js +++ b/tests/cypress/integration/actions_users/issue_1810_login_logout.js @@ -42,7 +42,7 @@ context('When clicking on the Logout button, get the user session closed.', () = it('Logout and login to task via GUI', () => { // logout from task cy.get('.cvat-right-header').within(() => { - cy.get('.cvat-header-menu-dropdown') + cy.get('.cvat-header-menu-user-dropdown') .should('have.text', Cypress.env('user')) .trigger('mouseover', { which: 1 }); }); @@ -66,9 +66,9 @@ context('When clicking on the Logout button, get the user session closed.', () = password: Cypress.env('password'), }, }).then(async (response) => { - response = await response['headers']['set-cookie']; - const csrfToken = response[0].match(/csrftoken=\w+/)[0].replace('csrftoken=', ''); - const sessionId = response[1].match(/sessionid=\w+/)[0].replace('sessionid=', ''); + const cookies = await response.headers['set-cookie']; + const csrfToken = cookies[0].match(/csrftoken=\w+/)[0].replace('csrftoken=', ''); + const sessionId = cookies[1].match(/sessionid=\w+/)[0].replace('sessionid=', ''); cy.visit(`/login-with-token/${sessionId}/${csrfToken}?next=/tasks/${taskId}`); cy.contains('.cvat-task-details-task-name', `${taskName}`).should('be.visible'); }); diff --git a/tests/cypress/integration/actions_users/issue_2524_2633_issue_not_reset_after_change_task_issue_point_firefox.js b/tests/cypress/integration/actions_users/issue_2524_2633_issue_not_reset_after_change_task_issue_point_firefox.js index 1d9b67af..eb8e2242 100644 --- a/tests/cypress/integration/actions_users/issue_2524_2633_issue_not_reset_after_change_task_issue_point_firefox.js +++ b/tests/cypress/integration/actions_users/issue_2524_2633_issue_not_reset_after_change_task_issue_point_firefox.js @@ -4,7 +4,7 @@ /// -context("Some parts of the Redux state (issues) isn't reset after changing a task.", () => { +context('Some parts of the Redux state (issues) is not reset after changing a task.', () => { const issueId = '2524_2633'; const labelName = `Issue ${issueId}`; const taskName = { @@ -68,7 +68,8 @@ context("Some parts of the Redux state (issues) isn't reset after changing a tas }); describe(`Testing "${labelName}"`, () => { - it('Open first task and request to review.', () => { + // FIXME: review pipeline was redesigned. Need to adjust the test + it.skip('Open first task and request to review.', () => { cy.openTaskJob(taskName.firstTaskName); cy.interactMenu('Request a review'); cy.get('.cvat-request-review-dialog') @@ -77,6 +78,7 @@ context("Some parts of the Redux state (issues) isn't reset after changing a tas cy.get('.cvat-user-search-field').click(); }); cy.get('.ant-select-dropdown').within(() => { + // eslint-disable-next-line security/detect-non-literal-regexp cy.contains(new RegExp(`^${Cypress.env('user')}`)).click(); }); cy.contains('.cvat-request-review-dialog', 'Reviewer:').within(() => { @@ -85,8 +87,9 @@ context("Some parts of the Redux state (issues) isn't reset after changing a tas cy.url().should('include', '/tasks'); }); - it('Open job again and create an issue. Check issue 2633.', () => { - cy.openJob(); + // FIXME: review pipeline was redesigned. Need to adjust the test + it.skip('Open job again and create an issue. Check issue 2633.', () => { + cy.openTaskJob(taskName.firstTaskName); cy.createIssueFromControlButton(createIssueRectangle); cy.createIssueFromControlButton(createIssuePoint); // Issue 2633 }); diff --git a/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js b/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js index c9fb4397..d53f7917 100644 --- a/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js +++ b/tests/cypress/integration/actions_users/registration_involved/case_28_review_pipeline_feature.js @@ -26,53 +26,59 @@ context('Review pipeline feature', () => { segmentSize: 10, }; + // eslint-disable-next-line no-unused-vars const createRectangleShape2Points = { points: 'By 2 Points', type: 'Shape', - labelName: labelName, + labelName, firstX: 250, firstY: 350, secondX: 350, secondY: 450, }; + // eslint-disable-next-line no-unused-vars const createRectangleShape2PointsSecond = { points: 'By 2 Points', type: 'Shape', - labelName: labelName, + labelName, firstX: 400, firstY: 350, secondX: 500, secondY: 450, }; + // eslint-disable-next-line no-unused-vars const createPointsShape = { type: 'Shape', - labelName: labelName, + labelName, pointsMap: [{ x: 650, y: 350 }], complete: true, numberOfPoints: null, }; + // eslint-disable-next-line no-unused-vars const createPointsShapeSecond = { type: 'Shape', - labelName: labelName, + labelName, pointsMap: [{ x: 700, y: 350 }], complete: true, numberOfPoints: null, }; + // eslint-disable-next-line no-unused-vars const createPointsShapeThird = { type: 'Shape', - labelName: labelName, + labelName, pointsMap: [{ x: 750, y: 350 }], complete: true, numberOfPoints: null, }; + // eslint-disable-next-line no-unused-vars const createPointsShapeFourth = { type: 'Shape', - labelName: labelName, + labelName, pointsMap: [{ x: 700, y: 400 }], complete: true, numberOfPoints: null, @@ -94,8 +100,10 @@ context('Review pipeline feature', () => { password: 'Fv5Df3#f55g', }; + // eslint-disable-next-line no-unused-vars const customeIssueDescription = 'Custom issue'; + // eslint-disable-next-line no-unused-vars const createIssueRectangle = { type: 'rectangle', description: 'rectangle issue', @@ -105,6 +113,7 @@ context('Review pipeline feature', () => { secondY: 200, }; + // eslint-disable-next-line no-unused-vars const createIssuePoint = { type: 'point', description: 'point issue', @@ -128,6 +137,7 @@ context('Review pipeline feature', () => { }); after(() => { + cy.login(); cy.goToTaskList(); cy.deleteTask(taskName); cy.logout(); @@ -167,7 +177,6 @@ context('Review pipeline feature', () => { advancedConfigurationParams, ); cy.openTask(taskName); - cy.assignTaskToUser(Cypress.env('user')); cy.logout(); }); @@ -187,7 +196,8 @@ context('Review pipeline feature', () => { cy.logout(); }); - it('Second user login. Open the task, open the job and annotates it.', () => { + /* FIXME: Second user has access to a job inside the task. Need to redesign openTaskJob. + it.skip('Second user login. Open the task, open the job and annotates it.', () => { cy.login(secondUserName, secondUser.password); cy.openTaskJob(taskName, 0, false); cy.createRectangle(createRectangleShape2PointsSecond); @@ -219,10 +229,12 @@ context('Review pipeline feature', () => { }); cy.url().should('include', '/tasks'); cy.contains('.cvat-task-details', taskName).should('exist'); - cy.checkJobStatus(0, 'validation', secondUserName, thirdUserName); // Check status, assignee, reviewer of the job + // Check status, assignee, reviewer of the job + cy.checkJobStatus(0, 'validation', secondUserName, thirdUserName); }); - it('Second user opens the job again, switches to standard mode and tried to change anything and save changes. The request will be rejected with 403 code.', () => { + it('Second user opens the job again, switches to standard mode and tried ' + + 'to change anything and save changes. The request will be rejected with 403 code.', () => { cy.openJob(0, false); cy.get('.cvat-workspace-selector').should('have.text', 'Review'); cy.changeWorkspace('Standard', labelName); @@ -293,7 +305,8 @@ context('Review pipeline feature', () => { cy.checkIssueLabel('Wrong position'); }); - it('Use button on the left panel to create a couple of issues (in the first case draw a rectangle, in the second draw a point).', () => { + it('Use button on the left panel to create a couple of issues (in the first case ' + + 'draw a rectangle, in the second draw a point).', () => { cy.createIssueFromControlButton(createIssueRectangle); cy.createIssueFromControlButton(createIssuePoint); }); @@ -313,7 +326,8 @@ context('Review pipeline feature', () => { cy.checkJobStatus(0, 'annotation', secondUserName, thirdUserName); }); - it("Reopen the job. Change something there. Save work. That saving wasn't successful. The third user logout.", () => { + it('Reopen the job. Change something there. Save work. That saving wasn't successful. ' + + 'The third user logout.", () => { cy.openJob(0, false); cy.createPoint(createPointsShapeSecond); cy.saveJob('PATCH', 403); @@ -367,10 +381,12 @@ context('Review pipeline feature', () => { }); it('Issue navigation. Navigation works and go only to frames with issues.', () => { - cy.get('.cvat-issues-sidebar-previous-frame').should('have.attr', 'style').and('contain', 'opacity: 0.5;'); // The element is not active + cy.get('.cvat-issues-sidebar-previous-frame').should('have.attr', 'style') + .and('contain', 'opacity: 0.5;'); // The element is not active cy.get('.cvat-issues-sidebar-next-frame').should('be.visible').click(); cy.checkFrameNum(2); // Frame changed to 2 - cy.get('.cvat-issues-sidebar-next-frame').should('have.attr', 'style').and('contain', 'opacity: 0.5;'); // The element is not active + cy.get('.cvat-issues-sidebar-next-frame').should('have.attr', 'style') + .and('contain', 'opacity: 0.5;'); // The element is not active cy.get('.cvat-issues-sidebar-previous-frame').should('be.visible').click(); cy.checkFrameNum(0); // Frame changed to 0 }); @@ -387,9 +403,11 @@ context('Review pipeline feature', () => { function resolveReopenIssue(reopen) { cy.collectIssueLabel().then((issueLabelList) => { for (let label = 0; label < issueLabelList.length; label++) { - reopen - ? cy.resolveReopenIssue(issueLabelList[label], 'Please fix', true) - : cy.resolveReopenIssue(issueLabelList[label], 'Done'); + if (reopen) { + cy.resolveReopenIssue(issueLabelList[label], 'Please fix', true); + } else { + cy.resolveReopenIssue(issueLabelList[label], 'Done'); + } } }); } @@ -424,14 +442,16 @@ context('Review pipeline feature', () => { cy.logout(secondUserName); }); - it('The third user login, opens the job, goes to menu, "Submit review" => "Review next" => Assign the first user => Submit.', () => { + it('The third user login, opens the job, goes to menu, "Submit review" + => "Review next" => Assign the first user => Submit.', () => { cy.login(thirdUserName, thirdUser.password); cy.openTaskJob(taskName, 0, false); cy.interactMenu('Submit the review'); cy.submitReview('Review next', Cypress.env('user')); cy.get('.cvat-not-found').should('exist'); }); - it('The third user logout. The first user login and opens the job, goes to menu, "Submit review" => Accept => Submit', () => { + it('The third user logout. The first user login and opens the job, goes to menu, + "Submit review" => Accept => Submit', () => { cy.logout(thirdUserName); cy.login(); cy.openTaskJob(taskName, 0, false); @@ -442,7 +462,8 @@ context('Review pipeline feature', () => { cy.checkJobStatus(0, 'completed', secondUserName, Cypress.env('user')); }); - it("The first user can change annotations. The second users can't change annotations. For the third user the task is not visible.", () => { + it('The first user can change annotations. The second users can't change annotations. ' + + 'For the third user the task is not visible.", () => { cy.openJob(0, false); cy.createPoint(createPointsShapeThird); cy.saveJob(); @@ -461,9 +482,34 @@ context('Review pipeline feature', () => { cy.logout(thirdUserName); }); - it('The first user opens the job and presses "Renew the job".', () => { + it('The first user login. Remove the issue on third frame.', () => { cy.login(); cy.openTaskJob(taskName, 0, false); + cy.goCheckFrameNumber(2); + + // Start deleting the issue and press "Cancel" + cy.collectIssueLabel().then((issueLabelList) => { + cy.removeIssue(issueLabelList); + cy.get('.cvat-issue-dialog-header') + .should('exist') + .find('[data-icon="close"]') + .click() + .should('not.exist'); + cy.get('.cvat_canvas_issue_region').should('have.length', 1); + cy.get('.cvat-hidden-issue-label').should('have.length', 1).and('be.visible'); + }); + + // Remove the issue + cy.collectIssueLabel().then((issueLabelList) => { + cy.removeIssue(issueLabelList, true); + cy.get('.cvat-issue-dialog-header').should('not.exist'); + cy.get('.cvat-hidden-issue-label').should('have.length', 0); + cy.get('.cvat_canvas_issue_region').should('have.length', 0); + }); + }); + + it('The first user opens the job and presses "Renew the job".', () => { + cy.goCheckFrameNumber(0); cy.interactMenu('Renew the job'); cy.get('.cvat-modal-content-renew-job').within(() => { cy.contains('button', 'Continue').click(); @@ -484,11 +530,12 @@ context('Review pipeline feature', () => { cy.checkJobStatus(0, 'completed', secondUserName, Cypress.env('user')); }); - it('In column "status" the job has question circle. The first user hover it, short statistics about reviews shown.', () => { + it('In column "status" the job has question circle. The first user hover it, ' + + 'short statistics about reviews shown.', () => { cy.get('.cvat-job-completed-color').within(() => { cy.get('[aria-label="question-circle"]').trigger('mouseover'); }); - let summary = []; + const summary = []; cy.get('.cvat-review-summary-description').within(() => { cy.get('td').then(($td) => { for (let i = 0; i < $td.length; i++) { @@ -496,9 +543,9 @@ context('Review pipeline feature', () => { } expect(Number(summary[1])).to.be.equal(3); // Reviews 3 expect(Number(summary[5])).to.be.equal(0); // Unsolved issues 0 - expect(Number(summary[7])).to.be.equal(5); // Resolved issues 5 + expect(Number(summary[7])).to.be.equal(4); // Resolved issues 4 }); }); - }); + }); */ }); }); diff --git a/tests/cypress/integration/actions_users/registration_involved/case_2_register_user_change_pass.js b/tests/cypress/integration/actions_users/registration_involved/case_2_register_user_change_pass.js index 609755a9..75b1f2c5 100644 --- a/tests/cypress/integration/actions_users/registration_involved/case_2_register_user_change_pass.js +++ b/tests/cypress/integration/actions_users/registration_involved/case_2_register_user_change_pass.js @@ -15,16 +15,16 @@ context('Register user, change password, login with new password', () => { const newPassword = 'bYdOk8#eEd'; const secondNewPassword = 'ndTh48@yVY'; - function changePassword(userName, password, newPassword) { + function changePassword(myUserName, myPassword, myNewPassword) { cy.get('.cvat-right-header') - .find('.cvat-header-menu-dropdown') - .should('have.text', userName) + .find('.cvat-header-menu-user-dropdown') + .should('have.text', myUserName) .trigger('mouseover'); cy.get('.cvat-header-menu-change-password').click(); cy.get('.cvat-modal-change-password').within(() => { - cy.get('#oldPassword').type(password); - cy.get('#newPassword1').type(newPassword); - cy.get('#newPassword2').type(newPassword); + cy.get('#oldPassword').type(myPassword); + cy.get('#newPassword1').type(myNewPassword); + cy.get('#newPassword2').type(myNewPassword); cy.get('.change-password-form-button').click(); }); } diff --git a/tests/cypress/integration/actions_users/registration_involved/case_4_assign_taks_job_users.js b/tests/cypress/integration/actions_users/registration_involved/case_4_assign_taks_job_users.js index 649c8ff0..60e4fd03 100644 --- a/tests/cypress/integration/actions_users/registration_involved/case_4_assign_taks_job_users.js +++ b/tests/cypress/integration/actions_users/registration_involved/case_4_assign_taks_job_users.js @@ -52,7 +52,6 @@ context('Multiple users. Assign task, job. Deactivating users.', () => { cy.contains('.cvat-task-details-task-name', taskName).should('exist'); } - before(() => { cy.imageGenerator(imagesFolder, imageFileName, width, height, color, posX, posY, labelName, imagesCount); cy.createZipArchive(directoryToArchive, archivePath); @@ -88,10 +87,9 @@ context('Multiple users. Assign task, job. Deactivating users.', () => { false, false, null, - 'fail', + 'success', ); - cy.closeNotification('.cvat-notification-notice-create-task-failed'); - cy.contains('.cvat-item-task-name', `${taskName}`).should('not.exist'); + cy.contains('.cvat-item-task-name', `${taskName}`).should('exist'); cy.logout(secondUserName); }); @@ -114,15 +112,6 @@ context('Multiple users. Assign task, job. Deactivating users.', () => { cy.logout(); }); - it('Second user login, tries to add label and logout', () => { - cy.login(secondUserName, secondUser.password); - cy.openTask(taskName); - cy.addNewLabel('failAddLabel'); - cy.closeNotification('.cvat-notification-notice-update-task-failed'); - cy.contains('.cvat-constructor-viewer-item', 'failAddLabel').should('not.exist'); - cy.logout(secondUserName); - }); - it('Assign the task to the second user and logout', () => { cy.login(); cy.openTask(taskName); @@ -150,7 +139,8 @@ context('Multiple users. Assign task, job. Deactivating users.', () => { cy.logout(); }); - it('Third user login. Tries to delete task. The task can be opened.', () => { + // FIXME: the third user doesn't have permissions to open the task (only a job) + it.skip('Third user login. Tries to delete task. The task can be opened.', () => { cy.login(thirdUserName, thirdUser.password); cy.contains('strong', taskName).should('exist'); cy.deleteTask(taskName); @@ -161,10 +151,10 @@ context('Multiple users. Assign task, job. Deactivating users.', () => { it('First user login. Getting authKey.', () => { cy.visit('/'); - cy.intercept('POST', '/api/v1/auth/login').as('login'); + cy.intercept('POST', '/api/v1/auth/login**').as('login'); cy.login(); cy.wait('@login').then((response) => { - authKey = response['response']['body']['key']; + authKey = response.response.body.key; }); }); diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index c642a40c..d7cd9234 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -29,7 +29,7 @@ Cypress.Commands.add('login', (username = Cypress.env('user'), password = Cypres Cypress.Commands.add('logout', (username = Cypress.env('user')) => { cy.get('.cvat-right-header').within(() => { - cy.get('.cvat-header-menu-dropdown').should('have.text', username).trigger('mouseover', { which: 1 }); + cy.get('.cvat-header-menu-user-dropdown').should('have.text', username).trigger('mouseover', { which: 1 }); }); cy.get('span[aria-label="logout"]').click(); cy.url().should('include', '/auth/login'); @@ -204,7 +204,7 @@ Cypress.Commands.add('openTask', (taskName, projectSubsetFieldValue) => { Cypress.Commands.add('saveJob', (method = 'PATCH', status = 200, as = 'saveJob') => { cy.intercept(method, '/api/v1/jobs/**').as(as); - cy.get('button').contains('Save').click({ force: true }); + cy.get('button').contains('Save').click({ force: true }).trigger('mouseout'); cy.wait(`@${as}`).its('response.statusCode').should('equal', status); }); @@ -380,7 +380,7 @@ Cypress.Commands.add('createPolygon', (createPolygonParams) => { }); Cypress.Commands.add('openSettings', () => { - cy.get('.cvat-right-header').find('.cvat-header-menu-dropdown').trigger('mouseover', { which: 1 }); + cy.get('.cvat-right-header').find('.cvat-header-menu-user-dropdown').trigger('mouseover', { which: 1 }); cy.get('.anticon-setting').click(); cy.get('.cvat-settings-modal').should('be.visible'); }); diff --git a/tests/cypress/support/commands_review_pipeline.js b/tests/cypress/support/commands_review_pipeline.js index a0a896a9..409be472 100644 --- a/tests/cypress/support/commands_review_pipeline.js +++ b/tests/cypress/support/commands_review_pipeline.js @@ -6,9 +6,11 @@ Cypress.Commands.add('assignTaskToUser', (user) => { cy.get('.cvat-task-details-user-block').within(() => { - user !== '' - ? cy.get('.cvat-user-search-field').find('[type="search"]').type(`${user}{Enter}`) - : cy.get('.cvat-user-search-field').find('[type="search"]').clear().type('{Enter}'); + if (user !== '') { + cy.get('.cvat-user-search-field').find('[type="search"]').type(`${user}{Enter}`); + } else { + cy.get('.cvat-user-search-field').find('[type="search"]').clear().type('{Enter}'); + } }); }); @@ -20,10 +22,15 @@ Cypress.Commands.add('assignJobToUser', (jobID, user) => { .find('.cvat-job-assignee-selector') .click(); }); + + cy.intercept('PATCH', '/api/v1/jobs/**').as('patchJobAssignee'); cy.get('.ant-select-dropdown') .not('.ant-select-dropdown-hidden') .contains(new RegExp(`^${user}$`, 'g')) .click(); + + cy.wait('@patchJobAssignee').its('response.statusCode').should('equal', 200); + cy.get('.cvat-spinner').should('not.exist'); }); Cypress.Commands.add('reviewJobToUser', (jobID, user) => { @@ -56,9 +63,7 @@ Cypress.Commands.add('checkJobStatus', (jobID, status, assignee, reviewer) => { }); Cypress.Commands.add('collectIssueLabel', () => { - cy.document().then((doc) => { - return Array.from(doc.querySelectorAll('.cvat-hidden-issue-label')); - }); + cy.document().then((doc) => Array.from(doc.querySelectorAll('.cvat-hidden-issue-label'))); }); Cypress.Commands.add('checkIssueLabel', (issueDescription, status = 'unsolved') => { @@ -81,7 +86,7 @@ Cypress.Commands.add('checkIssueLabel', (issueDescription, status = 'unsolved') }); Cypress.Commands.add('collectIssueRegionId', () => { - let issueRegionIdList = []; + const issueRegionIdList = []; cy.document().then((doc) => { const issueRegionList = Array.from(doc.querySelectorAll('.cvat_canvas_issue_region')); for (let i = 0; i < issueRegionList.length; i++) { @@ -154,13 +159,34 @@ Cypress.Commands.add('resolveReopenIssue', (issueLabel, resolveText, reopen) => cy.get('.cvat-issue-dialog-input').type(resolveText); cy.get('.cvat-issue-dialog-footer').within(() => { cy.contains('button', 'Comment').click(); - reopen ? cy.contains('button', 'Reopen').click() : cy.contains('button', 'Resolve').click(); + if (reopen) { + cy.contains('button', 'Reopen').click(); + } else { + cy.contains('button', 'Resolve').click(); + } }); if (reopen) cy.get('.cvat-issue-dialog-header').find('[aria-label="close"]').click(); cy.wait('@postComment').its('response.statusCode').should('equal', 201); cy.wait('@resolveReopenIssue').its('response.statusCode').should('equal', 200); }); +Cypress.Commands.add('removeIssue', (issueLabel, submitRemove) => { + cy.get(issueLabel).click(); + cy.intercept('DELETE', '/api/v1/issues/**').as('removeIssue'); + cy.get('.cvat-issue-dialog-footer').within(() => { + cy.contains('button', 'Remove').click(); + }); + cy.get('.cvat-modal-confirm-remove-issue').within(() => { + if (submitRemove) { + cy.contains('button', 'Delete').click(); + cy.wait('@removeIssue').its('response.statusCode').should('equal', 204); + } else { + cy.contains('button', 'Cancel').click(); + } + }); + cy.get('.cvat-modal-confirm-remove-issue').should('not.exist'); +}); + Cypress.Commands.add('submitReview', (decision, user) => { cy.get('.cvat-submit-review-dialog').within(() => { cy.contains(new RegExp(`^${decision}$`, 'g')).click(); diff --git a/tests/rest_api/README.md b/tests/rest_api/README.md new file mode 100644 index 00000000..11e27e53 --- /dev/null +++ b/tests/rest_api/README.md @@ -0,0 +1,111 @@ + + +# Testing infrastructure for REST API v2.0 + +## Motivation + +It was very annoying to support the testing infrastructure with FakeRedis, +unittest framework, hardcoded data in the code. +[DRF testing](https://www.django-rest-framework.org/api-guide/testing/) +approach works well only for a single server. But if you have a number +of microservices, it becomes really hard to implement reliable tests. +For example, CVAT consists of server itself, OPA, Redis, DB, Nuclio services. +Also it is worth to have a real instance with real data inside and tests +the server calling REST API directly (as it done by users). + +## How to run? + +Please look at documentation for [pytest](https://docs.pytest.org/en/6.2.x/). +Generally you have to install requirements and run the following command from +the root directory of the cloned CVAT repository: + +```console +pip3 install --user -r tests/rest_api/requirements.txt +pytest tests/rest_api/ +``` + +## How to upgrade testing assets? + +When you have a new use case which cannot be expressed using objects already +available in the system like comments, users, issues, please use the following +procedure to add them: + +1. Run a clean CVAT instance +1. Restore DB and data volume using commands below +1. Add new objects (e.g. issues, comments, tasks, projects) +1. Backup DB and data volume using commands below +1. Don't forget to dump new objects into corresponding json files inside + assets directory +1. Commit cvat_data.tar.bz2 and cvat_db.sql into git. Be sure that they are + small enough: ~200K-400K together. + +It is recommended to use dummy and tiny images. You can generate them using +Pillow library. See a sample code below: + +```python +from PIL import Image +from PIL.ImageColor import colormap, getrgb +from random import randint + + +for i, color in enumerate(colormap): + size = (randint(100, 1000), randint(100, 1000)) + img = Image.new('RGB', size, getrgb(color)) + img.save(f'{i}.png') +``` + +To backup DB and data volume, please use commands below. + +```console +docker exec -i cvat_db pg_dump -c -U root -d cvat > assets/cvat_db.sql +docker run --rm --volumes-from cvat ubuntu tar -cjv /home/django/data > assets/cvat_data.tar.bz2 +``` + +To restore DB and data volume, please use commands below. + +```console +cat assets/cvat_db.sql | docker exec -i cvat_db psql -q -U root -d cvat +cat assets/cvat_data.tar.bz2 | docker run --rm -i --volumes-from cvat ubuntu tar -xj --strip 3 -C /home/django/data +``` + +To dump an object into JSON, please look at the sample code below. You also +can find similar code in `utils/dump_objects.py` script. All users in the +testing system has the same password `!Q@W#E$R`. + +```python +import requests +import json + +with requests.Session() as session: + session.auth = ('admin1', '!Q@W#E$R') + + for obj in ['user', 'project', 'task', 'job']: + response = session.get(f'http://localhost:8080/api/v1/{obj}s') + with open(f'{obj}s.json', 'w') as f: + json.dump(response.json(), f, indent=2, sort_keys=True) +``` + +## FAQ + +1. How to merge two DB dumps? + + It can be critical if several developers add new tests in parallel. But if + you have json description of all objects together with cvat_db.sql, it will + be possible to recreate them manually. + +1. How to upgrade cvat_data.tar.bz2 and cvat_db.sql? + + After every commit which changes the layout of DB and data directory it is + possible to break these files. But failed tests should be a clear indicator + of that. + +1. Should we use only json files to re-create all objects in the testing + system? + + Construction of some objects can be complex and takes time (backup + and restore should be much faster). Construction of objects in UI is more + intuitive. diff --git a/tests/rest_api/__init__.py b/tests/rest_api/__init__.py new file mode 100644 index 00000000..0aa5e58c --- /dev/null +++ b/tests/rest_api/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT diff --git a/tests/rest_api/assets/cvat_data.tar.bz2 b/tests/rest_api/assets/cvat_data.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..f57dcb49161e363aa4d677ed5f288926ce3f5323 GIT binary patch literal 41539 zcmagE1yCHp-z~bhyDe^u`{Ekh-Gb|~xVwblvN$X*!QI`1EbeY0!GZ;X1wx3u{O?!a z_p07~x9+K_^E=%=eY(54rlzN-<;|SL1>{Uw4NTcHI+{?Op5Ffbzu}+)vmt_>0bBcY zwxEh$)=0O$>N#l+!0_-#*2C~`1cX3zWuEaPkbi3I110e4_9Of|g`$udzVvr4 z_987~A$3|w0V03IBb;i^Ug z-$w8wsz9Ykp(q&}n*bzPZjt3#7K;$x&mb(O%m{4aI$2o&SwraY_>EniEZ`q>0RWkZ z{|Es372vt=KLSZk7I6MA5-6cmlmaANu{fCQ^0YX9P!)t|*3?~GmN;nckcQX2|Ky ztm(ZF3q8J4d{e8h(6;R!^@airE^A^jI~bU+`c82nTLQ_@ z^&GvA6B87{NdDw41tC1*!}7P*xAXnd56AZ=kKB;*UqsNrX42vNr==u$wk?xk{dMrDK}?^UN~|2UMPR%ikR_ihwNYda znJoF6j=z|ZlG^sG3}sq-1`UE3dK=n|v~_@2^f?-7xI|ddljEoArEJGMlI&kc;RRZEsr$( zidk>5*YkEdE&Ew=$TH8#%&cn@tHt@wq(Fn3a>>4p5|{lUXU$7YparShu07wMbWa9_ z0TEY}l(I4dLsaODru0XrAFb=< zAVXmM0y5%BRQxRtqnnR%Tb!r^46!oMvj;K7L32&k)O**$aUzJS_Em`;(w<{o#9^B* zov3CTh4CA8{D;az^c2=NhLN2a9mTORc_N#;Y7RRr6H^>4n3nhc|Kp=5v9kp0p!V>OJ0~BaD zG0P-(oJK-0YQ7gf+I!K&QXhUFX963y0!><6rkScLeI(uH27p~QKoQ-)vU1s>Pv2?e@2tD%? zJL$|YfAshFF>1)lHmf{QeYh7c^<P3LYZWYU*at{!prrAutDJ)6XmOGCTKs$ zMT1gcrV&tj#NeaAdtr5Y)!G^0Y9k|pNHTzBl|9e2k<1fwSXU`=r#0S$=!Z$#+a}95 zsroLpW|_L5vFj(XH}aT04aITDd}oc~7_5pDmGAXD9BzdzUVR*ZzD_${$gqMefJm_r_J5qbM1w$5^?3s|zqoxO~ZLOm9sER4Oj zhs)~pYS0!xc$;e))<_~9(>;lC{Pi+^l^G5b`hyJbW)t|&I?V)U zH_nq3vPw-Jas@|$CThxSpyi1XZtij^Bua^`?oIn?s> zi?>bD$OYxGK3vSZz?KwSGjk5q^9V!46~7iK;0jEs{lqR1&6kJ0blEQ)^^#pz8?#MT zsHWLOFhEdnDt@3-9K8Dc?G+L3U$E$6C&?ds64*~=&g*Q;tH7>#{~q(86BTo#vto}^ zN2%0qQC{EK`ii{4`!DuWtoGg?pF4vW+&?}J2ft35qFQv{Y~~s5eORLD5$-;HYN2U% zm^dz)%kGO_Vk&R8N$pwUb(A{gvSW-(C@3hh9NDthvYQNoQn_3~-AvXrAEr;aat3{U zOO!v)&o2gloKUh7t}#2aUy}T2$0r5rL4R1-GhgC;5{IQipNa;*M`C&=4;5Xz!n?Nw zD0FyF7Y&Fm^*qTxRxXn^{D9#qS#gu=H$y9wphhRSbPO~GK zm%Bkv%)<;b^d3Q<#35p6l!GWHj+?-^b(J~m+w2m`YcrI{ciWVR?8+OP>^2js?4oL$ zy2ti-x>tA24SA}%cf0r8JO43xeN*=?dp%E=k;|UDQTw*JOBb0Emr-Lax7q9!RBTUu zv&y^LHha0$apB~hIG3oy^5V-WU!piz0pg>8 zNqptzH$`c?W_z8u1v>$6B3MGA+lT!Pg_YM3ZLqW=S5HA-TohgF7O-3(iC#QX*=MO> zVuG?^QaB53VVG(UNE_z{wQ+G|Z40n1DD8Es32FO)ur04{6HPW|ybvBDA~0#lTRZG9 zNw!e5D`zqn74_GZCZh;)Y}8iGi=m7bhS+@)Ysj1X|Gh&cXp#0%NA)_ixBvJ=3M)#L zP!03-HvIGYdHI}OVj78h1M4{subVFGkkjC(k3k zKj^^HDk34Svy&B`&1{H!q(YQWq(`N1%d0`HQcR5yL8>(hTRqTk)3{$IJeOtwS2c=iGdQocbc6kyBrk5F=2pvJ7jDX3kwl*A ztf=t*FO*~&HQ5{+x_G+9mT})#?5bh0hgAC5lbvJv*hUGN-rVV#4wY@mNhq?iV|&}G zH2Ao<+>_)^3Ye_=-0ZQEBF=`5G$Jhc&F#NKaMaaveN|mr%*LU!`|Zajuok3cc`J7G zL=KxOGxApE1a_y)vzPW| zP*qBgL{v5m;n;;~`aMlQFw?M^QBTE*crB5oTNIEu3vb3>?ut8_aLL!a zEMIXyYJ4PF1ygZRmOBZxfRWo1S?xJ$uzj$!vb!(n3sGPsWb39-Y;#h!Co1_SlL1XL zhc8fqodZ)uuMiB_uOp&?M=K!xTHb=!V^h z+a=LKCXq2Gc9Kw_%BqvqThERKoYB{s7s-u=|0c@45ihFF?m36d=+tFq$Ue#LH>}nq zw43d4JK(BBy30ApQ6MMVXZk)TX=*|LZv{w^8}5v$muX6%y3-pML7*vp!eMSstHD1F z&hN%zT_-2T`F5?&8pD{HAs(=f=n2@ZoL8!3dPj%dbFNirq-LKayX6c@cB7bK7##+h zqZ5BiG;of^6GS)Ss;F&Ot5hh|4eM8kz~S!CR*MylLPtYCi|M+;cLF`KwcuP6aVy-G z(~WTGFmL2wq9U&;#Xcl~eX%ef@{h zUR#|{y6&-jF2sl2kvc7ZvCVvvpe))f>_2ZHq<@{PkYf)?8|+;&pfL{J#*KA>U0jCx z1DDxhdTeenH?dsqzD(}~)P!|Pv;817AT0Nm-ykcXTIm~b{RbnBP3$JDej3xx!WkLc zjIkoqgprYvam}DfF7}bIpEGUr`d5okqZZEF_vC7sk2D|cw=m?=?K#58m65ChM}=96Wxo-W;s33!xdB2ymzSoYZdHzq$X*JwPei zQ^2GG-a7OC*GY+H;(-ym=3J{b8OJMk*g*Fz!bz2%X4<$i{T`OAqG{-wK#Oen6VdQi zkb^DTmSWFGB2k;Zt+-#`2Skwv=i|8@FYbU zgVf{7st)H*aViefvZp=8o~DvgoqzO;*OQh~oD0 zl&NX#U`L|R{={o+zGZlitVzqaY(KYUjW0o@xw$UGsg+C!|7*EhN}ro>bthy z8F8Pe9H}?*w0?&ovIS@tcM_)-YA4(WIac@)!pscIbbm)ot}P?C4a=IYfQz{p*pB&U zdwztOn@Kx;-%q)EsP}{?eT!f7N~zplPH&~_4s`gFiwiVN0|+(n=Pi`3jJ!@hl?y4f znsrW8w>oiMVn-FtDzMO0X$`8qziw7IpVl; zSae#6QXN+Cw@m1`uC1*N2==_!>2JpgFZn*(NmvybniN9OmiYV32kiPJ8$FW?nSQ%* zoorJHFvgrX;Q~pNOcou9E5+hOb%gqgG?M!F zde%Sib=2Mswl=3!1%>8&ivy+PW9|G*@p-7pEykbi{ac{f5V^U%G52)+e3IKw*wq+-#}IZD&xD$ z8&yVRu#@$(DAciw5|it~qK^dtd|spbom=(cN}N9qEr$9&FeM38`lVca=Ue}{RPq#9 zDJ`j9Wr%e)NVEv6EQ7JkY(^=;^47p0|)Rj3^%6W<= z;`2@SH+i)Ha)$~jQMT@1+&ryQUiLfUeEmN{6mq31zI%T*eJY7@wBnjo1G5c^RA5!L z6_Q)7d}y1~=c0X~%Wh7;r2od^#4~hRB+xbN3i>U2Iw(n5(uG&&V!>=i{1?kWSG|X! z(Q~)evyUU0}Z0Y7R+*hDqb2|H8NeJ5T^Vz|n)zlB4OD2|`-!teKk3hzG+AEtoz ztrF+k?l_4*Pt&X+G9dJvH~oV8hce?ihvxzx2=j`H()68P35zIwuasUm{Z1!+KVXHD6D4ka$UtXUu) zQvhNXXPK)Z)q~dFf+K9_s&$A<`|Lix$VdSH!pjk4K{qNQE8}&Xt*~ZBtL_Iyo-*uH z7K)8zq+f;@6T;Z#WtnEX82ZnadmY52rR_iJA=$i-9N~aZAN-v23qD~KA!1y>MvK5x z)Ze9!!t&_%nY8H;OouQ3%C4q4TZlL~%2CqYorpo!5Dl8-5 zRH|DXY2>w{lK@0>cW7LB>qXR9p|vUjhpZ4qkq{kOHq$;mmv3?^IsBnmukck_ma0X+ z2KY#aI#}N*%ipa&l$;O!X4krc@T8Z*vB|KT7vttoKo&kJ*V*0ue6)HS53vuyS-_I?!G6SM zV-2?o_4_VIu6V&i5-AiHoG`QcQ|_yd@{CkUSEvlp9P|zW?1~e;gFctH$dmqX%kpr( zqi_3S$gNFu){@+({0lO}J37_&O7K>6gY)6M`Q_%z>Cm1>z0~8|`)@6=p?{IKM24dq z=f!!`DxU|DlrDSijDF2hFR0U=!)2Z=OnH;5#9r!?lNMs6%zHl5jVyQDv^04t7kMcw z|2cMx-h0Ww*AJ7WW4C+lCV%KJ?y

    ?{;Y}RR34L7XBV2_H%ZFSC`vY5BlsR`hBPR^Y7{+_dLQ}5l-e}EYe zT-p$Zrdwzc~Xom#n*+B68z~r4%Z| zO58VJbDp($&OP@m`fViy60`ZrdaL$to!^|wB__^_Zv`0k6W2egS7^>b-lwbZ#zqUb zkxo1I5zyaDIkGhMpl zdak#929&nc2a)61MsFsaIa)*EIWL?&y!2zjw9T1g1=s4&gqc)X;a7jvdkmVd4YrYp z$^Y2@)=oxc5JRY_D`my?ev-@bOXAkJBh$rlv4|y{3{c=hczCz-u+Vd@NW^XmcI0A) ziHp!$;h&6;cu1OI67@CK?+~9z;fK|Ky4G=mPx}6ljvYh-VcQ$gx(^V7Vx@r{;K9Kv z=f`p%-9K>xj;&|-H`Yi7Ra*AAyc#H5K$GDaPG5CnvHm~SN%m%vDC7Gh3L1;nV9o-= z+yZt7La%xg)dsk;3ttt=S(}N*pzMHua4i4d~M& zHY+6)B@d#;^ImR9!j0n0t|C3Sl~)9V@C|s=v%y>ax5}*WS@ChAgqub7YY*@$y};FW zkMgyWNkRN*II~N4ZigP+W1v2o#E#73*AO$>rA0KWe7}a_vDKRcd8^-wBcos8I=lW; zs5>Ub29bjg6T?`Qik*hAKlrj6lmsqSmc1zkDcFwhKcCTWY?{_-biNVSI>@&7@Pthm zS`CgCeVQSN(eH+FUWWKoq{%;ZxmsKHvX^u}Ad&xd)k;$jGcMTGCcJ+2%!M8Q9u!8M z@n(Gfh8WE7NA*=6 z{BXWsHvt@1?=F8fn>;Iz{Jr~C5Ulv3N%6^^Lmlxzep$KNvAflCWF<%Z)g+BeH&}`D zb3$<@N27jYz?b`{o3!b2>zK##*8s(1^pwl}gOiV64MG{cBdL#3;`*k@jh=Uw;^hTF zEDI93h3dr@>|ZmjOtGRv#AXx28szKh5(CppgEzO*kwE5H$l8fW@^ZHNl)h@tJO|&Z zn>V*r#(GtDI@t>JvOH;#iUK*gwgk1yjx4p>`nIBm-_)oUkR-XgyGGn0-HkP)T}}{$2aHpl1-q6eO56S^1m2KT~=7?dy8!tWFH~Aztv5{@^z8|YaZX`js!v7yQLoQO~023iDi0?IPgs!kipcmZZn6lEeHSM_~zlKfI^6~DYcNIC$CX)elqG9oQpHCpCm zU;Zk&wE1CBi>XUlsr9@~x`;Pn&*d0q^pQ99c1d%W;HJgzj}8pw$Wo72jw6^*HK4wt z0&S!|x0v)Rix3}}YYW!=i|Ea56W2Ap&=o;|O>h_I%gv|JZcXYU)f+}_o72LIlU;pl z>KU;!VlEs8xcOW#$ee3_(6`G+TzcF=ep`^z74%Zgg)=2Rt@4huQH{dh$yBrF(B9tO zE|7xf?eV)Xl&^H)$3^}{*G~l(mcCXqAw3NBjgE8P?8#cLrJyc5?w6s?pm6Bm&yVrm{;gHcZsN8qrB}7t_v=NvxuF_ zm3>2{Jmn6@CBEX;`B*;PpUWG-JO8zTZ@blz{^|4I(w6&W>-;h(9oZe1a!i)dvi0N} zD*5f^l9|j2s7X7dUsA2il-y9J>Izf?T|4r&B8`y+YW_o zX0O4gzoFSuWfSy;!}&NAaQ;u*KMWr4c^NoP(839YQhXQe*j+tRp7it5jP?5?*^K=r zL)iotiEFfV7HF(DW(WCbZ2lxc;In-Ao#1+Ks+^3?NaqUL)?ksMI)DQUP%qtWFu#7#lV zrl ze9u5diKGI)QdW$~Mn{WYBU=CqA|yPC;DRxq`rp}qKDrmbKSxwVTuH z%I#+Ulu`at&;G`gi>oU6x~%~VYZAJF;qtnJ2@uuMGn6znU3RJEdHhP!1i!A+xDX=w z%rr(})@T#93~01ci8=c7)qRV2q@*N+mET~LxKv57tGTI{cN%w`_xSYTNwiI_ z{@{SRZ@5j_ts*PB6#NJg4SoQueMqdrr~RQjI3uaXa2q5HMYqD>I9!XJ;fF{NF0&c7 zFMnZH8{W-1uw79=%$$mDsbJ({sCv5(q<;TdHBpWeep(T;& z#!xb-`6X#sy3|n_CX<@5w^tEZ*wt2R+SivQOauSzAd-g7Gp8IRV}(JDd0XV*nnEf^emKRGE{#f>^WYeH{7SMH@M^ zlsu8OEtt+&6i?qUD};48O1NS z8jGn*LMcd_5u>}AVhs$@gNe9U23N3=s$&z>;q0Dwrnrr3tv#V)TrX{yApR zdy;tKs0fc|_G_w*ngP8+L2U?Xm)BM!yht>jIw5ToTD#v)BXZkmOZ`w1d&7qsRvq!U z=RG0g-ZdCWa>P_5&(b9meOym+LRqOp1uy9$eu*_YK5R4do5(TdNQx-rfz37nUwycm z=@Xyr!Kd!BxtKojxEPO|%bxTEKYDtm7#&og)1xzsHlB$*g!HtZQEn!s7%ELb=~RlX zI*6LYDWW(mowZYd!hX;^Hyd|{a%$rRx0RxkE)N->t(z#> ztpF~p$5q*kq`o02vlls`>iHPdPMt+oezcom+GM;Cn7&d3S0B|iGvfw=7UC3`%Cb;^ zngS-=nRASGNhS>Iv7Fd=TzFi#gsnBoc(|42o%5HPoJ=;3qnSy%NkZ~aTYcMc%-Ps1 ztT^0yEHfN3swzmPKqi(Ut^hQSdlao;SuN{pDI;t5ocq)Yu^{z|1ginC{aSm}c&!d(-#A?D{zjhw%NPGs%yDc`>%1vUBC?jk-d${ad9|2)WLiDjTeNZNt*xe0JCl6c`FS$`uJKH{ zeR(&_sK^ex-A`z6NWsbjUen*xUY9V-q-w`7goh@spkC+znM8~UI8%oftgbt_HlSL% z;`(LC$pvM39S@9Ps+AU{vL2)2M&-NNvJ)1`Cg&5Ql`2Ol7Tnxi1#E>YyccH1zjYQO zBQqB;a{ibUWWf|z^gZCP3H|lWfxHeDrfN8ZkojC+4dWF9aA_ey_M?~p&0+sLJpAw0 z#wVzuzHi?j_n>sRnG%5N4*t%qni5=xPHElM6BO!(1jR!K4W_pw2LfOZ8%oV5r9Rn4 zSL*$9vLPgXZ!usl?x&wGQH(*<7^y)?stfLPpxR@Y(B7#6`J3)$|oP^L#M|3;Nb|J|>t(^8D z1Jq=i&Iyh@oev4Y`5(sCE}DEcY_6M|;+vvk2F3H%zl z(vB6vZz$8!SlV_}xOg<^3dpPQCI<-{ZZ-u$5u|LG{3f~l26_@ErjU3>JO)i!BE!h3 z2F(mAsX%gW)Io>3Q8kBChw4mb9IfnUxT!)D53yV(SpmOzg;D`c2RaG49BUMACZt?H z!j7X**~~X-;mn#n6E*)nkgLgTN3hd$h%IehEX!Z7zy1&IyRfhLw4>5_Z@C>86%J}j z>7yk7s2RO2;4Hf$u)2M@G3p52YS?TCgTW#)D`OVF4V~pJno@!d4GfQNWS+GDtT{#> z1=ZuGBgcR^j8H+XvGtRvkqU$aa+}%7nd-8Sjg05j%VPPK=os!c-X~SVzYC|WlzT)2 zgT5QpFvpJ-@h^H8{0;>HSk;ipB4YR)P6V^~auVX_io5Z9nwp_y9-Z^<|IR)9*VWbZ z-_lo5P+-0<|No1;Q;Yfk4YQx;|5YM}Ak`VYwdLrVW4z5mevmihm-*V!W|DEtAJ z@frEr@ok9J(|XtUzN_Q$fdpx>P5pWf;C zArl%TB=xi2;PH_q(D;N9SwJ>XrwZ1wTuE^m zg{%+cy1D^ju-Wpu(Y3}nqe3C4owl$~cSu-#dZ<8g`w9zh$=)vo6=n$Mqlb9GmK_kG zs@aYPG$Ud(Q`IM>kCMUt$h6txOl)D1i?3+;vx2N?t9)CAO@K}DrgwY6XZ{5-GghoV z4L9hxEu(`|g$BA-zD$&8Hx%!S+j0akDN|>s9QOyt4R_*y3Ho=h{N|nk4$;ojc!IKs zT3uN?MS_E6ZaYOeRHAoiTIOIBLZDuLtgw6(E-}L-c`W4ww<-diF;NyG$IK*$YLBU( z8AVzHlux#aVq)x5$8@E7^L_Qt+MmWxtX)k`zjC18^E-m_e}w*-bZLJ}Z`HeXE!}o0 z+C{w^0@r^jXo>M-1V!&2U9=TE%{r|QC~0Z(Kd0cmF0vHoDToW4@g`PN>Xbb478Etg zsLH>CA&x$tdIu(RGVM1NfVbHwC(eKk$w2rH-L6$VSWu2|@iB2UH%wE!VA1qEp*~D# zZs7AJtJn9OiJ63&BH>*AJ5ivM+;s$D%#1mTBAg8PC+c;|h$plT%gxBDZ!o2q3mRhmIZf3YP#~K{<4aj`<7_!vcsZtvK<g{I8afh3}#nqH?7J>q* z$DxN&q=H`VK)p{C3zVO@vqW*{)p?#%<@ywOj?Lygx)%tKj5VD-zvX7b=CinyXH7G- zG$Q*vc0CjEddv@xe09MP|3-X45qV>iasK%l{<8rcDJ2_z+t)3fi5e{5CV$qI$Y(kf z(^&>6NrdS|1%dnD1m8aNN+HYZjLwGNGqnw{vFW{{W)gY2xAWYL?YL;Fz%>!-4>JqE zg?V`mh*%hDL2a}6XDzn6+(40YSy=spBILOCWCnsP@5BI%VPGUIjIk)yS9<61ZSTIa z8~li3h|OVJE_g~$&)|r{BwcS~i9-_=a#D~6()-I~hJWKPqQTfRZPfHmOw6zM-_&3< zeXS4Q#VkhKgg5w_HW^rLc3m4a_qqq1?ot|$Lh}XDxvQ0Np_0_LeI9!O*8?6~Swr}` z^F|5xyJUIU70CRpbpy0Ts++ICyg4h5j?O}6G{vmOR2GeJrPoy&X@M7fwZ$SbJRr7p z(gwyZN%FE~k@nK+iZLlW#m#BxE=bB8{MErhvlR{~(yTgv` zEB*RF&*|kE8atyddi8qD>NK(Tg;**=l@;3hEMn)j>#6dLGWqh15@KJx1S*M7Df!1~ zZUZ%oz?4L;rV1R@-&{RH%*^nZ)wNdG;h%+=`*h`LP3=ki;;}6TnSDx6;PT1Uk+Krr zVg@CAi30I1eo{Zmv5L=1inz94rqw_SILR;!0_i*0NGr*XHkrI#6n!5_dL~GKkhY$b z_CPezE|w8V4*68x2OOm|d`n5ru8S{L#3?c%HqPj@z@@+*acIWkh#5JKxXdU*N4C;K z!jH$mYs1V=2b6}RuCRZ~H^K4AKtkpQu9wTB#zZb3_9(;~XBsW1+}@Tm5g?nHkPZ9!>0z zBUuGEqs!t5WE?G`v62ElDwM6CcBF=C<&R=tb&F9*L&q9dCt4iaddm7~*;uQ{d%tQS zri0>e=hiw0l;1NJES&}zS8%*HowQ7TXqw+*@j4^7isiN3*qSubHtpS|s9h+gxj$_!KViQ(Q0eEa?o$d%`yod5h3i_pRDCKAH6|#C zZ-BKN1uf{j$(H}6tD#tkt)-F=Kgwbv>BW%oSRO`gD;)c+zMYqkfBF_MHd zi^AxmnC;tvgrD5U)czgx8daes?{7h!$zqMd0=qRe=D2kN zMjS2;csFy=LJTY|gYSV3-J5ewbrgY?(}dM+;oVtZ5nllyd8pXo!hH^fejixoIOJ71 zXGt*L^splF@GfVnHA)eD_+=9e*Tl~Q^$zb#*yFz2=eN=kvQ5XxkObY?eq9a3NKXiM zom@+4>*y?7ImNXIo|E&VC#A#Z3*x(;PnpYY#9duAV4$#JF!Nn6_2e)K20FwG&*{a? zbu92t5-YC)r3x69Y6nr(_v(8pEP^;@%mVXi?33iSsSUaXw~rvRVqbIR8ZjI_-ML~w zksq#qdSJ9WeH{Sja^McrZ z`hs2KZKov|se^Z(@r*0WwnL^j6cZr@l}?0Te19rUtOHs5m%|t zaB+(5b-+4qlc&VVS zXJ1ZUPYq1z$lt_#SuI<9Rgbm^>SmK`9HiuR)!&Nx<-7~S9Wl;1)W$+C)N4Mjh?_pc zbWRj=^4fEhn!*({vG&k>{BRSfgWog%ITK(WJXPqvx6sA9FN_eO-M`%q3}7PzKjPs} z7->#t%6h~!=-wQpX21;xX>S_~qdSdZv#s0bJJ&m*Ytz9(;^#Ir?x4&G%A9s|DhC5o!@?g+_d5S+m)Z6H_6FnOPu*80dz5nm#B}Hm9fpgPhIE);-&9)gQ7q9?B>2r!MWoNH zvuh?L2OJNyz=>4}Ffbj2&)rQ#0i$gYDSU@C9YqGP-S;&C+g)}q=-Beb9R1QtnpqKr|ZORDfKsU5~KRzq~$yrYmv3ZU!LvPX%hp^W)Ol9ahM zsY%@SO7T&%{>@>3Tniam@hOpmlGD*aY~tK04-awC^3DJbI4dKARqL>?u45WC`XO$9 zTDpTq7M1HKs$fLDt#SNerIY92$OW=gA%!qj%sR#YPT0B6UYsg-S|ix221 z7?_d@46n}3eqen!7(`rEx9aTUcdZTlqLNXua+T(ZO!xwLLA-*z8R$5A**Prf(9*D^ ztiZD^KlGbx%nK@Mc*kQ7%2Y_)6KowE*wGuT3srWcj_S8(?o3CkK&3&wX zQ_6TtuIudP(A5?-ma^)gIeC3r6MFC=VjdF@Bx{SxozCHoFRUAI;@ip!br=r zIYhnUenrgU~{@W2d4(?=Ks1O1^R?_=(dVw`pbpG^a z%_ih%%Fsy9zdEr|)$xfW5Z|iy%LyiZbk5j(RCkFrP~vU3h4T+gqVlFx40u*W04Ff( zxydo>IXNfvNKN|kVdY+1p_^T)6ts5*e%)Uj9zB5tagm2@-kFquE*AgeF;&WBw zBFDENxkO#F%-&p8F&HXjZF>dcORukB-4^YZt(hsk+&A#AUpjpPQQTVb7Y`&P5EP@M zrINi@>2dTPOwJv=j~}b)T&!H`nW#Ix8I_)d?w5ZdZ9fJQjsZ#?b~O!(rw>13nm`5^ zE_V8rf7W1`pk%xh-)hrjEbjO%&nhj09X4gq(6vpGMFtduj_Uk`D>{x;EbP-Uzkeja zjJRJK6chz*RZMBSrD4D!Y0`J_jFaZ7M}7H(nDj`W-wM-WXU@+6nlS5O930FB@c_!4 z7ZsC{W7g_W`Sa41xDtspT6k(pdd+640XZ+aD5tG~c+j-d#52zM>P$j(H)Te~w(84r zru7d(mg}K|u$7B}fM#jtS~qSp8vf-|q32%$tM9!TcZ6cdMeF^w9zP5)DSRR`PLE7q zc&k7i=iIrQA_MGt1`E3h*e5X2N(o#ZIlv5buZ|I7^C7(nMT+~I9Mx86Mn0aRlh2>1 z{c9pE=Azy|fB^9?IzwvWN%=!~yMj$<<>m^?OHKu>tpAoBrs(^LiG>N6x@8W!keLeQ zB}2l@AIGP1EF-=v2^Yr|DS5T^Vv`mL<$?>2dNs=ewp9_!6P%D8P5e_qSi^*0FCI;bD`UrtYHcaA%e%CTI2;o5g16J{7wfe5(w93xHtcNaSi~x0AJ0~>28X{4>xdB z8wMoWxeGSC(HbuG3lDjzLfY~R2)8|k zL@*eGs2g}%zy8YDbF=20(qeue|3fB%Ej3+>$=!&dT`;a;*0#ZF92?#HyuSKT3J z=ebfpo@q(0bLWK3q-8t`zC(Hgeg){vhX#LjPf8$j4S0iBF*%xsLs%uaNi{*C@;b=* zfm-#0i*#S9`0otzYr&q-U0+;Q@acLVGYLr5l#$bj8tl}*&_pR6hWv&yP!ex~ z%UB>UIDVM3w|FI$nb3;1$Gh=9j9~;5owF^ zLmg1E-h?*$oJj=7kH>S($--|kB!BqDAy|fMf@st??o-bkrGYA=yt=X)%CxeRI*A?X z)e1>{n7NKGOt&W) zCok66U2PVPcw&k5<9uVfrA<`5ZqLQQ8H;fJmb3*whdY33KBler^tSHue0kX-;l7Yv8 zeLcFK8TZ-pHV>RB+*Nbn#IjMwwY>vd=E&9zeGJ~-vg5u{YSk@eeK6#y0gwS(Q5oh9UdOZJ8Maj}; zcG_y^htGt-{i4=+sRaGLYSFUE65rmqy*D!pJ~j@;!-y6sgo&3)Hr+n%pxbu7AhC}y z_IG6;sq6wg>XJs8PuhAA7(S+6X!*g7M1aT#d9V+SrOGE8Lsa7D>D z1tf2&5V{v;A|(PfB%9NHS!6j7k>(p+x9Ro@RL9rwO*gCu!0+t>`NsY3O4TkNV z&#YkaSdH1OABDf*5HLAtG2u8>?4cA-bmoWbsa4tEqtj#JQuxO*f_;ZsVtVq(qeWTk zFB~VDN-GT04u`_)EOS#V>p_B_*wAjPW_^HR5-9B?xMxsM=($bT=dIuQFxP_=hCv zlR<-L5aKTgBo}xyRt3#x%=YKp3@3!Y)SBRVws$yAtPN8wl4Tjc5={14WGv*QFT2hC z%6A!DOl{2m)OgU;m%2)=U6T_HXN#jS5a~3e`;EA~SFvsu_k=*3W(&qRntPV5GMy5J zp^|$Go}N7#1vUB0k^k!#Zg$QkoP4L@N$fZg)L?_?b)`!&=#y_wb&WTpzt1o1-I$it zBj$zehukG8jK|@jyi3me1J&rC2K$PX2^CAHCeHB(e?(BLB?b!-{y>WI0fz4`i$&jK z&Mph3&#Y2UQ0R3($=jDaSw;N}_xshNNBRVv0o-)0kvAhR*ryl?8gKFG4-AZXNJACg z&042;9LIXRz9`ML-+d~VWF8K72M?$%lUW%?$U6w2yQOleC1wv`Ls5nib;p4XQk?fTTLZGUnoQK=}v> ztOyW_MFkwNe(wC)#BUmxIRik}@CEw%1Re_dJ%z)E{I{*HtnBhs`fWnlhBa!DL97 z!e97t#}XhMJDfu4lA`i;u_OK-cxQ{Eq+^is_3c9BBtdk^?3<$t#&iYeP^8qK)8V<# z_T6=8(@=gjQBB#Mj}VwG?SH)$ZDrP4p~da?(W!Zkas*b*M(R78r++S=?H&s{*LPK% z2bfwM9zMnXjEiZHt?5?o(9mOZ1AWzC*>fyx%o|kSBc=wKh+#oE8F7 z;7`-`8DgbaaFyg|qin)+rp7nwy;iu{cMxdgxfk*EgkfPAF+x0%6DNz}XOfKk`ZwAs z0K>~Inz3XDVG{ys+Ke_p#hVVRrqO5!mg8uoR^BE~>C_iv&K-_pTJB&=|ih0#tHwP=g)T5P~rm)o#XX0YWMky%f>32{qd^wdaeM~CFyJUKkJO}wWwjPLHu{Z97y_(78QP4*5|BAw zVm7$5rs4|%-OEqYfn7Ux8u3+sPq4%FijIdW=JyRslliD;{f^ls&9gTZt3kn>$w$-_ zx5rE{FsKVyK@WI5TU7|t{`t~Du`eX)26HC(aL})p85Lx^W!Z9uzxCC(y0|DK3JLsh zMd4n6J&?2>t9|wuqy|N9=K1RTTA-5T!}O`g$j_qccup50=QBYPBV0l`gTky)#%6Dv zh*v}#!-)V9*J%Q_Pwan#ouLo?Cm-|*q^)DSIxcyH&aBx_v~83c$z%fy=`6A*DN2O( zG-?}}fopz=E5D8wY*u#OhcR^C9(}(M53iV+Z1vx1BJ$~T+q+$UmCa;f*~J}{Bhra9 zVuBTW&*r$I5Im5yw!Nmi@|#y~qn4Cx#nD{(Rq~?~p|ine;$=W^G(PwwrsEuZ*U)69 z{MCmiB&*Zrn9?0OBBQZzi7=(dWN>q$JrTsRoKSWh&eyo{tG+vTKqe5eHewTTm~22v z;WxO7#yiAF|EhpaG-*L#Cp3}6EwGNBHV^iP{%vZCj< zYA*?qIG%KSXsdbLCPN)yakeK;Z|R%phIB24i?$-|aAf&0tc+EfoQ%J1G!U=eFHYuq zQ5DI06UaZVKPDS^j$RB!x`x>&YxMd? z(4)k@g#|DQp}Kp)$H~&Zc2Cf9V7USE~16Wm{FOk<$|NAl<84iL~tzLYPoZjDZ+y zc>Vo1kQ5nFj5M+9KR1Z$rTkgSDedC7wEG691dto2QIugkmcJ;NgZ+?N%0B1h#@-*`82Is$$DJjnR80{@1zh# zz!aGgSAY+&(rB(VVkvEK$qoL<^Nrg<0iAq-ptK6nqmA}}fE&`eW$+**BK?Og(cRV(+H9@Ve2rsg>YPks8dmNDD1 zp9Y?juGhtChZH_~uDiq~ZEMSF_%g$3e)4N}KQEf{F6SYqRHb8G8fyF?Lm*f3j*2Sn zJMls*C3k?WfYXJB4J|H~Qh{`4eK0VfP5A@?1pphF$Zo6(NWf22N(gi3z!Te1I#t{q zkx{|q@9UUuL{r`WC3!zJ{k(+SD$1MtctxL<2696Ee4?-_xjx`}`Jkk*dxMkweg`7! zl-mhO!$Tub=WTF}xdU9o2|9JsWdExzovOp0bGE_ssS{UpL|w0(iFY(j4gFi86lJSm z{(hFBELaw({2wV9K_>O=3X6$@2j;K^a0$F`T5t^Ef1GI1O3AG^XYu)TF0yKj9}Q>duK#EQC(20HP(^wQo0e-(dT&+ z=!mtE@ryhNQkfviu*&YKc2TissK%duQzs#P9Z<)@ z_IW=Di^{8Ki9({#Ht!ENb-ohyRvYgGX^)K85g&mm%?YhWU^iC@@Ar)}xi9dBw#_t# zV#EY^fO}cLgZ8CWpR8804|fqn1vi1~YGJlbK@^;=ZNKK(zJ>F+fBsvl&VTU_9>|)f?|eDMW@Br#Z|-7*8#dghIZ>=1>uD+|7MFl zbUsyMx?J3}zV{_GBd_WHz2b&X`PTryjQ+-TuKVv9S}m z6plnGg-#K2Fs1BG`+V~1w3EO9b*hO_=rMM%xjF2EVFRvmqu8IgrW+Hi?L$I_k4JP} zz?^WV&OBex3ivp{b`DU}CIn%8guMO;g)3do#(JlZ0MWAYtg*NUR9s52!Bvxz4*uzM z*U*Kp;5q};)(MAv)wmbA(bXN%2R$)K@4@w(k5?tX`i8kaz9OO_YYdowDYsabsFD=) z?i4ZCtHY7?TT3HGCN7l(HH9Gz97WaOz?wip=NJk@-}}T;{qB3jT8fPdQhKw|I>GM_ zwN;qzbpusIeLePshP2btq3&m{0x+>&Fp57QiyDFWi=gY3$R+2)DyM{Hw2T9-5#U*N zfpa;7myg?NfFn1!w4UL}b&D&B-~Hdl)#?S}pOm~^A=LA9_quc5v4$o~2`}8L4a4f{ zUq~Dmh-F)U<;V*RuEv$HA%3}k6Yw1(6PSfmg3bt(NYuZYOI$n*kXftSHKFSpE> zj^l$|2ZrUw>l$=dOw8eW{XT78*&YDUqWWy2-o&9xBPHm9AYyD@UqWklwp!!o~Tc9j~qK@2;NAT$!^<@AfztTbvcH0tUx8=ahwD8TaF-RCTS zLiek;Wn^=YDiZ8^S$CKQ#u1_ShJjkOh{av~fsBB{bgafow*OY%JQWKkqDu6Le{TU! zbFPb_466Xsr(?l)rCmAPxIa{|qJecb-!i~7&86WMWLAgTOQ_+-lsEuNeUQgtH{~pG zY=(!cPLi^V2-BW5V({wgq!k|-r59To3jw78w9dIWJXh7m!^&G1Q}IqzkKz=dv0`rM zeGQE`HV)#gRoj&KGZ{6(;#Z0>-@}(B*qYYeh#Fo~QF9;oe79{GlIy65b*)^8Uhft6 zdWMCQ#J?t?d5Fh1{YJ}^7|>h^Mon3`aOxGG8_mP#=M4lZCm)&up0gp zAhL4(-n2LxDw%NYy z>V1m%o#lRO^3T>)hycU5$LVF&$#cTY)WMZlci)R6Qb~wbHQt$*G^yFp$xvveQ z{-v)%dyS?jviz-s;;_SC`PR*TwjJwrBOur{K0V9U8@9x|sr{>(Re0%?8-5UWE4ltC zFJzr)wK6(41;6JKo|mV!B)7OQbovY1$;B!5s&Qs&e#gMFrWeS>bg<3G?d(VJ0B4?l ztR?MvGSwdB>XK0Md@PJJNo5^+XwhD&JvlHVF^ctojzq%peNEApO?j?hg_YRYWs9Nc%S&F1v}Naw|N z5o<7KNVPeSbRyHY!Ek5{&t;({lwM#kZ;r_wm_=s|ekiahQ{jZgkNA}K*x!z^U=Gc za}ow9LCa0$(ul9|tbP7``}kJh(tkLoLPRLp>rzuL z0If$6ZBgUM!8QMut>>xi$6=u3nM z=_Ll-tgB}ChYOffsImNUT3=YtEr#RHdiYU^0*R_%$1-1 z;F0bSailm%nA^?P0YufPHfI(jezrcr8M)vj+ZF3vp9Kj-h_9dbYnA@0954<~o1x6l zmK|mRS%HKUfo}5b1!jb&V_#aIW4qYJLb92a%~S@;()aY6zhs1{K8VdMVlpTYsz6F? zKKS~$mm0P%m}631$gi~&KInzm-ZKaqY#^~kSqSR}dabCo`R8)5>BwKNp53$|bRa#N zixdi9imAtda759!L3`9DJ= zrVQ=U6ZOHItj%F)BJvvykOB9_fohsA=$8B~${K6db65X$dUDmxJ(6ZGr-PKmDB-yz z$|K8_Hn$85wG-BLlZpJ6*pG@J1pb@9!22B#UpdVSue&DLTL5c)jaGHhB_ zRV+UjnNde6j?tX;JA+YQB#T;7G0n)T(~aM+<-x z_}h_b_3%oTEAXDScF-%|XgB}JcyVI;J!`$H_kjl4ngQPw_4yqP-P?h2q( z+wNHVORW4*k*)5=G_0cY=X}nvQZZ^<`p(hnJgjwMRoafuGc1g2r8!9ZE)<}(J&}HV zXp6Xhai`{`1-E}p6x2pgS0vdsHbur7nGCTTjGS~y5_RJA=%28_PvwC40~$*>h7fQM zXL-b1Z+vvlrYd(C_5Y}DA2>9|->^;Mx%VbBCUO_fFKWWy?_XuT$whEjpm-4Q_$Tss zVRdMMK&-Y5;i%IV1WZ+)Mw*Gb^pm5t86Uku6OGx**?~7bs^q|JXd%Zz^)pzY$4rR& zy$a^#mF3I_Ccl;C^KZgzS<2~H&ad+d?c?cs1R_KAPE}~wf&{SdO*Oq;UyXw>n3VDM zXt^hDQTZMZ$~S{st)hPhFL)Q$89z@YjBq#l{mC9^epwV*5`gTmu9s2tgLyvTX7V3T z_S+x*X*{CZiR{Jf65VZq6YY%QqB>RbPWz*&VsBxQkYvP4&MH|C%glmXbjm%=uam=H zX1pwSU?6Ccu7dx8UI7|VbDP5y;lAw!TFdw&kQGG;p9E5rgFx0I41Z#cYKj{wXDI8H z@f&b7@xMYPG_nZ-=ZB;QXZ^kB3;%S7jVQK`{k&uMU zDr^wS+z{uz{Ny!%6{_wGAapuD;&=VCGJKQy+lVl1!i;;7PH$_R%}U*Yef;#Hyx6<9 z(EE^#oFOd#Q&As>;q4TL>g5dm4HJgCSy&%G?tseX4X;bwkrJ+9JPQYU;1rhU=2M52 zLYH-Cf=@!MrGl6RZn!6bDQl}8IYsKlvi zZxyLQ7A&;dkCIuNeTL2N>VbKG03R@vc+_exyLGPebFU~gPB3N)0J$`%bQbzY2F;L` z3LQXs=1w8BKtoK{Pc`5z40t$WtScO6IRwfO1l*$BF2eKh6YBijGvO$G0VgOqsqKOZjPT-yTeLt zOncAedmm=g&}i+YTk;43&DZsB86K)xb$JwBk;iU^Z7CJ#l^d|dLz2y7y241a;+~;? za$&p3F3G>Rmfi>W`R;37R8hDUX8vw06E%FgfN8;Moo_f>i(^DxQtrrU$ws%*dpw9d z49k8=^}{<1zPFGooM)p5JHq|S55m$%|63unj};|lhRIhaJA~Llv$*U>zn|ZOup|US zczah0<_<)A-=EdA(+LaWhQCmr%+*;keS3t&cquLAyNN~qJt^dg@HbxL z%ksEQJnms>J~|yNO-3rFl-vAACK~53tSY+LJQRhuE9#N(LF%5II&`->T0yxDbQ(_j zmquskNkunb{LDa8TyLqsisO_3ZrY*x^K!X5-wYZ2JN;{vd{9btcj+s;iGuI0ZDJoU zl8j*|${2w_D+hUH2?~PpFPc@oP2g6+66da_M!5b)gvD^WlTQ*swNQwRFy^4(oj zIKsOAFv@v0JM+%^r@_6p+(r4G&9ax(Z<5U(rguIE1@}X|RjNCmQ{Pq1qvLuVuBSxN z-ufx+>&lA$raN&{uaHX{XUa@I0n1FPO^^!n(N(kQ)KE#F>IAVL@Ww<% z{x#S34`nkqT*b(yN~)V!>*BO@V&rYJ8i#AI+!y6xpSLTm3UAt{lSHw@VZ|$ZFx4u+YO{i%p^k5{ zdzgvG6!cwvk=BInPil(h-!+Z6|KW%ab1f>0{s-jECh*9uSVFXwrSGJ&zIPMz_ z6Q-vW+eykicYxw3yDXZqyXh^3VC*Y*I!)8fn_%?;-9K5;w=j{vMP@@h?2iLq)x~=32ZRZMVpCqZTXu*rVzcU;Nunq`gCE z-N_2>qbtO=ZKZdDTv-fB8JedAw;X+81{x3-5)16eEB9ei-_i0&6K6sqcuzO zZtFBnfDgeA+g&diFNJ^I8qH|dnGTvuRQY!Jl~Pvt$ZgzVHcyf5_{oh=Mt>P1o$89v z1=%#c*u4upuO?7u6c_EyG)BPZ&~!aaS_|=2kl@A9&J72f>7{VfbE8!RXu6M z@dp~MB?FHkShU;c~ZR@FVl(pO@VQ_W^g-s`#%4ew{*&sts$khPk!h1*QXz# zGrUWK_oGd(Av@>r@PA9Z;H%cI!lgL=s4?wWvYU6Qa|P`&UTDytH9CP3EUmwbdrfL} zjR|^kK*C^Agt&WpK+0Csbs7w5nf*A3uBIJ=LxS}WQ$IHg`As$%Gm$lu7~W8*4@SH< zpSKqW-H=j#q7f{LUaIW?P9c@gh`0$Xms06!u$@s^Pc-I9LH^PX5bFW_i9N*$cy7{$0zoa<7GLHC8tYIq4_@J2hpu28-XMC8Tf6wcnksled;C)C4KJ z^2C)Gp6f^rc0eQrKF;?)u%?QwAy4)aVJ%HS4-Vk^DOJtm=GAjn;6t*5`TANCQBddl zPJxLO?H#x%xEYD&Jr53}t>Wb>3x98j%w9t5(zA7QoxHa<1YbpO@?UuKU_pIWpqH7l zXSk#V{hO^fxKz+T(EK5?E_t7dQZvWbCw*g0>}&arfZ=bmmb)@nqy7r8%W(x-^_DuE8!V_d>ZnJ?N{c>O3;^XVsCr5oB{+9aY3q zlP%6GQN3e1+;#WT7TGAZ3wGeQ z`YB}qlwL$5Zmj(6BtO9lhph>AV%#cY81&L#rwySANh98$_p9Ik`F1>Hya~;&&zEf^ z=z(aR+8{SufMWzAn<{>U)vkt_f3T7#IzZSv`oSGr`TZ-LYz~x%j`n~=LuUn4tgLm0 zk@KkEtCLZGiA7$rRHnIy_`O2>gw`Y>nf4H~d+Jy!7Es0Dv5;Dx(k)6l!TG}qz+95+f)rAADsr?(EM;7Sif zaE@{eiwX)ll_TA!&%pnLC$BPmPX*>XEII8Q{`nBJ2xW^nOsZz3wQ zuIqvvWJK6az*hLP>Bvr@et$N1+s^X1tIUHVTt}Fx&xvt6-)(LJR`vA#P^R8ITIoui zAWX%{)Jej#r-hUqwPvwS4f&Pn%bIS9bQe-kemYw>K2_y(b)5}K>BT8bLM_8i8qj;a zFm3-^-(h61LwB=8Aj!3z>^oN>xPp(}yKriA>UO$C2EVhp`>h;p{%2bfxN^8`?64to z51EI{3naN;9^XsWHjp$gK>jbG!x!=xHMuc0`m(Xp80el}{(~6Y{m%_rrMN{6bCD=2 zpELQ9*yqJX?%!6^=e*#c9OaHVD7n^=uKxIwXG2kOaLe}!BmbOlmjm8Nr#v%P^dXf7 zwVZB2_Oc<9d@Fx0Qdim$zO^VHqkW!u&MibSUVFyM+!WGbmHqvI=*w;LzD4&s1Pu?DGG;BI5TJ?P2jWk@VBO~@1;&2QHL6ihtxThM3H`Lfu9zV$ zYCym3cp0V>k#pY}QPX;hjQ4m)Iy|~dmE%bKP3&j1HRMo#7?NuGT=ZO01j$i&D39J* z(MkAo3Te!O1YGjZ0FoU2{#@kX-xw>Cd#6#N&)?n4VV$TDG%*~FS4_=EsuIm*11Jj| z(4wy}ARb$)T(-BQ{S^oUW#Z=b*(V)0lmk|!cpCQK?kEjMj7O~(3uN`HnOW5Fxx!-R zII-Y#jN5}^O=@vjnJg_)8xoDPtYh7M!{(dW^FU3RHQ5&oeIGSTamMxIK$*V}roJx> z7~fWMD>N4uu%f;1gk9|NjJ1cV-G`WMTGgg8W>0Fx6@k8xpKDv%>u=Vt_qtwgC602%{x9TR z_Br@ZA?!psDV!j27$-Z1n)=##xytbBFNURzT^lT5x|-|ASSsO2^c4O89BnL3B*|Di z&WjplE?C*t*MRo*wVFEDkS4Ase;c(H1pCv(P9aFdF~Qtk94E@i2$9sgt?Jw;)%Q(X z{EaV~R$!+9b0r~*9`(3ix`{FJ>$DY(p)ctSMcxH<`+ zBimgdcjdWRt6|ka={X3Gu&^9~NKd(3q?AO8Y69t@>H4_ENvZz=Zm6sbe$KQbpkdz2 z67X@}kt&D>07^UDcY9l|Rd=UnMIF8`G^Y-Zz)(y`8!hlLPzPiy`4&zqHs|taOGit^nkna`Ai0w?!G%f7Ki-SJY`H6S zAx>kq_w)&1Z3BvqF;@Vo2hu;4ssDx^xAyH5k)CXLMe>CEE{3PqMQNJO&in1!-X8G2 ztwM7)C~b`Z8<7Z9hlYOPAMaFEl;TD>t=Bqg*aE1rKy|wDFvyt{V216Wpzar}&pdcg*~4Z!`XB zJMd`N>-^MaD#hl{PKp7u7&F& z*Lk?gad(w|jfOsxo$)L_zD`h(?V0{n#nvU(^`{8XnQ8oSB318SHQ$(M*m+vwX0+|F zbzfFJPMW7xv!y1i)Kv`&Ug54j;UvJw-VFNg%KDCL!D`C(PTY5GN`Js2yZ?u%i)rgy zfXU`%kDN53ep?%povt8EkhQkS<^YrB#crIf#pi7u0YtD4w1Qy*k7fhupf+ZRu>T>LfG#jTR`!f#6Nk@S`3 zxlg3uY?6l(jk|98YB&@EP52qMM~u1iXnnNyTd}?DEmBo?6FHN;5ZV(x>ar}DyjM2M z`@8om4zl)$Yr0;T8D-3zi8znk|`s zUsq6M9%IE#y|YBZ^y?*R(9 zPussTUBSe?y}!q2nAv$)8&ws%S zeTqWT@LZQFKFH@5@-%DA9EC%X$3?ObSN_F)T^bqbW7}+u%C)etB0$l5hE`&M|d`q z=y8o`A({pX8q5*Blp%P7U^DEVz;ShmW%sxYzD51tn>cMsC}rb7e+(tmx@(0snB&;} z6oBtW6=wPMD7VKT?!8De)|Yu|Z(~zH`VR!TJ>^7;1^7Irt1aFsEWz}h)hZLuvm=fY zB_p3;sT^RQgrJ}z<1L5w+{dcI7?<)w7xb4V?YYo^!rq9Cd=0H$3+J*eCJ&d;g^&X3 z8YW329KaR&l{jSG198{kWA0sS1o($;@leFvoh=fg|&p(1GE7NWJRLc6UwltpB$EcNe z2?hFUKS3;|D^lMNbzG~c?ytg-YfCQ4u>!B@am>u32S>%szY?j(8kVSr)hDVUT8-OT zIU{RJjCyE2*Ko+an!V={RJ(_a^GUnEEpy6|j6K|IGizs9f@1j)tFwtbOx4e&D_VyoI7jZ#%R9F3Ku?=DBMq+WFLk@Zk)-g#L#nBQ;fT?n#7J7=|Tk`EM z@cZdpP&?&g|FU^)siLB~wr)D{n0|V5*)%Q@8tUIp#R#8=YsGiAiI85!;xVMZNXlee zy8MhAxQ(e4e=XcUG}qrwx&8ASe`k2v90}^xdBg+*Wh4MNBx1>vYGd%74nz6evqhDQ ztn^PpE`!6<*W?zr~*)p%QIMQ7+lDm;DGCmx60m=Ozhw~K)Qmbsv8&j3I<7I|l zb1Xs_I{(`$BVzzZkFHvCix3c zBHd!`&RsAf((!`)nSc)i)O{N&7c{)}xCfnbF*~lp_?&3Y&mnB|X;ZPNuM)HP>{w~L zLuX-4O@iXePI{J-Eli$qRl_o86u-~adR$HW#)7Gk|Ba;)ooxZDIgW|wi9Y$>xVXWv zF%C7gk+m^A&Y+=v^rXBu>C(%{8kBIPj;4)IiqO~Az`nitZDg|80fEv}JCR%;NEAvM zq^#4%;uT`hgo{TDLGY-VilcWfU97zzZt~>vwAZkM`|ObaYtEZXlefv+T;3zByuD*8 zfu-*6*m+l7I8WXiQ8RK=u4hCkJAUE(j{15~##mSP64Aup^`7nykw;$vEy+!;7j@H7aE!@ge= zWdBMO^Nqd2geUUshBDe=$AaQX5i2<2E12l9ud6#-vs^xy+)Q(ppE)PIhUzA2l|)qQ zhPha>zMQB{Sfgx=*tyUnr=%6urlG2=mX4vTgD$~L{C?QWQ`=qrA@T_Yh3Sr-kSie8 zC&j`l$3C*3ibn(?m&=DsEi5W5iWgrHz_;{F7l|1)_Ml4hG!H2(%AcEmVDG>8tCwZ( zp^pEIFK#TC2bqH?Kt^pas7&y1XW8duqu56ZMM_PDq0w{QV{`I^VZ?=@pin-N;j@1z z!2V|aFE7-moI+oy524imv_|I#)5uB+e<`ofpx~o?%z=V3hk_CJMfsm}syWpEBL7AI zi$ejjOA8>g7N@=}AK%%H@r|MI%~@eYLWfcCVdkNrh+?Ma#HoDQ*`fMJ!u;@|kUuiu zF{AfSvjXB-bC8*@MaK|J zA!Sbseh7yE`G?%>Uj+7<_yGY0$o;Isv;rl6QAw8a1FHx5{0fJFM9HaVny00m9E~Yt z)MZstKD2tBtrh`}9mnSUo=bG>X_?1yX(~{?wAfsFJiO z1&nD6&M4V*5%&HMiC5a!!fwd?ExQG7x*WR!bxA4%1;v6KjalDyO++>ZEy@bO3M?s+ z^E-q;n^=dtXiO46>OZ}+n!V;;^7R#2$O%vu9IsUd#4jEMD29XTs5N?RgC%|ba?teQ2p(3C!#eVLl9w(y? z7i;X7C?E;02@m-$`V@O@)9tPJ(Lip?Ad(Ks^Y@mrU-5_ZNm9F6$yG2|^#k ztx6JuWRo@P`U#JdJBo210&z%j{DslB^wlLu`~^v|4nsqoKSMEnDaDD^^VZ2`E_N6W z&%(ps{Th1oRgv)v^oB)^U!m&aO zoGE4Fgy7M(0 zADhBmT^(s%pX2}R<=B{eAAp4WBI+#8SYq33D=i~QjT^SYVVDRaB{fEwwYI>h z&UKQtX)#1_!;Tg8tsTHylnPfIiUIO-qKFW2M4G&A7{+Q|urrq@*sj1dhjL<#7slBb ztK^U+*20PoeR1;KD&1m;t%Skqm}zf~5Avht9QHtkv0nlVgC=$4(c%oY=u&Ho)n zQ2g*&Kq<{ogxP`D0&4{23u?sxH7z~m3P7{~o|FZamUEOq)Pzn^LGz;7S+nr^jz&<{ zDkBtD9nUh8YxzXY6AX6`0Gvq1g(8HrK>3%@h_L1pf`V#61Y%W;U$hig>PtXhh;9Qag(iq5^6lb5znMxct<9Xo-Chqj=Hx!l#Fm5<) zkMAsFjf{ql?CzNqSGpAV6MY+uNu-u)KdZU%?7|9liwP@bfhv)lT;?F2D<_jrg`C`S z%!0HSnW3pPvrHj4#&iav(@EYHDR zJ651xWR+2$7DRvNG5bp65Cm{Uh~YN~)S+Y>sgG8l~#=?{lEAgf`N!X2wg2pEkCzFaS!=6^S z-#(nC%34^H-_DlEY{Ds1FdMI2f}x&IL1CGS922TTu_R5IgI+AgTk=^b_$v|u`sEse z@fj)l$d{l7EVN^3Upe9$`mfx@Vl@6z@3dPx=(W&1Qj!;d*nfH(3>O`Su7n}_{qj3J zIU^Gu-?Re1BAJbfphrAn8GQbV>P`|`q$^-P^BKSImD&sL*q=}dtCaAn`P$x__@Mk6 zSemF(SG(b&s@Y^a!}!UG>i~;`u_hO&8Trv`jSbm9CZ87ZdqM%NH2D8%3TNvJgA=Bw zX{E%$N(l)jlz9KwF~a??QsTo9B>GqTfB(WF)&{<2D4hY9$>SP$t$i*t2)f1j?s!^= z*&y!zeVsm0m1J22q~EO=sE8X9gvBmN_O%T+WDQ-66BD$j9@ZLGBdI2pV>;rWl zN^<#Gp9MgRrJjQc28v(?+{T#ulS+R7F(2cF``y@?In>qRkUA|;G+ox71G|Wc@%bbu zf1XT6@V;cFmsH1x_rVa7sB8{)18$f7(O@7dS!_Lf4XJ$%n%P=t`Vw4`=UhnynPv7- z`MX+_Y(Ss>36%=Tn`_xZG0RCBfrJ(23pJ*1LZhOzjajQgof!MI(C1(tV!5=(${8%;*JW{>XjPS;8L%CZ zM@%^s8f!<>!csXX+GeD5eZqf?UNp>3^+w}heVwN86Fj~v{QX6Kcj^lFwkcr#@?ym6e;G8$}^Ly zLWUX4uPph&`JRB95V1#Dsz%ufzj4uBYhEnF2Vugxo|*F667xfMV8;5gBP}29 zh4Dbftp9hH)!O`;jLp;A2Oe#lwRMW8%daq2Slsr*!d&z=p^)Rv^i0H*cgH&${2Yp{ zg}tpMOh@Y*sdrv_H*p0NyBPuXg3(3`6gQhsW|u^Nv1(})=(Ym7{ljNo9Zdcg|D#ZR zSOLrThyN^W#%wB!8kz%mh0LQ;@4qlPx!lbzXv|D7CcgQfHc|q5S(aOm^aBaE`*F)ReXY(mPO`iI=f){ zsOE17_)7%zC)1uuXvga^miC{QJWm}V(lO#uBZ+)Wk1PMdl|l7U8#8`eCN-`+ocKM+ zA)BD?-ViEtyUBKXOGeIpSFxz^bF*Qm(LV}#nv@Uo3Gt4`;0VrY@6@UnY7>7zL{fvhUwYlq8PL$NC?V@UEoQ0jN?}-&=mxxv5(m@ zr#M6hPIGNG&5CAtRbU5X5BG1Pp)yoNC_j9~wt%bKvmlm9Q?~70!Uf}N!sSee_v%s5 zo3q2nuNS>VWO}0s`)ft<((O&A97&YH4c7Nt zSCuA~#rdlOr#uZ`CU|x-zVN}~&=xDUwHk38{&vwq$#l^iIBUS((f^uqvb#M4{;)9d zYA8JpPZ#>8$(|v=Bx#O$jW998U(DlX+*7< zB||5x3CCm~H?e&rkdF7RN&!|asL|R3e}DW4nwI8_?~jQ=4_S-tQ55u7Dv%uaC{E~Wo{F2s&2Up- zXLaxYIc+pC2mfR&+TZzEC{YwyIus%z73`QJ^QmNFc;6cSVB`kf#t2K=u5qbm+D1U4 zWcGrfs%yQJT}G}{M9(Rnqm%VjX(RLv5Wl&y@7$SZ+UV)=Y6B8wS8zR&akf{&Kiw~J* zi}qo^F%gYt9SI#;21dJ!bTAMa+o^p>VJ%yhJa}nhbK_-F@+;ux#Ud$fz&dwZV`$Hx z+g=WjFF|1N$o^2w^<=UlU|JDyMV+2cEcWf=wr*QV-ihdF?C^bV{_^$ZC!N{agKJ|! zvrINTq1(_(+2(|4U$(ST&*dkc;G*&8(GFTr>62(6eUlJAWS)7v+MU2rxHse&^{v}4 zv{ZB*yMB;7mQr2(ND*{}&*=k~rX>K-Q{#Yf|H;&LioXrb7Mn3amx%PtrSq8x2_a=D z`&iQvy_X>mnM~oQXL-Wz;)|NzN(9EYXqpp64dP(3i8t(&EJ%7TH+N2q&|A{&fKQh{3c57#DU%t>1PjcFH-Ano z3bIO@S2KS^>kqlQl^vfhqrOj39hwT)daWH>{o(=oK5I?#xeh?b>ANQ1@cIY{kK7C; zIlZ4PRMx0|6APd?AsqS#*5{G?*#AX}8!BEvajq3@Oi4PZ2>61eavX~qh=8mxX;$5m zV>|z;s4rWhBsv*;rUT4TlJDmJBzd8`29Uxa-J4gz7ggm8L1&#=hO}8F*FPOUO|xZz z6<*IgU9-cTFFM{#fpMV!Po4Vz-_rUEyi-F%`&Y>a3)Y5_%j`P+lq5MJGTu=w^o1Pu z7`{|ZA0pKFf}FlEHT)ETRdf4ZxGfm*ccp^QgUf{|$~n+;QYgQ{v20kgI%{te!{vni z`m9PvCM_7lDB3&Cr4!jW%rjb+K`q7=8LZ}CL_XywVl|;@zV3$=zG{F9%LW3UEtfXE zS#8+7?s>}^kmgh}U-R3xT~_%;sr&H9!KSX3U<;&(xb%NdQg`8(*0wOQj4@m8I~UIL zujUlT!>Z6%e!X|gRZI(9!dW{Tq8)%9km)Q>gYUgY;OI4f6PS3TIrk9zMlDNU!Yj#8rPdz4MbcgYF8;eWA91Pb zfy8VUV|CzKjePLEJ>5&{ZBV;7tQKBeYon$Hf{tVY&LdsBop5Pm+gu68#wcbIEZ@JF z3b%zs;1RSNlg*h$&;#OM_`gteNvxdC{UN-bEUEGYS;93U*#MO&6C#Ro%E(4I27Vo< z82d9Ak_u#HrF^;sWD$M%+9djd{nGl1^Xyzw4QiGSSlmVw0inL#*0Q@lKJHu{jH(c! z>|7dbr0`DeRu4u+z$o1SqNv7)r-{++&OS>rNt6ARn=5%)ka?`EUqCTR6!k?Go82MP zZWD)~{5`2X%GTryJ#s#X{T1YMW`9B^pGQFX^h>J(#j4f|7Q^;=q?FcgEhsAt1coU$#To)_H6p0)oGc5bgW>k^AlqNcT)@txP^O zyE9SHyGZNIa)g}Ggte4CVv6y&<1KGkm|LfAZPZyVu4CD_2CMlpuU*c&FH3nmO@8&z zV~S||9=S&+YzFr~zd5dum7%=3~9&DO(Fh!sVUVm zyjv=fSr$8tikK9gq(yg_a&EKnBxk?&qD0#R&&?f-CV8IvXX#s8-5CyfWytys>rRhPZEgI2tm(rN*50b$0?>paxkU* z4w%Bj%|YCwY>+eo@o`7PBGUe`q|rBO)KICn@8IOt078T_D+g%*A7JL863?U$y)jew z%ZI4PeG_P2ZevV9o67XE*h>U-VXmCEEAH<8&?sWmq8mGgK0QDFe2o_BZ|g>Se^ zyf^wV^;q!(lcd?Ad3j}t595IS&u1)X{mj^py{1tZ$vC;M-K9sBaxF`WfI5tgon3RY zd&|;C=e>@u+T}|1&jU$(MeZ;Bz7pbzso!QdaF2hd@Z2}TWh(gYAEVa9xgZJ{7O&e| zm~O4^e5zr9;nh=B;(X`5^)l&`cDdQYpbQGV?tM_^7S( zJ@2!*xc5-fN4#yMN^`SR3ONSV%0+?~+)Glk zW-edK>OB>mbGV#gu=&`M`3coa0-5#3y2Vnx!khsmE-Y4sl!_B97{j@i+8-!b4{!Qv zto==OH1FCh-mO}X+xSiEjH4TaYm;Ex+m`Bg1CzsFxn%sVh_Dw8w%MFEYT`~qZyDsV zJTmHqDUpDKS~l=-_7@MT=`{uUklY4Pf_ z)ZYnd$O3g@P79FH`||W)ued$8FPsxVx~-!i+BuM(kHt#wv96`2|~ z+~9*jk_(zgfgR;Y;Yo4HCv}Dr_Kc#60Kadaih@bv9^pI$@X7P~vd9xL$$zKCDJ4*v zo)t;1us2Qsm6Y3trNFncsH=q;NlS2{cw~*!t^|TYb$EP{GfWlP&|YSxcNcCbx@Y}u z9~uS$%~M}MZFB^2QV)&aA-_Pn%1MDF*6wlq^XuOT*%_wX?S7mK-N^rucfYHtCVx&aI4^y*=x!4j zo5l;zgaL;DsTL6KUeff|qrl8%<3*XqL_H|K<#Mw`84-g z;!)E?V+3_5VR*QD=^%W#A>1qy1gCG0p;UsXp1+EXi956G~lfTK$ETr}^kSr5@)E`zP4M1#LKp*9}m63UKApy z!FD;C`FSS0ab5w)umo)2soTUx`X?Z&`A6;P+A~Ag^S6ud3Ym+C9uy*bOd1T#k%GRl zE3ok5;N}Wayw$s87Fc)Aa3lYoU3^Ov=i;UcUK2yf~3Q3|p7I->~qVe=;c z#O|gy1;1lQB)G( zQkWeoxkEJ+9WlHN#A9U!S(f2MQQA!|pb78Dt-=SZG5QQ0?M#IbHt*M97u@bo45 zs+6p@sA9FNl37)RFz$NeS`?<^1>@oZc`r-3RtT({Bl{XEa4?|>vbhVfEJ+6I9W5dM zcg>f;7oR}Tr})zUjH%CBNjrYWmC%0My9DlfSi>H;23VAmWUV~n2V0@kcGOJEJA9*3U$N?L)0gh%<4+ygT_OM+YsINCjO8B17$Who z7T=i{wyZKPibumFPo+ah!#UbhQ(!SbzDE=v!a1IErvQ1VBIq-5xce#i>ivh`h=|T{ zLVU9rCclteb{Wwc_EY%Hd=2^nzv&a6V1n3{#~d!X{I}bSX_)>+0Zz z+@aik)ExaBouq}a@A$s*(2;Z$Xl)r2J7WvsCy(OrAwVHKVFiw27zZhJwC~){ zN%NeBonbB1t-DGRA+te2U2rJs>2c%-vvS)=ufngO zd;H6tIuWVKvjtYl%Xr(4^Im52cRbN#w=W|DwYL)`1-?K^$l+j}&PeM`8JxxkE6^Oo zu+Z729_%4-)Hg3{;e#Bp(KHJVA<+)mY;+yya^Gdfi6<70sr0Q;=BEkX+jSMFln!ML zc`1hz$m>Y&DhqA~J0B3dUXd}+1`o+Fdc};eQsHP-ZQ2T&MHYv!Fro^=2~L1j^Yn7{ z@ygL-Oq3OD5u}6%e1?L~3PjNg@5w5d4ii==E^ugEOr}J|%(yS_x>l`^th3sJ%E1-| z7C1PDq=Xhp-t!ibusJeeQ5+&!-XuOZ${H1VTiHc`Z>Fken2Bu0$TDl)PfZwW#@Dp( zGrzvwuf9gi|9ZEvgzLZ}DUikqu+3cq;kSz{ z<;@01Kn&r!zB#9`5%l;o5Ux8eY_PNr8|@miN?oJQx#6*i$pSyUqt5!rsg3yS;|!QG z-MyIJ7r7={3y)Y&ig@)bsqBf$G_!b?!o-JY)f{2iU~%q>BKB<;L>pxD9^iDxx-*qn_HF+JNM-KyJ`!ySl z1I<*#rZ)3}H5V=yMV{nV?uvxdVfI5hYRM$c+4cf*rK^L>4|F#I-Q4hm!TMuLK^xS6 zCdf!Na2Y0b-+8N4sMo^oa{%)h8cPUSaViaHp+jG)hHp-joqC50J!PAk#`;Lv)*ZW8 zE`lO}%(%{7<(X5Od2)1RWD^s)?SmX_b^S#;wbdOhph^Wmo$k>x{s~OPqk8=#FZp@gvmxT`hZ) z%&i2PSFYV7^j{NwnQ#V}|0Z0o@Y^mYTptpIrwXxsrytA+3!pis_Rq2izT+%10aF=0 z{c8}YiyL^}22bH4$}i7`HNa18DVsog6X~2O-FU{i<95tKD)BgPMV*QiuidnVm8p4Q zr~MnmGoT8w2+Rx9c*$8dNz{|vEL{s+S~3!e-KAJb`F6JYB2xtWS;P^^E-?!wmn+18&wE%Mwhm8J%YuyYQ&2k!>+sKF;xz`PRz*B};Lz@L|jek5&O1?_9I zYm(&a?q4oyr7mAvxK_q5N@E5CbdK-IbJ$45E&rOlAM=6Sgl{~B+(Tl~7Wp!)j}%T( zWPc=a%9$OUEGe!wTHb3d<;7r#}6f1c4imq!MUvdt91G`Ia z^0eam43Dwgr{5AZXX?Pz3FX5Z(YHlW&3uKWN_i1Q{jTi3XN|^Xhvzlt0FQKL=ssDi zFg1qss-(2hOGqFlcwPa#zK_{|?84(92EOBKAo~k3*k^Dw9x^R$fFFdxK&mA$H47eV zP7s8a8VCXzDk>@ico-Bc%pQkgIjNF4aSiFy@v)Rz__3rqhHx!&9$L;6;6ou20D!Cb z@)FgjcZA!sG{7eE`Qo#zaDE}y&t^mVfGzv4cv7LevK6go{_4S>PsTGPpI^)Pwf42B z<-%5Hnx#%hulQ}G|9V>&@2hcdY9fLN1 z?x!m2%w+5+FBG(B#XMx{{&3yh{p=c|ATFwfLe?4nZ3FCRSp7JJ6-Q!3l^dMGT4G}%(qr~OdA$OV@!u*$|b@CUNiS>Op zD|Bl%m@4VrZIoFCd_Y=f&$8$R5dddPR$Dv~$m}a$h%(#1Y~~1&7qjEO<9_7bS>|qG)V-4y+lG+LBFZpPpU# zuiAwFgblK{yz8bisU|tO%i`yo`UUom!*G{)U#6hpQ_D-&%RA*gL z*qEPcvgUrJL`eU4u3PT844U%@+*N`c?9zORCRxQ#O}cz@?q0mmn&J!4$)r^_Ut<}K zH{nIeYT(b-cY(kExvV*4lW&-Nj>)A5{?!kn(-#h^*WYdbFfp=0J)8F*0pVLCJF)ox z(9>7ed75_~JFogbchh=@fP0qHR+&PR!^$=^CEsw&TLj|fy4@t*lbz?B1DROp^bVfB zY{{%At&aAgKKtU5nLDEj75VYohzO-Tk@Vg!GK-Os+&I79Z72bucS>mH#dY)dSC3KV zlyu53rn)`dgMZ`{Bi_9$a*k6%>zK%ZBBxG=23x3HhJNR_{%aG+gpU#RYBtl05&G7F zaX}r-uM)}GTP$gAT$Ol>fEA{K?}p&RS{*$YvY)Sx!O+#lCz+Xc(q0I%YI7eB38$Us zof!p2!M&rbvpZR&@7ou2>8zPM zPdwiSEBxgN=kbV9Gu7JDNSzUqyETdNOsdqgI=H=Ry@zYo>B`X5Z8i`gs^HvQvYWIyS**X((pe=7o#}VmW$~|byrW+ z5rUoIiyCRm%`%`D41Gos?XB#2;l@=Uo4rO;Tmjux=jRpQii6O?!u=vo^!jR3j+-BE z?6x!+tE*Smrl)?PO>G*ohXaRRzZ6V0vgS2Dpefg@t1Fpm^m-Y4Y7VC}@$)rO)2mRz zK7sKSgcDnFDsJ);r6|%y*b4F5Y8R1EIuILDh8-AbhuVehnS1fo4y1*h#;Ly)s6C@S zY>y*q54E$(6w)aoP~tV<6~Y1!&6C4UC*C%y3-l0GuMvk>Y*>l(88>oMP0uJT)W%eAH^u1KJXYxRMBcF~auVwzEjFoI=1 zX4OsEN^FVPF9@5S5Yu5D!sO?$Ci{#$GtNO65Oc1TDPJQx-P1~vX``VxfNSX8DP5jU zMHKp|i<)nnVLqb5>ABvx`&bsoTNosOA!d4FNKeaK8q)#)Z6dhVN)Uh9>H?rxRs_r` V0wy~E|4w{3bR&rgRc~8d{|Dj=zs~>w literal 0 HcmV?d00001 diff --git a/tests/rest_api/assets/cvat_db.sql b/tests/rest_api/assets/cvat_db.sql new file mode 100644 index 00000000..c17e6c5e --- /dev/null +++ b/tests/rest_api/assets/cvat_db.sql @@ -0,0 +1,6315 @@ +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 10.19 +-- Dumped by pg_dump version 10.19 + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +ALTER TABLE ONLY public.socialaccount_socialaccount DROP CONSTRAINT socialaccount_socialaccount_user_id_8146e70c_fk_auth_user_id; +ALTER TABLE ONLY public.socialaccount_socialapp_sites DROP CONSTRAINT socialaccount_social_socialapp_id_97fb6e7d_fk_socialacc; +ALTER TABLE ONLY public.socialaccount_socialapp_sites DROP CONSTRAINT socialaccount_social_site_id_2579dee5_fk_django_si; +ALTER TABLE ONLY public.socialaccount_socialtoken DROP CONSTRAINT socialaccount_social_app_id_636a42d7_fk_socialacc; +ALTER TABLE ONLY public.socialaccount_socialtoken DROP CONSTRAINT socialaccount_social_account_id_951f210e_fk_socialacc; +ALTER TABLE ONLY public.organizations_organization DROP CONSTRAINT organizations_organization_owner_id_f9657a39_fk_auth_user_id; +ALTER TABLE ONLY public.organizations_membership DROP CONSTRAINT organizations_membership_user_id_a8e72055_fk_auth_user_id; +ALTER TABLE ONLY public.organizations_membership DROP CONSTRAINT organizations_member_organization_id_6889aa64_fk_organizat; +ALTER TABLE ONLY public.organizations_invitation DROP CONSTRAINT organizations_invitation_owner_id_d8ffe9d9_fk_auth_user_id; +ALTER TABLE ONLY public.organizations_invitation DROP CONSTRAINT organizations_invita_membership_id_d0265539_fk_organizat; +ALTER TABLE ONLY public.dataset_repo_gitdata DROP CONSTRAINT git_gitdata_task_id_a6f2ea20_fk_engine_task_id; +ALTER TABLE ONLY public.engine_video DROP CONSTRAINT engine_video_data_id_b37015e9_fk_engine_data_id; +ALTER TABLE ONLY public.engine_trainingprojectimage DROP CONSTRAINT engine_trainingprojectimage_task_id_68b8b707_fk_engine_task_id; +ALTER TABLE ONLY public.engine_trainingprojectlabel DROP CONSTRAINT engine_trainingproje_cvat_label_id_ec627ead_fk_engine_la; +ALTER TABLE ONLY public.engine_trackedshapeattributeval DROP CONSTRAINT engine_trackedshapea_spec_id_a944a532_fk_engine_at; +ALTER TABLE ONLY public.engine_trackedshapeattributeval DROP CONSTRAINT engine_trackedshapea_shape_id_361f0e2f_fk_engine_tr; +ALTER TABLE ONLY public.engine_trackedshape DROP CONSTRAINT engine_trackedshape_track_id_a6dc58bd_fk_engine_labeledtrack_id; +ALTER TABLE ONLY public.engine_task DROP CONSTRAINT engine_task_project_id_2dced848_fk_engine_project_id; +ALTER TABLE ONLY public.engine_task DROP CONSTRAINT engine_task_owner_id_95de3361_fk_auth_user_id; +ALTER TABLE ONLY public.engine_task DROP CONSTRAINT engine_task_organization_id_6640bc33_fk_organizat; +ALTER TABLE ONLY public.engine_task DROP CONSTRAINT engine_task_data_id_e98ffd9b_fk_engine_data_id; +ALTER TABLE ONLY public.engine_task DROP CONSTRAINT engine_task_assignee_id_51c82720_fk_auth_user_id; +ALTER TABLE ONLY public.engine_serverfile DROP CONSTRAINT engine_serverfile_data_id_2364110a_fk_engine_data_id; +ALTER TABLE ONLY public.engine_segment DROP CONSTRAINT engine_segment_task_id_37d935cf_fk_engine_task_id; +ALTER TABLE ONLY public.engine_remotefile DROP CONSTRAINT engine_remotefile_data_id_ff16acda_fk_engine_data_id; +ALTER TABLE ONLY public.engine_relatedfile DROP CONSTRAINT engine_relatedfile_primary_image_id_928aa7d5_fk_engine_image_id; +ALTER TABLE ONLY public.engine_relatedfile DROP CONSTRAINT engine_relatedfile_data_id_aa10f063_fk_engine_data_id; +ALTER TABLE ONLY public.engine_project DROP CONSTRAINT engine_project_training_project_id_89feecf6_fk_engine_tr; +ALTER TABLE ONLY public.engine_project DROP CONSTRAINT engine_project_owner_id_de2a8424_fk_auth_user_id; +ALTER TABLE ONLY public.engine_project DROP CONSTRAINT engine_project_organization_id_21c08e6b_fk_organizat; +ALTER TABLE ONLY public.engine_project DROP CONSTRAINT engine_project_assignee_id_77655de8_fk_auth_user_id; +ALTER TABLE ONLY public.engine_profile DROP CONSTRAINT engine_profile_user_id_19972afd_fk_auth_user_id; +ALTER TABLE ONLY public.engine_manifest DROP CONSTRAINT engine_manifest_cloud_storage_id_a0af24a9_fk_engine_cl; +ALTER TABLE ONLY public.engine_labeledtrackattributeval DROP CONSTRAINT engine_labeledtracka_track_id_4ed9e160_fk_engine_la; +ALTER TABLE ONLY public.engine_labeledtrackattributeval DROP CONSTRAINT engine_labeledtracka_spec_id_b7ee6fd2_fk_engine_at; +ALTER TABLE ONLY public.engine_labeledtrack DROP CONSTRAINT engine_labeledtrack_label_id_75d2c39b_fk_engine_label_id; +ALTER TABLE ONLY public.engine_labeledtrack DROP CONSTRAINT engine_labeledtrack_job_id_e00d9f2f_fk_engine_job_id; +ALTER TABLE ONLY public.engine_labeledshapeattributeval DROP CONSTRAINT engine_labeledshapea_spec_id_144b73fa_fk_engine_at; +ALTER TABLE ONLY public.engine_labeledshapeattributeval DROP CONSTRAINT engine_labeledshapea_shape_id_26c4daab_fk_engine_la; +ALTER TABLE ONLY public.engine_labeledshape DROP CONSTRAINT engine_labeledshape_label_id_872e4658_fk_engine_label_id; +ALTER TABLE ONLY public.engine_labeledshape DROP CONSTRAINT engine_labeledshape_job_id_b7694c3a_fk_engine_job_id; +ALTER TABLE ONLY public.engine_labeledimageattributeval DROP CONSTRAINT engine_labeledimagea_spec_id_911f524c_fk_engine_at; +ALTER TABLE ONLY public.engine_labeledimageattributeval DROP CONSTRAINT engine_labeledimagea_image_id_f4c34a7a_fk_engine_la; +ALTER TABLE ONLY public.engine_labeledimage DROP CONSTRAINT engine_labeledimage_label_id_b22eb9f7_fk_engine_label_id; +ALTER TABLE ONLY public.engine_labeledimage DROP CONSTRAINT engine_labeledimage_job_id_7406d161_fk_engine_job_id; +ALTER TABLE ONLY public.engine_label DROP CONSTRAINT engine_label_task_id_f11c5c1a_fk_engine_task_id; +ALTER TABLE ONLY public.engine_label DROP CONSTRAINT engine_label_project_id_7f02a656_fk_engine_project_id; +ALTER TABLE ONLY public.engine_jobcommit DROP CONSTRAINT engine_jobcommit_owner_id_3de5f6de_fk_auth_user_id; +ALTER TABLE ONLY public.engine_jobcommit DROP CONSTRAINT engine_jobcommit_job_id_02b6da1d_fk_engine_job_id; +ALTER TABLE ONLY public.engine_job DROP CONSTRAINT engine_job_segment_id_f615a866_fk_engine_segment_id; +ALTER TABLE ONLY public.engine_job DROP CONSTRAINT engine_job_assignee_id_b80bea03_fk_auth_user_id; +ALTER TABLE ONLY public.engine_issue DROP CONSTRAINT engine_issue_owner_id_b1ef7592_fk_auth_user_id; +ALTER TABLE ONLY public.engine_issue DROP CONSTRAINT engine_issue_job_id_2d12d046_fk_engine_job_id; +ALTER TABLE ONLY public.engine_issue DROP CONSTRAINT engine_issue_assignee_id_4ce5e564_fk_auth_user_id; +ALTER TABLE ONLY public.engine_image DROP CONSTRAINT engine_image_data_id_e89da547_fk_engine_data_id; +ALTER TABLE ONLY public.engine_data DROP CONSTRAINT engine_data_cloud_storage_id_e7e0d44a_fk_engine_cloudstorage_id; +ALTER TABLE ONLY public.engine_comment DROP CONSTRAINT engine_comment_owner_id_c700667b_fk_auth_user_id; +ALTER TABLE ONLY public.engine_comment DROP CONSTRAINT engine_comment_issue_id_46db9977_fk_engine_issue_id; +ALTER TABLE ONLY public.engine_cloudstorage DROP CONSTRAINT engine_cloudstorage_owner_id_b8773f4a_fk_auth_user_id; +ALTER TABLE ONLY public.engine_cloudstorage DROP CONSTRAINT engine_cloudstorage_organization_id_a9b82f16_fk_organizat; +ALTER TABLE ONLY public.engine_clientfile DROP CONSTRAINT engine_clientfile_data_id_24222cd2_fk_engine_data_id; +ALTER TABLE ONLY public.engine_attributespec DROP CONSTRAINT engine_attributespec_label_id_274838ef_fk_engine_label_id; +ALTER TABLE ONLY public.django_admin_log DROP CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id; +ALTER TABLE ONLY public.django_admin_log DROP CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co; +ALTER TABLE ONLY public.authtoken_token DROP CONSTRAINT authtoken_token_user_id_35299eff_fk_auth_user_id; +ALTER TABLE ONLY public.auth_user_user_permissions DROP CONSTRAINT auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id; +ALTER TABLE ONLY public.auth_user_user_permissions DROP CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; +ALTER TABLE ONLY public.auth_user_groups DROP CONSTRAINT auth_user_groups_user_id_6a12ed8b_fk_auth_user_id; +ALTER TABLE ONLY public.auth_user_groups DROP CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id; +ALTER TABLE ONLY public.auth_permission DROP CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co; +ALTER TABLE ONLY public.auth_group_permissions DROP CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; +ALTER TABLE ONLY public.auth_group_permissions DROP CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; +ALTER TABLE ONLY public.account_emailconfirmation DROP CONSTRAINT account_emailconfirm_email_address_id_5b7f8c58_fk_account_e; +ALTER TABLE ONLY public.account_emailaddress DROP CONSTRAINT account_emailaddress_user_id_2c513194_fk_auth_user_id; +DROP INDEX public.socialaccount_socialtoken_app_id_636a42d7; +DROP INDEX public.socialaccount_socialtoken_account_id_951f210e; +DROP INDEX public.socialaccount_socialapp_sites_socialapp_id_97fb6e7d; +DROP INDEX public.socialaccount_socialapp_sites_site_id_2579dee5; +DROP INDEX public.socialaccount_socialaccount_user_id_8146e70c; +DROP INDEX public.organizations_organization_slug_e36fd8f9_like; +DROP INDEX public.organizations_organization_owner_id_f9657a39; +DROP INDEX public.organizations_membership_user_id_a8e72055; +DROP INDEX public.organizations_membership_organization_id_6889aa64; +DROP INDEX public.organizations_invitation_owner_id_d8ffe9d9; +DROP INDEX public.organizations_invitation_key_514623ce_like; +DROP INDEX public.engine_trainingprojectlabel_cvat_label_id_ec627ead; +DROP INDEX public.engine_trainingprojectimage_task_id_68b8b707; +DROP INDEX public.engine_trackedshapeattributeval_spec_id_a944a532; +DROP INDEX public.engine_trackedshapeattributeval_shape_id_361f0e2f; +DROP INDEX public.engine_trackedshape_track_id_a6dc58bd; +DROP INDEX public.engine_task_project_id_2dced848; +DROP INDEX public.engine_task_owner_id_95de3361; +DROP INDEX public.engine_task_organization_id_6640bc33; +DROP INDEX public.engine_task_data_id_e98ffd9b; +DROP INDEX public.engine_task_assignee_id_51c82720; +DROP INDEX public.engine_serverfile_data_id_2364110a; +DROP INDEX public.engine_segment_task_id_37d935cf; +DROP INDEX public.engine_remotefile_data_id_ff16acda; +DROP INDEX public.engine_relatedfile_primary_image_id_928aa7d5; +DROP INDEX public.engine_relatedfile_data_id_aa10f063; +DROP INDEX public.engine_project_training_project_id_89feecf6; +DROP INDEX public.engine_project_owner_id_de2a8424; +DROP INDEX public.engine_project_organization_id_21c08e6b; +DROP INDEX public.engine_project_assignee_id_77655de8; +DROP INDEX public.engine_manifest_cloud_storage_id_a0af24a9; +DROP INDEX public.engine_labeledtrackattributeval_track_id_4ed9e160; +DROP INDEX public.engine_labeledtrackattributeval_spec_id_b7ee6fd2; +DROP INDEX public.engine_labeledtrack_label_id_75d2c39b; +DROP INDEX public.engine_labeledtrack_job_id_e00d9f2f; +DROP INDEX public.engine_labeledshapeattributeval_spec_id_144b73fa; +DROP INDEX public.engine_labeledshapeattributeval_shape_id_26c4daab; +DROP INDEX public.engine_labeledshape_label_id_872e4658; +DROP INDEX public.engine_labeledshape_job_id_b7694c3a; +DROP INDEX public.engine_labeledimageattributeval_spec_id_911f524c; +DROP INDEX public.engine_labeledimageattributeval_image_id_f4c34a7a; +DROP INDEX public.engine_labeledimage_label_id_b22eb9f7; +DROP INDEX public.engine_labeledimage_job_id_7406d161; +DROP INDEX public.engine_label_task_id_f11c5c1a; +DROP INDEX public.engine_label_project_id_7f02a656; +DROP INDEX public.engine_jobcommit_job_id_02b6da1d; +DROP INDEX public.engine_jobcommit_author_id_fe2728f3; +DROP INDEX public.engine_job_segment_id_f615a866; +DROP INDEX public.engine_job_annotator_id_d0696062; +DROP INDEX public.engine_issue_owner_id_b1ef7592; +DROP INDEX public.engine_issue_job_id_2d12d046; +DROP INDEX public.engine_issue_assignee_id_4ce5e564; +DROP INDEX public.engine_image_data_id_e89da547; +DROP INDEX public.engine_data_cloud_storage_id_e7e0d44a; +DROP INDEX public.engine_comment_issue_id_46db9977; +DROP INDEX public.engine_comment_author_id_92716231; +DROP INDEX public.engine_cloudstorage_owner_id_b8773f4a; +DROP INDEX public.engine_cloudstorage_organization_id_a9b82f16; +DROP INDEX public.engine_clientfile_data_id_24222cd2; +DROP INDEX public.engine_attributespec_label_id_274838ef; +DROP INDEX public.django_site_domain_a2e37b91_like; +DROP INDEX public.django_session_session_key_c0390e0f_like; +DROP INDEX public.django_session_expire_date_a5c62663; +DROP INDEX public.django_admin_log_user_id_c564eba6; +DROP INDEX public.django_admin_log_content_type_id_c4bce8eb; +DROP INDEX public.authtoken_token_key_10f0b77e_like; +DROP INDEX public.auth_user_username_6821ab7c_like; +DROP INDEX public.auth_user_user_permissions_user_id_a95ead1b; +DROP INDEX public.auth_user_user_permissions_permission_id_1fbb5f2c; +DROP INDEX public.auth_user_groups_user_id_6a12ed8b; +DROP INDEX public.auth_user_groups_group_id_97559544; +DROP INDEX public.auth_permission_content_type_id_2f476e4b; +DROP INDEX public.auth_group_permissions_permission_id_84c5c92e; +DROP INDEX public.auth_group_permissions_group_id_b120cbf9; +DROP INDEX public.auth_group_name_a6ea08ec_like; +DROP INDEX public.account_emailconfirmation_key_f43612bd_like; +DROP INDEX public.account_emailconfirmation_email_address_id_5b7f8c58; +DROP INDEX public.account_emailaddress_user_id_2c513194; +DROP INDEX public.account_emailaddress_email_03be32b2_like; +ALTER TABLE ONLY public.socialaccount_socialtoken DROP CONSTRAINT socialaccount_socialtoken_pkey; +ALTER TABLE ONLY public.socialaccount_socialtoken DROP CONSTRAINT socialaccount_socialtoken_app_id_account_id_fca4e0ac_uniq; +ALTER TABLE ONLY public.socialaccount_socialapp_sites DROP CONSTRAINT socialaccount_socialapp_sites_pkey; +ALTER TABLE ONLY public.socialaccount_socialapp DROP CONSTRAINT socialaccount_socialapp_pkey; +ALTER TABLE ONLY public.socialaccount_socialapp_sites DROP CONSTRAINT socialaccount_socialapp__socialapp_id_site_id_71a9a768_uniq; +ALTER TABLE ONLY public.socialaccount_socialaccount DROP CONSTRAINT socialaccount_socialaccount_provider_uid_fc810c6e_uniq; +ALTER TABLE ONLY public.socialaccount_socialaccount DROP CONSTRAINT socialaccount_socialaccount_pkey; +ALTER TABLE ONLY public.organizations_organization DROP CONSTRAINT organizations_organization_slug_key; +ALTER TABLE ONLY public.organizations_organization DROP CONSTRAINT organizations_organization_pkey; +ALTER TABLE ONLY public.organizations_membership DROP CONSTRAINT organizations_membership_user_id_organization_id_b9b50ec7_uniq; +ALTER TABLE ONLY public.organizations_membership DROP CONSTRAINT organizations_membership_pkey; +ALTER TABLE ONLY public.organizations_invitation DROP CONSTRAINT organizations_invitation_pkey; +ALTER TABLE ONLY public.organizations_invitation DROP CONSTRAINT organizations_invitation_membership_id_key; +ALTER TABLE ONLY public.dataset_repo_gitdata DROP CONSTRAINT git_gitdata_pkey; +ALTER TABLE ONLY public.engine_video DROP CONSTRAINT engine_video_pkey; +ALTER TABLE ONLY public.engine_video DROP CONSTRAINT engine_video_data_id_key; +ALTER TABLE ONLY public.engine_trainingprojectlabel DROP CONSTRAINT engine_trainingprojectlabel_pkey; +ALTER TABLE ONLY public.engine_trainingprojectimage DROP CONSTRAINT engine_trainingprojectimage_pkey; +ALTER TABLE ONLY public.engine_trainingproject DROP CONSTRAINT engine_trainingproject_pkey; +ALTER TABLE ONLY public.engine_trackedshapeattributeval DROP CONSTRAINT engine_trackedshapeattributeval_pkey; +ALTER TABLE ONLY public.engine_trackedshape DROP CONSTRAINT engine_trackedshape_pkey; +ALTER TABLE ONLY public.engine_task DROP CONSTRAINT engine_task_pkey; +ALTER TABLE ONLY public.engine_serverfile DROP CONSTRAINT engine_serverfile_pkey; +ALTER TABLE ONLY public.engine_segment DROP CONSTRAINT engine_segment_pkey; +ALTER TABLE ONLY public.engine_remotefile DROP CONSTRAINT engine_remotefile_pkey; +ALTER TABLE ONLY public.engine_relatedfile DROP CONSTRAINT engine_relatedfile_pkey; +ALTER TABLE ONLY public.engine_relatedfile DROP CONSTRAINT engine_relatedfile_data_id_path_a7223d1e_uniq; +ALTER TABLE ONLY public.engine_project DROP CONSTRAINT engine_project_pkey; +ALTER TABLE ONLY public.engine_profile DROP CONSTRAINT engine_profile_user_id_key; +ALTER TABLE ONLY public.engine_profile DROP CONSTRAINT engine_profile_pkey; +ALTER TABLE ONLY public.engine_manifest DROP CONSTRAINT engine_manifest_pkey; +ALTER TABLE ONLY public.engine_labeledtrackattributeval DROP CONSTRAINT engine_labeledtrackattributeval_pkey; +ALTER TABLE ONLY public.engine_labeledtrack DROP CONSTRAINT engine_labeledtrack_pkey; +ALTER TABLE ONLY public.engine_labeledshapeattributeval DROP CONSTRAINT engine_labeledshapeattributeval_pkey; +ALTER TABLE ONLY public.engine_labeledshape DROP CONSTRAINT engine_labeledshape_pkey; +ALTER TABLE ONLY public.engine_labeledimageattributeval DROP CONSTRAINT engine_labeledimageattributeval_pkey; +ALTER TABLE ONLY public.engine_labeledimage DROP CONSTRAINT engine_labeledimage_pkey; +ALTER TABLE ONLY public.engine_label DROP CONSTRAINT engine_label_task_id_name_00e8779a_uniq; +ALTER TABLE ONLY public.engine_label DROP CONSTRAINT engine_label_pkey; +ALTER TABLE ONLY public.engine_jobcommit DROP CONSTRAINT engine_jobcommit_pkey; +ALTER TABLE ONLY public.engine_job DROP CONSTRAINT engine_job_pkey; +ALTER TABLE ONLY public.engine_issue DROP CONSTRAINT engine_issue_pkey; +ALTER TABLE ONLY public.engine_image DROP CONSTRAINT engine_image_pkey; +ALTER TABLE ONLY public.engine_data DROP CONSTRAINT engine_data_pkey; +ALTER TABLE ONLY public.engine_comment DROP CONSTRAINT engine_comment_pkey; +ALTER TABLE ONLY public.engine_cloudstorage DROP CONSTRAINT engine_cloudstorage_provider_type_resource_c_d420f2e9_uniq; +ALTER TABLE ONLY public.engine_cloudstorage DROP CONSTRAINT engine_cloudstorage_pkey; +ALTER TABLE ONLY public.engine_clientfile DROP CONSTRAINT engine_clientfile_pkey; +ALTER TABLE ONLY public.engine_clientfile DROP CONSTRAINT engine_clientfile_data_id_file_c9989a74_uniq; +ALTER TABLE ONLY public.engine_attributespec DROP CONSTRAINT engine_attributespec_pkey; +ALTER TABLE ONLY public.engine_attributespec DROP CONSTRAINT engine_attributespec_label_id_name_d85e616c_uniq; +ALTER TABLE ONLY public.django_site DROP CONSTRAINT django_site_pkey; +ALTER TABLE ONLY public.django_site DROP CONSTRAINT django_site_domain_a2e37b91_uniq; +ALTER TABLE ONLY public.django_session DROP CONSTRAINT django_session_pkey; +ALTER TABLE ONLY public.django_migrations DROP CONSTRAINT django_migrations_pkey; +ALTER TABLE ONLY public.django_content_type DROP CONSTRAINT django_content_type_pkey; +ALTER TABLE ONLY public.django_content_type DROP CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq; +ALTER TABLE ONLY public.django_admin_log DROP CONSTRAINT django_admin_log_pkey; +ALTER TABLE ONLY public.authtoken_token DROP CONSTRAINT authtoken_token_user_id_key; +ALTER TABLE ONLY public.authtoken_token DROP CONSTRAINT authtoken_token_pkey; +ALTER TABLE ONLY public.auth_user DROP CONSTRAINT auth_user_username_key; +ALTER TABLE ONLY public.auth_user_user_permissions DROP CONSTRAINT auth_user_user_permissions_user_id_permission_id_14a6b632_uniq; +ALTER TABLE ONLY public.auth_user_user_permissions DROP CONSTRAINT auth_user_user_permissions_pkey; +ALTER TABLE ONLY public.auth_user DROP CONSTRAINT auth_user_pkey; +ALTER TABLE ONLY public.auth_user_groups DROP CONSTRAINT auth_user_groups_user_id_group_id_94350c0c_uniq; +ALTER TABLE ONLY public.auth_user_groups DROP CONSTRAINT auth_user_groups_pkey; +ALTER TABLE ONLY public.auth_permission DROP CONSTRAINT auth_permission_pkey; +ALTER TABLE ONLY public.auth_permission DROP CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq; +ALTER TABLE ONLY public.auth_group DROP CONSTRAINT auth_group_pkey; +ALTER TABLE ONLY public.auth_group_permissions DROP CONSTRAINT auth_group_permissions_pkey; +ALTER TABLE ONLY public.auth_group_permissions DROP CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq; +ALTER TABLE ONLY public.auth_group DROP CONSTRAINT auth_group_name_key; +ALTER TABLE ONLY public.account_emailconfirmation DROP CONSTRAINT account_emailconfirmation_pkey; +ALTER TABLE ONLY public.account_emailconfirmation DROP CONSTRAINT account_emailconfirmation_key_key; +ALTER TABLE ONLY public.account_emailaddress DROP CONSTRAINT account_emailaddress_pkey; +ALTER TABLE ONLY public.account_emailaddress DROP CONSTRAINT account_emailaddress_email_key; +ALTER TABLE public.socialaccount_socialtoken ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.socialaccount_socialapp_sites ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.socialaccount_socialapp ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.socialaccount_socialaccount ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.organizations_organization ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.organizations_membership ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_video ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_trainingprojectlabel ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_trainingprojectimage ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_trainingproject ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_trackedshapeattributeval ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_trackedshape ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_task ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_serverfile ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_segment ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_remotefile ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_relatedfile ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_project ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_profile ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_manifest ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_labeledtrackattributeval ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_labeledtrack ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_labeledshapeattributeval ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_labeledshape ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_labeledimageattributeval ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_labeledimage ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_label ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_jobcommit ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_job ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_issue ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_image ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_data ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_comment ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_cloudstorage ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_clientfile ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.engine_attributespec ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.django_site ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.django_migrations ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.django_content_type ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.django_admin_log ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.auth_user_user_permissions ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.auth_user_groups ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.auth_user ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.auth_permission ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.auth_group_permissions ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.auth_group ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.account_emailconfirmation ALTER COLUMN id DROP DEFAULT; +ALTER TABLE public.account_emailaddress ALTER COLUMN id DROP DEFAULT; +DROP SEQUENCE public.socialaccount_socialtoken_id_seq; +DROP TABLE public.socialaccount_socialtoken; +DROP SEQUENCE public.socialaccount_socialapp_sites_id_seq; +DROP TABLE public.socialaccount_socialapp_sites; +DROP SEQUENCE public.socialaccount_socialapp_id_seq; +DROP TABLE public.socialaccount_socialapp; +DROP SEQUENCE public.socialaccount_socialaccount_id_seq; +DROP TABLE public.socialaccount_socialaccount; +DROP SEQUENCE public.organizations_organization_id_seq; +DROP TABLE public.organizations_organization; +DROP SEQUENCE public.organizations_membership_id_seq; +DROP TABLE public.organizations_membership; +DROP TABLE public.organizations_invitation; +DROP SEQUENCE public.engine_video_id_seq; +DROP TABLE public.engine_video; +DROP SEQUENCE public.engine_trainingprojectlabel_id_seq; +DROP TABLE public.engine_trainingprojectlabel; +DROP SEQUENCE public.engine_trainingprojectimage_id_seq; +DROP TABLE public.engine_trainingprojectimage; +DROP SEQUENCE public.engine_trainingproject_id_seq; +DROP TABLE public.engine_trainingproject; +DROP SEQUENCE public.engine_trackedshapeattributeval_id_seq; +DROP TABLE public.engine_trackedshapeattributeval; +DROP SEQUENCE public.engine_trackedshape_id_seq; +DROP TABLE public.engine_trackedshape; +DROP SEQUENCE public.engine_task_id_seq; +DROP TABLE public.engine_task; +DROP SEQUENCE public.engine_serverfile_id_seq; +DROP TABLE public.engine_serverfile; +DROP SEQUENCE public.engine_segment_id_seq; +DROP TABLE public.engine_segment; +DROP SEQUENCE public.engine_remotefile_id_seq; +DROP TABLE public.engine_remotefile; +DROP SEQUENCE public.engine_relatedfile_id_seq; +DROP TABLE public.engine_relatedfile; +DROP SEQUENCE public.engine_project_id_seq; +DROP TABLE public.engine_project; +DROP SEQUENCE public.engine_profile_id_seq; +DROP TABLE public.engine_profile; +DROP SEQUENCE public.engine_manifest_id_seq; +DROP TABLE public.engine_manifest; +DROP SEQUENCE public.engine_labeledtrackattributeval_id_seq; +DROP TABLE public.engine_labeledtrackattributeval; +DROP SEQUENCE public.engine_labeledtrack_id_seq; +DROP TABLE public.engine_labeledtrack; +DROP SEQUENCE public.engine_labeledshapeattributeval_id_seq; +DROP TABLE public.engine_labeledshapeattributeval; +DROP SEQUENCE public.engine_labeledshape_id_seq; +DROP TABLE public.engine_labeledshape; +DROP SEQUENCE public.engine_labeledimageattributeval_id_seq; +DROP TABLE public.engine_labeledimageattributeval; +DROP SEQUENCE public.engine_labeledimage_id_seq; +DROP TABLE public.engine_labeledimage; +DROP SEQUENCE public.engine_label_id_seq; +DROP TABLE public.engine_label; +DROP SEQUENCE public.engine_jobcommit_id_seq; +DROP TABLE public.engine_jobcommit; +DROP SEQUENCE public.engine_job_id_seq; +DROP TABLE public.engine_job; +DROP SEQUENCE public.engine_issue_id_seq; +DROP TABLE public.engine_issue; +DROP SEQUENCE public.engine_image_id_seq; +DROP TABLE public.engine_image; +DROP SEQUENCE public.engine_data_id_seq; +DROP TABLE public.engine_data; +DROP SEQUENCE public.engine_comment_id_seq; +DROP TABLE public.engine_comment; +DROP SEQUENCE public.engine_cloudstorage_id_seq; +DROP TABLE public.engine_cloudstorage; +DROP SEQUENCE public.engine_clientfile_id_seq; +DROP TABLE public.engine_clientfile; +DROP SEQUENCE public.engine_attributespec_id_seq; +DROP TABLE public.engine_attributespec; +DROP SEQUENCE public.django_site_id_seq; +DROP TABLE public.django_site; +DROP TABLE public.django_session; +DROP SEQUENCE public.django_migrations_id_seq; +DROP TABLE public.django_migrations; +DROP SEQUENCE public.django_content_type_id_seq; +DROP TABLE public.django_content_type; +DROP SEQUENCE public.django_admin_log_id_seq; +DROP TABLE public.django_admin_log; +DROP TABLE public.dataset_repo_gitdata; +DROP TABLE public.authtoken_token; +DROP SEQUENCE public.auth_user_user_permissions_id_seq; +DROP TABLE public.auth_user_user_permissions; +DROP SEQUENCE public.auth_user_id_seq; +DROP SEQUENCE public.auth_user_groups_id_seq; +DROP TABLE public.auth_user_groups; +DROP TABLE public.auth_user; +DROP SEQUENCE public.auth_permission_id_seq; +DROP TABLE public.auth_permission; +DROP SEQUENCE public.auth_group_permissions_id_seq; +DROP TABLE public.auth_group_permissions; +DROP SEQUENCE public.auth_group_id_seq; +DROP TABLE public.auth_group; +DROP SEQUENCE public.account_emailconfirmation_id_seq; +DROP TABLE public.account_emailconfirmation; +DROP SEQUENCE public.account_emailaddress_id_seq; +DROP TABLE public.account_emailaddress; +DROP EXTENSION plpgsql; +DROP SCHEMA public; +-- +-- Name: public; Type: SCHEMA; Schema: -; Owner: root +-- + +CREATE SCHEMA public; + + +ALTER SCHEMA public OWNER TO root; + +-- +-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: root +-- + +COMMENT ON SCHEMA public IS 'standard public schema'; + + +-- +-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: +-- + +CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; + + +-- +-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: +-- + +COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; + + +SET default_tablespace = ''; + +SET default_with_oids = false; + +-- +-- Name: account_emailaddress; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.account_emailaddress ( + id integer NOT NULL, + email character varying(254) NOT NULL, + verified boolean NOT NULL, + "primary" boolean NOT NULL, + user_id integer NOT NULL +); + + +ALTER TABLE public.account_emailaddress OWNER TO root; + +-- +-- Name: account_emailaddress_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.account_emailaddress_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.account_emailaddress_id_seq OWNER TO root; + +-- +-- Name: account_emailaddress_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.account_emailaddress_id_seq OWNED BY public.account_emailaddress.id; + + +-- +-- Name: account_emailconfirmation; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.account_emailconfirmation ( + id integer NOT NULL, + created timestamp with time zone NOT NULL, + sent timestamp with time zone, + key character varying(64) NOT NULL, + email_address_id integer NOT NULL +); + + +ALTER TABLE public.account_emailconfirmation OWNER TO root; + +-- +-- Name: account_emailconfirmation_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.account_emailconfirmation_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.account_emailconfirmation_id_seq OWNER TO root; + +-- +-- Name: account_emailconfirmation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.account_emailconfirmation_id_seq OWNED BY public.account_emailconfirmation.id; + + +-- +-- Name: auth_group; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.auth_group ( + id integer NOT NULL, + name character varying(150) NOT NULL +); + + +ALTER TABLE public.auth_group OWNER TO root; + +-- +-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.auth_group_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_group_id_seq OWNER TO root; + +-- +-- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.auth_group_id_seq OWNED BY public.auth_group.id; + + +-- +-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.auth_group_permissions ( + id integer NOT NULL, + group_id integer NOT NULL, + permission_id integer NOT NULL +); + + +ALTER TABLE public.auth_group_permissions OWNER TO root; + +-- +-- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.auth_group_permissions_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_group_permissions_id_seq OWNER TO root; + +-- +-- Name: auth_group_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.auth_group_permissions_id_seq OWNED BY public.auth_group_permissions.id; + + +-- +-- Name: auth_permission; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.auth_permission ( + id integer NOT NULL, + name character varying(255) NOT NULL, + content_type_id integer NOT NULL, + codename character varying(100) NOT NULL +); + + +ALTER TABLE public.auth_permission OWNER TO root; + +-- +-- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.auth_permission_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_permission_id_seq OWNER TO root; + +-- +-- Name: auth_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.auth_permission_id_seq OWNED BY public.auth_permission.id; + + +-- +-- Name: auth_user; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.auth_user ( + id integer NOT NULL, + password character varying(128) NOT NULL, + last_login timestamp with time zone, + is_superuser boolean NOT NULL, + username character varying(150) NOT NULL, + first_name character varying(150) NOT NULL, + last_name character varying(150) NOT NULL, + email character varying(254) NOT NULL, + is_staff boolean NOT NULL, + is_active boolean NOT NULL, + date_joined timestamp with time zone NOT NULL +); + + +ALTER TABLE public.auth_user OWNER TO root; + +-- +-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.auth_user_groups ( + id integer NOT NULL, + user_id integer NOT NULL, + group_id integer NOT NULL +); + + +ALTER TABLE public.auth_user_groups OWNER TO root; + +-- +-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.auth_user_groups_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_user_groups_id_seq OWNER TO root; + +-- +-- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.auth_user_groups_id_seq OWNED BY public.auth_user_groups.id; + + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.auth_user_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_user_id_seq OWNER TO root; + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.auth_user_id_seq OWNED BY public.auth_user.id; + + +-- +-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.auth_user_user_permissions ( + id integer NOT NULL, + user_id integer NOT NULL, + permission_id integer NOT NULL +); + + +ALTER TABLE public.auth_user_user_permissions OWNER TO root; + +-- +-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.auth_user_user_permissions_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_user_user_permissions_id_seq OWNER TO root; + +-- +-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.auth_user_user_permissions_id_seq OWNED BY public.auth_user_user_permissions.id; + + +-- +-- Name: authtoken_token; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.authtoken_token ( + key character varying(40) NOT NULL, + created timestamp with time zone NOT NULL, + user_id integer NOT NULL +); + + +ALTER TABLE public.authtoken_token OWNER TO root; + +-- +-- Name: dataset_repo_gitdata; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.dataset_repo_gitdata ( + task_id integer NOT NULL, + url character varying(2000) NOT NULL, + path character varying(256) NOT NULL, + sync_date timestamp with time zone NOT NULL, + status character varying(20) NOT NULL, + lfs boolean NOT NULL, + format character varying(256) NOT NULL +); + + +ALTER TABLE public.dataset_repo_gitdata OWNER TO root; + +-- +-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.django_admin_log ( + id integer NOT NULL, + action_time timestamp with time zone NOT NULL, + object_id text, + object_repr character varying(200) NOT NULL, + action_flag smallint NOT NULL, + change_message text NOT NULL, + content_type_id integer, + user_id integer NOT NULL, + CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0)) +); + + +ALTER TABLE public.django_admin_log OWNER TO root; + +-- +-- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.django_admin_log_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.django_admin_log_id_seq OWNER TO root; + +-- +-- Name: django_admin_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.django_admin_log_id_seq OWNED BY public.django_admin_log.id; + + +-- +-- Name: django_content_type; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.django_content_type ( + id integer NOT NULL, + app_label character varying(100) NOT NULL, + model character varying(100) NOT NULL +); + + +ALTER TABLE public.django_content_type OWNER TO root; + +-- +-- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.django_content_type_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.django_content_type_id_seq OWNER TO root; + +-- +-- Name: django_content_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.django_content_type_id_seq OWNED BY public.django_content_type.id; + + +-- +-- Name: django_migrations; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.django_migrations ( + id integer NOT NULL, + app character varying(255) NOT NULL, + name character varying(255) NOT NULL, + applied timestamp with time zone NOT NULL +); + + +ALTER TABLE public.django_migrations OWNER TO root; + +-- +-- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.django_migrations_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.django_migrations_id_seq OWNER TO root; + +-- +-- Name: django_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.django_migrations_id_seq OWNED BY public.django_migrations.id; + + +-- +-- Name: django_session; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.django_session ( + session_key character varying(40) NOT NULL, + session_data text NOT NULL, + expire_date timestamp with time zone NOT NULL +); + + +ALTER TABLE public.django_session OWNER TO root; + +-- +-- Name: django_site; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.django_site ( + id integer NOT NULL, + domain character varying(100) NOT NULL, + name character varying(50) NOT NULL +); + + +ALTER TABLE public.django_site OWNER TO root; + +-- +-- Name: django_site_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.django_site_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.django_site_id_seq OWNER TO root; + +-- +-- Name: django_site_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.django_site_id_seq OWNED BY public.django_site.id; + + +-- +-- Name: engine_attributespec; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_attributespec ( + id integer NOT NULL, + label_id integer NOT NULL, + default_value character varying(128) NOT NULL, + input_type character varying(16) NOT NULL, + mutable boolean NOT NULL, + name character varying(64) NOT NULL, + "values" character varying(4096) NOT NULL +); + + +ALTER TABLE public.engine_attributespec OWNER TO root; + +-- +-- Name: engine_attributespec_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_attributespec_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_attributespec_id_seq OWNER TO root; + +-- +-- Name: engine_attributespec_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_attributespec_id_seq OWNED BY public.engine_attributespec.id; + + +-- +-- Name: engine_clientfile; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_clientfile ( + id integer NOT NULL, + file character varying(1024) NOT NULL, + data_id integer +); + + +ALTER TABLE public.engine_clientfile OWNER TO root; + +-- +-- Name: engine_clientfile_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_clientfile_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_clientfile_id_seq OWNER TO root; + +-- +-- Name: engine_clientfile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_clientfile_id_seq OWNED BY public.engine_clientfile.id; + + +-- +-- Name: engine_cloudstorage; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_cloudstorage ( + id integer NOT NULL, + provider_type character varying(20) NOT NULL, + resource character varying(222) NOT NULL, + display_name character varying(63) NOT NULL, + created_date timestamp with time zone NOT NULL, + updated_date timestamp with time zone NOT NULL, + credentials character varying(500) NOT NULL, + credentials_type character varying(29) NOT NULL, + specific_attributes character varying(128) NOT NULL, + description text NOT NULL, + owner_id integer, + organization_id integer +); + + +ALTER TABLE public.engine_cloudstorage OWNER TO root; + +-- +-- Name: engine_cloudstorage_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_cloudstorage_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_cloudstorage_id_seq OWNER TO root; + +-- +-- Name: engine_cloudstorage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_cloudstorage_id_seq OWNED BY public.engine_cloudstorage.id; + + +-- +-- Name: engine_comment; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_comment ( + id integer NOT NULL, + message text NOT NULL, + created_date timestamp with time zone NOT NULL, + updated_date timestamp with time zone NOT NULL, + owner_id integer, + issue_id integer NOT NULL +); + + +ALTER TABLE public.engine_comment OWNER TO root; + +-- +-- Name: engine_comment_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_comment_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_comment_id_seq OWNER TO root; + +-- +-- Name: engine_comment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_comment_id_seq OWNED BY public.engine_comment.id; + + +-- +-- Name: engine_data; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_data ( + id integer NOT NULL, + chunk_size integer, + size integer NOT NULL, + image_quality smallint NOT NULL, + start_frame integer NOT NULL, + stop_frame integer NOT NULL, + frame_filter character varying(256) NOT NULL, + compressed_chunk_type character varying(32) NOT NULL, + original_chunk_type character varying(32) NOT NULL, + storage_method character varying(15) NOT NULL, + storage character varying(15) NOT NULL, + cloud_storage_id integer, + sorting_method character varying(15) NOT NULL, + CONSTRAINT engine_data_chunk_size_check CHECK ((chunk_size >= 0)), + CONSTRAINT engine_data_image_quality_check CHECK ((image_quality >= 0)), + CONSTRAINT engine_data_size_check CHECK ((size >= 0)), + CONSTRAINT engine_data_start_frame_check CHECK ((start_frame >= 0)), + CONSTRAINT engine_data_stop_frame_check CHECK ((stop_frame >= 0)) +); + + +ALTER TABLE public.engine_data OWNER TO root; + +-- +-- Name: engine_data_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_data_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_data_id_seq OWNER TO root; + +-- +-- Name: engine_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_data_id_seq OWNED BY public.engine_data.id; + + +-- +-- Name: engine_image; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_image ( + id integer NOT NULL, + path character varying(1024) NOT NULL, + frame integer NOT NULL, + height integer NOT NULL, + width integer NOT NULL, + data_id integer, + CONSTRAINT engine_image_frame_check CHECK ((frame >= 0)), + CONSTRAINT engine_image_height_check CHECK ((height >= 0)), + CONSTRAINT engine_image_width_check CHECK ((width >= 0)) +); + + +ALTER TABLE public.engine_image OWNER TO root; + +-- +-- Name: engine_image_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_image_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_image_id_seq OWNER TO root; + +-- +-- Name: engine_image_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_image_id_seq OWNED BY public.engine_image.id; + + +-- +-- Name: engine_issue; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_issue ( + id integer NOT NULL, + frame integer NOT NULL, + "position" text NOT NULL, + created_date timestamp with time zone NOT NULL, + updated_date timestamp with time zone, + job_id integer NOT NULL, + owner_id integer, + assignee_id integer, + resolved boolean NOT NULL, + CONSTRAINT engine_issue_frame_check CHECK ((frame >= 0)) +); + + +ALTER TABLE public.engine_issue OWNER TO root; + +-- +-- Name: engine_issue_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_issue_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_issue_id_seq OWNER TO root; + +-- +-- Name: engine_issue_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_issue_id_seq OWNED BY public.engine_issue.id; + + +-- +-- Name: engine_job; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_job ( + id integer NOT NULL, + segment_id integer NOT NULL, + assignee_id integer, + status character varying(32) NOT NULL, + stage character varying(32) NOT NULL, + state character varying(32) NOT NULL +); + + +ALTER TABLE public.engine_job OWNER TO root; + +-- +-- Name: engine_job_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_job_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_job_id_seq OWNER TO root; + +-- +-- Name: engine_job_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_job_id_seq OWNED BY public.engine_job.id; + + +-- +-- Name: engine_jobcommit; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_jobcommit ( + id bigint NOT NULL, + version integer NOT NULL, + "timestamp" timestamp with time zone NOT NULL, + message character varying(4096) NOT NULL, + owner_id integer, + job_id integer NOT NULL, + CONSTRAINT engine_jobcommit_version_check CHECK ((version >= 0)) +); + + +ALTER TABLE public.engine_jobcommit OWNER TO root; + +-- +-- Name: engine_jobcommit_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_jobcommit_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_jobcommit_id_seq OWNER TO root; + +-- +-- Name: engine_jobcommit_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_jobcommit_id_seq OWNED BY public.engine_jobcommit.id; + + +-- +-- Name: engine_label; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_label ( + id integer NOT NULL, + name character varying(64) NOT NULL, + task_id integer, + color character varying(8) NOT NULL, + project_id integer +); + + +ALTER TABLE public.engine_label OWNER TO root; + +-- +-- Name: engine_label_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_label_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_label_id_seq OWNER TO root; + +-- +-- Name: engine_label_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_label_id_seq OWNED BY public.engine_label.id; + + +-- +-- Name: engine_labeledimage; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_labeledimage ( + id bigint NOT NULL, + frame integer NOT NULL, + "group" integer, + job_id integer NOT NULL, + label_id integer NOT NULL, + source character varying(16), + CONSTRAINT engine_labeledimage_frame_check CHECK ((frame >= 0)), + CONSTRAINT engine_labeledimage_group_check CHECK (("group" >= 0)) +); + + +ALTER TABLE public.engine_labeledimage OWNER TO root; + +-- +-- Name: engine_labeledimage_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_labeledimage_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_labeledimage_id_seq OWNER TO root; + +-- +-- Name: engine_labeledimage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_labeledimage_id_seq OWNED BY public.engine_labeledimage.id; + + +-- +-- Name: engine_labeledimageattributeval; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_labeledimageattributeval ( + id bigint NOT NULL, + value character varying(4096) NOT NULL, + spec_id integer NOT NULL, + image_id bigint NOT NULL +); + + +ALTER TABLE public.engine_labeledimageattributeval OWNER TO root; + +-- +-- Name: engine_labeledimageattributeval_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_labeledimageattributeval_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_labeledimageattributeval_id_seq OWNER TO root; + +-- +-- Name: engine_labeledimageattributeval_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_labeledimageattributeval_id_seq OWNED BY public.engine_labeledimageattributeval.id; + + +-- +-- Name: engine_labeledshape; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_labeledshape ( + id bigint NOT NULL, + frame integer NOT NULL, + "group" integer, + type character varying(16) NOT NULL, + occluded boolean NOT NULL, + z_order integer NOT NULL, + points text NOT NULL, + job_id integer NOT NULL, + label_id integer NOT NULL, + source character varying(16), + rotation double precision NOT NULL, + CONSTRAINT engine_labeledshape_frame_check CHECK ((frame >= 0)), + CONSTRAINT engine_labeledshape_group_check CHECK (("group" >= 0)) +); + + +ALTER TABLE public.engine_labeledshape OWNER TO root; + +-- +-- Name: engine_labeledshape_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_labeledshape_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_labeledshape_id_seq OWNER TO root; + +-- +-- Name: engine_labeledshape_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_labeledshape_id_seq OWNED BY public.engine_labeledshape.id; + + +-- +-- Name: engine_labeledshapeattributeval; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_labeledshapeattributeval ( + id bigint NOT NULL, + value character varying(4096) NOT NULL, + spec_id integer NOT NULL, + shape_id bigint NOT NULL +); + + +ALTER TABLE public.engine_labeledshapeattributeval OWNER TO root; + +-- +-- Name: engine_labeledshapeattributeval_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_labeledshapeattributeval_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_labeledshapeattributeval_id_seq OWNER TO root; + +-- +-- Name: engine_labeledshapeattributeval_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_labeledshapeattributeval_id_seq OWNED BY public.engine_labeledshapeattributeval.id; + + +-- +-- Name: engine_labeledtrack; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_labeledtrack ( + id bigint NOT NULL, + frame integer NOT NULL, + "group" integer, + job_id integer NOT NULL, + label_id integer NOT NULL, + source character varying(16), + CONSTRAINT engine_labeledtrack_frame_check CHECK ((frame >= 0)), + CONSTRAINT engine_labeledtrack_group_check CHECK (("group" >= 0)) +); + + +ALTER TABLE public.engine_labeledtrack OWNER TO root; + +-- +-- Name: engine_labeledtrack_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_labeledtrack_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_labeledtrack_id_seq OWNER TO root; + +-- +-- Name: engine_labeledtrack_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_labeledtrack_id_seq OWNED BY public.engine_labeledtrack.id; + + +-- +-- Name: engine_labeledtrackattributeval; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_labeledtrackattributeval ( + id bigint NOT NULL, + value character varying(4096) NOT NULL, + spec_id integer NOT NULL, + track_id bigint NOT NULL +); + + +ALTER TABLE public.engine_labeledtrackattributeval OWNER TO root; + +-- +-- Name: engine_labeledtrackattributeval_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_labeledtrackattributeval_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_labeledtrackattributeval_id_seq OWNER TO root; + +-- +-- Name: engine_labeledtrackattributeval_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_labeledtrackattributeval_id_seq OWNED BY public.engine_labeledtrackattributeval.id; + + +-- +-- Name: engine_manifest; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_manifest ( + id integer NOT NULL, + filename character varying(1024) NOT NULL, + cloud_storage_id integer +); + + +ALTER TABLE public.engine_manifest OWNER TO root; + +-- +-- Name: engine_manifest_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_manifest_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_manifest_id_seq OWNER TO root; + +-- +-- Name: engine_manifest_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_manifest_id_seq OWNED BY public.engine_manifest.id; + + +-- +-- Name: engine_profile; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_profile ( + id integer NOT NULL, + rating double precision NOT NULL, + user_id integer NOT NULL +); + + +ALTER TABLE public.engine_profile OWNER TO root; + +-- +-- Name: engine_profile_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_profile_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_profile_id_seq OWNER TO root; + +-- +-- Name: engine_profile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_profile_id_seq OWNED BY public.engine_profile.id; + + +-- +-- Name: engine_project; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_project ( + id integer NOT NULL, + name character varying(256) NOT NULL, + bug_tracker character varying(2000) NOT NULL, + created_date timestamp with time zone NOT NULL, + updated_date timestamp with time zone NOT NULL, + status character varying(32) NOT NULL, + assignee_id integer, + owner_id integer, + training_project_id integer, + organization_id integer +); + + +ALTER TABLE public.engine_project OWNER TO root; + +-- +-- Name: engine_project_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_project_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_project_id_seq OWNER TO root; + +-- +-- Name: engine_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_project_id_seq OWNED BY public.engine_project.id; + + +-- +-- Name: engine_relatedfile; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_relatedfile ( + id integer NOT NULL, + path character varying(1024) NOT NULL, + data_id integer, + primary_image_id integer +); + + +ALTER TABLE public.engine_relatedfile OWNER TO root; + +-- +-- Name: engine_relatedfile_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_relatedfile_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_relatedfile_id_seq OWNER TO root; + +-- +-- Name: engine_relatedfile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_relatedfile_id_seq OWNED BY public.engine_relatedfile.id; + + +-- +-- Name: engine_remotefile; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_remotefile ( + id integer NOT NULL, + file character varying(1024) NOT NULL, + data_id integer +); + + +ALTER TABLE public.engine_remotefile OWNER TO root; + +-- +-- Name: engine_remotefile_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_remotefile_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_remotefile_id_seq OWNER TO root; + +-- +-- Name: engine_remotefile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_remotefile_id_seq OWNED BY public.engine_remotefile.id; + + +-- +-- Name: engine_segment; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_segment ( + id integer NOT NULL, + start_frame integer NOT NULL, + stop_frame integer NOT NULL, + task_id integer NOT NULL +); + + +ALTER TABLE public.engine_segment OWNER TO root; + +-- +-- Name: engine_segment_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_segment_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_segment_id_seq OWNER TO root; + +-- +-- Name: engine_segment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_segment_id_seq OWNED BY public.engine_segment.id; + + +-- +-- Name: engine_serverfile; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_serverfile ( + id integer NOT NULL, + file character varying(1024) NOT NULL, + data_id integer +); + + +ALTER TABLE public.engine_serverfile OWNER TO root; + +-- +-- Name: engine_serverfile_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_serverfile_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_serverfile_id_seq OWNER TO root; + +-- +-- Name: engine_serverfile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_serverfile_id_seq OWNED BY public.engine_serverfile.id; + + +-- +-- Name: engine_task; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_task ( + id integer NOT NULL, + name character varying(256) NOT NULL, + mode character varying(32) NOT NULL, + created_date timestamp with time zone NOT NULL, + updated_date timestamp with time zone NOT NULL, + status character varying(32) NOT NULL, + bug_tracker character varying(2000) NOT NULL, + owner_id integer, + overlap integer, + assignee_id integer, + segment_size integer NOT NULL, + project_id integer, + data_id integer, + dimension character varying(2) NOT NULL, + subset character varying(64) NOT NULL, + organization_id integer, + CONSTRAINT engine_task_overlap_check CHECK ((overlap >= 0)), + CONSTRAINT engine_task_segment_size_check CHECK ((segment_size >= 0)) +); + + +ALTER TABLE public.engine_task OWNER TO root; + +-- +-- Name: engine_task_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_task_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_task_id_seq OWNER TO root; + +-- +-- Name: engine_task_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_task_id_seq OWNED BY public.engine_task.id; + + +-- +-- Name: engine_trackedshape; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_trackedshape ( + type character varying(16) NOT NULL, + occluded boolean NOT NULL, + z_order integer NOT NULL, + points text NOT NULL, + id bigint NOT NULL, + frame integer NOT NULL, + outside boolean NOT NULL, + track_id bigint NOT NULL, + rotation double precision NOT NULL, + CONSTRAINT engine_trackedshape_frame_check CHECK ((frame >= 0)) +); + + +ALTER TABLE public.engine_trackedshape OWNER TO root; + +-- +-- Name: engine_trackedshape_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_trackedshape_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_trackedshape_id_seq OWNER TO root; + +-- +-- Name: engine_trackedshape_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_trackedshape_id_seq OWNED BY public.engine_trackedshape.id; + + +-- +-- Name: engine_trackedshapeattributeval; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_trackedshapeattributeval ( + id bigint NOT NULL, + value character varying(4096) NOT NULL, + shape_id bigint NOT NULL, + spec_id integer NOT NULL +); + + +ALTER TABLE public.engine_trackedshapeattributeval OWNER TO root; + +-- +-- Name: engine_trackedshapeattributeval_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_trackedshapeattributeval_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_trackedshapeattributeval_id_seq OWNER TO root; + +-- +-- Name: engine_trackedshapeattributeval_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_trackedshapeattributeval_id_seq OWNED BY public.engine_trackedshapeattributeval.id; + + +-- +-- Name: engine_trainingproject; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_trainingproject ( + id integer NOT NULL, + host character varying(256) NOT NULL, + username character varying(256) NOT NULL, + password character varying(256) NOT NULL, + training_id character varying(64) NOT NULL, + enabled boolean, + project_class character varying(2) +); + + +ALTER TABLE public.engine_trainingproject OWNER TO root; + +-- +-- Name: engine_trainingproject_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_trainingproject_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_trainingproject_id_seq OWNER TO root; + +-- +-- Name: engine_trainingproject_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_trainingproject_id_seq OWNED BY public.engine_trainingproject.id; + + +-- +-- Name: engine_trainingprojectimage; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_trainingprojectimage ( + id integer NOT NULL, + idx integer NOT NULL, + training_image_id character varying(64) NOT NULL, + task_id integer NOT NULL, + CONSTRAINT engine_trainingprojectimage_idx_check CHECK ((idx >= 0)) +); + + +ALTER TABLE public.engine_trainingprojectimage OWNER TO root; + +-- +-- Name: engine_trainingprojectimage_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_trainingprojectimage_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_trainingprojectimage_id_seq OWNER TO root; + +-- +-- Name: engine_trainingprojectimage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_trainingprojectimage_id_seq OWNED BY public.engine_trainingprojectimage.id; + + +-- +-- Name: engine_trainingprojectlabel; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_trainingprojectlabel ( + id integer NOT NULL, + training_label_id character varying(64) NOT NULL, + cvat_label_id integer NOT NULL +); + + +ALTER TABLE public.engine_trainingprojectlabel OWNER TO root; + +-- +-- Name: engine_trainingprojectlabel_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_trainingprojectlabel_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_trainingprojectlabel_id_seq OWNER TO root; + +-- +-- Name: engine_trainingprojectlabel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_trainingprojectlabel_id_seq OWNED BY public.engine_trainingprojectlabel.id; + + +-- +-- Name: engine_video; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.engine_video ( + id integer NOT NULL, + path character varying(1024) NOT NULL, + height integer NOT NULL, + width integer NOT NULL, + data_id integer, + CONSTRAINT engine_video_height_check CHECK ((height >= 0)), + CONSTRAINT engine_video_width_check CHECK ((width >= 0)) +); + + +ALTER TABLE public.engine_video OWNER TO root; + +-- +-- Name: engine_video_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.engine_video_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.engine_video_id_seq OWNER TO root; + +-- +-- Name: engine_video_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.engine_video_id_seq OWNED BY public.engine_video.id; + + +-- +-- Name: organizations_invitation; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.organizations_invitation ( + key character varying(64) NOT NULL, + created_date timestamp with time zone NOT NULL, + membership_id integer NOT NULL, + owner_id integer +); + + +ALTER TABLE public.organizations_invitation OWNER TO root; + +-- +-- Name: organizations_membership; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.organizations_membership ( + id integer NOT NULL, + is_active boolean NOT NULL, + joined_date timestamp with time zone, + role character varying(16) NOT NULL, + organization_id integer NOT NULL, + user_id integer +); + + +ALTER TABLE public.organizations_membership OWNER TO root; + +-- +-- Name: organizations_membership_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.organizations_membership_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.organizations_membership_id_seq OWNER TO root; + +-- +-- Name: organizations_membership_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.organizations_membership_id_seq OWNED BY public.organizations_membership.id; + + +-- +-- Name: organizations_organization; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.organizations_organization ( + id integer NOT NULL, + slug character varying(16) NOT NULL, + name character varying(64) NOT NULL, + description text NOT NULL, + created_date timestamp with time zone NOT NULL, + updated_date timestamp with time zone NOT NULL, + contact jsonb NOT NULL, + owner_id integer +); + + +ALTER TABLE public.organizations_organization OWNER TO root; + +-- +-- Name: organizations_organization_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.organizations_organization_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.organizations_organization_id_seq OWNER TO root; + +-- +-- Name: organizations_organization_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.organizations_organization_id_seq OWNED BY public.organizations_organization.id; + + +-- +-- Name: socialaccount_socialaccount; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.socialaccount_socialaccount ( + id integer NOT NULL, + provider character varying(30) NOT NULL, + uid character varying(191) NOT NULL, + last_login timestamp with time zone NOT NULL, + date_joined timestamp with time zone NOT NULL, + extra_data text NOT NULL, + user_id integer NOT NULL +); + + +ALTER TABLE public.socialaccount_socialaccount OWNER TO root; + +-- +-- Name: socialaccount_socialaccount_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.socialaccount_socialaccount_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.socialaccount_socialaccount_id_seq OWNER TO root; + +-- +-- Name: socialaccount_socialaccount_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.socialaccount_socialaccount_id_seq OWNED BY public.socialaccount_socialaccount.id; + + +-- +-- Name: socialaccount_socialapp; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.socialaccount_socialapp ( + id integer NOT NULL, + provider character varying(30) NOT NULL, + name character varying(40) NOT NULL, + client_id character varying(191) NOT NULL, + secret character varying(191) NOT NULL, + key character varying(191) NOT NULL +); + + +ALTER TABLE public.socialaccount_socialapp OWNER TO root; + +-- +-- Name: socialaccount_socialapp_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.socialaccount_socialapp_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.socialaccount_socialapp_id_seq OWNER TO root; + +-- +-- Name: socialaccount_socialapp_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.socialaccount_socialapp_id_seq OWNED BY public.socialaccount_socialapp.id; + + +-- +-- Name: socialaccount_socialapp_sites; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.socialaccount_socialapp_sites ( + id integer NOT NULL, + socialapp_id integer NOT NULL, + site_id integer NOT NULL +); + + +ALTER TABLE public.socialaccount_socialapp_sites OWNER TO root; + +-- +-- Name: socialaccount_socialapp_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.socialaccount_socialapp_sites_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.socialaccount_socialapp_sites_id_seq OWNER TO root; + +-- +-- Name: socialaccount_socialapp_sites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.socialaccount_socialapp_sites_id_seq OWNED BY public.socialaccount_socialapp_sites.id; + + +-- +-- Name: socialaccount_socialtoken; Type: TABLE; Schema: public; Owner: root +-- + +CREATE TABLE public.socialaccount_socialtoken ( + id integer NOT NULL, + token text NOT NULL, + token_secret text NOT NULL, + expires_at timestamp with time zone, + account_id integer NOT NULL, + app_id integer NOT NULL +); + + +ALTER TABLE public.socialaccount_socialtoken OWNER TO root; + +-- +-- Name: socialaccount_socialtoken_id_seq; Type: SEQUENCE; Schema: public; Owner: root +-- + +CREATE SEQUENCE public.socialaccount_socialtoken_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.socialaccount_socialtoken_id_seq OWNER TO root; + +-- +-- Name: socialaccount_socialtoken_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root +-- + +ALTER SEQUENCE public.socialaccount_socialtoken_id_seq OWNED BY public.socialaccount_socialtoken.id; + + +-- +-- Name: account_emailaddress id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailaddress ALTER COLUMN id SET DEFAULT nextval('public.account_emailaddress_id_seq'::regclass); + + +-- +-- Name: account_emailconfirmation id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailconfirmation ALTER COLUMN id SET DEFAULT nextval('public.account_emailconfirmation_id_seq'::regclass); + + +-- +-- Name: auth_group id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group ALTER COLUMN id SET DEFAULT nextval('public.auth_group_id_seq'::regclass); + + +-- +-- Name: auth_group_permissions id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_group_permissions_id_seq'::regclass); + + +-- +-- Name: auth_permission id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_permission ALTER COLUMN id SET DEFAULT nextval('public.auth_permission_id_seq'::regclass); + + +-- +-- Name: auth_user id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user ALTER COLUMN id SET DEFAULT nextval('public.auth_user_id_seq'::regclass); + + +-- +-- Name: auth_user_groups id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_groups ALTER COLUMN id SET DEFAULT nextval('public.auth_user_groups_id_seq'::regclass); + + +-- +-- Name: auth_user_user_permissions id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_user_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_user_user_permissions_id_seq'::regclass); + + +-- +-- Name: django_admin_log id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_admin_log ALTER COLUMN id SET DEFAULT nextval('public.django_admin_log_id_seq'::regclass); + + +-- +-- Name: django_content_type id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_content_type ALTER COLUMN id SET DEFAULT nextval('public.django_content_type_id_seq'::regclass); + + +-- +-- Name: django_migrations id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_migrations ALTER COLUMN id SET DEFAULT nextval('public.django_migrations_id_seq'::regclass); + + +-- +-- Name: django_site id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_site ALTER COLUMN id SET DEFAULT nextval('public.django_site_id_seq'::regclass); + + +-- +-- Name: engine_attributespec id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_attributespec ALTER COLUMN id SET DEFAULT nextval('public.engine_attributespec_id_seq'::regclass); + + +-- +-- Name: engine_clientfile id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_clientfile ALTER COLUMN id SET DEFAULT nextval('public.engine_clientfile_id_seq'::regclass); + + +-- +-- Name: engine_cloudstorage id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_cloudstorage ALTER COLUMN id SET DEFAULT nextval('public.engine_cloudstorage_id_seq'::regclass); + + +-- +-- Name: engine_comment id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_comment ALTER COLUMN id SET DEFAULT nextval('public.engine_comment_id_seq'::regclass); + + +-- +-- Name: engine_data id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_data ALTER COLUMN id SET DEFAULT nextval('public.engine_data_id_seq'::regclass); + + +-- +-- Name: engine_image id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_image ALTER COLUMN id SET DEFAULT nextval('public.engine_image_id_seq'::regclass); + + +-- +-- Name: engine_issue id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_issue ALTER COLUMN id SET DEFAULT nextval('public.engine_issue_id_seq'::regclass); + + +-- +-- Name: engine_job id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_job ALTER COLUMN id SET DEFAULT nextval('public.engine_job_id_seq'::regclass); + + +-- +-- Name: engine_jobcommit id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_jobcommit ALTER COLUMN id SET DEFAULT nextval('public.engine_jobcommit_id_seq'::regclass); + + +-- +-- Name: engine_label id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_label ALTER COLUMN id SET DEFAULT nextval('public.engine_label_id_seq'::regclass); + + +-- +-- Name: engine_labeledimage id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimage ALTER COLUMN id SET DEFAULT nextval('public.engine_labeledimage_id_seq'::regclass); + + +-- +-- Name: engine_labeledimageattributeval id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimageattributeval ALTER COLUMN id SET DEFAULT nextval('public.engine_labeledimageattributeval_id_seq'::regclass); + + +-- +-- Name: engine_labeledshape id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshape ALTER COLUMN id SET DEFAULT nextval('public.engine_labeledshape_id_seq'::regclass); + + +-- +-- Name: engine_labeledshapeattributeval id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshapeattributeval ALTER COLUMN id SET DEFAULT nextval('public.engine_labeledshapeattributeval_id_seq'::regclass); + + +-- +-- Name: engine_labeledtrack id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrack ALTER COLUMN id SET DEFAULT nextval('public.engine_labeledtrack_id_seq'::regclass); + + +-- +-- Name: engine_labeledtrackattributeval id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrackattributeval ALTER COLUMN id SET DEFAULT nextval('public.engine_labeledtrackattributeval_id_seq'::regclass); + + +-- +-- Name: engine_manifest id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_manifest ALTER COLUMN id SET DEFAULT nextval('public.engine_manifest_id_seq'::regclass); + + +-- +-- Name: engine_profile id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_profile ALTER COLUMN id SET DEFAULT nextval('public.engine_profile_id_seq'::regclass); + + +-- +-- Name: engine_project id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_project ALTER COLUMN id SET DEFAULT nextval('public.engine_project_id_seq'::regclass); + + +-- +-- Name: engine_relatedfile id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_relatedfile ALTER COLUMN id SET DEFAULT nextval('public.engine_relatedfile_id_seq'::regclass); + + +-- +-- Name: engine_remotefile id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_remotefile ALTER COLUMN id SET DEFAULT nextval('public.engine_remotefile_id_seq'::regclass); + + +-- +-- Name: engine_segment id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_segment ALTER COLUMN id SET DEFAULT nextval('public.engine_segment_id_seq'::regclass); + + +-- +-- Name: engine_serverfile id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_serverfile ALTER COLUMN id SET DEFAULT nextval('public.engine_serverfile_id_seq'::regclass); + + +-- +-- Name: engine_task id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_task ALTER COLUMN id SET DEFAULT nextval('public.engine_task_id_seq'::regclass); + + +-- +-- Name: engine_trackedshape id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trackedshape ALTER COLUMN id SET DEFAULT nextval('public.engine_trackedshape_id_seq'::regclass); + + +-- +-- Name: engine_trackedshapeattributeval id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trackedshapeattributeval ALTER COLUMN id SET DEFAULT nextval('public.engine_trackedshapeattributeval_id_seq'::regclass); + + +-- +-- Name: engine_trainingproject id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingproject ALTER COLUMN id SET DEFAULT nextval('public.engine_trainingproject_id_seq'::regclass); + + +-- +-- Name: engine_trainingprojectimage id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingprojectimage ALTER COLUMN id SET DEFAULT nextval('public.engine_trainingprojectimage_id_seq'::regclass); + + +-- +-- Name: engine_trainingprojectlabel id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingprojectlabel ALTER COLUMN id SET DEFAULT nextval('public.engine_trainingprojectlabel_id_seq'::regclass); + + +-- +-- Name: engine_video id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_video ALTER COLUMN id SET DEFAULT nextval('public.engine_video_id_seq'::regclass); + + +-- +-- Name: organizations_membership id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_membership ALTER COLUMN id SET DEFAULT nextval('public.organizations_membership_id_seq'::regclass); + + +-- +-- Name: organizations_organization id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_organization ALTER COLUMN id SET DEFAULT nextval('public.organizations_organization_id_seq'::regclass); + + +-- +-- Name: socialaccount_socialaccount id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialaccount ALTER COLUMN id SET DEFAULT nextval('public.socialaccount_socialaccount_id_seq'::regclass); + + +-- +-- Name: socialaccount_socialapp id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialapp ALTER COLUMN id SET DEFAULT nextval('public.socialaccount_socialapp_id_seq'::regclass); + + +-- +-- Name: socialaccount_socialapp_sites id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialapp_sites ALTER COLUMN id SET DEFAULT nextval('public.socialaccount_socialapp_sites_id_seq'::regclass); + + +-- +-- Name: socialaccount_socialtoken id; Type: DEFAULT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialtoken ALTER COLUMN id SET DEFAULT nextval('public.socialaccount_socialtoken_id_seq'::regclass); + + +-- +-- Data for Name: account_emailaddress; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.account_emailaddress (id, email, verified, "primary", user_id) FROM stdin; +\. + + +-- +-- Data for Name: account_emailconfirmation; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.account_emailconfirmation (id, created, sent, key, email_address_id) FROM stdin; +\. + + +-- +-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.auth_group (id, name) FROM stdin; +1 admin +2 business +3 user +4 worker +\. + + +-- +-- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.auth_group_permissions (id, group_id, permission_id) FROM stdin; +\. + + +-- +-- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.auth_permission (id, name, content_type_id, codename) FROM stdin; +1 Can add log entry 1 add_logentry +2 Can change log entry 1 change_logentry +3 Can delete log entry 1 delete_logentry +4 Can view log entry 1 view_logentry +5 Can add permission 2 add_permission +6 Can change permission 2 change_permission +7 Can delete permission 2 delete_permission +8 Can view permission 2 view_permission +9 Can add group 3 add_group +10 Can change group 3 change_group +11 Can delete group 3 delete_group +12 Can view group 3 view_group +13 Can add user 4 add_user +14 Can change user 4 change_user +15 Can delete user 4 delete_user +16 Can view user 4 view_user +17 Can add content type 5 add_contenttype +18 Can change content type 5 change_contenttype +19 Can delete content type 5 delete_contenttype +20 Can view content type 5 view_contenttype +21 Can add session 6 add_session +22 Can change session 6 change_session +23 Can delete session 6 delete_session +24 Can view session 6 view_session +25 Can add Token 7 add_token +26 Can change Token 7 change_token +27 Can delete Token 7 delete_token +28 Can view Token 7 view_token +29 Can add token 8 add_tokenproxy +30 Can change token 8 change_tokenproxy +31 Can delete token 8 delete_tokenproxy +32 Can view token 8 view_tokenproxy +33 Can add site 9 add_site +34 Can change site 9 change_site +35 Can delete site 9 delete_site +36 Can view site 9 view_site +37 Can add email address 10 add_emailaddress +38 Can change email address 10 change_emailaddress +39 Can delete email address 10 delete_emailaddress +40 Can view email address 10 view_emailaddress +41 Can add email confirmation 11 add_emailconfirmation +42 Can change email confirmation 11 change_emailconfirmation +43 Can delete email confirmation 11 delete_emailconfirmation +44 Can view email confirmation 11 view_emailconfirmation +45 Can add social account 12 add_socialaccount +46 Can change social account 12 change_socialaccount +47 Can delete social account 12 delete_socialaccount +48 Can view social account 12 view_socialaccount +49 Can add social application 13 add_socialapp +50 Can change social application 13 change_socialapp +51 Can delete social application 13 delete_socialapp +52 Can view social application 13 view_socialapp +53 Can add social application token 14 add_socialtoken +54 Can change social application token 14 change_socialtoken +55 Can delete social application token 14 delete_socialtoken +56 Can view social application token 14 view_socialtoken +57 Can add profile 39 add_profile +58 Can change profile 39 change_profile +59 Can delete profile 39 delete_profile +60 Can view profile 39 view_profile +61 Can add issue 40 add_issue +62 Can change issue 40 change_issue +63 Can delete issue 40 delete_issue +64 Can view issue 40 view_issue +65 Can add comment 41 add_comment +66 Can change comment 41 change_comment +67 Can delete comment 41 delete_comment +68 Can view comment 41 view_comment +69 Can add training project 43 add_trainingproject +70 Can change training project 43 change_trainingproject +71 Can delete training project 43 delete_trainingproject +72 Can view training project 43 view_trainingproject +73 Can add training project label 44 add_trainingprojectlabel +74 Can change training project label 44 change_trainingprojectlabel +75 Can delete training project label 44 delete_trainingprojectlabel +76 Can view training project label 44 view_trainingprojectlabel +77 Can add training project image 45 add_trainingprojectimage +78 Can change training project image 45 change_trainingprojectimage +79 Can delete training project image 45 delete_trainingprojectimage +80 Can view training project image 45 view_trainingprojectimage +81 Can add manifest 47 add_manifest +82 Can change manifest 47 change_manifest +83 Can delete manifest 47 delete_manifest +84 Can view manifest 47 view_manifest +85 Can add git data 48 add_gitdata +86 Can change git data 48 change_gitdata +87 Can delete git data 48 delete_gitdata +88 Can view git data 48 view_gitdata +\. + + +-- +-- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) FROM stdin; +3 pbkdf2_sha256$260000$9YZSJ0xF4Kvjsm2Fwflciy$zRpcqAMLaJBbqTRS09NkZovOHtcdy6haZxu++AeoWFo= \N f user2 User Second user2@cvat.org f t 2021-12-14 18:24:12+00 +4 pbkdf2_sha256$260000$100pcg3A4DB6ewFLQFhfc8$YokGMdr0t2ZayTurcYpUyjaCbN4CeHPkoLCv5krrAhw= \N f user3 User Third user3@cvat.org f t 2021-12-14 18:24:39+00 +5 pbkdf2_sha256$260000$O87TrQZ5e1FdAjz2K5Xn3q$czWORxw/fCBgnZAEVjX/ki7JRHCsnaqRimCGYmULKfc= \N f user4 User Fourth user4@cvat.org f t 2021-12-14 18:25:10+00 +7 pbkdf2_sha256$260000$EtdCZTYNPHPX50kM67A7kA$JxuHkmB25RkeMszSV9Pd58E9AFdSu3Rx2UYSAKu/q4k= \N f worker2 Worker Second worker2@cvat.org f t 2021-12-14 18:30:43+00 +8 pbkdf2_sha256$260000$PNnmu5EKgxZCY9HQgNLfta$JjsE9zrFYJ3ISUHANjjwnxuiGNRGIyVamqnqrkqR9fQ= \N f worker3 Worker Third worker3@cvat.org f t 2021-12-14 18:31:25+00 +9 pbkdf2_sha256$260000$ipL3D6HSba1Cn7pzb5Q7bh$OFx/xO6Q3Q5sBGq3W3MBsmqFhVjkPmVVfaQdnJ8FAtg= \N f worker4 Worker Fourth worker4@cvat.org f t 2021-12-14 18:32:01+00 +11 pbkdf2_sha256$260000$Zw76ANIvIsDngZGsTv2G8O$piTVoqHrpTskW8rI1FBT9rzM2dcpjhrcOfI3pDgtjbo= \N f business2 Business Second business2@cvat.org f t 2021-12-14 18:34:01+00 +12 pbkdf2_sha256$260000$KcNRm6RwodBaGfWhh7ngqB$SsKUBx7vF1Ee0WBDwExd/JI39w1Ee0cBoox7lqNbhCk= \N f business3 Business Third business3@cvat.org f t 2021-12-14 18:34:34+00 +13 pbkdf2_sha256$260000$BbdWU6TKtVfIAW00Dk4Qyb$mkqf3VrZULPrzfH5NFEeEYCnzBPLaBBsVgdeTCve4lA= \N f business4 Business Fourth business4@cvat.org f t 2021-12-14 18:35:15+00 +14 pbkdf2_sha256$260000$47xWwGNsT3dvBc1qZDcLvC$fLC2y72acILlhGFiVp3nA/bnCxY/mRb7xOqOh7Es95k= \N f dummy1 Dummy First dummy1@cvat.org f t 2021-12-14 18:36:00+00 +15 pbkdf2_sha256$260000$g0en7cElWDD2HJlVV2Vhns$U7eJco9WdvEy/GDpZcoGu2rGGF+3TIMS0v/aRaCqWwo= \N f dummy2 Dummy Second dummy2@cvat.org f t 2021-12-14 18:36:31+00 +16 pbkdf2_sha256$260000$48BDv2UDlqhl8DUBc73KiH$Sl4mklcY7vuFyhZh9y1XozQbb35xT3ZgYAUhrUqpV6c= \N f dummy3 Dummy Third dummy3@cvat.org f t 2021-12-14 18:37:09+00 +17 pbkdf2_sha256$260000$ZgcuAD4y4yevdl8uH9uDkv$D89cXpicXu+B4Vs+Nlew/sXYpZvO4kOO1IMoyYs1AvE= \N f dummy4 Dummy Fourth dummy4@cvat.org f t 2021-12-14 18:37:41+00 +18 pbkdf2_sha256$260000$uOqP32bk2zHuvO0sdGBGmu$hMbzA1yBWcY5rIU670sZ3SHXRLUa7bCkbrMnrEDGSRM= \N t admin2 Admin Second admin2@cvat.org t t 2021-12-14 18:38:46+00 +6 pbkdf2_sha256$260000$15iUjDNh5gPg5683u1HhOG$fF8hW6AR90o9SCsO/MomzdQFkgQsMUW3YQUlwwiC1vA= 2021-12-14 19:11:21.04874+00 f worker1 Worker First worker1@cvat.org f t 2021-12-14 18:30:00+00 +10 pbkdf2_sha256$260000$X4F89IRqnBtojZuHidrwQG$j1+EpXfyvMesHdod4N+dNUfF4WKS2NWFfeGDec/43as= 2021-12-14 19:44:48.526708+00 f business1 Business First business1@cvat.org f t 2021-12-14 18:33:06+00 +2 pbkdf2_sha256$260000$Pf2xYWXBedoAJ504jyDD8e$8sJ244Ai0xhZrUTelapPNHlEg7CV0cCUaxbcxZtfaug= 2021-12-22 07:55:35.269206+00 f user1 User First user1@cvat.org f t 2021-12-14 18:21:09+00 +1 pbkdf2_sha256$260000$DevmxlmLwciP1P6sZs2Qag$U9DFtjTWx96Sk95qY6UXVcvpdQEP2LcoFBftk5D2RKY= 2021-12-22 08:11:58.502575+00 t admin1 Admin First admin1@cvat.org t t 2021-12-14 18:04:57+00 +\. + + +-- +-- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.auth_user_groups (id, user_id, group_id) FROM stdin; +1 1 1 +4 2 3 +5 3 3 +6 4 3 +7 5 3 +9 6 4 +11 7 4 +13 8 4 +15 9 4 +17 10 2 +19 11 2 +21 12 2 +23 13 2 +31 18 1 +\. + + +-- +-- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.auth_user_user_permissions (id, user_id, permission_id) FROM stdin; +\. + + +-- +-- Data for Name: authtoken_token; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.authtoken_token (key, created, user_id) FROM stdin; +a959159194c4b5238d95ef4e07919110fab346b0 2021-12-14 19:44:48.519942+00 10 +f952dc4730c58346882176f775ccaaf2a1c72416 2021-12-22 08:11:58.498742+00 1 +\. + + +-- +-- Data for Name: dataset_repo_gitdata; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.dataset_repo_gitdata (task_id, url, path, sync_date, status, lfs, format) FROM stdin; +\. + + +-- +-- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) FROM stdin; +1 2021-12-14 18:20:01.999685+00 1 admin 2 [{"changed": {"fields": ["Email address"]}}] 4 1 +2 2021-12-14 18:21:09.151512+00 2 user1 1 [{"added": {}}] 4 1 +3 2021-12-14 18:23:58.718016+00 2 user1 2 [{"changed": {"fields": ["First name", "Last name", "Email address"]}}] 4 1 +4 2021-12-14 18:24:12.553502+00 3 user2 1 [{"added": {}}] 4 1 +5 2021-12-14 18:24:24.326834+00 3 user2 2 [{"changed": {"fields": ["First name", "Last name", "Email address"]}}] 4 1 +6 2021-12-14 18:24:39.624768+00 4 user3 1 [{"added": {}}] 4 1 +7 2021-12-14 18:24:53.704458+00 4 user3 2 [{"changed": {"fields": ["First name", "Last name", "Email address"]}}] 4 1 +8 2021-12-14 18:25:10.952908+00 5 user4 1 [{"added": {}}] 4 1 +9 2021-12-14 18:25:31.451721+00 5 user4 2 [{"changed": {"fields": ["First name", "Last name", "Email address"]}}] 4 1 +10 2021-12-14 18:30:00.390031+00 6 worker1 1 [{"added": {}}] 4 1 +11 2021-12-14 18:30:20.019995+00 6 worker1 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +12 2021-12-14 18:30:43.380691+00 7 worker2 1 [{"added": {}}] 4 1 +13 2021-12-14 18:31:05.739605+00 7 worker2 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +14 2021-12-14 18:31:25.912795+00 8 worker3 1 [{"added": {}}] 4 1 +15 2021-12-14 18:31:46.096822+00 8 worker3 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +16 2021-12-14 18:32:01.519456+00 9 worker4 1 [{"added": {}}] 4 1 +17 2021-12-14 18:32:21.067181+00 9 worker4 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +18 2021-12-14 18:33:06.933223+00 10 business1 1 [{"added": {}}] 4 1 +19 2021-12-14 18:33:12.541037+00 10 business1 2 [{"changed": {"fields": ["First name", "Last name"]}}] 4 1 +20 2021-12-14 18:33:28.422176+00 10 business1 2 [{"changed": {"fields": ["Last name", "Email address", "Groups"]}}] 4 1 +21 2021-12-14 18:34:02.007251+00 11 business2 1 [{"added": {}}] 4 1 +22 2021-12-14 18:34:18.560535+00 11 business2 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +23 2021-12-14 18:34:34.313002+00 12 business3 1 [{"added": {}}] 4 1 +24 2021-12-14 18:34:54.186415+00 12 business3 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +25 2021-12-14 18:35:15.352514+00 13 business4 1 [{"added": {}}] 4 1 +26 2021-12-14 18:35:31.459507+00 13 business4 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +27 2021-12-14 18:36:00.882778+00 14 dummy1 1 [{"added": {}}] 4 1 +28 2021-12-14 18:36:16.686238+00 14 dummy1 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +29 2021-12-14 18:36:31.775943+00 15 dummy2 1 [{"added": {}}] 4 1 +30 2021-12-14 18:36:47.117011+00 15 dummy2 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +31 2021-12-14 18:37:09.321532+00 16 dummy3 1 [{"added": {}}] 4 1 +32 2021-12-14 18:37:25.887032+00 16 dummy3 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +33 2021-12-14 18:37:41.262279+00 17 dummy4 1 [{"added": {}}] 4 1 +34 2021-12-14 18:38:00.903794+00 17 dummy4 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +35 2021-12-14 18:38:21.968081+00 1 admin1 2 [{"changed": {"fields": ["Username", "First name", "Last name", "Email address"]}}] 4 1 +36 2021-12-14 18:38:27.813262+00 1 admin1 2 [{"changed": {"fields": ["Last name"]}}] 4 1 +37 2021-12-14 18:38:46.549655+00 18 admin2 1 [{"added": {}}] 4 1 +38 2021-12-14 18:39:13.940795+00 18 admin2 2 [{"changed": {"fields": ["First name", "Last name", "Email address", "Groups"]}}] 4 1 +39 2021-12-14 18:41:27.383994+00 18 admin2 2 [{"changed": {"fields": ["Staff status", "Superuser status"]}}] 4 1 +40 2021-12-14 18:41:37.492062+00 18 admin2 2 [{"changed": {"fields": ["password"]}}] 4 1 +41 2021-12-14 18:41:50.468234+00 1 admin1 2 [{"changed": {"fields": ["password"]}}] 4 1 +\. + + +-- +-- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.django_content_type (id, app_label, model) FROM stdin; +1 admin logentry +2 auth permission +3 auth group +4 auth user +5 contenttypes contenttype +6 sessions session +7 authtoken token +8 authtoken tokenproxy +9 sites site +10 account emailaddress +11 account emailconfirmation +12 socialaccount socialaccount +13 socialaccount socialapp +14 socialaccount socialtoken +15 organizations organization +16 organizations membership +17 organizations invitation +18 engine attributespec +19 engine job +20 engine label +21 engine segment +22 engine task +23 engine clientfile +24 engine remotefile +25 engine serverfile +26 engine image +27 engine video +28 engine labeledimageattributeval +29 engine labeledshapeattributeval +30 engine labeledtrackattributeval +31 engine trackedshape +32 engine trackedshapeattributeval +33 engine labeledimage +34 engine labeledshape +35 engine labeledtrack +36 engine jobcommit +37 engine project +38 engine data +39 engine profile +40 engine issue +41 engine comment +42 engine relatedfile +43 engine trainingproject +44 engine trainingprojectlabel +45 engine trainingprojectimage +46 engine cloudstorage +47 engine manifest +48 dataset_repo gitdata +\. + + +-- +-- Data for Name: django_migrations; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.django_migrations (id, app, name, applied) FROM stdin; +1 contenttypes 0001_initial 2021-12-14 17:51:20.865248+00 +2 auth 0001_initial 2021-12-14 17:51:20.989796+00 +3 account 0001_initial 2021-12-14 17:51:21.060941+00 +4 account 0002_email_max_length 2021-12-14 17:51:21.081752+00 +5 admin 0001_initial 2021-12-14 17:51:21.169986+00 +6 admin 0002_logentry_remove_auto_add 2021-12-14 17:51:21.175501+00 +7 admin 0003_logentry_add_action_flag_choices 2021-12-14 17:51:21.181026+00 +8 contenttypes 0002_remove_content_type_name 2021-12-14 17:51:21.191453+00 +9 auth 0002_alter_permission_name_max_length 2021-12-14 17:51:21.197509+00 +10 auth 0003_alter_user_email_max_length 2021-12-14 17:51:21.203842+00 +11 auth 0004_alter_user_username_opts 2021-12-14 17:51:21.209334+00 +12 auth 0005_alter_user_last_login_null 2021-12-14 17:51:21.215101+00 +13 auth 0006_require_contenttypes_0002 2021-12-14 17:51:21.216991+00 +14 auth 0007_alter_validators_add_error_messages 2021-12-14 17:51:21.22246+00 +15 auth 0008_alter_user_username_max_length 2021-12-14 17:51:21.232206+00 +16 auth 0009_alter_user_last_name_max_length 2021-12-14 17:51:21.237755+00 +17 auth 0010_alter_group_name_max_length 2021-12-14 17:51:21.244143+00 +18 auth 0011_update_proxy_permissions 2021-12-14 17:51:21.25077+00 +19 auth 0012_alter_user_first_name_max_length 2021-12-14 17:51:21.256149+00 +20 authtoken 0001_initial 2021-12-14 17:51:21.273024+00 +21 authtoken 0002_auto_20160226_1747 2021-12-14 17:51:21.291594+00 +22 authtoken 0003_tokenproxy 2021-12-14 17:51:21.294089+00 +23 engine 0001_release_v0_1_0 2021-12-14 17:51:21.571161+00 +24 engine 0002_labeledpoints_labeledpointsattributeval_labeledpolygon_labeledpolygonattributeval_labeledpolyline_la 2021-12-14 17:51:21.894205+00 +25 engine 0003_objectpath_shapes 2021-12-14 17:51:21.932331+00 +26 engine 0004_task_z_order 2021-12-14 17:51:21.955835+00 +27 engine 0005_auto_20180609_1512 2021-12-14 17:51:22.122032+00 +28 engine 0006_auto_20180629_1501 2021-12-14 17:51:22.236558+00 +29 engine 0007_task_flipped 2021-12-14 17:51:22.257002+00 +30 engine 0008_auto_20180917_1424 2021-12-14 17:51:22.274168+00 +31 engine 0009_auto_20180917_1424 2021-12-14 17:51:22.999581+00 +32 engine 0010_auto_20181011_1517 2021-12-14 17:51:23.128611+00 +33 engine 0011_add_task_source_and_safecharfield 2021-12-14 17:51:23.210334+00 +34 engine 0012_auto_20181025_1618 2021-12-14 17:51:23.235041+00 +35 engine 0013_auth_no_default_permissions 2021-12-14 17:51:23.398062+00 +36 engine 0014_job_max_shape_id 2021-12-14 17:51:23.417645+00 +37 git 0001_initial 2021-12-14 17:51:23.442071+00 +38 git 0002_auto_20190123_1305 2021-12-14 17:51:23.447964+00 +39 git 0003_gitdata_lfs 2021-12-14 17:51:23.461072+00 +40 dataset_repo 0004_rename 2021-12-14 17:51:23.481463+00 +41 dataset_repo 0005_auto_20201019_1100 2021-12-14 17:51:23.486946+00 +42 dataset_repo 0006_gitdata_format 2021-12-14 17:51:23.514261+00 +43 organizations 0001_initial 2021-12-14 17:51:23.612788+00 +44 engine 0015_db_redesign_20190217 2021-12-14 17:51:24.151363+00 +45 engine 0016_attribute_spec_20190217 2021-12-14 17:51:24.221309+00 +46 engine 0017_db_redesign_20190221 2021-12-14 17:51:25.470468+00 +47 engine 0018_jobcommit 2021-12-14 17:51:25.504537+00 +48 engine 0019_frame_selection 2021-12-14 17:51:25.594599+00 +49 engine 0020_remove_task_flipped 2021-12-14 17:51:25.625914+00 +50 engine 0021_auto_20190826_1827 2021-12-14 17:51:25.637294+00 +51 engine 0022_auto_20191004_0817 2021-12-14 17:51:25.685646+00 +52 engine 0023_auto_20200113_1323 2021-12-14 17:51:25.717237+00 +53 engine 0024_auto_20191023_1025 2021-12-14 17:51:26.108507+00 +54 engine 0025_auto_20200324_1222 2021-12-14 17:51:26.114437+00 +55 engine 0026_auto_20200719_1511 2021-12-14 17:51:26.125945+00 +56 engine 0027_auto_20200719_1552 2021-12-14 17:51:26.183222+00 +57 engine 0028_labelcolor 2021-12-14 17:51:26.215378+00 +58 engine 0029_data_storage_method 2021-12-14 17:51:26.239238+00 +59 engine 0030_auto_20200914_1331 2021-12-14 17:51:26.260454+00 +60 engine 0031_auto_20201011_0220 2021-12-14 17:51:26.271961+00 +61 engine 0032_remove_task_z_order 2021-12-14 17:51:26.283971+00 +62 engine 0033_projects_adjastment 2021-12-14 17:51:26.321361+00 +63 engine 0034_auto_20201125_1426 2021-12-14 17:51:26.476412+00 +64 engine 0035_data_storage 2021-12-14 17:51:26.488459+00 +65 engine 0036_auto_20201216_0943 2021-12-14 17:51:26.666652+00 +66 engine 0037_task_subset 2021-12-14 17:51:26.698546+00 +67 engine 0038_manifest 2021-12-14 17:51:26.722129+00 +68 engine 0039_auto_training 2021-12-14 17:51:26.800865+00 +69 engine 0040_cloud_storage 2021-12-14 17:51:26.867041+00 +70 engine 0041_auto_20210827_0258 2021-12-14 17:51:26.887987+00 +71 engine 0042_auto_20210830_1056 2021-12-14 17:51:26.927464+00 +72 engine 0043_auto_20211027_0718 2021-12-14 17:51:26.938726+00 +73 engine 0044_auto_20211115_0858 2021-12-14 17:51:26.975836+00 +74 engine 0044_auto_20211123_0824 2021-12-14 17:51:26.998251+00 +75 engine 0045_data_sorting_method 2021-12-14 17:51:27.012846+00 +76 engine 0047_auto_20211110_1938 2021-12-14 17:51:27.162676+00 +77 engine 0048_auto_20211112_1918 2021-12-14 17:51:27.404377+00 +78 sessions 0001_initial 2021-12-14 17:51:27.421795+00 +79 sites 0001_initial 2021-12-14 17:51:27.428837+00 +80 sites 0002_alter_domain_unique 2021-12-14 17:51:27.439108+00 +81 socialaccount 0001_initial 2021-12-14 17:51:27.542302+00 +82 socialaccount 0002_token_max_lengths 2021-12-14 17:51:27.568546+00 +83 socialaccount 0003_extra_data_default_dict 2021-12-14 17:51:27.579759+00 +84 engine 0045_auto_20211123_0824 2021-12-14 17:51:27.582602+00 +85 engine 0046_data_sorting_method 2021-12-14 17:51:27.584223+00 +86 dataset_repo 0001_initial 2021-12-14 17:51:27.585687+00 +87 dataset_repo 0003_gitdata_lfs 2021-12-14 17:51:27.587237+00 +88 dataset_repo 0002_auto_20190123_1305 2021-12-14 17:51:27.588845+00 +\. + + +-- +-- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.django_session (session_key, session_data, expire_date) FROM stdin; +qje4thj4oqumlmj2fe27gae72jg4j6u8 .eJxVjDsOwjAQBe_iGll2Ev8o6TmDtetd4wCypTipEHeHSCmgfTPzXiLCtpa4dV7iTOIstBKn3xEhPbjuhO5Qb02mVtdlRrkr8qBdXhvx83K4fwcFevnWjDT6KfmRlSEHTmGyOfigKA8aR9TZgiXO3jKlwRAr61JGA2YKgZ0S7w8qsjkD:1mxDjE:ktIwpvhQwj3_BtA8Avyq5WmmpmIJD88pF_vSxFzeetA 2021-12-28 19:44:48.529173+00 +ic4rcr36vkoymwaw6p322bjqlryvq2jd .eJxVjMsOwiAQRf-FtSEDFRhcuu83kBkeUjU0Ke3K-O_apAvd3nPOfYlA21rD1vMSpiQuQonT78YUH7ntIN2p3WYZ57YuE8tdkQftcpxTfl4P9--gUq_fWns0mX22NsLZDlE7INLWAzkyODjFyKwzAnExUQNQUamgRnIOkzLi_QHSyzeb:1mxPj7:Bl2FnM4tKrtDftiy20PMjYuIfpHYUK6FG6IYdZjPS6o 2021-12-29 08:33:29.459216+00 +mnb97kue40xo05g2rwwkw6d34sxrnesw .eJxVjDsOwjAQBe_iGllO8E-U9JzB2l3v4gBypDipEHfHkVJAOzPvvVWCbS1pa7ykKauLGtTplyHQk-su8gPqfdY013WZUO-JPmzTtznz63q0fwcFWunrgELAEtGgEzcCGTp7I4ZCdA5iN9KRFaA8YARvDXoL7GNgO5Jn9fkCIRs5Sw:1mxQKq:6A9lz-3mKMJukzqDk-DXfGIbDNeLeGul_TgZ7A6Xlf8 2021-12-29 09:12:28.010763+00 +po0rbd1yhywmc0i2jfam69r419a66aj8 .eJxVjMsOwiAQRf-FtSE8pB1cuvcbCMMMUjWQlHZl_HdD0oVu7znnvkWI-1bC3nkNC4mL0OL0u2FMT64D0CPWe5Op1W1dUA5FHrTLWyN-XQ_376DEXkY9QeKzIpWVn9gYhEhkI3lyYFg7jTMDg7WkAdF5mCFh9mRZZUhOi88X-eU4dg:1mzwj8:CWx3-u6eXmWLpwiFMK5_yWnoPY3yUSf1QCZY-UdJcF8 2022-01-05 08:11:58.507079+00 +\. + + +-- +-- Data for Name: django_site; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.django_site (id, domain, name) FROM stdin; +1 example.com example.com +\. + + +-- +-- Data for Name: engine_attributespec; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_attributespec (id, label_id, default_value, input_type, mutable, name, "values") FROM stdin; +1 5 mazda select f model mazda\nvolvo\nbmw +\. + + +-- +-- Data for Name: engine_clientfile; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_clientfile (id, file, data_id) FROM stdin; +1 /home/django/data/data/1/raw/59.png 1 +2 /home/django/data/data/1/raw/65.png 1 +3 /home/django/data/data/1/raw/90.png 1 +4 /home/django/data/data/1/raw/69.png 1 +5 /home/django/data/data/1/raw/19.png 1 +6 /home/django/data/data/1/raw/91.png 1 +7 /home/django/data/data/1/raw/120.png 1 +8 /home/django/data/data/1/raw/30.png 1 +9 /home/django/data/data/1/raw/127.png 1 +10 /home/django/data/data/1/raw/142.png 1 +11 /home/django/data/data/1/raw/115.png 1 +12 /home/django/data/data/1/raw/73.png 1 +13 /home/django/data/data/1/raw/71.png 1 +14 /home/django/data/data/1/raw/72.png 1 +15 /home/django/data/data/1/raw/20.png 1 +16 /home/django/data/data/1/raw/66.png 1 +17 /home/django/data/data/1/raw/68.png 1 +18 /home/django/data/data/1/raw/80.png 1 +19 /home/django/data/data/1/raw/76.png 1 +20 /home/django/data/data/1/raw/84.png 1 +21 /home/django/data/data/1/raw/101.png 1 +22 /home/django/data/data/1/raw/112.png 1 +23 /home/django/data/data/1/raw/95.png 1 +24 /home/django/data/data/1/raw/124.png 1 +25 /home/django/data/data/1/raw/133.png 1 +26 /home/django/data/data/1/raw/22.png 1 +27 /home/django/data/data/1/raw/97.png 1 +28 /home/django/data/data/1/raw/131.png 1 +29 /home/django/data/data/1/raw/50.png 1 +30 /home/django/data/data/1/raw/48.png 1 +31 /home/django/data/data/1/raw/28.png 1 +32 /home/django/data/data/1/raw/29.png 1 +33 /home/django/data/data/1/raw/93.png 1 +34 /home/django/data/data/1/raw/79.png 1 +35 /home/django/data/data/1/raw/77.png 1 +36 /home/django/data/data/1/raw/107.png 1 +37 /home/django/data/data/1/raw/125.png 1 +38 /home/django/data/data/1/raw/62.png 1 +39 /home/django/data/data/1/raw/78.png 1 +40 /home/django/data/data/1/raw/111.png 1 +41 /home/django/data/data/1/raw/64.png 1 +42 /home/django/data/data/1/raw/55.png 1 +43 /home/django/data/data/1/raw/63.png 1 +44 /home/django/data/data/1/raw/85.png 1 +45 /home/django/data/data/1/raw/121.png 1 +46 /home/django/data/data/1/raw/94.png 1 +47 /home/django/data/data/1/raw/57.png 1 +48 /home/django/data/data/1/raw/141.png 1 +49 /home/django/data/data/1/raw/122.png 1 +50 /home/django/data/data/1/raw/88.png 1 +51 /home/django/data/data/1/raw/38.png 1 +52 /home/django/data/data/1/raw/14.png 1 +53 /home/django/data/data/1/raw/16.png 1 +54 /home/django/data/data/1/raw/109.png 1 +55 /home/django/data/data/1/raw/106.png 1 +56 /home/django/data/data/1/raw/26.png 1 +57 /home/django/data/data/1/raw/98.png 1 +58 /home/django/data/data/1/raw/34.png 1 +59 /home/django/data/data/1/raw/126.png 1 +60 /home/django/data/data/1/raw/105.png 1 +61 /home/django/data/data/1/raw/143.png 1 +62 /home/django/data/data/1/raw/104.png 1 +63 /home/django/data/data/1/raw/89.png 1 +64 /home/django/data/data/1/raw/130.png 1 +65 /home/django/data/data/1/raw/123.png 1 +66 /home/django/data/data/1/raw/43.png 1 +67 /home/django/data/data/1/raw/40.png 1 +68 /home/django/data/data/1/raw/74.png 1 +69 /home/django/data/data/1/raw/117.png 1 +70 /home/django/data/data/1/raw/132.png 1 +71 /home/django/data/data/1/raw/116.png 1 +72 /home/django/data/data/1/raw/52.png 1 +73 /home/django/data/data/1/raw/113.png 1 +74 /home/django/data/data/1/raw/58.png 1 +75 /home/django/data/data/1/raw/99.png 1 +76 /home/django/data/data/1/raw/119.png 1 +77 /home/django/data/data/1/raw/18.png 1 +78 /home/django/data/data/1/raw/137.png 1 +79 /home/django/data/data/1/raw/44.png 1 +80 /home/django/data/data/1/raw/23.png 1 +81 /home/django/data/data/1/raw/39.png 1 +82 /home/django/data/data/1/raw/31.png 1 +83 /home/django/data/data/1/raw/83.png 1 +84 /home/django/data/data/1/raw/67.png 1 +85 /home/django/data/data/1/raw/46.png 1 +86 /home/django/data/data/1/raw/49.png 1 +87 /home/django/data/data/1/raw/108.png 1 +88 /home/django/data/data/1/raw/110.png 1 +89 /home/django/data/data/1/raw/21.png 1 +90 /home/django/data/data/1/raw/129.png 1 +91 /home/django/data/data/1/raw/81.png 1 +92 /home/django/data/data/1/raw/41.png 1 +93 /home/django/data/data/1/raw/96.png 1 +94 /home/django/data/data/1/raw/118.png 1 +95 /home/django/data/data/1/raw/135.png 1 +96 /home/django/data/data/1/raw/87.png 1 +97 /home/django/data/data/1/raw/102.png 1 +98 /home/django/data/data/1/raw/32.png 1 +99 /home/django/data/data/1/raw/47.png 1 +100 /home/django/data/data/1/raw/51.png 1 +101 /home/django/data/data/1/raw/140.png 1 +102 /home/django/data/data/1/raw/15.png 1 +103 /home/django/data/data/1/raw/45.png 1 +104 /home/django/data/data/1/raw/100.png 1 +105 /home/django/data/data/1/raw/33.png 1 +106 /home/django/data/data/1/raw/35.png 1 +107 /home/django/data/data/1/raw/139.png 1 +108 /home/django/data/data/1/raw/61.png 1 +109 /home/django/data/data/1/raw/82.png 1 +110 /home/django/data/data/1/raw/27.png 1 +111 /home/django/data/data/1/raw/136.png 1 +112 /home/django/data/data/1/raw/24.png 1 +113 /home/django/data/data/1/raw/56.png 1 +114 /home/django/data/data/1/raw/36.png 1 +115 /home/django/data/data/1/raw/86.png 1 +116 /home/django/data/data/1/raw/70.png 1 +117 /home/django/data/data/1/raw/53.png 1 +118 /home/django/data/data/1/raw/92.png 1 +119 /home/django/data/data/1/raw/25.png 1 +120 /home/django/data/data/1/raw/54.png 1 +121 /home/django/data/data/1/raw/103.png 1 +122 /home/django/data/data/1/raw/128.png 1 +123 /home/django/data/data/1/raw/42.png 1 +124 /home/django/data/data/1/raw/138.png 1 +125 /home/django/data/data/1/raw/114.png 1 +126 /home/django/data/data/1/raw/60.png 1 +127 /home/django/data/data/1/raw/75.png 1 +128 /home/django/data/data/1/raw/37.png 1 +129 /home/django/data/data/1/raw/17.png 1 +130 /home/django/data/data/1/raw/134.png 1 +131 /home/django/data/data/2/raw/120.png 2 +132 /home/django/data/data/2/raw/127.png 2 +133 /home/django/data/data/2/raw/124.png 2 +134 /home/django/data/data/2/raw/133.png 2 +135 /home/django/data/data/2/raw/131.png 2 +136 /home/django/data/data/2/raw/125.png 2 +137 /home/django/data/data/2/raw/121.png 2 +138 /home/django/data/data/2/raw/122.png 2 +139 /home/django/data/data/2/raw/126.png 2 +140 /home/django/data/data/2/raw/130.png 2 +141 /home/django/data/data/2/raw/123.png 2 +142 /home/django/data/data/2/raw/132.png 2 +143 /home/django/data/data/2/raw/119.png 2 +144 /home/django/data/data/2/raw/137.png 2 +145 /home/django/data/data/2/raw/129.png 2 +146 /home/django/data/data/2/raw/118.png 2 +147 /home/django/data/data/2/raw/135.png 2 +148 /home/django/data/data/2/raw/140.png 2 +149 /home/django/data/data/2/raw/139.png 2 +150 /home/django/data/data/2/raw/136.png 2 +151 /home/django/data/data/2/raw/128.png 2 +152 /home/django/data/data/2/raw/138.png 2 +153 /home/django/data/data/2/raw/134.png 2 +154 /home/django/data/data/3/raw/59.png 3 +155 /home/django/data/data/3/raw/65.png 3 +156 /home/django/data/data/3/raw/90.png 3 +157 /home/django/data/data/3/raw/69.png 3 +158 /home/django/data/data/3/raw/19.png 3 +159 /home/django/data/data/3/raw/91.png 3 +160 /home/django/data/data/3/raw/120.png 3 +161 /home/django/data/data/3/raw/30.png 3 +162 /home/django/data/data/3/raw/127.png 3 +163 /home/django/data/data/3/raw/142.png 3 +164 /home/django/data/data/3/raw/115.png 3 +165 /home/django/data/data/3/raw/73.png 3 +166 /home/django/data/data/3/raw/71.png 3 +167 /home/django/data/data/3/raw/72.png 3 +168 /home/django/data/data/3/raw/3.png 3 +169 /home/django/data/data/3/raw/20.png 3 +170 /home/django/data/data/3/raw/66.png 3 +171 /home/django/data/data/3/raw/145.png 3 +172 /home/django/data/data/3/raw/68.png 3 +173 /home/django/data/data/3/raw/80.png 3 +174 /home/django/data/data/3/raw/76.png 3 +175 /home/django/data/data/3/raw/84.png 3 +176 /home/django/data/data/3/raw/101.png 3 +177 /home/django/data/data/3/raw/112.png 3 +178 /home/django/data/data/3/raw/95.png 3 +179 /home/django/data/data/3/raw/124.png 3 +180 /home/django/data/data/3/raw/133.png 3 +181 /home/django/data/data/3/raw/22.png 3 +182 /home/django/data/data/3/raw/97.png 3 +183 /home/django/data/data/3/raw/131.png 3 +184 /home/django/data/data/3/raw/50.png 3 +185 /home/django/data/data/3/raw/48.png 3 +186 /home/django/data/data/3/raw/28.png 3 +187 /home/django/data/data/3/raw/29.png 3 +188 /home/django/data/data/3/raw/93.png 3 +189 /home/django/data/data/3/raw/79.png 3 +190 /home/django/data/data/3/raw/77.png 3 +191 /home/django/data/data/3/raw/144.png 3 +192 /home/django/data/data/3/raw/107.png 3 +193 /home/django/data/data/3/raw/125.png 3 +194 /home/django/data/data/3/raw/62.png 3 +195 /home/django/data/data/3/raw/78.png 3 +196 /home/django/data/data/3/raw/111.png 3 +197 /home/django/data/data/3/raw/64.png 3 +198 /home/django/data/data/3/raw/55.png 3 +199 /home/django/data/data/3/raw/63.png 3 +200 /home/django/data/data/3/raw/85.png 3 +201 /home/django/data/data/3/raw/121.png 3 +202 /home/django/data/data/3/raw/94.png 3 +203 /home/django/data/data/3/raw/57.png 3 +204 /home/django/data/data/3/raw/141.png 3 +205 /home/django/data/data/3/raw/122.png 3 +206 /home/django/data/data/3/raw/88.png 3 +207 /home/django/data/data/3/raw/147.png 3 +208 /home/django/data/data/3/raw/38.png 3 +209 /home/django/data/data/3/raw/14.png 3 +210 /home/django/data/data/3/raw/16.png 3 +211 /home/django/data/data/3/raw/109.png 3 +212 /home/django/data/data/3/raw/11.png 3 +213 /home/django/data/data/3/raw/106.png 3 +214 /home/django/data/data/3/raw/12.png 3 +215 /home/django/data/data/3/raw/26.png 3 +216 /home/django/data/data/3/raw/98.png 3 +217 /home/django/data/data/3/raw/34.png 3 +218 /home/django/data/data/3/raw/126.png 3 +219 /home/django/data/data/3/raw/105.png 3 +220 /home/django/data/data/3/raw/143.png 3 +221 /home/django/data/data/3/raw/104.png 3 +222 /home/django/data/data/3/raw/89.png 3 +223 /home/django/data/data/3/raw/130.png 3 +224 /home/django/data/data/3/raw/123.png 3 +225 /home/django/data/data/3/raw/43.png 3 +226 /home/django/data/data/3/raw/40.png 3 +227 /home/django/data/data/3/raw/74.png 3 +228 /home/django/data/data/3/raw/117.png 3 +229 /home/django/data/data/3/raw/10.png 3 +230 /home/django/data/data/3/raw/132.png 3 +231 /home/django/data/data/3/raw/116.png 3 +232 /home/django/data/data/3/raw/52.png 3 +233 /home/django/data/data/3/raw/113.png 3 +234 /home/django/data/data/3/raw/58.png 3 +235 /home/django/data/data/3/raw/99.png 3 +236 /home/django/data/data/3/raw/119.png 3 +237 /home/django/data/data/3/raw/18.png 3 +238 /home/django/data/data/3/raw/137.png 3 +239 /home/django/data/data/3/raw/44.png 3 +240 /home/django/data/data/3/raw/23.png 3 +241 /home/django/data/data/3/raw/39.png 3 +242 /home/django/data/data/3/raw/31.png 3 +243 /home/django/data/data/3/raw/83.png 3 +244 /home/django/data/data/3/raw/67.png 3 +245 /home/django/data/data/3/raw/46.png 3 +246 /home/django/data/data/3/raw/49.png 3 +247 /home/django/data/data/3/raw/108.png 3 +248 /home/django/data/data/3/raw/0.png 3 +249 /home/django/data/data/3/raw/110.png 3 +250 /home/django/data/data/3/raw/21.png 3 +251 /home/django/data/data/3/raw/129.png 3 +252 /home/django/data/data/3/raw/81.png 3 +253 /home/django/data/data/3/raw/13.png 3 +254 /home/django/data/data/3/raw/41.png 3 +255 /home/django/data/data/3/raw/96.png 3 +256 /home/django/data/data/3/raw/1.png 3 +257 /home/django/data/data/3/raw/118.png 3 +258 /home/django/data/data/3/raw/135.png 3 +259 /home/django/data/data/3/raw/87.png 3 +260 /home/django/data/data/3/raw/102.png 3 +261 /home/django/data/data/3/raw/32.png 3 +262 /home/django/data/data/3/raw/47.png 3 +263 /home/django/data/data/3/raw/51.png 3 +264 /home/django/data/data/3/raw/140.png 3 +265 /home/django/data/data/3/raw/15.png 3 +266 /home/django/data/data/3/raw/45.png 3 +267 /home/django/data/data/3/raw/100.png 3 +268 /home/django/data/data/3/raw/33.png 3 +269 /home/django/data/data/3/raw/35.png 3 +270 /home/django/data/data/3/raw/139.png 3 +271 /home/django/data/data/3/raw/61.png 3 +272 /home/django/data/data/3/raw/82.png 3 +273 /home/django/data/data/3/raw/27.png 3 +274 /home/django/data/data/3/raw/136.png 3 +275 /home/django/data/data/3/raw/24.png 3 +276 /home/django/data/data/3/raw/9.png 3 +277 /home/django/data/data/3/raw/56.png 3 +278 /home/django/data/data/3/raw/36.png 3 +279 /home/django/data/data/3/raw/86.png 3 +280 /home/django/data/data/3/raw/70.png 3 +281 /home/django/data/data/3/raw/53.png 3 +282 /home/django/data/data/3/raw/92.png 3 +283 /home/django/data/data/3/raw/25.png 3 +284 /home/django/data/data/3/raw/6.png 3 +285 /home/django/data/data/3/raw/54.png 3 +286 /home/django/data/data/3/raw/103.png 3 +287 /home/django/data/data/3/raw/128.png 3 +288 /home/django/data/data/3/raw/146.png 3 +289 /home/django/data/data/3/raw/42.png 3 +290 /home/django/data/data/3/raw/138.png 3 +291 /home/django/data/data/3/raw/114.png 3 +292 /home/django/data/data/3/raw/5.png 3 +293 /home/django/data/data/3/raw/60.png 3 +294 /home/django/data/data/3/raw/75.png 3 +295 /home/django/data/data/3/raw/2.png 3 +296 /home/django/data/data/3/raw/8.png 3 +297 /home/django/data/data/3/raw/37.png 3 +298 /home/django/data/data/3/raw/7.png 3 +299 /home/django/data/data/3/raw/4.png 3 +300 /home/django/data/data/3/raw/17.png 3 +301 /home/django/data/data/3/raw/134.png 3 +302 /home/django/data/data/4/raw/90.png 4 +303 /home/django/data/data/4/raw/91.png 4 +304 /home/django/data/data/4/raw/120.png 4 +305 /home/django/data/data/4/raw/127.png 4 +306 /home/django/data/data/4/raw/142.png 4 +307 /home/django/data/data/4/raw/115.png 4 +308 /home/django/data/data/4/raw/145.png 4 +309 /home/django/data/data/4/raw/101.png 4 +310 /home/django/data/data/4/raw/112.png 4 +311 /home/django/data/data/4/raw/95.png 4 +312 /home/django/data/data/4/raw/124.png 4 +313 /home/django/data/data/4/raw/133.png 4 +314 /home/django/data/data/4/raw/97.png 4 +315 /home/django/data/data/4/raw/131.png 4 +316 /home/django/data/data/4/raw/93.png 4 +317 /home/django/data/data/4/raw/144.png 4 +318 /home/django/data/data/4/raw/107.png 4 +319 /home/django/data/data/4/raw/125.png 4 +320 /home/django/data/data/4/raw/111.png 4 +321 /home/django/data/data/4/raw/121.png 4 +322 /home/django/data/data/4/raw/94.png 4 +323 /home/django/data/data/4/raw/141.png 4 +324 /home/django/data/data/4/raw/122.png 4 +325 /home/django/data/data/4/raw/147.png 4 +326 /home/django/data/data/4/raw/109.png 4 +327 /home/django/data/data/4/raw/106.png 4 +328 /home/django/data/data/4/raw/98.png 4 +329 /home/django/data/data/4/raw/126.png 4 +330 /home/django/data/data/4/raw/105.png 4 +331 /home/django/data/data/4/raw/143.png 4 +332 /home/django/data/data/4/raw/104.png 4 +333 /home/django/data/data/4/raw/130.png 4 +334 /home/django/data/data/4/raw/123.png 4 +335 /home/django/data/data/4/raw/117.png 4 +336 /home/django/data/data/4/raw/132.png 4 +337 /home/django/data/data/4/raw/116.png 4 +338 /home/django/data/data/4/raw/113.png 4 +339 /home/django/data/data/4/raw/99.png 4 +340 /home/django/data/data/4/raw/119.png 4 +341 /home/django/data/data/4/raw/137.png 4 +342 /home/django/data/data/4/raw/108.png 4 +343 /home/django/data/data/4/raw/110.png 4 +344 /home/django/data/data/4/raw/129.png 4 +345 /home/django/data/data/4/raw/96.png 4 +346 /home/django/data/data/4/raw/118.png 4 +347 /home/django/data/data/4/raw/135.png 4 +348 /home/django/data/data/4/raw/102.png 4 +349 /home/django/data/data/4/raw/140.png 4 +350 /home/django/data/data/4/raw/100.png 4 +351 /home/django/data/data/4/raw/139.png 4 +352 /home/django/data/data/4/raw/136.png 4 +353 /home/django/data/data/4/raw/92.png 4 +354 /home/django/data/data/4/raw/103.png 4 +355 /home/django/data/data/4/raw/128.png 4 +356 /home/django/data/data/4/raw/146.png 4 +357 /home/django/data/data/4/raw/138.png 4 +358 /home/django/data/data/4/raw/114.png 4 +359 /home/django/data/data/4/raw/134.png 4 +\. + + +-- +-- Data for Name: engine_cloudstorage; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_cloudstorage (id, provider_type, resource, display_name, created_date, updated_date, credentials, credentials_type, specific_attributes, description, owner_id, organization_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_comment; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_comment (id, message, created_date, updated_date, owner_id, issue_id) FROM stdin; +1 Empyt? 2021-12-22 07:18:30.586175+00 2021-12-22 07:18:30.586221+00 1 1 +2 Missing object 2021-12-22 07:18:40.441985+00 2021-12-22 07:18:40.442004+00 1 2 +3 It is very very very very long messsage. It is very very very very long messsage. It is very very very very long messsage. It is very very very very long messsage. It is very very very very long messsage. It is very very very very long messsage 2021-12-22 07:19:06.541777+00 2021-12-22 07:19:06.541794+00 1 3 +4 test 2021-12-22 07:21:38.792235+00 2021-12-22 07:21:38.792247+00 1 4 +5 I don't know why... 2021-12-22 07:22:53.281391+00 2021-12-22 07:22:53.281407+00 1 1 +6 Can you see my comment? 2021-12-22 07:23:04.819354+00 2021-12-22 07:23:04.81937+00 1 4 +\. + + +-- +-- Data for Name: engine_data; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_data (id, chunk_size, size, image_quality, start_frame, stop_frame, frame_filter, compressed_chunk_type, original_chunk_type, storage_method, storage, cloud_storage_id, sorting_method) FROM stdin; +1 72 130 70 0 129 imageset imageset cache local \N natural +2 72 23 70 0 22 imageset imageset cache local \N lexicographical +3 72 148 70 0 147 imageset imageset cache local \N random +4 72 58 70 0 57 imageset imageset cache local \N lexicographical +\. + + +-- +-- Data for Name: engine_image; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_image (id, path, frame, height, width, data_id) FROM stdin; +1 14.png 0 694 598 1 +2 15.png 1 917 471 1 +3 16.png 2 672 876 1 +4 17.png 3 683 681 1 +5 18.png 4 619 928 1 +6 19.png 5 637 979 1 +7 20.png 6 512 675 1 +8 21.png 7 294 230 1 +9 22.png 8 957 976 1 +10 23.png 9 568 906 1 +11 24.png 10 453 242 1 +12 25.png 11 883 509 1 +13 26.png 12 637 692 1 +14 27.png 13 532 437 1 +15 28.png 14 868 519 1 +16 29.png 15 581 841 1 +17 30.png 16 740 375 1 +18 31.png 17 886 836 1 +19 32.png 18 804 532 1 +20 33.png 19 928 397 1 +21 34.png 20 626 643 1 +22 35.png 21 231 479 1 +23 36.png 22 120 162 1 +24 37.png 23 433 933 1 +25 38.png 24 205 736 1 +26 39.png 25 389 145 1 +27 40.png 26 107 413 1 +28 41.png 27 153 279 1 +29 42.png 28 1000 763 1 +30 43.png 29 948 775 1 +31 44.png 30 392 835 1 +32 45.png 31 509 295 1 +33 46.png 32 979 629 1 +34 47.png 33 368 368 1 +35 48.png 34 731 620 1 +36 49.png 35 953 100 1 +37 50.png 36 750 543 1 +38 51.png 37 225 519 1 +39 52.png 38 986 226 1 +40 53.png 39 887 752 1 +41 54.png 40 410 722 1 +42 55.png 41 335 412 1 +43 56.png 42 160 623 1 +44 57.png 43 855 982 1 +45 58.png 44 412 104 1 +46 59.png 45 198 526 1 +47 60.png 46 359 865 1 +48 61.png 47 906 253 1 +49 62.png 48 214 274 1 +50 63.png 49 684 957 1 +51 64.png 50 243 463 1 +52 65.png 51 122 311 1 +53 66.png 52 918 675 1 +54 67.png 53 219 145 1 +55 68.png 54 489 701 1 +56 69.png 55 876 990 1 +57 70.png 56 275 215 1 +58 71.png 57 777 142 1 +59 72.png 58 828 499 1 +60 73.png 59 397 391 1 +61 74.png 60 175 728 1 +62 75.png 61 662 518 1 +63 76.png 62 658 800 1 +64 77.png 63 238 862 1 +65 78.png 64 260 330 1 +66 79.png 65 537 357 1 +67 80.png 66 839 630 1 +68 81.png 67 206 429 1 +69 82.png 68 227 340 1 +70 83.png 69 577 580 1 +71 84.png 70 429 845 1 +72 85.png 71 672 413 1 +73 86.png 72 464 405 1 +74 87.png 73 988 923 1 +75 88.png 74 720 921 1 +76 89.png 75 149 489 1 +77 90.png 76 433 934 1 +78 91.png 77 523 299 1 +79 92.png 78 740 327 1 +80 93.png 79 740 425 1 +81 94.png 80 722 651 1 +82 95.png 81 261 996 1 +83 96.png 82 823 815 1 +84 97.png 83 647 433 1 +85 98.png 84 370 615 1 +86 99.png 85 545 343 1 +87 100.png 86 177 281 1 +88 101.png 87 190 323 1 +89 102.png 88 550 958 1 +90 103.png 89 498 224 1 +91 104.png 90 754 903 1 +92 105.png 91 761 896 1 +93 106.png 92 390 151 1 +94 107.png 93 695 289 1 +95 108.png 94 888 373 1 +96 109.png 95 519 160 1 +97 110.png 96 809 978 1 +98 111.png 97 660 926 1 +99 112.png 98 738 985 1 +100 113.png 99 770 145 1 +101 114.png 100 615 450 1 +102 115.png 101 795 220 1 +103 116.png 102 313 134 1 +104 117.png 103 461 828 1 +105 118.png 104 805 940 1 +106 119.png 105 357 693 1 +107 120.png 106 301 254 1 +108 121.png 107 334 918 1 +109 122.png 108 115 619 1 +110 123.png 109 738 599 1 +111 124.png 110 355 306 1 +112 125.png 111 507 838 1 +113 126.png 112 211 885 1 +114 127.png 113 522 553 1 +115 128.png 114 826 424 1 +116 129.png 115 984 264 1 +117 130.png 116 387 698 1 +118 131.png 117 901 781 1 +119 132.png 118 149 144 1 +120 133.png 119 131 989 1 +121 134.png 120 328 661 1 +122 135.png 121 811 333 1 +123 136.png 122 497 292 1 +124 137.png 123 238 886 1 +125 138.png 124 179 759 1 +126 139.png 125 746 769 1 +127 140.png 126 833 749 1 +128 141.png 127 853 623 1 +129 142.png 128 361 925 1 +130 143.png 129 740 135 1 +131 118.png 0 805 940 2 +132 119.png 1 357 693 2 +133 120.png 2 301 254 2 +134 121.png 3 334 918 2 +135 122.png 4 115 619 2 +136 123.png 5 738 599 2 +137 124.png 6 355 306 2 +138 125.png 7 507 838 2 +139 126.png 8 211 885 2 +140 127.png 9 522 553 2 +141 128.png 10 826 424 2 +142 129.png 11 984 264 2 +143 130.png 12 387 698 2 +144 131.png 13 901 781 2 +145 132.png 14 149 144 2 +146 133.png 15 131 989 2 +147 134.png 16 328 661 2 +148 135.png 17 811 333 2 +149 136.png 18 497 292 2 +150 137.png 19 238 886 2 +151 138.png 20 179 759 2 +152 139.png 21 746 769 2 +153 140.png 22 833 749 2 +154 25.png 0 883 509 3 +155 107.png 1 695 289 3 +156 46.png 2 979 629 3 +157 144.png 3 326 658 3 +158 116.png 4 313 134 3 +159 39.png 5 389 145 3 +160 146.png 6 975 777 3 +161 56.png 7 160 623 3 +162 2.png 8 557 659 3 +163 145.png 9 430 176 3 +164 47.png 10 368 368 3 +165 20.png 11 512 675 3 +166 101.png 12 190 323 3 +167 63.png 13 684 957 3 +168 119.png 14 357 693 3 +169 79.png 15 537 357 3 +170 69.png 16 876 990 3 +171 62.png 17 214 274 3 +172 29.png 18 581 841 3 +173 132.png 19 149 144 3 +174 90.png 20 433 934 3 +175 92.png 21 740 327 3 +176 77.png 22 238 862 3 +177 87.png 23 988 923 3 +178 28.png 24 868 519 3 +179 123.png 25 738 599 3 +180 98.png 26 370 615 3 +181 44.png 27 392 835 3 +182 30.png 28 740 375 3 +183 48.png 29 731 620 3 +184 14.png 30 694 598 3 +185 4.png 31 290 282 3 +186 89.png 32 149 489 3 +187 113.png 33 770 145 3 +188 105.png 34 761 896 3 +189 57.png 35 855 982 3 +190 36.png 36 120 162 3 +191 53.png 37 887 752 3 +192 75.png 38 662 518 3 +193 5.png 39 672 972 3 +194 108.png 40 888 373 3 +195 94.png 41 722 651 3 +196 83.png 42 577 580 3 +197 120.png 43 301 254 3 +198 66.png 44 918 675 3 +199 26.png 45 637 692 3 +200 97.png 46 647 433 3 +201 147.png 47 542 294 3 +202 127.png 48 522 553 3 +203 102.png 49 550 958 3 +204 27.png 50 532 437 3 +205 76.png 51 658 800 3 +206 129.png 52 984 264 3 +207 143.png 53 740 135 3 +208 139.png 54 746 769 3 +209 12.png 55 202 817 3 +210 93.png 56 740 425 3 +211 65.png 57 122 311 3 +212 114.png 58 615 450 3 +213 19.png 59 637 979 3 +214 96.png 60 823 815 3 +215 6.png 61 397 899 3 +216 84.png 62 429 845 3 +217 74.png 63 175 728 3 +218 10.png 64 367 315 3 +219 99.png 65 545 343 3 +220 40.png 66 107 413 3 +221 104.png 67 754 903 3 +222 61.png 68 906 253 3 +223 43.png 69 948 775 3 +224 110.png 70 809 978 3 +225 140.png 71 833 749 3 +226 24.png 72 453 242 3 +227 122.png 73 115 619 3 +228 35.png 74 231 479 3 +229 49.png 75 953 100 3 +230 38.png 76 205 736 3 +231 33.png 77 928 397 3 +232 137.png 78 238 886 3 +233 109.png 79 519 160 3 +234 70.png 80 275 215 3 +235 67.png 81 219 145 3 +236 86.png 82 464 405 3 +237 82.png 83 227 340 3 +238 118.png 84 805 940 3 +239 21.png 85 294 230 3 +240 134.png 86 328 661 3 +241 32.png 87 804 532 3 +242 72.png 88 828 499 3 +243 17.png 89 683 681 3 +244 73.png 90 397 391 3 +245 64.png 91 243 463 3 +246 0.png 92 100 488 3 +247 142.png 93 361 925 3 +248 135.png 94 811 333 3 +249 131.png 95 901 781 3 +250 103.png 96 498 224 3 +251 91.png 97 523 299 3 +252 121.png 98 334 918 3 +253 58.png 99 412 104 3 +254 128.png 100 826 424 3 +255 31.png 101 886 836 3 +256 18.png 102 619 928 3 +257 34.png 103 626 643 3 +258 112.png 104 738 985 3 +259 50.png 105 750 543 3 +260 55.png 106 335 412 3 +261 88.png 107 720 921 3 +262 81.png 108 206 429 3 +263 60.png 109 359 865 3 +264 9.png 110 840 681 3 +265 11.png 111 343 399 3 +266 100.png 112 177 281 3 +267 15.png 113 917 471 3 +268 111.png 114 660 926 3 +269 78.png 115 260 330 3 +270 125.png 116 507 838 3 +271 126.png 117 211 885 3 +272 13.png 118 449 331 3 +273 42.png 119 1000 763 3 +274 138.png 120 179 759 3 +275 80.png 121 839 630 3 +276 85.png 122 672 413 3 +277 1.png 123 492 377 3 +278 136.png 124 497 292 3 +279 51.png 125 225 519 3 +280 8.png 126 672 952 3 +281 59.png 127 198 526 3 +282 16.png 128 672 876 3 +283 45.png 129 509 295 3 +284 124.png 130 355 306 3 +285 71.png 131 777 142 3 +286 117.png 132 461 828 3 +287 41.png 133 153 279 3 +288 95.png 134 261 996 3 +289 115.png 135 795 220 3 +290 68.png 136 489 701 3 +291 22.png 137 957 976 3 +292 133.png 138 131 989 3 +293 106.png 139 390 151 3 +294 3.png 140 981 388 3 +295 52.png 141 986 226 3 +296 141.png 142 853 623 3 +297 54.png 143 410 722 3 +298 130.png 144 387 698 3 +299 23.png 145 568 906 3 +300 7.png 146 239 541 3 +301 37.png 147 433 933 3 +302 100.png 0 177 281 4 +303 101.png 1 190 323 4 +304 102.png 2 550 958 4 +305 103.png 3 498 224 4 +306 104.png 4 754 903 4 +307 105.png 5 761 896 4 +308 106.png 6 390 151 4 +309 107.png 7 695 289 4 +310 108.png 8 888 373 4 +311 109.png 9 519 160 4 +312 110.png 10 809 978 4 +313 111.png 11 660 926 4 +314 112.png 12 738 985 4 +315 113.png 13 770 145 4 +316 114.png 14 615 450 4 +317 115.png 15 795 220 4 +318 116.png 16 313 134 4 +319 117.png 17 461 828 4 +320 118.png 18 805 940 4 +321 119.png 19 357 693 4 +322 120.png 20 301 254 4 +323 121.png 21 334 918 4 +324 122.png 22 115 619 4 +325 123.png 23 738 599 4 +326 124.png 24 355 306 4 +327 125.png 25 507 838 4 +328 126.png 26 211 885 4 +329 127.png 27 522 553 4 +330 128.png 28 826 424 4 +331 129.png 29 984 264 4 +332 130.png 30 387 698 4 +333 131.png 31 901 781 4 +334 132.png 32 149 144 4 +335 133.png 33 131 989 4 +336 134.png 34 328 661 4 +337 135.png 35 811 333 4 +338 136.png 36 497 292 4 +339 137.png 37 238 886 4 +340 138.png 38 179 759 4 +341 139.png 39 746 769 4 +342 140.png 40 833 749 4 +343 141.png 41 853 623 4 +344 142.png 42 361 925 4 +345 143.png 43 740 135 4 +346 144.png 44 326 658 4 +347 145.png 45 430 176 4 +348 146.png 46 975 777 4 +349 147.png 47 542 294 4 +350 90.png 48 433 934 4 +351 91.png 49 523 299 4 +352 92.png 50 740 327 4 +353 93.png 51 740 425 4 +354 94.png 52 722 651 4 +355 95.png 53 261 996 4 +356 96.png 54 823 815 4 +357 97.png 55 647 433 4 +358 98.png 56 370 615 4 +359 99.png 57 545 343 4 +\. + + +-- +-- Data for Name: engine_issue; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_issue (id, frame, "position", created_date, updated_date, job_id, owner_id, assignee_id, resolved) FROM stdin; +1 50 54.8076171875,75.2099609375,210.205078125,195.767578125 2021-12-22 07:18:30.575175+00 \N 4 1 \N f +2 51 121.615234375,33.515625,618.193359375,357.7275390625 2021-12-22 07:18:40.432626+00 \N 4 1 \N f +3 52 32.78125,152.4072265625,211.7841796875,766.12890625 2021-12-22 07:19:06.536571+00 \N 4 1 \N f +4 50 18.861328125,225.0771484375,283.755859375,371.0732421875 2021-12-22 07:21:38.787374+00 \N 4 1 \N f +\. + + +-- +-- Data for Name: engine_job; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_job (id, segment_id, assignee_id, status, stage, state) FROM stdin; +3 3 \N annotation annotation new +5 5 \N validation acceptance new +2 2 6 annotation annotation new +1 1 \N annotation annotation new +6 6 7 annotation annotation new +4 4 \N validation validation new +\. + + +-- +-- Data for Name: engine_jobcommit; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_jobcommit (id, version, "timestamp", message, owner_id, job_id) FROM stdin; +1 1 2021-12-22 07:14:15.237479+00 Changes: tags - 0; shapes - 5; tracks - 0 \N 2 +2 2 2021-12-22 07:14:15.268804+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 2 +3 3 2021-12-22 07:14:15.298016+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 2 +4 1 2021-12-22 07:15:22.945367+00 Changes: tags - 0; shapes - 9; tracks - 0 \N 1 +5 2 2021-12-22 07:15:22.985309+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 1 +6 3 2021-12-22 07:15:23.019102+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 1 +7 1 2021-12-22 07:17:34.839155+00 Changes: tags - 0; shapes - 7; tracks - 0 \N 6 +8 2 2021-12-22 07:17:34.878804+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 6 +9 3 2021-12-22 07:17:34.909805+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 6 +10 1 2021-12-22 07:19:33.859315+00 Changes: tags - 0; shapes - 5; tracks - 0 \N 4 +11 2 2021-12-22 07:19:33.907033+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 4 +12 3 2021-12-22 07:19:33.934873+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 4 +13 4 2021-12-22 07:22:30.331021+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 4 +14 5 2021-12-22 07:22:30.362857+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 4 +15 6 2021-12-22 07:22:30.388715+00 Changes: tags - 0; shapes - 0; tracks - 0 \N 4 +\. + + +-- +-- Data for Name: engine_label; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_label (id, name, task_id, color, project_id) FROM stdin; +1 cat 1 #6080c0 \N +2 dog 1 #406040 \N +3 car 2 #2080c0 \N +4 person 2 #c06060 \N +5 car \N #2080c0 1 +6 person \N #c06060 1 +7 cat \N #6080c0 2 +8 dog \N #406040 2 +\. + + +-- +-- Data for Name: engine_labeledimage; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_labeledimage (id, frame, "group", job_id, label_id, source) FROM stdin; +\. + + +-- +-- Data for Name: engine_labeledimageattributeval; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_labeledimageattributeval (id, value, spec_id, image_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_labeledshape; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_labeledshape (id, frame, "group", type, occluded, z_order, points, job_id, label_id, source, rotation) FROM stdin; +1 0 0 rectangle f 0 223.39453125,226.0751953125,513.7663269042969,377.9619903564453 2 3 manual 0 +2 1 0 polygon f 0 63.0791015625,139.75390625,132.19337349397574,112.3867469879533,189.71144578313397,159.23614457831354,191.1030120481937,246.9048192771097,86.73554216867524,335.5012048192784,32.00060240964012,250.15180722891637 2 3 manual 0 +3 1 0 polygon f 0 83.0244140625,216.75390625,112.24759036144678,162.48313253012202,167.44638554216908,183.35662650602535,149.35602409638705,252.0072289156633,84.41626506024113,292.8265060240974,72.81987951807241,258.9650602409638 2 4 manual 0 +4 2 0 polyline f 0 24.443359375,107.2275390625,84.91109877913368,61.125083240844106,169.4316315205324,75.1561598224198,226.5581576026634,113.90865704772477,240.5892341842391,205.77880133185317,210.52264150943483,270.9230854605994 2 3 manual 0 +5 22 0 points f 0 148.94921875,285.6865234375,313.515094339622,400.32830188679145,217.36415094339463,585.2339622641503,64.81698113207494,499.25283018867776 2 3 manual 0 +6 0 0 rectangle f 0 139.595703125,123.2666015625,348.2578582763672,246.5074462890625 1 1 manual 0 +7 0 0 rectangle f 0 249.7421875,432.9091796875,470.0352020263672,558.4607925415039 1 1 manual 0 +8 0 0 rectangle f 0 416.810546875,226.48046875,560.8482818603516,353.5725860595703 1 1 manual 0 +9 1 0 rectangle f 0 0.0,62.05859375,471.0,355.17291259765625 1 1 manual 0 +10 1 0 rectangle f 0 0.0,656.4296875,471.0,827.4130401611328 1 1 manual 0 +11 2 0 rectangle f 0 241.830078125,91.767578125,876.0,671.28369140625 1 1 manual 0 +12 3 0 rectangle f 0 135.8037109375,264.595703125,470.1022644042969,490.49359130859375 1 1 manual 0 +13 5 0 rectangle f 0 0.0,0.0,183.3411865234375,246.05125427246094 1 1 manual 0 +14 5 0 rectangle f 0 780.04296875,0.0,979.0,248.173095703125 1 1 manual 0 +15 0 0 polygon f 0 50.1318359375,80.345703125,128.1219755826878,84.07824639289902,158.76792452830523,130.24361820200102,82.74239733629474,161.47891231964786,22.62918978912603,158.92508324084702,0.0,110.48447384849997,0.0,103.91522863219352 6 7 manual 0 +16 0 0 polygon f 0 204.34375,21.607421875,248.74128745838243,43.609877913431774,258.1708102108787,89.3823529411784,194.9144284128779,108.04495005549688,115.54927857935945,94.6864594894596,93.35061043285532,50.28912319645133,107.69134295227741,33.39456159822657 6 7 manual 0 +17 1 0 polygon f 0 79.9326171875,54.205078125,81.22958500669301,50.313253012047426,84.4725568942431,47.93507362784476,88.79651941097654,45.98929049531398,92.03949129852663,44.90829986613062,96.36345381526007,43.61111111111131,100.03882195448386,42.7463186077639,106.30856760374809,40.80053547523312,113.44310575635791,38.85475234270416,118.63186077643877,37.557563587683035,124.03681392235558,36.26037483266373,128.5769745649268,35.39558232931631,132.03614457831281,34.74698795180666,135.92771084337255,34.098393574297006,142.62985274431048,33.6659973226233,147.17001338687987,33.6659973226233,153.0073627844704,33.88219544846106,160.79049531459168,34.530789825970714,165.33065595716107,34.96318607764442,171.38420348058935,35.611780455154076,175.7081659973228,36.044176706827784,180.46452476572995,36.69277108433744,184.13989290495374,37.557563587683035,189.11244979919684,37.98995983935674,193.65261044176623,38.42235609103045,197.32797858099002,39.070950468540104,200.35475234270416,40.36813922356123,204.6787148594376,42.96251673360166,209.43507362784476,45.55689424364027,213.54283801874226,47.93507362784476,217.434404283802,50.745649263721134,220.67737617135208,54.20481927710898,223.70414993306622,57.01539491298536,227.16331994645225,60.69076305220915,231.70348058902164,65.0147255689426,237.10843373494026,71.06827309236905,242.51338688085707,76.90562248995957,247.26974564926422,82.52677376171414,250.5127175368143,88.36412315930284,252.02610441766956,92.25568942436439,253.10709504685292,96.14725568942413,254.40428380187404,100.68741633199352,255.26907630522146,108.25435073627887,255.26907630522146,112.36211512717455,254.83668005354775,116.90227576974576,253.7556894243644,121.2262382864792,252.89089692101697,124.901606425703,251.3775100401599,129.44176706827238,249.21552878179318,133.54953145916988,246.83734939759051,137.0087014725559,243.37817938420267,140.03547523427005,237.75702811244992,143.9270414993298,230.62248995983828,147.38621151271764,225.43373493975923,149.3319946452466,221.1097724230258,150.196787148594,216.56961178045458,150.62918340026772,212.0294511378852,150.84538152610367,206.40829986613062,151.27777777777737,200.1385542168664,151.71017402945108,193.43641231593028,152.35876840696073,188.89625167335907,152.35876840696073,181.5455153949133,152.35876840696073,177.22155287817986,152.35876840696073,171.6004016064253,152.57496653279668,165.76305220883478,152.57496653279668,161.65528781793728,152.1425702811248,156.46653279785824,151.71017402945108,147.38621151271764,150.41298527442996,136.79250334671997,147.81860776439134,132.46854082998652,146.52141900937022,126.1987951807223,143.9270414993298,121.65863453815291,141.54886211512712,115.60508701472463,138.73828647925075,109.76773761713412,135.7115127175366,106.95716198125774,133.9819277108436,103.93038821954542,130.95515394912945,100.68741633199352,124.25301204819334,97.22824631860749,118.19946452476506,94.20147255689335,112.1459170013386,92.25568942436439,106.95716198125774,90.09370816599767,102.6331994645243,87.28313253011947,98.9578313253005,85.76974564926422,95.06626506024077,82.52677376171414,91.82329317269068,79.06760374832629,88.79651941097654,74.5274431057569,85.98594377510017,69.9872824631857,84.68875502008086,65.0147255689426,84.4725568942431,59.60977242302579,86.41834002677388,56.15060240963794,88.14792503346689,52.90763052208786,89.8775100401599,49.88085676037372,91.82329317269068,47.07028112449734,93.9852744310574,42.31392235609019,97.01204819277154,37.98995983935674,99.17402945113827,34.530789825970714,100.25502008032163,30.855421686746922,98.5254350736268,28.6934404283802,95.06626506024077,25.882864792503824,87.71552878179318,24.5856760374827,82.74297188755008,22.63989290495374,74.95983935742879,21.342704149932615,69.33868808567604,19.829317269075545,63.28514056224958,19.180722891565892,59.17737617135208,18.315930388218476,54.63721552878087,17.883534136546587,50.52945113788519,17.883534136546587,44.692101740294675,17.883534136546587,39.070950468540104,18.964524765729948,33.88219544846106,19.396921017401837,28.909638554216144,19.829317269075545,25.018072289156407,21.775100401606323,20.694109772422962,23.937081659973046,16.58634538152546,26.09906291833977,13.559571619813141,28.26104417670649,10.748995983934947,31.071619812582867,8.803212851405988,35.17938420348037,7.722222222222626,41.23293172690683,7.506024096384863,48.58366800535441,9.235609103077877,53.55622489959751,10.96519410977271,57.447791164659066,12.47858099062978,62.420348058902164,14.424364123158739,66.52811244979966,16.370147255689517,69.33868808567604,18.53212851405624,74.95983935742879,23.7208835341371,77.77041499330699,26.531459170013477,80.7971887550193,30.423025435073214,82.52677376171414,34.74698795180666,83.39156626505974,38.85475234270416,83.6077643908975,42.097724230254244,82.52677376171414,45.55689424364027 6 7 manual 0 +18 2 0 polygon f 0 280.2734375,143.0498046875,298.8688085676058,139.20214190093975,311.693440428382,137.91967871486122,333.4953145917025,136.6372155287845,352.09103078982844,136.6372155287845,371.32797858099366,136.6372155287845,391.8473895582356,136.6372155287845,405.31325301205106,136.6372155287845,427.1151271753697,135.99598393574524,448.2757697456509,135.99598393574524,470.07764390897137,135.99598393574524,484.1847389558261,134.7135207496667,502.78045515395206,134.7135207496667,529.0709504685437,134.07228915662927,545.1017402945145,134.7135207496667,589.9879518072303,138.56091030790049,613.0722891566293,140.48460508701646,626.5381526104447,141.12583668005573,637.4390896921032,141.767068273095,650.2637215528812,143.0495314591717,668.8594377510071,144.9732262382895,681.0428380187441,145.61445783132694,707.974564926375,148.82061579652145,718.8755020080353,150.10307898259998,729.1352074966562,151.3855421686767,738.7536813922379,153.30923694779267,753.5020080321301,157.7978580990657,768.2503346720241,163.56894243641364,783.6398929049556,172.5461847389579,790.693440428382,179.59973226238435,795.8232931726925,187.93574297188934,797.7469879518103,200.76037483266555,797.7469879518103,216.149933065597,786.8460508701501,227.6921017402965,777.8688085676058,232.1807228915677,759.9143239625191,236.66934404284075,747.0896921017429,237.3105756358782,734.9062918340042,237.95180722891746,716.3105756358782,238.59303882195672,697.0736278447148,239.234270414996,675.9129852744336,239.87550200803344,654.7523427041524,240.5167336010727,640.0040160642584,240.5167336010727,619.4846050870165,239.234270414996,606.6599732262403,238.59303882195672,584.2168674698823,238.59303882195672,572.6746987951828,239.234270414996,560.4912985274459,239.234270414996,548.9491298527464,238.59303882195672,536.1244979919702,237.3105756358782,521.376171352078,236.02811244980148,506.627844712184,234.74564926372295,490.5970548862133,233.46318607764624,477.1311914323978,233.46318607764624,457.25301204819516,232.82195448460698,441.22222222222445,232.1807228915677,419.420348058904,232.1807228915677,391.8473895582356,232.1807228915677,377.0990629183416,232.1807228915677,362.3507362784494,232.1807228915677,346.96117804551795,232.82195448460698,331.5716198125865,234.1044176706855,316.8232931726925,236.02811244980148,295.6626506024113,242.44042838018868,286.0441767068296,246.92904953146171,272.57831325301413,255.2650602409667,264.8835341365484,262.31860776439316,257.82998661312195,276.4257028112479,256.5475234270434,288.60910307898484,256.5475234270434,303.9986613119163,259.7536813922379,318.10575635877103,266.1659973226251,326.441767068276,273.86077643909266,334.7777777777792,290.5327978581008,346.3199464524787,302.0749665328003,351.4497991967892,320.029451137887,355.9384203480604,340.54886211512894,359.1445783132549,359.78580990629416,360.4270414993334,370.6867469879544,361.70950468541014,388.6412315930411,361.70950468541014,418.77911646586654,364.91566265060465,436.09236947791396,366.8393574297206,461.1004016064271,369.40428380187586,480.9785809906316,371.32797858099366,497.0093708166023,373.25167336010963,512.3989290495338,376.45783132530414,529.0709504685437,379.0227576974594,545.7429718875519,382.22891566265207,566.2623828647938,384.7938420348073,582.2931726907645,387.35876840696255,596.4002677376193,388.6412315930411,607.9424364123188,390.56492637215706,619.4846050870165,392.48862115127304,636.7978580990657,398.90093708166205,647.0575635876867,401.4658634538173,656.0348058902291,411.084337349399,659.2409638554236,421.3440428380218,660.5234270415021,434.80990629183543,659.8821954484629,450.84069611780615,654.1111111111131,460.45917001338967,638.7215528781817,470.07764390897137,618.843373493979,474.5662650602426,609.2248995983955,475.8487282463211,592.5528781793855,475.8487282463211,570.1097724230276,475.8487282463211,551.5140562249017,475.8487282463211,538.6894243641254,475.8487282463211,511.7576974564945,475.8487282463211,493.8032128514078,474.5662650602426,478.41365461847636,474.5662650602426,464.9477911646609,474.5662650602426,451.4819277108454,474.5662650602426,434.80990629183543,474.5662650602426,420.06157965194325,474.5662650602426,400.1834002677406,473.92503346720514,384.15261044176987,473.2838018741659,373.8929049531489,473.2838018741659,357.8621151271782,472.00133868808734,335.41900937081846,470.07764390897137,325.80053547523676,468.1539491298554,305.92235609103227,464.9477911646609,291.1740294511401,463.0240963855449,277.7081659973246,460.45917001338967,267.44846050870365,457.8942436412344,250.13520749665622,453.4056224899614,236.66934404284075,448.91700133869017,225.76840696118052,444.42838018741895,214.22623828648102,439.29852744310847,199.47791164658884,430.9625167336035,187.29451137885007,425.832663989293,173.18741633199716,416.85542168674874,162.9277108433762,408.51941097724375,153.95046854083193,399.5421686747013,146.89692101740548,391.2061579651963,140.48460508701646,382.22891566265207,135.35475234270598,370.0455153949151,129.58366800535623,354.6559571619837,125.09504685408501,339.26639892905223,120.6064257028138,319.38821954484774,118.68273092369782,309.76974564926604,114.19410977242478,296.94511378848983,110.34672021419283,284.7617135207511,104.57563587684308,271.2958500669374,92.39223560910432,244.36412315930647,84.6974564926386,228.97456492637502,77.64390896921213,212.9437751004043,71.23159303882494,193.7068273092391,65.46050870147519,177.67603748326837,62.254350736280685,162.28647925033692,60.33065595716471,149.46184738956072,59.04819277108618,132.14859437751147,58.40696117804691,118.04149933065855,58.40696117804691,103.29317269076455,59.04819277108618,92.39223560910432,60.971887550202155,78.2851405622514,63.536813922357396,65.46050870147519,66.10174029451264,52.635876840698984,69.30789825970714,43.017402945115464,76.36144578313542,32.7576974564945,87.9036144578331,21.856760374834266,97.52208835341662,16.085676037484518,109.0642570281143,12.238286479252565,125.09504685408501,9.673360107097324,137.91967871486122,9.673360107097324,150.10307898259998,12.238286479252565,161.0040160642584,18.65060240964158,170.62248995984191,31.475234270417786,176.39357429719166,41.73493975903875,180.24096385542362,57.1244979919702,182.1646586345396,71.87282463186239,182.80589022757886,89.18607764391163,180.88219544846288,103.29317269076455,178.9585006693469,115.47657295850331,177.0348058902291,127.65997322624025,175.11111111111313,138.56091030790049,173.18741633199716,150.74431057563743,173.18741633199716,166.77510040160814,176.39357429719166,181.52342704150215,182.1646586345396,192.42436412316056,191.14190093708385,203.3253012048208,200.76037483266555,207.81392235609383,211.0200803212865,202.68406961178334,224.485943775102,187.29451137885007,230.898259705491,175.11111111111313,235.38688085676222,154.5917001338712,236.66934404284075,137.27844712182196,236.66934404284075,118.68273092369782,234.74564926372295,107.78179384203759,232.82195448460698,92.39223560910432,230.25702811245174,79.56760374832811,229.61579651941247,68.6666666666697,228.97456492637502,57.76572958500947,230.25702811245174,47.5060240963885,235.38688085676222,36.60508701472827,248.8527443105777,34.681392235610474,259.7536813922379,40.45247657296022,269.3721552878196,45.582329317270705,277.7081659973246,51.99464524765972,283.47925033467436,60.33065595716471,283.47925033467436,72.51405622490165,282.19678714859583,82.77376171352262,278.3493975903639,93.67469879518285,276.4257028112479,103.29317269076455,275.1432396251694,113.55287817938552,276.4257028112479,123.17135207496904 6 7 manual 0 +19 3 0 polygon f 0 72.185546875,29.8466796875,26.30943396226212,62.45726970033138,26.30943396226212,71.30077691453698,26.30943396226212,82.35516093229671,27.414872364039184,93.40954495005462,29.625749167589674,102.80577136514876,32.3893451720287,111.64927857935436,40.12741398446087,118.834628190898,50.62907880133025,122.70366259711227,69.42153163151852,123.2563817980008,86.55582685904483,123.2563817980008,98.16293007768945,123.2563817980008,111.42819089899967,123.80910099888933,123.03529411764612,122.70366259711227,135.7478357380678,121.04550499444849,145.69678135404865,117.17647058823422,154.54028856825607,111.64927857935436,162.27835738068643,103.911209766924,166.14739178690252,95.62042175360511,168.91098779134154,87.32963374028623,172.2273029966691,79.03884572696916,174.99089900110812,70.19533851276174,176.09633740288336,61.351831298556135,175.54361820199665,52.508324084348715,177.20177580466043,43.66481687014311,183.281687014427,34.82130965593569,201.52142064372674,20.450610432850226,195.44150943396016,14.370699223083648,187.7034406215298,9.948945615980847,176.09633740288336,6.079911209764759,167.8055493895663,3.3163152053257363,157.85660377358363,1.6581576026619587,146.80221975582572,1.1054384017734264,134.64239733629074,0.5527192008867132,122.48257491675759,1.1054384017734264,112.53362930077492,2.763596004437204,103.69012208656932,4.974472807989514,94.29389567147518,7.738068812428537,86.55582685904483,12.159822419533157,77.71231964483741,17.13429522752267 6 7 manual 0 +20 3 0 polygon f 0 40.9013671875,278.5703125,49.74472807990969,274.7014428412858,60.7991120976676,272.4905660377335,69.08990011098649,271.9378468368468,80.69700332963293,271.38512763595827,92.30410654827756,271.38512763595827,110.54384017757911,272.4905660377335,122.70366259711227,274.1487236403973,140.3906770255253,279.67591564927716,152.55049944506027,284.6503884572685,163.05216426192965,297.9156492785769,170.23751387347147,306.2064372918958,179.63374028856742,316.15538290787845,185.713651498334,327.20976692563636,188.47724750277303,336.6059933407305,189.58268590454827,348.21309655937694,187.9245283018845,358.1620421753596,184.05549389567022,367.0055493895652,176.31742508323987,379.7180910099869,166.3684794672572,388.5615982241943,156.41953385127454,395.1942286348494,144.25971143174138,401.274139844616,130.99445061043116,406.24861265260733,116.62375138734569,410.1176470588216,103.911209766924,409.5649278579349,94.51498335182987,402.37957824639125,86.22419533851098,393.53607103218565,77.38068812430538,383.03440621531445,71.30077691453698,369.2164261931175,64.66814650388369,355.39844617091876,59.69367369589236,344.8967813540494,56.930077691451515,336.6059933407305,55.82463928967627,328.3152053274116,56.3773584905648,317.2608213096537,58.58823529411529,308.9700332963366,56.930077691451515,299.57380688124067,51.40288568257347,292.9411764705874,44.77025527191836,287.4139844617075,37.584905660376535,282.4395116537162 6 7 manual 0 +21 3 0 polygon f 0 106.1220703125,302.8896484375,96.72586015538218,305.10099889012054,88.43507214206329,303.9955604883453,80.1442841287444,307.86459489455956,72.40621531631405,315.0499445061032,68.53718091009796,323.8934517203088,67.98446170921125,334.9478357380667,77.38068812430538,344.34406215316085,85.67147613762245,346.0022197558246,95.0677025527184,347.6603773584884,107.78024417314009,351.5294117647045,116.62375138734569,353.7402885682568,124.91453940066458,352.082130965593,132.0998890122064,345.4495005549379,139.83795782463858,337.71143174250756,145.36514983351663,327.7624861265249,148.12874583795565,318.36625971143076,141.49611542730054,312.28634850166236,133.20532741398347,308.9700332963366,124.91453940066458,305.65371809100907,117.72918978912094,301.23196448390445 6 7 manual 0 +22 50 0 rectangle f 0 103.4892578125,60.298828125,319.7179412841797,185.8331298828125 4 5 manual 0 +23 51 0 rectangle f 0 159.9375,290.716796875,415.7503967285156,440.51097106933594 4 5 manual 0 +24 52 0 rectangle f 0 85.9462890625,138.1123046875,166.75294494628906,391.78382873535156 4 5 manual 0 +25 52 0 rectangle f 0 45.03125,638.294921875,224.0333251953125,770.2450256347656 4 5 manual 0 +26 53 0 rectangle f 0 34.384765625,283.845703125,108.30784606933594,382.30724334716797 4 5 manual 0 +\. + + +-- +-- Data for Name: engine_labeledshapeattributeval; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_labeledshapeattributeval (id, value, spec_id, shape_id) FROM stdin; +1 mazda 1 22 +2 mazda 1 23 +3 mazda 1 24 +4 mazda 1 25 +5 mazda 1 26 +\. + + +-- +-- Data for Name: engine_labeledtrack; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_labeledtrack (id, frame, "group", job_id, label_id, source) FROM stdin; +\. + + +-- +-- Data for Name: engine_labeledtrackattributeval; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_labeledtrackattributeval (id, value, spec_id, track_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_manifest; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_manifest (id, filename, cloud_storage_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_profile; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_profile (id, rating, user_id) FROM stdin; +1 0 1 +2 0 2 +3 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +\. + + +-- +-- Data for Name: engine_project; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_project (id, name, bug_tracker, created_date, updated_date, status, assignee_id, owner_id, training_project_id, organization_id) FROM stdin; +1 project1 2021-12-14 19:46:37.969497+00 2021-12-14 19:48:33.103265+00 annotation \N 10 \N \N +2 project2 2021-12-14 19:52:37.278149+00 2021-12-14 19:55:57.483506+00 annotation 3 10 \N 2 +\. + + +-- +-- Data for Name: engine_relatedfile; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_relatedfile (id, path, data_id, primary_image_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_remotefile; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_remotefile (id, file, data_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_segment; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_segment (id, start_frame, stop_frame, task_id) FROM stdin; +1 0 129 1 +2 0 22 2 +3 0 49 3 +4 50 99 3 +5 100 147 3 +6 0 57 4 +\. + + +-- +-- Data for Name: engine_serverfile; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_serverfile (id, file, data_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_task; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_task (id, name, mode, created_date, updated_date, status, bug_tracker, owner_id, overlap, assignee_id, segment_size, project_id, data_id, dimension, subset, organization_id) FROM stdin; +2 task2 annotation 2021-12-14 18:50:29.458488+00 2021-12-22 07:14:15.234748+00 annotation 2 0 \N 23 \N 2 2d 1 +1 task1 annotation 2021-12-14 18:43:47.601289+00 2021-12-22 07:15:22.942484+00 annotation 2 0 \N 130 \N 1 2d \N +4 task1_in_project2 annotation 2021-12-14 19:55:57.475273+00 2021-12-22 07:17:34.836384+00 annotation 10 0 \N 58 2 4 2d train 2 +3 task1_in_project1 annotation 2021-12-14 19:48:33.089778+00 2021-12-22 07:19:33.85476+00 annotation 10 0 \N 50 1 3 2d Train \N +\. + + +-- +-- Data for Name: engine_trackedshape; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_trackedshape (type, occluded, z_order, points, id, frame, outside, track_id, rotation) FROM stdin; +\. + + +-- +-- Data for Name: engine_trackedshapeattributeval; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_trackedshapeattributeval (id, value, shape_id, spec_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_trainingproject; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_trainingproject (id, host, username, password, training_id, enabled, project_class) FROM stdin; +\. + + +-- +-- Data for Name: engine_trainingprojectimage; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_trainingprojectimage (id, idx, training_image_id, task_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_trainingprojectlabel; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_trainingprojectlabel (id, training_label_id, cvat_label_id) FROM stdin; +\. + + +-- +-- Data for Name: engine_video; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.engine_video (id, path, height, width, data_id) FROM stdin; +\. + + +-- +-- Data for Name: organizations_invitation; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.organizations_invitation (key, created_date, membership_id, owner_id) FROM stdin; +Lzyzgo161I7Fej1vC5RXPdyUgCBfbuxsEEhHYeYOJqvbeJe5clPDnqCm7pKOC9tr 2021-12-14 18:47:39.935203+00 2 2 +aViZkw9TaieLoZaswEnkMy8tTet1yYDRof3eKZDtZaHf1BItgCNNM6y6fnjrkrej 2021-12-14 18:47:49.322807+00 3 2 +cbmm587Z05WQUYvesIZUCtbTl7CEL4thv1Au6Nr51psflITn9X6BsvNFXcNEkoYn 2021-12-14 18:48:46.579536+00 4 2 +Y1I4FFU27WRqq2rWQLtKjDztMqpvqW7gJgg7q73F7oE4H5kukvXugWjiTLHclPDu 2021-12-14 19:54:33.591399+00 6 10 +62HplmGPJuzpTXSyzPWiAlREkq8smCjK30GdtYze3q03J9X5ghQe3oMhlAyQ0WBH 2021-12-14 19:54:46.172754+00 7 10 +mFpVV2Yh39uUdU8IpigSxvuPegqi8sjxFi6P9Jdy6fBE8Ky9Juzi1KjeGDQsizSS 2021-12-14 19:54:56.431899+00 8 10 +h43G28di7vfs4Jv5VrKZ26xvGAfm6Yc2FFv14z9EKhiuIEDQ22pEnzmSCab8MnK1 2021-12-14 19:55:13.745912+00 9 10 +\. + + +-- +-- Data for Name: organizations_membership; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.organizations_membership (id, is_active, joined_date, role, organization_id, user_id) FROM stdin; +1 t 2021-12-14 18:45:40.172529+00 owner 1 2 +2 t 2021-12-14 18:47:39.935203+00 worker 1 6 +3 t 2021-12-14 18:47:49.322807+00 worker 1 7 +4 t 2021-12-14 18:48:46.579536+00 maintainer 1 10 +5 t 2021-12-14 19:51:38.667522+00 owner 2 10 +6 t 2021-12-14 19:54:33.591399+00 maintainer 2 11 +7 t 2021-12-14 19:54:46.172754+00 worker 2 7 +8 t 2021-12-14 19:54:56.431899+00 worker 2 8 +9 t 2021-12-14 19:55:13.745912+00 supervisor 2 3 +\. + + +-- +-- Data for Name: organizations_organization; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.organizations_organization (id, slug, name, description, created_date, updated_date, contact, owner_id) FROM stdin; +1 org1 organization #1 2021-12-14 18:45:40.172529+00 2021-12-14 18:45:40.172542+00 {"email": "org1@cvat.org"} 2 +2 org2 Organization #2 2021-12-14 19:51:38.667522+00 2021-12-14 19:51:38.667536+00 {"email": "org2@cvat.org"} 10 +\. + + +-- +-- Data for Name: socialaccount_socialaccount; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.socialaccount_socialaccount (id, provider, uid, last_login, date_joined, extra_data, user_id) FROM stdin; +\. + + +-- +-- Data for Name: socialaccount_socialapp; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.socialaccount_socialapp (id, provider, name, client_id, secret, key) FROM stdin; +\. + + +-- +-- Data for Name: socialaccount_socialapp_sites; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.socialaccount_socialapp_sites (id, socialapp_id, site_id) FROM stdin; +\. + + +-- +-- Data for Name: socialaccount_socialtoken; Type: TABLE DATA; Schema: public; Owner: root +-- + +COPY public.socialaccount_socialtoken (id, token, token_secret, expires_at, account_id, app_id) FROM stdin; +\. + + +-- +-- Name: account_emailaddress_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.account_emailaddress_id_seq', 1, false); + + +-- +-- Name: account_emailconfirmation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.account_emailconfirmation_id_seq', 1, false); + + +-- +-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.auth_group_id_seq', 4, true); + + +-- +-- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false); + + +-- +-- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.auth_permission_id_seq', 88, true); + + +-- +-- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.auth_user_groups_id_seq', 43, true); + + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.auth_user_id_seq', 18, true); + + +-- +-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.auth_user_user_permissions_id_seq', 1, false); + + +-- +-- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.django_admin_log_id_seq', 41, true); + + +-- +-- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.django_content_type_id_seq', 48, true); + + +-- +-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.django_migrations_id_seq', 88, true); + + +-- +-- Name: django_site_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.django_site_id_seq', 1, true); + + +-- +-- Name: engine_attributespec_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_attributespec_id_seq', 1, true); + + +-- +-- Name: engine_clientfile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_clientfile_id_seq', 359, true); + + +-- +-- Name: engine_cloudstorage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_cloudstorage_id_seq', 1, false); + + +-- +-- Name: engine_comment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_comment_id_seq', 6, true); + + +-- +-- Name: engine_data_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_data_id_seq', 4, true); + + +-- +-- Name: engine_image_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_image_id_seq', 359, true); + + +-- +-- Name: engine_issue_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_issue_id_seq', 4, true); + + +-- +-- Name: engine_job_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_job_id_seq', 6, true); + + +-- +-- Name: engine_jobcommit_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_jobcommit_id_seq', 15, true); + + +-- +-- Name: engine_label_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_label_id_seq', 8, true); + + +-- +-- Name: engine_labeledimage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_labeledimage_id_seq', 1, false); + + +-- +-- Name: engine_labeledimageattributeval_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_labeledimageattributeval_id_seq', 1, false); + + +-- +-- Name: engine_labeledshape_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_labeledshape_id_seq', 26, true); + + +-- +-- Name: engine_labeledshapeattributeval_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_labeledshapeattributeval_id_seq', 5, true); + + +-- +-- Name: engine_labeledtrack_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_labeledtrack_id_seq', 1, false); + + +-- +-- Name: engine_labeledtrackattributeval_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_labeledtrackattributeval_id_seq', 1, false); + + +-- +-- Name: engine_manifest_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_manifest_id_seq', 1, false); + + +-- +-- Name: engine_profile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_profile_id_seq', 18, true); + + +-- +-- Name: engine_project_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_project_id_seq', 2, true); + + +-- +-- Name: engine_relatedfile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_relatedfile_id_seq', 1, false); + + +-- +-- Name: engine_remotefile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_remotefile_id_seq', 1, false); + + +-- +-- Name: engine_segment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_segment_id_seq', 6, true); + + +-- +-- Name: engine_serverfile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_serverfile_id_seq', 1, false); + + +-- +-- Name: engine_task_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_task_id_seq', 4, true); + + +-- +-- Name: engine_trackedshape_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_trackedshape_id_seq', 1, false); + + +-- +-- Name: engine_trackedshapeattributeval_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_trackedshapeattributeval_id_seq', 1, false); + + +-- +-- Name: engine_trainingproject_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_trainingproject_id_seq', 1, false); + + +-- +-- Name: engine_trainingprojectimage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_trainingprojectimage_id_seq', 1, false); + + +-- +-- Name: engine_trainingprojectlabel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_trainingprojectlabel_id_seq', 1, false); + + +-- +-- Name: engine_video_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.engine_video_id_seq', 1, false); + + +-- +-- Name: organizations_membership_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.organizations_membership_id_seq', 9, true); + + +-- +-- Name: organizations_organization_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.organizations_organization_id_seq', 2, true); + + +-- +-- Name: socialaccount_socialaccount_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.socialaccount_socialaccount_id_seq', 1, false); + + +-- +-- Name: socialaccount_socialapp_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.socialaccount_socialapp_id_seq', 1, false); + + +-- +-- Name: socialaccount_socialapp_sites_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.socialaccount_socialapp_sites_id_seq', 1, false); + + +-- +-- Name: socialaccount_socialtoken_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root +-- + +SELECT pg_catalog.setval('public.socialaccount_socialtoken_id_seq', 1, false); + + +-- +-- Name: account_emailaddress account_emailaddress_email_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailaddress + ADD CONSTRAINT account_emailaddress_email_key UNIQUE (email); + + +-- +-- Name: account_emailaddress account_emailaddress_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailaddress + ADD CONSTRAINT account_emailaddress_pkey PRIMARY KEY (id); + + +-- +-- Name: account_emailconfirmation account_emailconfirmation_key_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailconfirmation + ADD CONSTRAINT account_emailconfirmation_key_key UNIQUE (key); + + +-- +-- Name: account_emailconfirmation account_emailconfirmation_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailconfirmation + ADD CONSTRAINT account_emailconfirmation_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_group auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group + ADD CONSTRAINT auth_group_name_key UNIQUE (name); + + +-- +-- Name: auth_group_permissions auth_group_permissions_group_id_permission_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq UNIQUE (group_id, permission_id); + + +-- +-- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group + ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_permission + ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename); + + +-- +-- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_permission + ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_groups auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_groups auth_user_groups_user_id_group_id_94350c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_user_id_group_id_94350c0c_uniq UNIQUE (user_id, group_id); + + +-- +-- Name: auth_user auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user + ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_user_permissions auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_permission_id_14a6b632_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permissions_user_id_permission_id_14a6b632_uniq UNIQUE (user_id, permission_id); + + +-- +-- Name: auth_user auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user + ADD CONSTRAINT auth_user_username_key UNIQUE (username); + + +-- +-- Name: authtoken_token authtoken_token_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.authtoken_token + ADD CONSTRAINT authtoken_token_pkey PRIMARY KEY (key); + + +-- +-- Name: authtoken_token authtoken_token_user_id_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.authtoken_token + ADD CONSTRAINT authtoken_token_user_id_key UNIQUE (user_id); + + +-- +-- Name: django_admin_log django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_admin_log + ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id); + + +-- +-- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_content_type + ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model); + + +-- +-- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_content_type + ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id); + + +-- +-- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_migrations + ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id); + + +-- +-- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_session + ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key); + + +-- +-- Name: django_site django_site_domain_a2e37b91_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_site + ADD CONSTRAINT django_site_domain_a2e37b91_uniq UNIQUE (domain); + + +-- +-- Name: django_site django_site_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_site + ADD CONSTRAINT django_site_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_attributespec engine_attributespec_label_id_name_d85e616c_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_attributespec + ADD CONSTRAINT engine_attributespec_label_id_name_d85e616c_uniq UNIQUE (label_id, name); + + +-- +-- Name: engine_attributespec engine_attributespec_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_attributespec + ADD CONSTRAINT engine_attributespec_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_clientfile engine_clientfile_data_id_file_c9989a74_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_clientfile + ADD CONSTRAINT engine_clientfile_data_id_file_c9989a74_uniq UNIQUE (data_id, file); + + +-- +-- Name: engine_clientfile engine_clientfile_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_clientfile + ADD CONSTRAINT engine_clientfile_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_cloudstorage engine_cloudstorage_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_cloudstorage + ADD CONSTRAINT engine_cloudstorage_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_cloudstorage engine_cloudstorage_provider_type_resource_c_d420f2e9_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_cloudstorage + ADD CONSTRAINT engine_cloudstorage_provider_type_resource_c_d420f2e9_uniq UNIQUE (provider_type, resource, credentials); + + +-- +-- Name: engine_comment engine_comment_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_comment + ADD CONSTRAINT engine_comment_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_data engine_data_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_data + ADD CONSTRAINT engine_data_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_image engine_image_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_image + ADD CONSTRAINT engine_image_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_issue engine_issue_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_issue + ADD CONSTRAINT engine_issue_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_job engine_job_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_job + ADD CONSTRAINT engine_job_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_jobcommit engine_jobcommit_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_jobcommit + ADD CONSTRAINT engine_jobcommit_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_label engine_label_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_label + ADD CONSTRAINT engine_label_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_label engine_label_task_id_name_00e8779a_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_label + ADD CONSTRAINT engine_label_task_id_name_00e8779a_uniq UNIQUE (task_id, name); + + +-- +-- Name: engine_labeledimage engine_labeledimage_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimage + ADD CONSTRAINT engine_labeledimage_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_labeledimageattributeval engine_labeledimageattributeval_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimageattributeval + ADD CONSTRAINT engine_labeledimageattributeval_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_labeledshape engine_labeledshape_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshape + ADD CONSTRAINT engine_labeledshape_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_labeledshapeattributeval engine_labeledshapeattributeval_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshapeattributeval + ADD CONSTRAINT engine_labeledshapeattributeval_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_labeledtrack engine_labeledtrack_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrack + ADD CONSTRAINT engine_labeledtrack_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_labeledtrackattributeval engine_labeledtrackattributeval_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrackattributeval + ADD CONSTRAINT engine_labeledtrackattributeval_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_manifest engine_manifest_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_manifest + ADD CONSTRAINT engine_manifest_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_profile engine_profile_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_profile + ADD CONSTRAINT engine_profile_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_profile engine_profile_user_id_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_profile + ADD CONSTRAINT engine_profile_user_id_key UNIQUE (user_id); + + +-- +-- Name: engine_project engine_project_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_project + ADD CONSTRAINT engine_project_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_relatedfile engine_relatedfile_data_id_path_a7223d1e_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_relatedfile + ADD CONSTRAINT engine_relatedfile_data_id_path_a7223d1e_uniq UNIQUE (data_id, path); + + +-- +-- Name: engine_relatedfile engine_relatedfile_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_relatedfile + ADD CONSTRAINT engine_relatedfile_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_remotefile engine_remotefile_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_remotefile + ADD CONSTRAINT engine_remotefile_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_segment engine_segment_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_segment + ADD CONSTRAINT engine_segment_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_serverfile engine_serverfile_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_serverfile + ADD CONSTRAINT engine_serverfile_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_task engine_task_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_task + ADD CONSTRAINT engine_task_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_trackedshape engine_trackedshape_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trackedshape + ADD CONSTRAINT engine_trackedshape_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_trackedshapeattributeval engine_trackedshapeattributeval_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trackedshapeattributeval + ADD CONSTRAINT engine_trackedshapeattributeval_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_trainingproject engine_trainingproject_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingproject + ADD CONSTRAINT engine_trainingproject_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_trainingprojectimage engine_trainingprojectimage_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingprojectimage + ADD CONSTRAINT engine_trainingprojectimage_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_trainingprojectlabel engine_trainingprojectlabel_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingprojectlabel + ADD CONSTRAINT engine_trainingprojectlabel_pkey PRIMARY KEY (id); + + +-- +-- Name: engine_video engine_video_data_id_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_video + ADD CONSTRAINT engine_video_data_id_key UNIQUE (data_id); + + +-- +-- Name: engine_video engine_video_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_video + ADD CONSTRAINT engine_video_pkey PRIMARY KEY (id); + + +-- +-- Name: dataset_repo_gitdata git_gitdata_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.dataset_repo_gitdata + ADD CONSTRAINT git_gitdata_pkey PRIMARY KEY (task_id); + + +-- +-- Name: organizations_invitation organizations_invitation_membership_id_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_invitation + ADD CONSTRAINT organizations_invitation_membership_id_key UNIQUE (membership_id); + + +-- +-- Name: organizations_invitation organizations_invitation_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_invitation + ADD CONSTRAINT organizations_invitation_pkey PRIMARY KEY (key); + + +-- +-- Name: organizations_membership organizations_membership_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_membership + ADD CONSTRAINT organizations_membership_pkey PRIMARY KEY (id); + + +-- +-- Name: organizations_membership organizations_membership_user_id_organization_id_b9b50ec7_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_membership + ADD CONSTRAINT organizations_membership_user_id_organization_id_b9b50ec7_uniq UNIQUE (user_id, organization_id); + + +-- +-- Name: organizations_organization organizations_organization_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_organization + ADD CONSTRAINT organizations_organization_pkey PRIMARY KEY (id); + + +-- +-- Name: organizations_organization organizations_organization_slug_key; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_organization + ADD CONSTRAINT organizations_organization_slug_key UNIQUE (slug); + + +-- +-- Name: socialaccount_socialaccount socialaccount_socialaccount_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialaccount + ADD CONSTRAINT socialaccount_socialaccount_pkey PRIMARY KEY (id); + + +-- +-- Name: socialaccount_socialaccount socialaccount_socialaccount_provider_uid_fc810c6e_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialaccount + ADD CONSTRAINT socialaccount_socialaccount_provider_uid_fc810c6e_uniq UNIQUE (provider, uid); + + +-- +-- Name: socialaccount_socialapp_sites socialaccount_socialapp__socialapp_id_site_id_71a9a768_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialapp_sites + ADD CONSTRAINT socialaccount_socialapp__socialapp_id_site_id_71a9a768_uniq UNIQUE (socialapp_id, site_id); + + +-- +-- Name: socialaccount_socialapp socialaccount_socialapp_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialapp + ADD CONSTRAINT socialaccount_socialapp_pkey PRIMARY KEY (id); + + +-- +-- Name: socialaccount_socialapp_sites socialaccount_socialapp_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialapp_sites + ADD CONSTRAINT socialaccount_socialapp_sites_pkey PRIMARY KEY (id); + + +-- +-- Name: socialaccount_socialtoken socialaccount_socialtoken_app_id_account_id_fca4e0ac_uniq; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialtoken + ADD CONSTRAINT socialaccount_socialtoken_app_id_account_id_fca4e0ac_uniq UNIQUE (app_id, account_id); + + +-- +-- Name: socialaccount_socialtoken socialaccount_socialtoken_pkey; Type: CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialtoken + ADD CONSTRAINT socialaccount_socialtoken_pkey PRIMARY KEY (id); + + +-- +-- Name: account_emailaddress_email_03be32b2_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX account_emailaddress_email_03be32b2_like ON public.account_emailaddress USING btree (email varchar_pattern_ops); + + +-- +-- Name: account_emailaddress_user_id_2c513194; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX account_emailaddress_user_id_2c513194 ON public.account_emailaddress USING btree (user_id); + + +-- +-- Name: account_emailconfirmation_email_address_id_5b7f8c58; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX account_emailconfirmation_email_address_id_5b7f8c58 ON public.account_emailconfirmation USING btree (email_address_id); + + +-- +-- Name: account_emailconfirmation_key_f43612bd_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX account_emailconfirmation_key_f43612bd_like ON public.account_emailconfirmation USING btree (key varchar_pattern_ops); + + +-- +-- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops); + + +-- +-- Name: auth_group_permissions_group_id_b120cbf9; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id); + + +-- +-- Name: auth_group_permissions_permission_id_84c5c92e; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id); + + +-- +-- Name: auth_permission_content_type_id_2f476e4b; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id); + + +-- +-- Name: auth_user_groups_group_id_97559544; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id); + + +-- +-- Name: auth_user_groups_user_id_6a12ed8b; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_user_groups_user_id_6a12ed8b ON public.auth_user_groups USING btree (user_id); + + +-- +-- Name: auth_user_user_permissions_permission_id_1fbb5f2c; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id); + + +-- +-- Name: auth_user_user_permissions_user_id_a95ead1b; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_user_user_permissions_user_id_a95ead1b ON public.auth_user_user_permissions USING btree (user_id); + + +-- +-- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops); + + +-- +-- Name: authtoken_token_key_10f0b77e_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX authtoken_token_key_10f0b77e_like ON public.authtoken_token USING btree (key varchar_pattern_ops); + + +-- +-- Name: django_admin_log_content_type_id_c4bce8eb; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id); + + +-- +-- Name: django_admin_log_user_id_c564eba6; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id); + + +-- +-- Name: django_session_expire_date_a5c62663; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date); + + +-- +-- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops); + + +-- +-- Name: django_site_domain_a2e37b91_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX django_site_domain_a2e37b91_like ON public.django_site USING btree (domain varchar_pattern_ops); + + +-- +-- Name: engine_attributespec_label_id_274838ef; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_attributespec_label_id_274838ef ON public.engine_attributespec USING btree (label_id); + + +-- +-- Name: engine_clientfile_data_id_24222cd2; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_clientfile_data_id_24222cd2 ON public.engine_clientfile USING btree (data_id); + + +-- +-- Name: engine_cloudstorage_organization_id_a9b82f16; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_cloudstorage_organization_id_a9b82f16 ON public.engine_cloudstorage USING btree (organization_id); + + +-- +-- Name: engine_cloudstorage_owner_id_b8773f4a; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_cloudstorage_owner_id_b8773f4a ON public.engine_cloudstorage USING btree (owner_id); + + +-- +-- Name: engine_comment_author_id_92716231; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_comment_author_id_92716231 ON public.engine_comment USING btree (owner_id); + + +-- +-- Name: engine_comment_issue_id_46db9977; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_comment_issue_id_46db9977 ON public.engine_comment USING btree (issue_id); + + +-- +-- Name: engine_data_cloud_storage_id_e7e0d44a; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_data_cloud_storage_id_e7e0d44a ON public.engine_data USING btree (cloud_storage_id); + + +-- +-- Name: engine_image_data_id_e89da547; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_image_data_id_e89da547 ON public.engine_image USING btree (data_id); + + +-- +-- Name: engine_issue_assignee_id_4ce5e564; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_issue_assignee_id_4ce5e564 ON public.engine_issue USING btree (assignee_id); + + +-- +-- Name: engine_issue_job_id_2d12d046; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_issue_job_id_2d12d046 ON public.engine_issue USING btree (job_id); + + +-- +-- Name: engine_issue_owner_id_b1ef7592; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_issue_owner_id_b1ef7592 ON public.engine_issue USING btree (owner_id); + + +-- +-- Name: engine_job_annotator_id_d0696062; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_job_annotator_id_d0696062 ON public.engine_job USING btree (assignee_id); + + +-- +-- Name: engine_job_segment_id_f615a866; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_job_segment_id_f615a866 ON public.engine_job USING btree (segment_id); + + +-- +-- Name: engine_jobcommit_author_id_fe2728f3; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_jobcommit_author_id_fe2728f3 ON public.engine_jobcommit USING btree (owner_id); + + +-- +-- Name: engine_jobcommit_job_id_02b6da1d; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_jobcommit_job_id_02b6da1d ON public.engine_jobcommit USING btree (job_id); + + +-- +-- Name: engine_label_project_id_7f02a656; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_label_project_id_7f02a656 ON public.engine_label USING btree (project_id); + + +-- +-- Name: engine_label_task_id_f11c5c1a; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_label_task_id_f11c5c1a ON public.engine_label USING btree (task_id); + + +-- +-- Name: engine_labeledimage_job_id_7406d161; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledimage_job_id_7406d161 ON public.engine_labeledimage USING btree (job_id); + + +-- +-- Name: engine_labeledimage_label_id_b22eb9f7; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledimage_label_id_b22eb9f7 ON public.engine_labeledimage USING btree (label_id); + + +-- +-- Name: engine_labeledimageattributeval_image_id_f4c34a7a; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledimageattributeval_image_id_f4c34a7a ON public.engine_labeledimageattributeval USING btree (image_id); + + +-- +-- Name: engine_labeledimageattributeval_spec_id_911f524c; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledimageattributeval_spec_id_911f524c ON public.engine_labeledimageattributeval USING btree (spec_id); + + +-- +-- Name: engine_labeledshape_job_id_b7694c3a; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledshape_job_id_b7694c3a ON public.engine_labeledshape USING btree (job_id); + + +-- +-- Name: engine_labeledshape_label_id_872e4658; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledshape_label_id_872e4658 ON public.engine_labeledshape USING btree (label_id); + + +-- +-- Name: engine_labeledshapeattributeval_shape_id_26c4daab; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledshapeattributeval_shape_id_26c4daab ON public.engine_labeledshapeattributeval USING btree (shape_id); + + +-- +-- Name: engine_labeledshapeattributeval_spec_id_144b73fa; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledshapeattributeval_spec_id_144b73fa ON public.engine_labeledshapeattributeval USING btree (spec_id); + + +-- +-- Name: engine_labeledtrack_job_id_e00d9f2f; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledtrack_job_id_e00d9f2f ON public.engine_labeledtrack USING btree (job_id); + + +-- +-- Name: engine_labeledtrack_label_id_75d2c39b; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledtrack_label_id_75d2c39b ON public.engine_labeledtrack USING btree (label_id); + + +-- +-- Name: engine_labeledtrackattributeval_spec_id_b7ee6fd2; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledtrackattributeval_spec_id_b7ee6fd2 ON public.engine_labeledtrackattributeval USING btree (spec_id); + + +-- +-- Name: engine_labeledtrackattributeval_track_id_4ed9e160; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_labeledtrackattributeval_track_id_4ed9e160 ON public.engine_labeledtrackattributeval USING btree (track_id); + + +-- +-- Name: engine_manifest_cloud_storage_id_a0af24a9; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_manifest_cloud_storage_id_a0af24a9 ON public.engine_manifest USING btree (cloud_storage_id); + + +-- +-- Name: engine_project_assignee_id_77655de8; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_project_assignee_id_77655de8 ON public.engine_project USING btree (assignee_id); + + +-- +-- Name: engine_project_organization_id_21c08e6b; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_project_organization_id_21c08e6b ON public.engine_project USING btree (organization_id); + + +-- +-- Name: engine_project_owner_id_de2a8424; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_project_owner_id_de2a8424 ON public.engine_project USING btree (owner_id); + + +-- +-- Name: engine_project_training_project_id_89feecf6; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_project_training_project_id_89feecf6 ON public.engine_project USING btree (training_project_id); + + +-- +-- Name: engine_relatedfile_data_id_aa10f063; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_relatedfile_data_id_aa10f063 ON public.engine_relatedfile USING btree (data_id); + + +-- +-- Name: engine_relatedfile_primary_image_id_928aa7d5; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_relatedfile_primary_image_id_928aa7d5 ON public.engine_relatedfile USING btree (primary_image_id); + + +-- +-- Name: engine_remotefile_data_id_ff16acda; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_remotefile_data_id_ff16acda ON public.engine_remotefile USING btree (data_id); + + +-- +-- Name: engine_segment_task_id_37d935cf; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_segment_task_id_37d935cf ON public.engine_segment USING btree (task_id); + + +-- +-- Name: engine_serverfile_data_id_2364110a; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_serverfile_data_id_2364110a ON public.engine_serverfile USING btree (data_id); + + +-- +-- Name: engine_task_assignee_id_51c82720; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_task_assignee_id_51c82720 ON public.engine_task USING btree (assignee_id); + + +-- +-- Name: engine_task_data_id_e98ffd9b; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_task_data_id_e98ffd9b ON public.engine_task USING btree (data_id); + + +-- +-- Name: engine_task_organization_id_6640bc33; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_task_organization_id_6640bc33 ON public.engine_task USING btree (organization_id); + + +-- +-- Name: engine_task_owner_id_95de3361; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_task_owner_id_95de3361 ON public.engine_task USING btree (owner_id); + + +-- +-- Name: engine_task_project_id_2dced848; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_task_project_id_2dced848 ON public.engine_task USING btree (project_id); + + +-- +-- Name: engine_trackedshape_track_id_a6dc58bd; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_trackedshape_track_id_a6dc58bd ON public.engine_trackedshape USING btree (track_id); + + +-- +-- Name: engine_trackedshapeattributeval_shape_id_361f0e2f; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_trackedshapeattributeval_shape_id_361f0e2f ON public.engine_trackedshapeattributeval USING btree (shape_id); + + +-- +-- Name: engine_trackedshapeattributeval_spec_id_a944a532; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_trackedshapeattributeval_spec_id_a944a532 ON public.engine_trackedshapeattributeval USING btree (spec_id); + + +-- +-- Name: engine_trainingprojectimage_task_id_68b8b707; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_trainingprojectimage_task_id_68b8b707 ON public.engine_trainingprojectimage USING btree (task_id); + + +-- +-- Name: engine_trainingprojectlabel_cvat_label_id_ec627ead; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX engine_trainingprojectlabel_cvat_label_id_ec627ead ON public.engine_trainingprojectlabel USING btree (cvat_label_id); + + +-- +-- Name: organizations_invitation_key_514623ce_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX organizations_invitation_key_514623ce_like ON public.organizations_invitation USING btree (key varchar_pattern_ops); + + +-- +-- Name: organizations_invitation_owner_id_d8ffe9d9; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX organizations_invitation_owner_id_d8ffe9d9 ON public.organizations_invitation USING btree (owner_id); + + +-- +-- Name: organizations_membership_organization_id_6889aa64; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX organizations_membership_organization_id_6889aa64 ON public.organizations_membership USING btree (organization_id); + + +-- +-- Name: organizations_membership_user_id_a8e72055; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX organizations_membership_user_id_a8e72055 ON public.organizations_membership USING btree (user_id); + + +-- +-- Name: organizations_organization_owner_id_f9657a39; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX organizations_organization_owner_id_f9657a39 ON public.organizations_organization USING btree (owner_id); + + +-- +-- Name: organizations_organization_slug_e36fd8f9_like; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX organizations_organization_slug_e36fd8f9_like ON public.organizations_organization USING btree (slug varchar_pattern_ops); + + +-- +-- Name: socialaccount_socialaccount_user_id_8146e70c; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX socialaccount_socialaccount_user_id_8146e70c ON public.socialaccount_socialaccount USING btree (user_id); + + +-- +-- Name: socialaccount_socialapp_sites_site_id_2579dee5; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX socialaccount_socialapp_sites_site_id_2579dee5 ON public.socialaccount_socialapp_sites USING btree (site_id); + + +-- +-- Name: socialaccount_socialapp_sites_socialapp_id_97fb6e7d; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX socialaccount_socialapp_sites_socialapp_id_97fb6e7d ON public.socialaccount_socialapp_sites USING btree (socialapp_id); + + +-- +-- Name: socialaccount_socialtoken_account_id_951f210e; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX socialaccount_socialtoken_account_id_951f210e ON public.socialaccount_socialtoken USING btree (account_id); + + +-- +-- Name: socialaccount_socialtoken_app_id_636a42d7; Type: INDEX; Schema: public; Owner: root +-- + +CREATE INDEX socialaccount_socialtoken_app_id_636a42d7 ON public.socialaccount_socialtoken USING btree (app_id); + + +-- +-- Name: account_emailaddress account_emailaddress_user_id_2c513194_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailaddress + ADD CONSTRAINT account_emailaddress_user_id_2c513194_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: account_emailconfirmation account_emailconfirm_email_address_id_5b7f8c58_fk_account_e; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.account_emailconfirmation + ADD CONSTRAINT account_emailconfirm_email_address_id_5b7f8c58_fk_account_e FOREIGN KEY (email_address_id) REFERENCES public.account_emailaddress(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_permission + ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_groups auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_groups auth_user_groups_user_id_6a12ed8b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_user_id_6a12ed8b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_user_permissions auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: authtoken_token authtoken_token_user_id_35299eff_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.authtoken_token + ADD CONSTRAINT authtoken_token_user_id_35299eff_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: django_admin_log django_admin_log_content_type_id_c4bce8eb_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_admin_log + ADD CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: django_admin_log django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.django_admin_log + ADD CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_attributespec engine_attributespec_label_id_274838ef_fk_engine_label_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_attributespec + ADD CONSTRAINT engine_attributespec_label_id_274838ef_fk_engine_label_id FOREIGN KEY (label_id) REFERENCES public.engine_label(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_clientfile engine_clientfile_data_id_24222cd2_fk_engine_data_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_clientfile + ADD CONSTRAINT engine_clientfile_data_id_24222cd2_fk_engine_data_id FOREIGN KEY (data_id) REFERENCES public.engine_data(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_cloudstorage engine_cloudstorage_organization_id_a9b82f16_fk_organizat; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_cloudstorage + ADD CONSTRAINT engine_cloudstorage_organization_id_a9b82f16_fk_organizat FOREIGN KEY (organization_id) REFERENCES public.organizations_organization(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_cloudstorage engine_cloudstorage_owner_id_b8773f4a_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_cloudstorage + ADD CONSTRAINT engine_cloudstorage_owner_id_b8773f4a_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_comment engine_comment_issue_id_46db9977_fk_engine_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_comment + ADD CONSTRAINT engine_comment_issue_id_46db9977_fk_engine_issue_id FOREIGN KEY (issue_id) REFERENCES public.engine_issue(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_comment engine_comment_owner_id_c700667b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_comment + ADD CONSTRAINT engine_comment_owner_id_c700667b_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_data engine_data_cloud_storage_id_e7e0d44a_fk_engine_cloudstorage_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_data + ADD CONSTRAINT engine_data_cloud_storage_id_e7e0d44a_fk_engine_cloudstorage_id FOREIGN KEY (cloud_storage_id) REFERENCES public.engine_cloudstorage(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_image engine_image_data_id_e89da547_fk_engine_data_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_image + ADD CONSTRAINT engine_image_data_id_e89da547_fk_engine_data_id FOREIGN KEY (data_id) REFERENCES public.engine_data(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_issue engine_issue_assignee_id_4ce5e564_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_issue + ADD CONSTRAINT engine_issue_assignee_id_4ce5e564_fk_auth_user_id FOREIGN KEY (assignee_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_issue engine_issue_job_id_2d12d046_fk_engine_job_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_issue + ADD CONSTRAINT engine_issue_job_id_2d12d046_fk_engine_job_id FOREIGN KEY (job_id) REFERENCES public.engine_job(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_issue engine_issue_owner_id_b1ef7592_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_issue + ADD CONSTRAINT engine_issue_owner_id_b1ef7592_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_job engine_job_assignee_id_b80bea03_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_job + ADD CONSTRAINT engine_job_assignee_id_b80bea03_fk_auth_user_id FOREIGN KEY (assignee_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_job engine_job_segment_id_f615a866_fk_engine_segment_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_job + ADD CONSTRAINT engine_job_segment_id_f615a866_fk_engine_segment_id FOREIGN KEY (segment_id) REFERENCES public.engine_segment(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_jobcommit engine_jobcommit_job_id_02b6da1d_fk_engine_job_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_jobcommit + ADD CONSTRAINT engine_jobcommit_job_id_02b6da1d_fk_engine_job_id FOREIGN KEY (job_id) REFERENCES public.engine_job(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_jobcommit engine_jobcommit_owner_id_3de5f6de_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_jobcommit + ADD CONSTRAINT engine_jobcommit_owner_id_3de5f6de_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_label engine_label_project_id_7f02a656_fk_engine_project_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_label + ADD CONSTRAINT engine_label_project_id_7f02a656_fk_engine_project_id FOREIGN KEY (project_id) REFERENCES public.engine_project(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_label engine_label_task_id_f11c5c1a_fk_engine_task_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_label + ADD CONSTRAINT engine_label_task_id_f11c5c1a_fk_engine_task_id FOREIGN KEY (task_id) REFERENCES public.engine_task(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledimage engine_labeledimage_job_id_7406d161_fk_engine_job_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimage + ADD CONSTRAINT engine_labeledimage_job_id_7406d161_fk_engine_job_id FOREIGN KEY (job_id) REFERENCES public.engine_job(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledimage engine_labeledimage_label_id_b22eb9f7_fk_engine_label_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimage + ADD CONSTRAINT engine_labeledimage_label_id_b22eb9f7_fk_engine_label_id FOREIGN KEY (label_id) REFERENCES public.engine_label(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledimageattributeval engine_labeledimagea_image_id_f4c34a7a_fk_engine_la; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimageattributeval + ADD CONSTRAINT engine_labeledimagea_image_id_f4c34a7a_fk_engine_la FOREIGN KEY (image_id) REFERENCES public.engine_labeledimage(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledimageattributeval engine_labeledimagea_spec_id_911f524c_fk_engine_at; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledimageattributeval + ADD CONSTRAINT engine_labeledimagea_spec_id_911f524c_fk_engine_at FOREIGN KEY (spec_id) REFERENCES public.engine_attributespec(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledshape engine_labeledshape_job_id_b7694c3a_fk_engine_job_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshape + ADD CONSTRAINT engine_labeledshape_job_id_b7694c3a_fk_engine_job_id FOREIGN KEY (job_id) REFERENCES public.engine_job(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledshape engine_labeledshape_label_id_872e4658_fk_engine_label_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshape + ADD CONSTRAINT engine_labeledshape_label_id_872e4658_fk_engine_label_id FOREIGN KEY (label_id) REFERENCES public.engine_label(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledshapeattributeval engine_labeledshapea_shape_id_26c4daab_fk_engine_la; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshapeattributeval + ADD CONSTRAINT engine_labeledshapea_shape_id_26c4daab_fk_engine_la FOREIGN KEY (shape_id) REFERENCES public.engine_labeledshape(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledshapeattributeval engine_labeledshapea_spec_id_144b73fa_fk_engine_at; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledshapeattributeval + ADD CONSTRAINT engine_labeledshapea_spec_id_144b73fa_fk_engine_at FOREIGN KEY (spec_id) REFERENCES public.engine_attributespec(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledtrack engine_labeledtrack_job_id_e00d9f2f_fk_engine_job_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrack + ADD CONSTRAINT engine_labeledtrack_job_id_e00d9f2f_fk_engine_job_id FOREIGN KEY (job_id) REFERENCES public.engine_job(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledtrack engine_labeledtrack_label_id_75d2c39b_fk_engine_label_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrack + ADD CONSTRAINT engine_labeledtrack_label_id_75d2c39b_fk_engine_label_id FOREIGN KEY (label_id) REFERENCES public.engine_label(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledtrackattributeval engine_labeledtracka_spec_id_b7ee6fd2_fk_engine_at; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrackattributeval + ADD CONSTRAINT engine_labeledtracka_spec_id_b7ee6fd2_fk_engine_at FOREIGN KEY (spec_id) REFERENCES public.engine_attributespec(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_labeledtrackattributeval engine_labeledtracka_track_id_4ed9e160_fk_engine_la; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_labeledtrackattributeval + ADD CONSTRAINT engine_labeledtracka_track_id_4ed9e160_fk_engine_la FOREIGN KEY (track_id) REFERENCES public.engine_labeledtrack(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_manifest engine_manifest_cloud_storage_id_a0af24a9_fk_engine_cl; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_manifest + ADD CONSTRAINT engine_manifest_cloud_storage_id_a0af24a9_fk_engine_cl FOREIGN KEY (cloud_storage_id) REFERENCES public.engine_cloudstorage(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_profile engine_profile_user_id_19972afd_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_profile + ADD CONSTRAINT engine_profile_user_id_19972afd_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_project engine_project_assignee_id_77655de8_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_project + ADD CONSTRAINT engine_project_assignee_id_77655de8_fk_auth_user_id FOREIGN KEY (assignee_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_project engine_project_organization_id_21c08e6b_fk_organizat; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_project + ADD CONSTRAINT engine_project_organization_id_21c08e6b_fk_organizat FOREIGN KEY (organization_id) REFERENCES public.organizations_organization(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_project engine_project_owner_id_de2a8424_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_project + ADD CONSTRAINT engine_project_owner_id_de2a8424_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_project engine_project_training_project_id_89feecf6_fk_engine_tr; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_project + ADD CONSTRAINT engine_project_training_project_id_89feecf6_fk_engine_tr FOREIGN KEY (training_project_id) REFERENCES public.engine_trainingproject(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_relatedfile engine_relatedfile_data_id_aa10f063_fk_engine_data_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_relatedfile + ADD CONSTRAINT engine_relatedfile_data_id_aa10f063_fk_engine_data_id FOREIGN KEY (data_id) REFERENCES public.engine_data(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_relatedfile engine_relatedfile_primary_image_id_928aa7d5_fk_engine_image_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_relatedfile + ADD CONSTRAINT engine_relatedfile_primary_image_id_928aa7d5_fk_engine_image_id FOREIGN KEY (primary_image_id) REFERENCES public.engine_image(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_remotefile engine_remotefile_data_id_ff16acda_fk_engine_data_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_remotefile + ADD CONSTRAINT engine_remotefile_data_id_ff16acda_fk_engine_data_id FOREIGN KEY (data_id) REFERENCES public.engine_data(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_segment engine_segment_task_id_37d935cf_fk_engine_task_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_segment + ADD CONSTRAINT engine_segment_task_id_37d935cf_fk_engine_task_id FOREIGN KEY (task_id) REFERENCES public.engine_task(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_serverfile engine_serverfile_data_id_2364110a_fk_engine_data_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_serverfile + ADD CONSTRAINT engine_serverfile_data_id_2364110a_fk_engine_data_id FOREIGN KEY (data_id) REFERENCES public.engine_data(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_task engine_task_assignee_id_51c82720_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_task + ADD CONSTRAINT engine_task_assignee_id_51c82720_fk_auth_user_id FOREIGN KEY (assignee_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_task engine_task_data_id_e98ffd9b_fk_engine_data_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_task + ADD CONSTRAINT engine_task_data_id_e98ffd9b_fk_engine_data_id FOREIGN KEY (data_id) REFERENCES public.engine_data(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_task engine_task_organization_id_6640bc33_fk_organizat; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_task + ADD CONSTRAINT engine_task_organization_id_6640bc33_fk_organizat FOREIGN KEY (organization_id) REFERENCES public.organizations_organization(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_task engine_task_owner_id_95de3361_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_task + ADD CONSTRAINT engine_task_owner_id_95de3361_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_task engine_task_project_id_2dced848_fk_engine_project_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_task + ADD CONSTRAINT engine_task_project_id_2dced848_fk_engine_project_id FOREIGN KEY (project_id) REFERENCES public.engine_project(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_trackedshape engine_trackedshape_track_id_a6dc58bd_fk_engine_labeledtrack_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trackedshape + ADD CONSTRAINT engine_trackedshape_track_id_a6dc58bd_fk_engine_labeledtrack_id FOREIGN KEY (track_id) REFERENCES public.engine_labeledtrack(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_trackedshapeattributeval engine_trackedshapea_shape_id_361f0e2f_fk_engine_tr; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trackedshapeattributeval + ADD CONSTRAINT engine_trackedshapea_shape_id_361f0e2f_fk_engine_tr FOREIGN KEY (shape_id) REFERENCES public.engine_trackedshape(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_trackedshapeattributeval engine_trackedshapea_spec_id_a944a532_fk_engine_at; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trackedshapeattributeval + ADD CONSTRAINT engine_trackedshapea_spec_id_a944a532_fk_engine_at FOREIGN KEY (spec_id) REFERENCES public.engine_attributespec(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_trainingprojectlabel engine_trainingproje_cvat_label_id_ec627ead_fk_engine_la; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingprojectlabel + ADD CONSTRAINT engine_trainingproje_cvat_label_id_ec627ead_fk_engine_la FOREIGN KEY (cvat_label_id) REFERENCES public.engine_label(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_trainingprojectimage engine_trainingprojectimage_task_id_68b8b707_fk_engine_task_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_trainingprojectimage + ADD CONSTRAINT engine_trainingprojectimage_task_id_68b8b707_fk_engine_task_id FOREIGN KEY (task_id) REFERENCES public.engine_task(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: engine_video engine_video_data_id_b37015e9_fk_engine_data_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.engine_video + ADD CONSTRAINT engine_video_data_id_b37015e9_fk_engine_data_id FOREIGN KEY (data_id) REFERENCES public.engine_data(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dataset_repo_gitdata git_gitdata_task_id_a6f2ea20_fk_engine_task_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.dataset_repo_gitdata + ADD CONSTRAINT git_gitdata_task_id_a6f2ea20_fk_engine_task_id FOREIGN KEY (task_id) REFERENCES public.engine_task(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: organizations_invitation organizations_invita_membership_id_d0265539_fk_organizat; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_invitation + ADD CONSTRAINT organizations_invita_membership_id_d0265539_fk_organizat FOREIGN KEY (membership_id) REFERENCES public.organizations_membership(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: organizations_invitation organizations_invitation_owner_id_d8ffe9d9_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_invitation + ADD CONSTRAINT organizations_invitation_owner_id_d8ffe9d9_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: organizations_membership organizations_member_organization_id_6889aa64_fk_organizat; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_membership + ADD CONSTRAINT organizations_member_organization_id_6889aa64_fk_organizat FOREIGN KEY (organization_id) REFERENCES public.organizations_organization(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: organizations_membership organizations_membership_user_id_a8e72055_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_membership + ADD CONSTRAINT organizations_membership_user_id_a8e72055_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: organizations_organization organizations_organization_owner_id_f9657a39_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.organizations_organization + ADD CONSTRAINT organizations_organization_owner_id_f9657a39_fk_auth_user_id FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: socialaccount_socialtoken socialaccount_social_account_id_951f210e_fk_socialacc; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialtoken + ADD CONSTRAINT socialaccount_social_account_id_951f210e_fk_socialacc FOREIGN KEY (account_id) REFERENCES public.socialaccount_socialaccount(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: socialaccount_socialtoken socialaccount_social_app_id_636a42d7_fk_socialacc; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialtoken + ADD CONSTRAINT socialaccount_social_app_id_636a42d7_fk_socialacc FOREIGN KEY (app_id) REFERENCES public.socialaccount_socialapp(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: socialaccount_socialapp_sites socialaccount_social_site_id_2579dee5_fk_django_si; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialapp_sites + ADD CONSTRAINT socialaccount_social_site_id_2579dee5_fk_django_si FOREIGN KEY (site_id) REFERENCES public.django_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: socialaccount_socialapp_sites socialaccount_social_socialapp_id_97fb6e7d_fk_socialacc; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialapp_sites + ADD CONSTRAINT socialaccount_social_socialapp_id_97fb6e7d_fk_socialacc FOREIGN KEY (socialapp_id) REFERENCES public.socialaccount_socialapp(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: socialaccount_socialaccount socialaccount_socialaccount_user_id_8146e70c_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: root +-- + +ALTER TABLE ONLY public.socialaccount_socialaccount + ADD CONSTRAINT socialaccount_socialaccount_user_id_8146e70c_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: root +-- + +GRANT ALL ON SCHEMA public TO PUBLIC; + + +-- +-- PostgreSQL database dump complete +-- + diff --git a/tests/rest_api/assets/invitations.json b/tests/rest_api/assets/invitations.json new file mode 100644 index 00000000..cf96d222 --- /dev/null +++ b/tests/rest_api/assets/invitations.json @@ -0,0 +1,147 @@ +{ + "count": 7, + "next": null, + "previous": null, + "results": [ + { + "created_date": "2021-12-14T19:55:13.745912Z", + "key": "h43G28di7vfs4Jv5VrKZ26xvGAfm6Yc2FFv14z9EKhiuIEDQ22pEnzmSCab8MnK1", + "organization": 2, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "role": "supervisor", + "user": { + "first_name": "User", + "id": 3, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/3", + "username": "user2" + } + }, + { + "created_date": "2021-12-14T19:54:56.431899Z", + "key": "mFpVV2Yh39uUdU8IpigSxvuPegqi8sjxFi6P9Jdy6fBE8Ky9Juzi1KjeGDQsizSS", + "organization": 2, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 8, + "last_name": "Third", + "url": "http://localhost:8080/api/v1/users/8", + "username": "worker3" + } + }, + { + "created_date": "2021-12-14T19:54:46.172754Z", + "key": "62HplmGPJuzpTXSyzPWiAlREkq8smCjK30GdtYze3q03J9X5ghQe3oMhlAyQ0WBH", + "organization": 2, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 7, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/7", + "username": "worker2" + } + }, + { + "created_date": "2021-12-14T19:54:33.591399Z", + "key": "Y1I4FFU27WRqq2rWQLtKjDztMqpvqW7gJgg7q73F7oE4H5kukvXugWjiTLHclPDu", + "organization": 2, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "role": "maintainer", + "user": { + "first_name": "Business", + "id": 11, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/11", + "username": "business2" + } + }, + { + "created_date": "2021-12-14T18:48:46.579536Z", + "key": "cbmm587Z05WQUYvesIZUCtbTl7CEL4thv1Au6Nr51psflITn9X6BsvNFXcNEkoYn", + "organization": 1, + "owner": { + "first_name": "User", + "id": 2, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + }, + "role": "maintainer", + "user": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + } + }, + { + "created_date": "2021-12-14T18:47:49.322807Z", + "key": "aViZkw9TaieLoZaswEnkMy8tTet1yYDRof3eKZDtZaHf1BItgCNNM6y6fnjrkrej", + "organization": 1, + "owner": { + "first_name": "User", + "id": 2, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + }, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 7, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/7", + "username": "worker2" + } + }, + { + "created_date": "2021-12-14T18:47:39.935203Z", + "key": "Lzyzgo161I7Fej1vC5RXPdyUgCBfbuxsEEhHYeYOJqvbeJe5clPDnqCm7pKOC9tr", + "organization": 1, + "owner": { + "first_name": "User", + "id": 2, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + }, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 6, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/6", + "username": "worker1" + } + } + ] +} \ No newline at end of file diff --git a/tests/rest_api/assets/jobs.json b/tests/rest_api/assets/jobs.json new file mode 100644 index 00000000..1ee3228d --- /dev/null +++ b/tests/rest_api/assets/jobs.json @@ -0,0 +1,244 @@ +{ + "count": 6, + "next": null, + "previous": null, + "results": [ + { + "assignee": null, + "bug_tracker": null, + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "dimension": "2d", + "id": 1, + "labels": [ + { + "attributes": [], + "color": "#6080c0", + "id": 1, + "name": "cat" + }, + { + "attributes": [], + "color": "#406040", + "id": 2, + "name": "dog" + } + ], + "mode": "annotation", + "project_id": null, + "stage": "annotation", + "start_frame": 0, + "state": "new", + "status": "annotation", + "stop_frame": 129, + "task_id": 1, + "url": "http://localhost:8080/api/v1/jobs/1" + }, + { + "assignee": { + "first_name": "Worker", + "id": 6, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/6", + "username": "worker1" + }, + "bug_tracker": null, + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "dimension": "2d", + "id": 2, + "labels": [ + { + "attributes": [], + "color": "#2080c0", + "id": 3, + "name": "car" + }, + { + "attributes": [], + "color": "#c06060", + "id": 4, + "name": "person" + } + ], + "mode": "annotation", + "project_id": null, + "stage": "annotation", + "start_frame": 0, + "state": "new", + "status": "annotation", + "stop_frame": 22, + "task_id": 2, + "url": "http://localhost:8080/api/v1/jobs/2" + }, + { + "assignee": null, + "bug_tracker": "", + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "dimension": "2d", + "id": 3, + "labels": [ + { + "attributes": [ + { + "default_value": "mazda", + "id": 1, + "input_type": "select", + "mutable": false, + "name": "model", + "values": [ + "mazda", + "volvo", + "bmw" + ] + } + ], + "color": "#2080c0", + "id": 5, + "name": "car" + }, + { + "attributes": [], + "color": "#c06060", + "id": 6, + "name": "person" + } + ], + "mode": "annotation", + "project_id": 1, + "stage": "annotation", + "start_frame": 0, + "state": "new", + "status": "annotation", + "stop_frame": 49, + "task_id": 3, + "url": "http://localhost:8080/api/v1/jobs/3" + }, + { + "assignee": null, + "bug_tracker": "", + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "dimension": "2d", + "id": 4, + "labels": [ + { + "attributes": [ + { + "default_value": "mazda", + "id": 1, + "input_type": "select", + "mutable": false, + "name": "model", + "values": [ + "mazda", + "volvo", + "bmw" + ] + } + ], + "color": "#2080c0", + "id": 5, + "name": "car" + }, + { + "attributes": [], + "color": "#c06060", + "id": 6, + "name": "person" + } + ], + "mode": "annotation", + "project_id": 1, + "stage": "validation", + "start_frame": 50, + "state": "new", + "status": "validation", + "stop_frame": 99, + "task_id": 3, + "url": "http://localhost:8080/api/v1/jobs/4" + }, + { + "assignee": null, + "bug_tracker": "", + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "dimension": "2d", + "id": 5, + "labels": [ + { + "attributes": [ + { + "default_value": "mazda", + "id": 1, + "input_type": "select", + "mutable": false, + "name": "model", + "values": [ + "mazda", + "volvo", + "bmw" + ] + } + ], + "color": "#2080c0", + "id": 5, + "name": "car" + }, + { + "attributes": [], + "color": "#c06060", + "id": 6, + "name": "person" + } + ], + "mode": "annotation", + "project_id": 1, + "stage": "acceptance", + "start_frame": 100, + "state": "new", + "status": "validation", + "stop_frame": 147, + "task_id": 3, + "url": "http://localhost:8080/api/v1/jobs/5" + }, + { + "assignee": { + "first_name": "Worker", + "id": 7, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/7", + "username": "worker2" + }, + "bug_tracker": "", + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "dimension": "2d", + "id": 6, + "labels": [ + { + "attributes": [], + "color": "#6080c0", + "id": 7, + "name": "cat" + }, + { + "attributes": [], + "color": "#406040", + "id": 8, + "name": "dog" + } + ], + "mode": "annotation", + "project_id": 2, + "stage": "annotation", + "start_frame": 0, + "state": "new", + "status": "annotation", + "stop_frame": 57, + "task_id": 4, + "url": "http://localhost:8080/api/v1/jobs/6" + } + ] +} \ No newline at end of file diff --git a/tests/rest_api/assets/memberships.json b/tests/rest_api/assets/memberships.json new file mode 100644 index 00000000..4e6ba5f9 --- /dev/null +++ b/tests/rest_api/assets/memberships.json @@ -0,0 +1,142 @@ +{ + "count": 9, + "next": null, + "previous": null, + "results": [ + { + "id": 9, + "invitation": "h43G28di7vfs4Jv5VrKZ26xvGAfm6Yc2FFv14z9EKhiuIEDQ22pEnzmSCab8MnK1", + "is_active": true, + "joined_date": "2021-12-14T19:55:13.745912Z", + "organization": 2, + "role": "supervisor", + "user": { + "first_name": "User", + "id": 3, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/3", + "username": "user2" + } + }, + { + "id": 8, + "invitation": "mFpVV2Yh39uUdU8IpigSxvuPegqi8sjxFi6P9Jdy6fBE8Ky9Juzi1KjeGDQsizSS", + "is_active": true, + "joined_date": "2021-12-14T19:54:56.431899Z", + "organization": 2, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 8, + "last_name": "Third", + "url": "http://localhost:8080/api/v1/users/8", + "username": "worker3" + } + }, + { + "id": 7, + "invitation": "62HplmGPJuzpTXSyzPWiAlREkq8smCjK30GdtYze3q03J9X5ghQe3oMhlAyQ0WBH", + "is_active": true, + "joined_date": "2021-12-14T19:54:46.172754Z", + "organization": 2, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 7, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/7", + "username": "worker2" + } + }, + { + "id": 6, + "invitation": "Y1I4FFU27WRqq2rWQLtKjDztMqpvqW7gJgg7q73F7oE4H5kukvXugWjiTLHclPDu", + "is_active": true, + "joined_date": "2021-12-14T19:54:33.591399Z", + "organization": 2, + "role": "maintainer", + "user": { + "first_name": "Business", + "id": 11, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/11", + "username": "business2" + } + }, + { + "id": 5, + "invitation": null, + "is_active": true, + "joined_date": "2021-12-14T19:51:38.667522Z", + "organization": 2, + "role": "owner", + "user": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + } + }, + { + "id": 4, + "invitation": "cbmm587Z05WQUYvesIZUCtbTl7CEL4thv1Au6Nr51psflITn9X6BsvNFXcNEkoYn", + "is_active": true, + "joined_date": "2021-12-14T18:48:46.579536Z", + "organization": 1, + "role": "maintainer", + "user": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + } + }, + { + "id": 3, + "invitation": "aViZkw9TaieLoZaswEnkMy8tTet1yYDRof3eKZDtZaHf1BItgCNNM6y6fnjrkrej", + "is_active": true, + "joined_date": "2021-12-14T18:47:49.322807Z", + "organization": 1, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 7, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/7", + "username": "worker2" + } + }, + { + "id": 2, + "invitation": "Lzyzgo161I7Fej1vC5RXPdyUgCBfbuxsEEhHYeYOJqvbeJe5clPDnqCm7pKOC9tr", + "is_active": true, + "joined_date": "2021-12-14T18:47:39.935203Z", + "organization": 1, + "role": "worker", + "user": { + "first_name": "Worker", + "id": 6, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/6", + "username": "worker1" + } + }, + { + "id": 1, + "invitation": null, + "is_active": true, + "joined_date": "2021-12-14T18:45:40.172529Z", + "organization": 1, + "role": "owner", + "user": { + "first_name": "User", + "id": 2, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + } + } + ] +} \ No newline at end of file diff --git a/tests/rest_api/assets/organizations.json b/tests/rest_api/assets/organizations.json new file mode 100644 index 00000000..3b6fcabe --- /dev/null +++ b/tests/rest_api/assets/organizations.json @@ -0,0 +1,38 @@ +[ + { + "contact": { + "email": "org2@cvat.org" + }, + "created_date": "2021-12-14T19:51:38.667522Z", + "description": "", + "id": 2, + "name": "Organization #2", + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "slug": "org2", + "updated_date": "2021-12-14T19:51:38.667536Z" + }, + { + "contact": { + "email": "org1@cvat.org" + }, + "created_date": "2021-12-14T18:45:40.172529Z", + "description": "", + "id": 1, + "name": "organization #1", + "owner": { + "first_name": "User", + "id": 2, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + }, + "slug": "org1", + "updated_date": "2021-12-14T18:45:40.172542Z" + } +] \ No newline at end of file diff --git a/tests/rest_api/assets/projects.json b/tests/rest_api/assets/projects.json new file mode 100644 index 00000000..2d526598 --- /dev/null +++ b/tests/rest_api/assets/projects.json @@ -0,0 +1,106 @@ +{ + "count": 2, + "next": null, + "previous": null, + "results": [ + { + "assignee": { + "first_name": "User", + "id": 3, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/3", + "username": "user2" + }, + "bug_tracker": "", + "created_date": "2021-12-14T19:52:37.278149Z", + "dimension": "2d", + "id": 2, + "labels": [ + { + "attributes": [], + "color": "#6080c0", + "id": 7, + "name": "cat" + }, + { + "attributes": [], + "color": "#406040", + "id": 8, + "name": "dog" + } + ], + "name": "project2", + "organization": 2, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "status": "annotation", + "task_subsets": [ + "train" + ], + "tasks": [ + 4 + ], + "training_project": null, + "updated_date": "2021-12-14T19:55:57.483506Z", + "url": "http://localhost:8080/api/v1/projects/2" + }, + { + "assignee": null, + "bug_tracker": "", + "created_date": "2021-12-14T19:46:37.969497Z", + "dimension": "2d", + "id": 1, + "labels": [ + { + "attributes": [ + { + "default_value": "mazda", + "id": 1, + "input_type": "select", + "mutable": false, + "name": "model", + "values": [ + "mazda", + "volvo", + "bmw" + ] + } + ], + "color": "#2080c0", + "id": 5, + "name": "car" + }, + { + "attributes": [], + "color": "#c06060", + "id": 6, + "name": "person" + } + ], + "name": "project1", + "organization": null, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "status": "annotation", + "task_subsets": [ + "Train" + ], + "tasks": [ + 3 + ], + "training_project": null, + "updated_date": "2021-12-14T19:48:33.103265Z", + "url": "http://localhost:8080/api/v1/projects/1" + } + ] +} \ No newline at end of file diff --git a/tests/rest_api/assets/tasks.json b/tests/rest_api/assets/tasks.json new file mode 100644 index 00000000..382cbc6f --- /dev/null +++ b/tests/rest_api/assets/tasks.json @@ -0,0 +1,300 @@ +{ + "count": 4, + "next": null, + "previous": null, + "results": [ + { + "assignee": null, + "bug_tracker": "", + "created_date": "2021-12-14T19:55:57.475273Z", + "data": 4, + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "data_original_chunk_type": "imageset", + "dimension": "2d", + "id": 4, + "image_quality": 70, + "labels": [ + { + "attributes": [], + "color": "#6080c0", + "id": 7, + "name": "cat" + }, + { + "attributes": [], + "color": "#406040", + "id": 8, + "name": "dog" + } + ], + "mode": "annotation", + "name": "task1_in_project2", + "organization": 2, + "overlap": 0, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "project_id": 2, + "segment_size": 58, + "segments": [ + { + "jobs": [ + { + "assignee": { + "first_name": "Worker", + "id": 7, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/7", + "username": "worker2" + }, + "id": 6, + "stage": "annotation", + "state": "new", + "status": "annotation", + "url": "http://localhost:8080/api/v1/jobs/6" + } + ], + "start_frame": 0, + "stop_frame": 57 + } + ], + "size": 58, + "status": "annotation", + "subset": "train", + "updated_date": "2021-12-22T07:17:34.836384Z", + "url": "http://localhost:8080/api/v1/tasks/4" + }, + { + "assignee": null, + "bug_tracker": "", + "created_date": "2021-12-14T19:48:33.089778Z", + "data": 3, + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "data_original_chunk_type": "imageset", + "dimension": "2d", + "id": 3, + "image_quality": 70, + "labels": [ + { + "attributes": [ + { + "default_value": "mazda", + "id": 1, + "input_type": "select", + "mutable": false, + "name": "model", + "values": [ + "mazda", + "volvo", + "bmw" + ] + } + ], + "color": "#2080c0", + "id": 5, + "name": "car" + }, + { + "attributes": [], + "color": "#c06060", + "id": 6, + "name": "person" + } + ], + "mode": "annotation", + "name": "task1_in_project1", + "organization": null, + "overlap": 0, + "owner": { + "first_name": "Business", + "id": 10, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + "project_id": 1, + "segment_size": 50, + "segments": [ + { + "jobs": [ + { + "assignee": null, + "id": 3, + "stage": "annotation", + "state": "new", + "status": "annotation", + "url": "http://localhost:8080/api/v1/jobs/3" + } + ], + "start_frame": 0, + "stop_frame": 49 + }, + { + "jobs": [ + { + "assignee": null, + "id": 4, + "stage": "validation", + "state": "new", + "status": "validation", + "url": "http://localhost:8080/api/v1/jobs/4" + } + ], + "start_frame": 50, + "stop_frame": 99 + }, + { + "jobs": [ + { + "assignee": null, + "id": 5, + "stage": "acceptance", + "state": "new", + "status": "validation", + "url": "http://localhost:8080/api/v1/jobs/5" + } + ], + "start_frame": 100, + "stop_frame": 147 + } + ], + "size": 148, + "status": "annotation", + "subset": "Train", + "updated_date": "2021-12-22T07:19:33.854760Z", + "url": "http://localhost:8080/api/v1/tasks/3" + }, + { + "assignee": null, + "bug_tracker": "", + "created_date": "2021-12-14T18:50:29.458488Z", + "data": 2, + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "data_original_chunk_type": "imageset", + "dimension": "2d", + "id": 2, + "image_quality": 70, + "labels": [ + { + "attributes": [], + "color": "#2080c0", + "id": 3, + "name": "car" + }, + { + "attributes": [], + "color": "#c06060", + "id": 4, + "name": "person" + } + ], + "mode": "annotation", + "name": "task2", + "organization": 1, + "overlap": 0, + "owner": { + "first_name": "User", + "id": 2, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + }, + "project_id": null, + "segment_size": 23, + "segments": [ + { + "jobs": [ + { + "assignee": { + "first_name": "Worker", + "id": 6, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/6", + "username": "worker1" + }, + "id": 2, + "stage": "annotation", + "state": "new", + "status": "annotation", + "url": "http://localhost:8080/api/v1/jobs/2" + } + ], + "start_frame": 0, + "stop_frame": 22 + } + ], + "size": 23, + "status": "annotation", + "subset": "", + "updated_date": "2021-12-22T07:14:15.234748Z", + "url": "http://localhost:8080/api/v1/tasks/2" + }, + { + "assignee": null, + "bug_tracker": "", + "created_date": "2021-12-14T18:43:47.601289Z", + "data": 1, + "data_chunk_size": 72, + "data_compressed_chunk_type": "imageset", + "data_original_chunk_type": "imageset", + "dimension": "2d", + "id": 1, + "image_quality": 70, + "labels": [ + { + "attributes": [], + "color": "#6080c0", + "id": 1, + "name": "cat" + }, + { + "attributes": [], + "color": "#406040", + "id": 2, + "name": "dog" + } + ], + "mode": "annotation", + "name": "task1", + "organization": null, + "overlap": 0, + "owner": { + "first_name": "User", + "id": 2, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + }, + "project_id": null, + "segment_size": 130, + "segments": [ + { + "jobs": [ + { + "assignee": null, + "id": 1, + "stage": "annotation", + "state": "new", + "status": "annotation", + "url": "http://localhost:8080/api/v1/jobs/1" + } + ], + "start_frame": 0, + "stop_frame": 129 + } + ], + "size": 130, + "status": "annotation", + "subset": "", + "updated_date": "2021-12-22T07:15:22.942484Z", + "url": "http://localhost:8080/api/v1/tasks/1" + } + ] +} \ No newline at end of file diff --git a/tests/rest_api/assets/users.json b/tests/rest_api/assets/users.json new file mode 100644 index 00000000..cd460e80 --- /dev/null +++ b/tests/rest_api/assets/users.json @@ -0,0 +1,287 @@ +{ + "count": 18, + "next": null, + "previous": null, + "results": [ + { + "date_joined": "2021-12-14T18:04:57Z", + "email": "admin1@cvat.org", + "first_name": "Admin", + "groups": [ + "admin" + ], + "id": 1, + "is_active": true, + "is_staff": true, + "is_superuser": true, + "last_login": "2021-12-22T07:32:58.602211Z", + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/1", + "username": "admin1" + }, + { + "date_joined": "2021-12-14T18:21:09Z", + "email": "user1@cvat.org", + "first_name": "User", + "groups": [ + "user" + ], + "id": 2, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": "2021-12-22T07:55:35.269206Z", + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/2", + "username": "user1" + }, + { + "date_joined": "2021-12-14T18:24:12Z", + "email": "user2@cvat.org", + "first_name": "User", + "groups": [ + "user" + ], + "id": 3, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/3", + "username": "user2" + }, + { + "date_joined": "2021-12-14T18:24:39Z", + "email": "user3@cvat.org", + "first_name": "User", + "groups": [ + "user" + ], + "id": 4, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Third", + "url": "http://localhost:8080/api/v1/users/4", + "username": "user3" + }, + { + "date_joined": "2021-12-14T18:25:10Z", + "email": "user4@cvat.org", + "first_name": "User", + "groups": [ + "user" + ], + "id": 5, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Fourth", + "url": "http://localhost:8080/api/v1/users/5", + "username": "user4" + }, + { + "date_joined": "2021-12-14T18:30:00Z", + "email": "worker1@cvat.org", + "first_name": "Worker", + "groups": [ + "worker" + ], + "id": 6, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": "2021-12-14T19:11:21.048740Z", + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/6", + "username": "worker1" + }, + { + "date_joined": "2021-12-14T18:30:43Z", + "email": "worker2@cvat.org", + "first_name": "Worker", + "groups": [ + "worker" + ], + "id": 7, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/7", + "username": "worker2" + }, + { + "date_joined": "2021-12-14T18:31:25Z", + "email": "worker3@cvat.org", + "first_name": "Worker", + "groups": [ + "worker" + ], + "id": 8, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Third", + "url": "http://localhost:8080/api/v1/users/8", + "username": "worker3" + }, + { + "date_joined": "2021-12-14T18:32:01Z", + "email": "worker4@cvat.org", + "first_name": "Worker", + "groups": [ + "worker" + ], + "id": 9, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Fourth", + "url": "http://localhost:8080/api/v1/users/9", + "username": "worker4" + }, + { + "date_joined": "2021-12-14T18:33:06Z", + "email": "business1@cvat.org", + "first_name": "Business", + "groups": [ + "business" + ], + "id": 10, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": "2021-12-14T19:44:48.526708Z", + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/10", + "username": "business1" + }, + { + "date_joined": "2021-12-14T18:34:01Z", + "email": "business2@cvat.org", + "first_name": "Business", + "groups": [ + "business" + ], + "id": 11, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/11", + "username": "business2" + }, + { + "date_joined": "2021-12-14T18:34:34Z", + "email": "business3@cvat.org", + "first_name": "Business", + "groups": [ + "business" + ], + "id": 12, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Third", + "url": "http://localhost:8080/api/v1/users/12", + "username": "business3" + }, + { + "date_joined": "2021-12-14T18:35:15Z", + "email": "business4@cvat.org", + "first_name": "Business", + "groups": [ + "business" + ], + "id": 13, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Fourth", + "url": "http://localhost:8080/api/v1/users/13", + "username": "business4" + }, + { + "date_joined": "2021-12-14T18:36:00Z", + "email": "dummy1@cvat.org", + "first_name": "Dummy", + "groups": [], + "id": 14, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "First", + "url": "http://localhost:8080/api/v1/users/14", + "username": "dummy1" + }, + { + "date_joined": "2021-12-14T18:36:31Z", + "email": "dummy2@cvat.org", + "first_name": "Dummy", + "groups": [], + "id": 15, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/15", + "username": "dummy2" + }, + { + "date_joined": "2021-12-14T18:37:09Z", + "email": "dummy3@cvat.org", + "first_name": "Dummy", + "groups": [], + "id": 16, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Third", + "url": "http://localhost:8080/api/v1/users/16", + "username": "dummy3" + }, + { + "date_joined": "2021-12-14T18:37:41Z", + "email": "dummy4@cvat.org", + "first_name": "Dummy", + "groups": [], + "id": 17, + "is_active": true, + "is_staff": false, + "is_superuser": false, + "last_login": null, + "last_name": "Fourth", + "url": "http://localhost:8080/api/v1/users/17", + "username": "dummy4" + }, + { + "date_joined": "2021-12-14T18:38:46Z", + "email": "admin2@cvat.org", + "first_name": "Admin", + "groups": [ + "admin" + ], + "id": 18, + "is_active": true, + "is_staff": true, + "is_superuser": true, + "last_login": null, + "last_name": "Second", + "url": "http://localhost:8080/api/v1/users/18", + "username": "admin2" + } + ] +} \ No newline at end of file diff --git a/tests/rest_api/requirements.txt b/tests/rest_api/requirements.txt new file mode 100644 index 00000000..7a114215 --- /dev/null +++ b/tests/rest_api/requirements.txt @@ -0,0 +1,3 @@ +pytest==6.2.5 +requests==2.26.0 +deepdiff==5.6.0 diff --git a/tests/rest_api/test_0000_check_objects_integrity.py b/tests/rest_api/test_0000_check_objects_integrity.py new file mode 100644 index 00000000..6e602e5f --- /dev/null +++ b/tests/rest_api/test_0000_check_objects_integrity.py @@ -0,0 +1,24 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +import os +import glob +import requests +import json +from deepdiff import DeepDiff +from .utils import config + +def test_check_objects_integrity(): + with requests.Session() as session: + session.auth = ('admin1', config.USER_PASS) + + for filename in glob.glob(os.path.join(config.ASSETS_DIR, '*.json')): + with open(filename) as f: + endpoint = os.path.basename(filename).rsplit('.')[0] + response = session.get(config.get_api_url(endpoint, page_size='all')) + json_objs = json.load(f) + resp_objs = response.json() + + assert DeepDiff(json_objs, resp_objs, ignore_order=True, + exclude_regex_paths="root\['results'\]\[\d+\]\['last_login'\]") == {} diff --git a/tests/rest_api/test_0001_users_api.py b/tests/rest_api/test_0001_users_api.py new file mode 100644 index 00000000..9f6eea72 --- /dev/null +++ b/tests/rest_api/test_0001_users_api.py @@ -0,0 +1,35 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +import os +from http import HTTPStatus +import requests +import json +from .utils import config +from deepdiff import DeepDiff + + +def test_non_admin_cannot_see_others(): + for username in ['dummy1', 'worker1', 'user1', 'business1']: + response = requests.get(config.get_api_url('users'), auth=(username, config.USER_PASS)) + assert response.status_code == HTTPStatus.OK + assert response.json()['count'] == 1 + +def test_admin_can_see_all_others(): + response = requests.get(config.get_api_url('users'), auth=('admin2', config.USER_PASS)) + assert response.status_code == HTTPStatus.OK + with open(os.path.join(config.ASSETS_DIR, 'users.json')) as f: + data = json.load(f) + assert response.json()['count'] == data['count'] + +def test_everybody_can_see_self(): + with open(os.path.join(config.ASSETS_DIR, 'users.json')) as f: + data = json.load(f)['results'] + users = {user['username']:user for user in data} + + for username in ['dummy1', 'worker1', 'user1', 'business1', 'admin1']: + response = requests.get(config.get_api_url('users/self'), auth=(username, config.USER_PASS)) + assert response.status_code == HTTPStatus.OK + assert DeepDiff(users[username], response.json(), ignore_order=True, + exclude_paths="root['last_login']") == {} diff --git a/tests/rest_api/test_0002_organizations.py b/tests/rest_api/test_0002_organizations.py new file mode 100644 index 00000000..18d6b5a0 --- /dev/null +++ b/tests/rest_api/test_0002_organizations.py @@ -0,0 +1,25 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +import os +from http import HTTPStatus +import requests +import json +from .utils import config +from deepdiff import DeepDiff + +def compare_organizations(org_id, response): + assert response.status_code == HTTPStatus.OK + with open(os.path.join(config.ASSETS_DIR, 'organizations.json')) as f: + org = next(filter(lambda org: org['id'] == org_id, json.load(f))) + DeepDiff(org, response.json()) + +def test_admin1_get_organization_id_1(): + response = requests.get(config.get_api_url('organizations/1'), auth=('admin1', config.USER_PASS)) + compare_organizations(1, response) + +def test_user1_get_organization_id_1(): + response = requests.get(config.get_api_url('organizations/1'), auth=('user1', config.USER_PASS)) + compare_organizations(1, response) + diff --git a/tests/rest_api/utils/config.py b/tests/rest_api/utils/config.py new file mode 100644 index 00000000..a96a3d3c --- /dev/null +++ b/tests/rest_api/utils/config.py @@ -0,0 +1,14 @@ +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT + +import os + +ROOT_DIR = os.path.dirname(__file__) +ASSETS_DIR = os.path.join(ROOT_DIR, '..', 'assets') +# Suppress the warning from Bandit about hardcoded passwords +USER_PASS = '!Q@W#E$R' # nosec +BASE_URL = 'http://localhost:8080/api/v1/' + +def get_api_url(endpoint, **kwargs): + return BASE_URL + endpoint + '?' + '&'.join([f'{k}={v}' for k,v in kwargs.items()]) \ No newline at end of file diff --git a/tests/rest_api/utils/dump_objects.py b/tests/rest_api/utils/dump_objects.py new file mode 100644 index 00000000..0b42273c --- /dev/null +++ b/tests/rest_api/utils/dump_objects.py @@ -0,0 +1,14 @@ +import os +import requests +import json +import config + +with requests.Session() as session: + session.auth = ('admin1', config.USER_PASS) + + for obj in ['user', 'project', 'task', 'job', 'organization', 'membership', + 'invitation']: + response = session.get(f'http://localhost:8080/api/v1/{obj}s?page_size=all') + with open(os.path.join(config.ASSETS_DIR, f'{obj}s.json'), 'w') as f: + json.dump(response.json(), f, indent=2, sort_keys=True) +