From 4f770c9bbaee22c9bb9c1b5b12854e4063e31305 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Fri, 26 Jun 2009 11:25:01 +0200 Subject: [PATCH] (bug #3284) fix superlibrarian check This fix the superlibrarian check in the previous fix. Signed-off-by: Galen Charlton --- members/deletemem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/deletemem.pl b/members/deletemem.pl index a1694f655f..eea47b0500 100755 --- a/members/deletemem.pl +++ b/members/deletemem.pl @@ -58,7 +58,7 @@ if ($bor->{category_type} eq "S") { if (C4::Context->preference("IndependantBranches")) { my $userenv = C4::Context->userenv; - if ($userenv->{flags} != 1 && $bor->{'branchcode'}){ + if (($userenv->{flags} % 2 != 1) && $bor->{'branchcode'}){ unless ($userenv->{branch} eq $bor->{'branchcode'}){ print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$member&error=CANT_DELETE_OTHERLIBRARY"); exit; -- 2.39.5