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
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
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
3 matches
Mail list logo