Bug 40698

Summary: Make selected patron categories creatable/editable by permission
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: anneli.osterman, dcook, gmcharlt, kyle
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Christopher Brannon 2025-08-22 20:05:35 UTC
There are certain categories of patrons that should not be selectable by any libraries: Self Check, SIP Accounts, Testing, Admin, etc.  It would be great if when staff are adding new patrons, they don't have to sift through those categories which they shouldn't use.  We can narrow it down to one library, but not none.  I would suggest that we have an option in the libraries for Admin only (superlibrarian) or we have a check box to hide the category except for superlibrarians.
Comment 1 Owen Leonard 2025-08-23 15:35:35 UTC
It sounds like you'd like something like an "internal use only" checkbox you could check when creating a patron category? 

And then maybe a sub-permission under 'borrowers' for adding or modifying patrons with that category?
Comment 2 Anneli Österman 2025-08-25 05:25:23 UTC
Should the "internal use only" apply also to modifying patron's in those categories? Not only making new ones?

We have a JavaScript that prevents modifying certain patron categories' patrons and it would be nice if we would not have to use JavaScript.
Comment 3 Christopher Brannon 2025-08-25 15:16:50 UTC
(In reply to Owen Leonard from comment #1)
> It sounds like you'd like something like an "internal use only" checkbox you
> could check when creating a patron category? 
> 
> And then maybe a sub-permission under 'borrowers' for adding or modifying
> patrons with that category?

I think that would be acceptable.  At the very least it should be for superlibrarian use only, but if people want to assign someone other than a superlibrarian to manage them, then a separate permission might be in order.
Comment 4 Christopher Brannon 2025-08-25 15:17:11 UTC
(In reply to Anneli Österman from comment #2)
> Should the "internal use only" apply also to modifying patron's in those
> categories? Not only making new ones?
> 
> We have a JavaScript that prevents modifying certain patron categories'
> patrons and it would be nice if we would not have to use JavaScript.

I would be down with that idea.