$user if conditional not working on report templates

Dragonfruit

Well-known member
Trying to use it on report_create but it doesn't seem to work. Just trying to put a notice up that admins/mods can't be reported on. This worked well on the ignore template.
 
.this variable should not be there

You can use this code:
Code:
<xf:if is="$content.User && $content.User.is_staff">
    Notice what user can't be reported.
</xf:if>

But the user will not see this notification, because if he don’t have the permission to report a the user, then he don’t see this template either, he get a “No permissions” notification.
 
.this variable should not be there

You can use this code:
Code:
<xf:if is="$content.User && $content.User.is_staff">
    Notice what user can't be reported.
</xf:if>

But the user will not see this notification, because if he don’t have the permission to report a the user, then he don’t see this template either, he get a “No permissions” notification.
That worked, thanks!
 
This unfortunately doesn't seem to work with the report button on the profiles, neither $user or $content.user can be called there without template errors, is there anything else that can be used?
 
Back
Top Bottom