Problem with cover img
-
Same here. I can't find any option to allow users changing their cover image. Only admin users can do that for their own profile (not that of others).
-
@baris said:
Thanks for your quick fix. There is still a bug with
nodebb-theme-persona
in/templates/partials/account/header.tpl
. The condition for the CoverPhoto menu should join with aisAdmin
condition. Unfortunately I couldn't find out how to combine conditions.<!-- IF isSelf OR isAdmin --> ... <!-- ENDIF isSelf OR isAdmin -->
or similar doesn't work. -
@alexschomb Yeah there are no conditionals in the template engine, either have to use a helper or set a variable server side like
isSelfOrAdmin = isSelf || isAdmin;
and then use that single variable in the template.
Copyright © 2024 NodeBB | Contributors