Upstream sync

This commit is contained in:
Senad Uka
2020-07-16 17:27:57 +02:00
parent 7f49f31ebf
commit c033f5df17
16 changed files with 363 additions and 13 deletions

View File

@@ -23,6 +23,18 @@ class ContractTemplatePolicy < ApplicationPolicy
create?
end
def edit?
record.editable? && create?
end
def update?
edit?
end
def duplicate?
create?
end
def import?
if user.account_manager?
record.project.account = user.account