Users are not added to the moderators groups when registering with SSO

sso

(Felix Freiberger) #1

Steps to reproduce:

  1. Have SSO set up.
  2. Let a new user sign in, and specify that he is a moderator in the payload.

Expected results:

The users has exactly the same permissions as if he signed up and was instantly manually awarded moderator permissions.

Actual results:

The user is given the moderator flag, but is not added to the staff or moderator groups. This means that he cannot access categories requiring these permissions.

Here’s a screenshot of the user settings:

It looks like hitting Refresh on /admin/groups/automatic fixes this for already created users.


SSO users aren't automatically added to email domain-based groups
(Felix Freiberger) #2

The issue is still there in version v1.6.0.beta4 +161 :sadpanda:

The same effect occurs if an existing user is given moderator privileges by another SSO sign-in.

After snooping around in the code, could this be because SSO simply sets the flag and saves the user…

…while the proper “grant moderation” action…

…runs this refresh?


Re-purposing a Discourse installation for a yearly event
(Sam Saffron) #3

Fixed per:

Thanks!


(Sam Saffron) #4