
Backend/Func/CheckMaintenanceForum.pm - Check for Forum Maintenance Mode
This function checks if the specified forum is in Maintenance Mode.
my $bool = $self->CheckMaintenanceForum($userdetails_object, $maintenance_bool);
Example
my $forum = $self->{db}->listforums();
my $fid = $self->_param('fid');
my $is_maint = $self->CheckMaintenanceForum($self->{userdetails}, $forum->{$fid}->{enable_maintenance});
if ($is_maint) {
# User cannot view this forum.
}
|