Commit 0d4ff2186ca6167cfb0207278e8bd6130f9af370
Committed by
Daniela Feitosa
1 parent
ebe92bf7
Exists in
master
and in
29 other branches
Fixing add_friend button on private profiles
(ActionItem1783)
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
app/controllers/public/profile_controller.rb
1 | class ProfileController < PublicController | 1 | class ProfileController < PublicController |
2 | 2 | ||
3 | needs_profile | 3 | needs_profile |
4 | - before_filter :check_access_to_profile, :except => [:join, :join_not_logged, :index] | 4 | + before_filter :check_access_to_profile, :except => [:join, :join_not_logged, :index, :add] |
5 | before_filter :store_before_join, :only => [:join, :join_not_logged] | 5 | before_filter :store_before_join, :only => [:join, :join_not_logged] |
6 | before_filter :login_required, :only => [:add, :join, :join_not_logged, :leave, :unblock, :leave_scrap, :remove_scrap, :remove_activity, :view_more_scraps, :view_more_activities, :view_more_network_activities] | 6 | before_filter :login_required, :only => [:add, :join, :join_not_logged, :leave, :unblock, :leave_scrap, :remove_scrap, :remove_activity, :view_more_scraps, :view_more_activities, :view_more_network_activities] |
7 | 7 |
features/private_profile.feature
@@ -27,3 +27,5 @@ Feature: private profiles | @@ -27,3 +27,5 @@ Feature: private profiles | ||
27 | When I go to shygirl's homepage | 27 | When I go to shygirl's homepage |
28 | Then I should see "friends only" | 28 | Then I should see "friends only" |
29 | And I follow "Add friend" | 29 | And I follow "Add friend" |
30 | + When I go to shygirl's homepage | ||
31 | + Then I should not see "Add friend" |