Details
-
Task
-
Status: Closed (View Workflow)
-
TBD
-
Resolution: Won't Do
-
None
-
None
Description
Open the edit user screen for a user and assign only this single permission: "Agreements: Can create and edit agreements" (= "ui-agreements.agreements.create"); remove all other permissions.
Actual result: The user permissions section of the user edit screen (and also of the user view screen) shows only that single permission.
Expected result: Both screens should also show which subPermissions have automatically been assigned.
See https://github.com/folio-org/ui-agreements/blob/v3.0.0/package.json#L99-L125 for the subPermissions:
"ui-agreements.agreements.edit" (= Agreements: Can edit agreements)
"ui-agreements.agreements.view" (= Agreements: Can view agreements)
"module.agreements.enabled" (= Agreements App user)
"ui-organizations.view" (= Organizations: View organizations)
There should be an indication that it is not an explicitly assigned permission but an automatically assigned subPermission.
There should be a way to find out for each automatically assigned subPermission which non-automatically assigned permission(s) caused the assignment of the subPermission.