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 <mishrav...@gmail.com> a écrit : > 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, < > jonathan.dru...@bugs.koha-community.org> wrote: > >> 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, vinod mishra <mishrav...@gmail.com> a >> écrit : >> >>> Hello >>> I just need a confirmation that whenever we assigned staff permission to >>> someone in koha it generate some number depending on options permitted, >>> for >>> example full access flag id 1, only catalogue, 4, etc and for others >>> number >>> in 3/4 digits. >>> My question is above numbers are fixed according to the options permitted >>> and will it continue in next versions. Actually I am trying to develop >>> some >>> tool and authenticate on the basis of flag ID. >>> _______________________________________________ >>> >>> Koha mailing list http://koha-community.org >>> Koha@lists.katipo.co.nz >>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha >>> >> _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha