mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-27 10:15:10 +00:00
fixed process-instance api perms in macro
This commit is contained in:
parent
eb0414a66d
commit
b8d06ae08e
@ -516,7 +516,7 @@ class AuthorizationService:
|
|||||||
permissions_to_assign: list[PermissionToAssign] = []
|
permissions_to_assign: list[PermissionToAssign] = []
|
||||||
for process_instance_action in ["resume", "terminate", "suspend", "reset"]:
|
for process_instance_action in ["resume", "terminate", "suspend", "reset"]:
|
||||||
permissions_to_assign.append(
|
permissions_to_assign.append(
|
||||||
PermissionToAssign(permission="create", target_uri=f"/process-instances-{process_instance_action}/*")
|
PermissionToAssign(permission="create", target_uri=f"/process-instance-{process_instance_action}/*")
|
||||||
)
|
)
|
||||||
|
|
||||||
# FIXME: we need to fix so that user that can start a process-model
|
# FIXME: we need to fix so that user that can start a process-model
|
||||||
|
@ -311,10 +311,10 @@ class TestAuthorizationService(BaseTest):
|
|||||||
expected_permissions = [
|
expected_permissions = [
|
||||||
("/can-run-privileged-script/*", "create"),
|
("/can-run-privileged-script/*", "create"),
|
||||||
("/messages/*", "create"),
|
("/messages/*", "create"),
|
||||||
("/process-instances-reset/*", "create"),
|
("/process-instance-reset/*", "create"),
|
||||||
("/process-instances-resume/*", "create"),
|
("/process-instance-resume/*", "create"),
|
||||||
("/process-instances-suspend/*", "create"),
|
("/process-instance-suspend/*", "create"),
|
||||||
("/process-instances-terminate/*", "create"),
|
("/process-instance-terminate/*", "create"),
|
||||||
("/process-instances/*", "create"),
|
("/process-instances/*", "create"),
|
||||||
("/process-instances/*", "delete"),
|
("/process-instances/*", "delete"),
|
||||||
("/process-instances/*", "read"),
|
("/process-instances/*", "read"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user