Commit 8beecb6060c2a7af86fd3ee4457f350e5b032c0a
1 parent
e30eb192
Exists in
staging
and in
4 other branches
Revert "add option to hide community"
This reverts commit b17cbf221f90477b52622fdef03e4917dc3f12fe. Conflicts: app/controllers/my_profile/profile_editor_controller.rb app/views/profile_editor/edit.html.erb plugins/pairwise plugins/proposals_discussion
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
app/controllers/my_profile/profile_editor_controller.rb
| @@ -25,7 +25,6 @@ class ProfileEditorController < MyProfileController | @@ -25,7 +25,6 @@ class ProfileEditorController < MyProfileController | ||
| 25 | Profile.transaction do | 25 | Profile.transaction do |
| 26 | Image.transaction do | 26 | Image.transaction do |
| 27 | begin | 27 | begin |
| 28 | - params[:profile_data][:visible] = params[:profile_data][:visible] == '0' if profile.community? && params[:profile_data].present? | ||
| 29 | @plugins.dispatch(:profile_editor_transaction_extras) | 28 | @plugins.dispatch(:profile_editor_transaction_extras) |
| 30 | @profile_data.update_attributes!(params[:profile_data]) | 29 | @profile_data.update_attributes!(params[:profile_data]) |
| 31 | redirect_to :action => 'index', :profile => profile.identifier | 30 | redirect_to :action => 'index', :profile => profile.identifier |
app/models/community.rb
| 1 | class Community < Organization | 1 | class Community < Organization |
| 2 | 2 | ||
| 3 | - attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type, :address_reference, :district, :tag_list, :language, :visible | 3 | + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type, :address_reference, :district, :tag_list, :language |
| 4 | after_destroy :check_invite_member_for_destroy | 4 | after_destroy :check_invite_member_for_destroy |
| 5 | 5 | ||
| 6 | def self.type_name | 6 | def self.type_name |