[#4177] Added a link to delete a contract for admin users only.

This commit is contained in:
Eric Davis
2010-06-21 15:00:09 -07:00
parent fbc7d8f592
commit f21d5fa2b4
5 changed files with 60 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ class ContractsController < InheritedResources::Base
before_filter :find_project
before_filter :authorize
before_filter :require_admin, :only => :destroy
def create
create! { contract_url(@project, resource) }