Commit 8beecb6060c2a7af86fd3ee4457f350e5b032c0a

Authored by Victor Costa
1 parent e30eb192

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
app/controllers/my_profile/profile_editor_controller.rb
... ... @@ -25,7 +25,6 @@ class ProfileEditorController < MyProfileController
25 25 Profile.transaction do
26 26 Image.transaction do
27 27 begin
28   - params[:profile_data][:visible] = params[:profile_data][:visible] == '0' if profile.community? && params[:profile_data].present?
29 28 @plugins.dispatch(:profile_editor_transaction_extras)
30 29 @profile_data.update_attributes!(params[:profile_data])
31 30 redirect_to :action => 'index', :profile => profile.identifier
... ...
app/models/community.rb
1 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 4 after_destroy :check_invite_member_for_destroy
5 5  
6 6 def self.type_name
... ...