mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 22:04:45 +08: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) {
|
_show(username, $target) {
|
||||||
// No user card for anon
|
// No user card for anon
|
||||||
if (this.siteSettings.hide_user_profiles_from_public && !this.currentUser) {
|
if (this.siteSettings.hide_user_profiles_from_public && !this.currentUser) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// XSS protection (should be encapsulated)
|
// XSS protection (should be encapsulated)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user