fix error: undefined method 'update_type?'
This commit is contained in:
parent
f184b2c5a6
commit
90bac12d1f
|
@ -41,6 +41,7 @@ class BuildListPolicy < ApplicationPolicy
|
|||
ProjectPolicy.new(user, record.project).write? : local_admin?(record.save_to_platform)
|
||||
end
|
||||
end
|
||||
alias_method :update_type?, :publish?
|
||||
|
||||
def create_container?
|
||||
return false unless record.new_core?
|
||||
|
|
Loading…
Reference in New Issue