26db3be4dd
Previously, we had an instant redirect back to the homepage, and clicking avatars would do nothing. This made things feel 'broken' for anon when 'hide_user_profiles_from_public' was enabled. This commit does a few things to resolve this: 1. Improve our 'exception' system for routes so that developers can deliberately trigger it without an ajax error 2. Improve 'exception' system so that the browser URL bar is updated correctly, and the 'back' button works as expected 3. Replace the redirect-to-home with an 'access denied' error page, with specific copy for 'You must log in to view user profiles' 4. Update user-card logic to display this new page instead of doing nothing on click |
||
---|---|---|
.. | ||
hide_from_public_spec.rb | ||
staff_info_spec.rb | ||
user_notifications_spec.rb | ||
user_preferences_account_spec.rb | ||
user_preferences_interface_spec.rb | ||
user_preferences_navigation_spec.rb | ||
user_preferences_security_spec.rb | ||
user_profile_info_panel_spec.rb |