Commit 74b5c4da authored by Lin Jen-Shin's avatar Lin Jen-Shin

Bring changes from EE

parent dd949b0b
...@@ -95,6 +95,7 @@ class Projects::WikisController < Projects::ApplicationController ...@@ -95,6 +95,7 @@ class Projects::WikisController < Projects::ApplicationController
def destroy def destroy
@page = @project_wiki.find_page(params[:id]) @page = @project_wiki.find_page(params[:id])
WikiPages::DestroyService.new(@project, current_user).execute(@page) WikiPages::DestroyService.new(@project, current_user).execute(@page)
redirect_to project_wiki_path(@project, :home), redirect_to project_wiki_path(@project, :home),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment