"Everyone" in template_groups_allowed_private_templates disables it

When “Everyone” is added to discourse_templates_groups_allowed_private_templates, the functionality breaks for everyone except staff.

So “Everyone, trust_level_0” does not work, while “trust_level_0” does work.

Culprit:

:scream: :scream: return false if group_id == 0 :scream: :scream:

3 Likes

I think the problem with ‘everyone’ and templates has already been reported in "everyone" group unable to see private templates

1 Like

Yes, I see it now, thanks.
I misread that bug, I thought that simply “everyone” did not work, I did not realize it broke it for all other added groups as well.

Reported 1.5 years ago :sob:

4 Likes

Thank you for reporting this bug. It was fixed in this PR:

2 Likes