Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
Description
When you add a subpermission to a permission set, we presently send the entire subpermission structure:
PUT /perms/permissions/f2808d5e-5ba6-4c3f-aa07-3c8eaf351059 { "visible" : true, "subPermissions" : [ { "subPermissions" : [ "circulation.loans.collection.get", "circulation.loans.item.get", "circulation.loans.item.post", "circulation.loans.item.put", "circulation.loans.item.delete", "circulation.loans.collection.delete" ], "visible" : false, "permissionName" : "circulation.all", "description" : "Entire set of permissions needed to use the circulation module", "tags" : [], "id" : "437a9009-15f6-4b5b-8fd9-dcbacf850272", "mutable" : false, "displayName" : "circulation module - all permissions" } ], "permissionName" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059", "tags" : [], "id" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059", "mutable" : true, "description" : "Just for testing", "displayName" : "Mike's set" }
But as discussed in today's comments on MODPERMS-5, the subpermissions should only be permission names:
PUT /perms/permissions/f2808d5e-5ba6-4c3f-aa07-3c8eaf351059 { "visible" : true, "subPermissions" : [ "circulation.all" ], "permissionName" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059", "tags" : [], "id" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059", "mutable" : true, "description" : "Just for testing", "displayName" : "Mike's set" }
TestRail: Results
Attachments
Issue Links
- blocks
-
MODPERMS-10 User-Created Permission Sets Not Working
-
- Closed
-
- relates to
-
STRIPES-425 Figure out how the `_cid` field appears in some record
-
- Closed
-
-
MODPERMS-5 mod-perms error after POST
-
- Closed
-
-
UIU-113 Permissions, once created, are listed as blank
-
- Closed
-