mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
FIX: Don't route to a weird blank page when public profiles are disabled
This commit is contained in:
parent
881986636c
commit
e3670c52fa
@ -84,7 +84,7 @@ export default Ember.Component.extend(CleansUp, {
|
||||
_show(username, $target) {
|
||||
// No user card for anon
|
||||
if (this.siteSettings.hide_user_profiles_from_public && !this.currentUser) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// XSS protection (should be encapsulated)
|
||||
|
Loading…
Reference in New Issue
Block a user