fixed process-instance api perms in macro

This commit is contained in:
jasquat 2023-05-22 10:03:46 -04:00
parent eb0414a66d
commit b8d06ae08e
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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"),