class TimeTableCombinationPolicy < ApplicationPolicy class Scope < Scope def resolve scope end end def create? !referential_read_only? && organisation_match? && user.has_permission?('time_tables.update') end end