Updated readme, Roles in progress

This commit is contained in:
Dmitriy Zaporozhets 2012-02-15 23:51:04 +02:00
parent 37224dc9c1
commit dac7c44ab3
15 changed files with 165 additions and 67 deletions

View file

@ -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