
Backend/Func/CheckModeratorRight.pm - Check a valid mod action
This function checks that the specified Moderator has been given the power to perform a certain action. It returns the forums the Mod can perform that action in.
my $string = $self->CheckModeratorRight($userdetails_object, $action_string);
Example
my $fids = $self->CheckModeratorRight($self->{userdetails}, 'viewforum');
if($fids=~/'0'/ || $fids=~/'$fid'/) {
# Moderator has valid rights.
}
|