public function isDisabled() { $config = Wekit::C('bbs'); if ($config['post.check.open'] && !$this->user->inGroup($config['post.check.groups']) && PwPost::inTime($config['post.check.start_hour'], $config['post.check.start_min'], $config['post.check.end_hour'], $config['post.check.end_min'])) { return 1; } switch ($this->user->getPermission('post_check')) { case '2': $disabled = 0; break; case '1': $disabled = $this->isForumContentCheck() ? 1 : 0; break; default: $disabled = 1; } return $disabled; }