Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limited moderation of posts still allows moderation of all users #732

Open
leenyburger opened this issue Sep 26, 2018 · 1 comment
Open

Comments

@leenyburger
Copy link
Contributor

I'm not sure if this is a bug or intentional:
I have set up moderators with certain permissions in def thredded_can_moderate_messageboards
Works great! However, in the nav bar the users link allows any moderator to moderate ALL users. If the moderator is limited to only moderating certain messageboards, they should only be able to moderate users that have permissions on those messageboards. Suggestion : provide a thredded_can_moderate_users method exposed in the users model.
Right now I'm patching

module Thredded
  class ModerationController
    def moderate_user
    end
  end
end

with limited success

@glebm
Copy link
Collaborator

glebm commented Sep 26, 2018

Sounds good, please send a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants