2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Don't route to a weird blank page when public profiles are disabled

This commit is contained in:
Robin Ward 2017-01-27 12:45:40 -05:00
parent 881986636c
commit e3670c52fa

View file

@ -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)