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

[Koha] Out of memory when Koha starts due to opac-search.pl and 500.pl

2024-07-10 Thread Mike Lake
Hi all I'm having serious problems with my Koha instance. It serves the OPAC for the Australian Speleological Federation. We are currently on Koha 23.11 on a Debian 10.13. The system has been running fine for ages. I was getting errors from the OOM killer: oom_reaper: reaped process 1554 (o

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

[Koha] {UNKNOWN}: DBI Exception: DBD::mysql::db do failed: Duplicate entry '0' for key 'PRIMARY'

2024-07-10 Thread Michael Kuhn
Hi We have loaded our Koha 19.11 database into a new Koha 24.05 instance. When running "koha-upgrade-schema" the following error appears: ... Upgrade to 19.12.00.017 [12:00:41]: Bug 21674 - Add unique key (parent_id, branchcode) to library_group {UNKNOWN}: DBI Exception: DBD::mysql::db do fa

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