public function checkForumTopicStore($user, $forum) { $prefix = 'forum.topic.store.'; $this->ensureLoggedIn($user); $this->ensureCleanRecord($user); if ($user->isGMT()) { return 'ok'; } if (!$this->doCheckUser($user, 'ForumView', $forum)->can()) { return $prefix . 'no_forum_access'; } if (!$forum->isOpen()) { return $prefix . 'forum_closed'; } if (!ForumAuthorize::aclCheck($user, 'f_post', $forum)) { return $prefix . 'no_permission'; } return 'ok'; }