Outgoing email disabled alert displayed for logged out users

Discourse has a setting to disable all outgoing emails.

If you enable this option Discourse shows an alert to let admins know and it looks like this when an you use an admin account:

Admin view:

However, the alert is also displayed to logged out users - and I presume to non-admin users as well - like so:

Logged out view:

Notice how the bootstrap alert does not show for logged out users. I expect the desired result is the same.

Edgy… but came across it so figured I should mention it

That’s intentional, it is supposed to be displayed to all users.



On the off chance someone else wants to keep this displayed for staff only…

This is what I ended up using:

body:not(.staff) .alert-emails-disabled {
    display: none;