summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-27 18:46:16 -0400
committerDavid Gay <david@davidgay.org>2021-05-27 18:46:16 -0400
commitbff4bccd4ff502e36161a5f1b916abefd14a912c (patch)
treed295ec395c761eea0af5ab0f7c7fd18600f97b85 /app/controllers
parent65c1ee3dbaf5c0a030dd28a7e3f41d47c7652cb1 (diff)
Prevent actions you lack the skill level for
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/characters/hearth_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/characters/hearth_controller.rb b/app/controllers/characters/hearth_controller.rb
index d195571..8e32ab0 100644
--- a/app/controllers/characters/hearth_controller.rb
+++ b/app/controllers/characters/hearth_controller.rb
@@ -9,7 +9,7 @@ class Characters::HearthController < ApplicationController
}
Activity.where("gid like ?", "craft_%").each do |activity|
- next unless current_char.can_do_activity?(activity, ignore_cost: true)
+ next unless current_char.can_do_activity?(activity, ignore_cost: true, ignore_requirements: true)
activity.whatnot[:requirements]&.each do |requirement_data|
if requirement_data[:type] == "hearth_amenity"
case requirement_data[:gid]