Commit 97944aa9811bfdddea4dca25d989bd18f166de5c

Authored by Leandro Santos
1 parent 34c7a7d2

hotspot for stable

app/controllers/my_profile/profile_design_controller.rb
... ... @@ -8,7 +8,8 @@ class ProfileDesignController < BoxOrganizerController
8 8  
9 9 def protect_fixed_block
10 10 block = boxes_holder.blocks.find(params[:id].gsub(/^block-/, ''))
11   - if block.fixed && !current_person.is_admin?
  11 + if !block.nil? && block.fixed && !current_person.is_admin?
  12 +
12 13 render_access_denied
13 14 end
14 15 end
... ...