vendor/engines/secure_rooms/app/services/secure_rooms/access_rules/schedule_rule.rb
# TODO: Consider refactoring to make this logic more explicit.
Consider refactoring to make this logic more explicit.
Consider refactoring to make this logic more explicit .
def evaluate
        deny!(:no_schedule) if secure_room.schedule_rules.none?
        deny!(:outside_schedule) unless secure_room.schedule_rules.cover?(Time.current)
        deny!(:not_in_group) unless secure_room.available_schedule_rules(user).cover?(Time.current)
      end
def evaluate deny! ( :no_schedule ) if secure_room . schedule_rules . none? deny! ( :outside_schedule ) unless secure_room . schedule_rules . cover? ( Time . current ) deny! ( :not_in_group ) unless secure_room . available_schedule_rules ( user ) . cover? ( Time . current ) end
TODO: Consider refactoring to make this logic more explicit.
TODO : Consider refactoring to make this logic more explicit .