[#6441] Block editing locked and closed contracts
This commit is contained in:
1 parent
f8fe23a68d
commit
be37e00f10
5 files changed
+174
-2
No files matched your search
@@ -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?
|
||||
|
||||
|
||||
Reference in new issue
Block a user