
Backend/Func/CheckLocked.pm - Locked thread viewing
This function checks if the specified user can reply to the thread with the required locked number.
my $bool = $self->CheckLocked($userdetails_object, $locked_number);
Example
my $forum = $self->{db}->listforums();
my $fid = $self->_param('fid');
my $islocked = $self->CheckLocked($self->{userdetails}, $forum->{$fid}->{locked});
if ($islocked) {
# User cannot reply
}
|