Suspending then giving moderation to the user shows the unsuspend option, but unsuspending returns an error

סיכום מבוסס בינה מלאכותית

A bug was reported where attempting to unsuspend a user after granting them moderator privileges results in an error. The issue arises because the system does not allow unsuspending a user who has been assigned moderation rights while suspended. twofoursixeight noted that while there is no practical reason to moderate a suspended user, the inconsistency exists since silencing allows the action to proceed. The bug was acknowledged by tgxworld and subsequently fixed by zogstrip via pull request 35452.

Reproduction steps are as follows (admin user level required):

  1. Suspend the user for any reason / time.
  2. Grant the suspended user moderation.
  3. Attempt to press “Unsuspend” , this action will return an error:

There is no practical reason why you would give a user moderator after suspending them, so that’s basically why this bug is still there.

If you try to reproduce this issue with silencing instead, it will let you proceed instead so I’m not sure why this happens.

This bug was reproduced on a discourse-hosted forum: https://ctforum.discourse.group/

2 לייקים

Thank you for the report! I’ve tagged this for the relevant team to look at.

3 לייקים

Thanks for the report @twofoursixeight

https://github.com/discourse/discourse/pull/35452

לייק 1

This topic was automatically closed after 10 hours. New replies are no longer allowed.