Re: [Koha] Staff permission flag

2024-07-10 Thread Jonathan Druart
If you want to test if the patron is superlibrarian (borrowers.flags == 1) then use Koha::Patron->is_superlibrarian Le mer. 10 juil. 2024 à 12:52, vinod mishra a écrit : > Thanks > Actually I developed application for visitors counter and staff user name > and password is authenticated / linked

Re: [Koha] Staff permission flag

2024-07-10 Thread vinod mishra
Thanks Actually I developed application for visitors counter and staff user name and password is authenticated / linked with koha borrowers table and allowed to enter only if flag is 1. So this type of authentication is possible with API Thanks On Wed, 10 Jul, 2024, 13:52 Jonathan Druart, < jonat

Re: [Koha] Staff permission flag

2024-07-10 Thread Jonathan Druart
Hi, Why not simply use Koha's API? C4::Auth::haspermission or, better, Koha::Patron->has_permission Do not assume the way we deal with permissions will not change. However Koha::Patron->has_permission should still work identically if we modify it. Regards, Jonathan Le mer. 10 juil. 2024 à 05:50