Bug 13419: (QA followup) remove useless warnings
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
46fbcaadf1
commit
88eb0323d7
|
|
@ -1949,11 +1949,13 @@ sub haspermission {
|
|||
if ( $subperm eq '*' ) {
|
||||
return 0 unless ( $flags->{$module} == 1 or ref( $flags->{$module} ) );
|
||||
} else {
|
||||
return 0 unless ( $flags->{$module} == 1 or
|
||||
return 0 unless (
|
||||
( defined $flags->{$module} and
|
||||
$flags->{$module} == 1 )
|
||||
or
|
||||
( ref( $flags->{$module} ) and
|
||||
exists $flags->{$module}->{$subperm} and
|
||||
$flags->{$module}->{$subperm} == 1
|
||||
)
|
||||
$flags->{$module}->{$subperm} == 1 )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue