Verified Commit c8933b1f authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fix missing method error

parent f37f5398
Pipeline #13906 canceled with stage
in 26 minutes and 4 seconds
......@@ -70,7 +70,7 @@ class Client < ApplicationRecord
}
def terminatable?
assignment.blank? || assignment.ended? || assignment.no_period?
assignment.blank? || assignment.no_period? || assignment.ended?
end
def self.acceptences_restricted
......
......@@ -116,5 +116,9 @@ module GroupAssignmentAndAssignmentCommon
def ending?
period_start.present? && period_end.present?
end
def no_period?
period_start.blank? && period_end.blank?
end
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment