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:
parent
e0246785e3
commit
105adc6ccd
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue