[Koha-bugs] [Bug 35444] Add easy way to retrieve a logged in user's categorycode

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 30 00:22:26 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35444

--- Comment #1 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 159380
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159380&action=edit
Bug 35444: Add hidden span with information about the loggedinuser categorycode

To test:
1. APPLY PATCH
2. Log into the staff interface and use the browser's dev tools to look for the
HTML class 'loggedincategorycode'. It should match the current logged in user's
categorycode.
3. You could also use a console.log like so:

console.log( $('.loggedincategorycode').text() );

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list