From ed8575488c4e506c4a07f005855e47b92620646d Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 22:05:20 -0400 Subject: Only see activities you know how to perform --- app/controllers/characters/hearth_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers') diff --git a/app/controllers/characters/hearth_controller.rb b/app/controllers/characters/hearth_controller.rb index 02b8446..8cbd368 100644 --- a/app/controllers/characters/hearth_controller.rb +++ b/app/controllers/characters/hearth_controller.rb @@ -9,6 +9,7 @@ class Characters::HearthController < ApplicationController } Activity.where("gid like ?", "craft_%").each do |activity| + next unless current_char.can_do_activity? activity activity.whatnot[:requirements]&.each do |requirement_data| if requirement_data[:type] == "hearth_amenity" case requirement_data[:gid] -- cgit v1.2.3