mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-26 17:59:04 +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] = []
|
||||
for process_instance_action in ["resume", "terminate", "suspend", "reset"]:
|
||||
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
|
||||
|
@ -311,10 +311,10 @@ class TestAuthorizationService(BaseTest):
|
||||
expected_permissions = [
|
||||
("/can-run-privileged-script/*", "create"),
|
||||
("/messages/*", "create"),
|
||||
("/process-instances-reset/*", "create"),
|
||||
("/process-instances-resume/*", "create"),
|
||||
("/process-instances-suspend/*", "create"),
|
||||
("/process-instances-terminate/*", "create"),
|
||||
("/process-instance-reset/*", "create"),
|
||||
("/process-instance-resume/*", "create"),
|
||||
("/process-instance-suspend/*", "create"),
|
||||
("/process-instance-terminate/*", "create"),
|
||||
("/process-instances/*", "create"),
|
||||
("/process-instances/*", "delete"),
|
||||
("/process-instances/*", "read"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user