liddiard / slack-meetups

Slack bot that randomly pairs users in a Slack channel for 1:1 meetups. Meet new, interesting people in your company, club, or group!
https://harrisonliddiard.com/project/slack-meetups/
MIT License
18 stars 7 forks source link

Pool-specific admin permissions #10

Open liddiard opened 4 years ago

liddiard commented 4 years ago

Ideally we could restrict bot admins to perform actions relating to a specific pool only. This would require setting up a custom permission using Django's permissions framework, and it would probably also include extending the User model which could be a bit of work.

edit: Extending the user seems like more trouble than it's worth; probably better to just have a one-to-one model to store User permissions. See Option 2 here.