Admin and Moderator roles created and sync'd with Discourse

We have discourse SSO setup.

The desired behaviour is that a user who is set as an admin or moderator in Discourse (discuss.focallocal.org), is recognised as an admin or moderator in our maps and has the following abilities:

  • delete/edit all posts
  • remove and block users

To developers wanting to implement the above feature:

fl-maps uses Discourse as a SSO provider through the sylque:accounts-discourse package. This package adds the boolean fields admin and moderator to each user in the Meteor.users collection, as explained here.

1 Like