changing haspermission() to require that user has ALL requiredflags, not ANYOF requiredflags

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Ryan Higgins 2007-11-29 17:43:03 -06:00 committed by Joshua Ferraro
parent e0246785e3
commit 105adc6ccd
1 changed files with 2 additions and 2 deletions

View File

@ -1211,9 +1211,9 @@ sub haspermission {
}
return $flags if $flags->{superlibrarian};
foreach ( keys %$flagsrequired ) {
return $flags if $flags->{$_};
return 0 unless( $flags->{$_} );
}
return 0;
return $flags;
}
sub getborrowernumber {