[Koha-cvs] CVS: koha/C4 Auth.pm,1.9.2.8,1.9.2.9
Steve Tonnesen
tonnesen at users.sourceforge.net
Sun Sep 8 07:04:48 CEST 2002
Update of /cvsroot/koha/koha/C4
In directory usw-pr-cvs1:/tmp/cvs-serv24636
Modified Files:
Tag: rel-1-2
Auth.pm
Log Message:
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.
Index: Auth.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Auth.pm,v
retrieving revision 1.9.2.8
retrieving revision 1.9.2.9
diff -C2 -r1.9.2.8 -r1.9.2.9
*** Auth.pm 14 Aug 2002 18:30:50 -0000 1.9.2.8
--- Auth.pm 8 Sep 2002 05:04:46 -0000 1.9.2.9
***************
*** 103,106 ****
--- 103,111 ----
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 $_";
More information about the Koha-cvs
mailing list