Updated readme, Roles in progress
This commit is contained in:
parent
37224dc9c1
commit
dac7c44ab3
15 changed files with 165 additions and 67 deletions
|
@ -6,6 +6,8 @@ class ProtectedBranchesController < ApplicationController
|
|||
before_filter :authorize_read_project!
|
||||
before_filter :require_non_empty_project
|
||||
|
||||
before_filter :authorize_admin_project!, :only => [:destroy, :create]
|
||||
|
||||
layout "project"
|
||||
|
||||
def index
|
||||
|
@ -19,5 +21,11 @@ class ProtectedBranchesController < ApplicationController
|
|||
end
|
||||
|
||||
def destroy
|
||||
@project.protected_branches.find(params[:id]).destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to project_protected_branches_path }
|
||||
format.js { render :nothing => true }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue