Commit 97944aa9811bfdddea4dca25d989bd18f166de5c
1 parent
34c7a7d2
Exists in
staging
and in
7 other branches
hotspot for stable
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/controllers/my_profile/profile_design_controller.rb
@@ -8,7 +8,8 @@ class ProfileDesignController < BoxOrganizerController | @@ -8,7 +8,8 @@ class ProfileDesignController < BoxOrganizerController | ||
8 | 8 | ||
9 | def protect_fixed_block | 9 | def protect_fixed_block |
10 | block = boxes_holder.blocks.find(params[:id].gsub(/^block-/, '')) | 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 | render_access_denied | 13 | render_access_denied |
13 | end | 14 | end |
14 | end | 15 | end |