Commit e25296bfd5ac279c26c44ab17e56a102d56fc587

Authored by Francisco Júnior
2 parents f1c04ffe 77e8fa3b

Merge branch 'I257-option_to_hide_community' into stable

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
... ...