Various fixes in forum

Add new access type: guest - all visitors, player will be now for logged players only
Fixed default forum board access for guests
This commit is contained in:
slawkens
2024-02-03 20:01:38 +01:00
parent bbe922a65d
commit 00cbce20b0
9 changed files with 127 additions and 85 deletions

View File

@@ -18,6 +18,11 @@ if ($ret === false) {
return;
}
if(!$logged) {
echo 'You are not logged in. <a href="?subtopic=accountmanagement&redirect=' . BASE_URL . urlencode('?subtopic=forum') . '">Log in</a> to post on the forum.<br /><br />';
return;
}
if(!Forum::isModerator()) {
echo 'You are not logged in or you are not moderator.';
}