3 namespace BookStack\Http\Controllers;
5 use Illuminate\Http\Request;
7 use BookStack\Http\Requests;
9 class CommentController extends Controller
12 public function add(Request $request, $pageId) {
13 // $this->checkOwnablePermission('page-view', $page);
16 public function update(Request $request, $id) {
17 // Check whether its an admin or the comment owner.
18 // $this->checkOwnablePermission('page-view', $page);
21 public function destroy($id) {
22 // Check whether its an admin or the comment owner.
23 // $this->checkOwnablePermission('page-view', $page);
26 public function getLastXComments($pageId) {
27 // $this->checkOwnablePermission('page-view', $page);
30 public function getChildComments($pageId, $id) {
31 // $this->checkOwnablePermission('page-view', $page);