fixed perms for readonly for staging w/ burnettk
This commit is contained in:
parent
ab034ca0a0
commit
8e6e90d527
|
@ -17,7 +17,6 @@ groups:
|
||||||
dan,
|
dan,
|
||||||
mike,
|
mike,
|
||||||
jason,
|
jason,
|
||||||
j,
|
|
||||||
jarrad,
|
jarrad,
|
||||||
elizabeth,
|
elizabeth,
|
||||||
jon,
|
jon,
|
||||||
|
@ -32,7 +31,6 @@ groups:
|
||||||
dan,
|
dan,
|
||||||
mike,
|
mike,
|
||||||
jason,
|
jason,
|
||||||
j,
|
|
||||||
amir,
|
amir,
|
||||||
jarrad,
|
jarrad,
|
||||||
elizabeth,
|
elizabeth,
|
||||||
|
@ -63,6 +61,12 @@ groups:
|
||||||
harmeet,
|
harmeet,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
admin-ro:
|
||||||
|
users:
|
||||||
|
[
|
||||||
|
j,
|
||||||
|
]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
admin:
|
admin:
|
||||||
groups: [admin]
|
groups: [admin]
|
||||||
|
@ -70,6 +74,17 @@ permissions:
|
||||||
allowed_permissions: [create, read, update, delete]
|
allowed_permissions: [create, read, update, delete]
|
||||||
uri: /*
|
uri: /*
|
||||||
|
|
||||||
|
admin-readonly:
|
||||||
|
groups: [admin-ro]
|
||||||
|
users: []
|
||||||
|
allowed_permissions: [read]
|
||||||
|
uri: /*
|
||||||
|
admin-process-instances-for-readonly:
|
||||||
|
groups: [admin-ro]
|
||||||
|
users: []
|
||||||
|
allowed_permissions: [create, read, update, delete]
|
||||||
|
uri: /v1.0/process-instances/*
|
||||||
|
|
||||||
tasks-crud:
|
tasks-crud:
|
||||||
groups: [everybody]
|
groups: [everybody]
|
||||||
users: []
|
users: []
|
||||||
|
|
|
@ -67,7 +67,7 @@ permissions:
|
||||||
groups: [admin]
|
groups: [admin]
|
||||||
users: []
|
users: []
|
||||||
allowed_permissions: [create, read, update, delete]
|
allowed_permissions: [create, read, update, delete]
|
||||||
uri: /process-instances/*
|
uri: /v1.0/process-instances/*
|
||||||
|
|
||||||
tasks-crud:
|
tasks-crud:
|
||||||
groups: [everybody]
|
groups: [everybody]
|
||||||
|
|
|
@ -223,7 +223,7 @@ class ProcessModelService(FileSystemService):
|
||||||
user = UserService.current_user()
|
user = UserService.current_user()
|
||||||
new_process_model_list = []
|
new_process_model_list = []
|
||||||
for process_model in process_models:
|
for process_model in process_models:
|
||||||
uri = f"/v1.0/process-models/{process_model.id.replace('/', ':')}/process-instances"
|
uri = f"/v1.0/process-instances/{process_model.id.replace('/', ':')}"
|
||||||
result = AuthorizationService.user_has_permission(
|
result = AuthorizationService.user_has_permission(
|
||||||
user=user, permission="create", target_uri=uri
|
user=user, permission="create", target_uri=uri
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue