https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34460 --- Comment #5 from David Nind <david@davidnind.com> --- Created attachment 198329 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198329&action=edit Bug 34460: Add can_have_permissions to patron categories This patch adds a new field to the patron categories, can_have_permissions, which allows to set whether a category can have permissions or not. A system preference ClearPermissionsAutomatically is added to automatically clear permissions if a category is updated. Test plan: 1. Add a new patron category with can_have_permissions set to false and verify that it cannot have permissions. 2. Add a new patron with the category created in step 1 and verify that it cannot have permissions. 3. Update the category created in step 1 to set can_have_permissions to true and verify that it can have permissions. 4. Add permissions to the patron created in step 2 and verify that they are added successfully. 5. Enable the ClearPermissionsAutomatically system preference. 6. Update the patron's category to a different category which has can_have_permissions set to false. 7. Change the patron's category back to the original category and verify that the permissions are cleared. Sponsored-by: Koha-Suomi Oy Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.