[#6441] Block editing locked and closed contracts

This commit is contained in:
Eric Davis committed 2011-08-10 11:31:54 -07:00
1 parent f8fe23a68d
commit be37e00f10
5 files changed
+174 -2

No files matched your search

+1
View File
@@ -96,6 +96,7 @@ class Deliverable < ActiveRecord::Base
changes["status"].present? && "open" == changes["status"].first
end
# TODO: duplicated on Contract, refactor after one more duplication
def validate_status_changes
return if valid_status_change?