This fix the superlibrarian check in the previous fix.
---
 members/deletemem.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/members/deletemem.pl b/members/deletemem.pl
index a1694f6..eea47b0 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;
-- 
1.6.0.4

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to