From e1c477eb439e677ea46921b8703d5383f0d10b23 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Sun, 8 Sep 2002 05:04:46 +0000 Subject: [PATCH] Fix for Auth.pm when using "super user" account from /etc/koha.conf. Auth.pm was not checking if this account was being used except on initial authentication, ie superlibrarian flag was not getting set when cookie was read for authentication on subsequent connections. --- C4/Auth.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/C4/Auth.pm b/C4/Auth.pm index 643b1f1b3c..84c6ab00da 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -102,6 +102,11 @@ sub checkauth { $sth->execute($userid); my ($cardnumber) = $sth->fetchrow; my $flags=getuserflags($cardnumber,$dbh); + my $configfile=configfile(); + if ($userid eq $configfile->{'user'}) { + # Super User Account from /etc/koha.conf + $flags->{'superlibrarian'}=1; + } foreach (keys %$flagsrequired) { warn "Checking required flag $_"; unless ($flags->{superlibrarian}) { -- 2.39.5