コード例 #1
0
ファイル: forum.php プロジェクト: noackorama/blubberforum
 public function refresh_posting_action()
 {
     $posting = new ForumPosting(Request::get("topic_id"));
     $thread = new ForumPosting($posting['root_id']);
     if ($thread['context_type'] === "course" && !$GLOBALS['perm']->have_studip_perm("autor", $posting['Seminar_id']) or $thread['context_type'] === "private" && !$thread->isRelated()) {
         throw new AccessDeniedException("Kein Zugriff");
     }
     ForumPosting::$course_hashes = $thread['context_type'] === "course" ? $thread['Seminar_id'] : false;
     $this->render_text(studip_utf8encode(ForumPosting::format($posting['description'])));
 }