[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 Jan 25 18:49:58 CET 2024


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

Emily Lamancusa <emily.lamancusa at montgomerycountymd.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #159597|0                           |1
        is obsolete|                            |

--- Comment #4 from Emily Lamancusa <emily.lamancusa at montgomerycountymd.gov> ---
Created attachment 161454
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161454&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() );

Signed-off-by: Owen Leonard <oleonard at myacpl.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa at montgomerycountymd.gov>

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


More information about the Koha-bugs mailing list