Commit 77e8fa3b690e98cb3d46b789fefcfeb2c59c7b06
1 parent
d73ff7ba
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
minor fixes
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 | 21 | Profile.transaction do |
| 22 | 22 | Image.transaction do |
| 23 | 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 | 25 | @plugins.dispatch(:profile_editor_transaction_extras) |
| 26 | 26 | @profile_data.update_attributes!(params[:profile_data]) |
| 27 | 27 | redirect_to :action => 'index', :profile => profile.identifier | ... | ... |