When the user is silenced, entering anonymous mode allows to post without restrictions.
Discourse 3.3.0.beta6
AI-generated summary
A bug has been reported where a silenced user can circumvent their restrictions by entering anonymous mode, as seen in ValdikSS. The issue affects Discourse versions including3.3.0.beta6 and3.4.0beta3, as confirmed by jrgong and Jonathan5. NateDhaliwal suggested a workaround by limiting anonymous posting to a specific group or demoting the user to TL0. However, Jagster proposed a long-term solution of disabling anonymous mode for silenced users. pangbo provided a potential fix by adding a permission check. The issue has been addressed, and a fix has been merged, as announced by ted, which respects the owner account’s silenced status while in anonymous mode.
Suspending the account which already entered anonymous mode also won’t suspend (or log out) anonymous account.
What TL is the silenced user?
Just tested on TL=1 test user.
What is the value for the anonymous posting allowed groups setting?
TL=0, everybody.
Wow, I’m surprised people won’t abuse it.
Anyway, perhaps try limiting it to a specific group which has everyone? Then remove users if you don’t want them to go anonymous mode?
Or, limit it to TL1, and demote this user to TL0?
Sure, I can solve the issue. I’m reporting the bug in the engine.
I see. I was just providing a workaround.
Easier? long term solution would be disabling anonymous mode from silenced users ![]()
I think this issue could be fixed by adding
return if user.silenced? || user.suspended?
to
and
By the way, I am curious as to why the permission check for can_post_anonymously is not implemented within the Guardian module.
We are experiencing same issue on 3.4.0beta3. Can anyone confirm that it was fixed in 3.4.0beta4?
I can confirm that it’s not fixed in 3.5.0.beta2-dev.
Ideally a user in Anonymous Mode would be subject to all the same restrictions as he would be without being in Anonymous Mode.
I think it is fair, @hugh should we put a pr-welcome on this?
Sounds good - tag added!
Also looping @osama in here as he very recently did some work on anonymous mode, so he might have some more immediate insight into this.
TL0 silenced user can create anonymous account which soon becomes TL1, and so for example can use PMs, submit posts, etc (depending on forum TL settings of course).
Hello! ![]()
We just merged a fix that makes it so that while in anonymous mode, the owner account’s “silenced” status is respected here: