From 86b0f37067c361d86b148ee4196edf61a3d814cf 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