[Koha-patches] [PATCH] [followup](bug #3284) fix superlibrarian check
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Fri Jun 26 11:25:01 CEST 2009
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
More information about the Koha-patches
mailing list