summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-26 22:05:20 -0400
committerDavid Gay <david@davidgay.org>2021-05-26 22:05:20 -0400
commited8575488c4e506c4a07f005855e47b92620646d (patch)
treec91fa809d40bb8465eda0c70bb4c583120329506 /app/controllers
parentb923b0febd35ba1b635dde02a7f97428367f7831 (diff)
Only see activities you know how to perform
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/characters/hearth_controller.rb1
1 files changed, 1 insertions, 0 deletions
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]