mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-13 11:05:56 +00:00
process instances for-me is a basic permissions thing needed by everyone
This commit is contained in:
parent
5c352a87d7
commit
40b9570e22
@ -518,7 +518,12 @@ class AuthorizationService:
|
|||||||
def set_basic_permissions(cls) -> list[PermissionToAssign]:
|
def set_basic_permissions(cls) -> list[PermissionToAssign]:
|
||||||
permissions_to_assign: list[PermissionToAssign] = []
|
permissions_to_assign: list[PermissionToAssign] = []
|
||||||
permissions_to_assign.append(PermissionToAssign(permission="create", target_uri="/active-users/*"))
|
permissions_to_assign.append(PermissionToAssign(permission="create", target_uri="/active-users/*"))
|
||||||
|
|
||||||
|
# gets lists of instances (we use a POST with a json body because there are complex filters, hence the create)
|
||||||
permissions_to_assign.append(PermissionToAssign(permission="create", target_uri="/process-instances/for-me"))
|
permissions_to_assign.append(PermissionToAssign(permission="create", target_uri="/process-instances/for-me"))
|
||||||
|
# view individual instances that require my attention
|
||||||
|
permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/process-instances/for-me/*"))
|
||||||
|
|
||||||
permissions_to_assign.append(PermissionToAssign(permission="create", target_uri="/users/exists/by-username"))
|
permissions_to_assign.append(PermissionToAssign(permission="create", target_uri="/users/exists/by-username"))
|
||||||
permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/connector-proxy/typeahead/*"))
|
permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/connector-proxy/typeahead/*"))
|
||||||
permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/debug/version-info"))
|
permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/debug/version-info"))
|
||||||
|
@ -449,6 +449,7 @@ class TestAuthorizationService(BaseTest):
|
|||||||
("/process-groups", "read"),
|
("/process-groups", "read"),
|
||||||
("/process-instances/find-by-id/*", "read"),
|
("/process-instances/find-by-id/*", "read"),
|
||||||
("/process-instances/for-me", "create"),
|
("/process-instances/for-me", "create"),
|
||||||
|
("/process-instances/for-me/*", "read"),
|
||||||
("/process-instances/report-metadata", "read"),
|
("/process-instances/report-metadata", "read"),
|
||||||
("/process-instances/reports/*", "create"),
|
("/process-instances/reports/*", "create"),
|
||||||
("/process-instances/reports/*", "delete"),
|
("/process-instances/reports/*", "delete"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user