fixed non-existent profiles being shown
This commit is contained in:
parent
0602d7f109
commit
b3fac428e9
1 changed files with 1 additions and 4 deletions
|
@ -1,11 +1,8 @@
|
||||||
{% extends 'master.twig' %}
|
{% extends 'master.twig' %}
|
||||||
|
|
||||||
{% set profileHidden = not profile.activated and (user.id != profile.id and not (user.perms.isMod or user.perms.isAdmin)) %}
|
{% set profileHidden = profile.id == 0 or not profile.activated and (user.id != profile.id and not (user.perms.isMod or user.perms.isAdmin)) %}
|
||||||
|
|
||||||
{% set noUserpage = profile.userPage|length < 1 %}
|
{% set noUserpage = profile.userPage|length < 1 %}
|
||||||
|
|
||||||
{% set title = profileHidden ? 'User not found!' : 'Profile of ' ~ profile.username %}
|
{% set title = profileHidden ? 'User not found!' : 'Profile of ' ~ profile.username %}
|
||||||
|
|
||||||
{% set youtubeIsChannelId = profile.youtube|slice(0, 2) == 'UC' and profile.youtube|length == 24 %}
|
{% set youtubeIsChannelId = profile.youtube|slice(0, 2) == 'UC' and profile.youtube|length == 24 %}
|
||||||
|
|
||||||
{% set fields = {
|
{% set fields = {
|
||||||
|
|
Reference in a new issue