Commit e25296bfd5ac279c26c44ab17e56a102d56fc587
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'I257-option_to_hide_community' into stable
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/my_profile/profile_editor_controller.rb
@@ -21,7 +21,7 @@ class ProfileEditorController < MyProfileController | @@ -21,7 +21,7 @@ class ProfileEditorController < MyProfileController | ||
21 | Profile.transaction do | 21 | Profile.transaction do |
22 | Image.transaction do | 22 | Image.transaction do |
23 | begin | 23 | begin |
24 | - params[:profile_data][:visible] = params[:profile_data][:visible] == '0' | 24 | + params[:profile_data][:visible] = params[:profile_data][:visible] == '0' unless profile.person? |
25 | @plugins.dispatch(:profile_editor_transaction_extras) | 25 | @plugins.dispatch(:profile_editor_transaction_extras) |
26 | @profile_data.update_attributes!(params[:profile_data]) | 26 | @profile_data.update_attributes!(params[:profile_data]) |
27 | redirect_to :action => 'index', :profile => profile.identifier | 27 | redirect_to :action => 'index', :profile => profile.identifier |