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

Listkeeper: Add optional "Access" flag #11

Open
spark-c opened this issue Jul 22, 2021 · 0 comments
Open

Listkeeper: Add optional "Access" flag #11

spark-c opened this issue Jul 22, 2021 · 0 comments
Labels
enhancement New feature or request python

Comments

@spark-c
Copy link
Owner

spark-c commented Jul 22, 2021

Users should be able to create a list which can only be modified by themselves and certain other users. This may look something like:

!newlist "My Private List" -access @user1 @user2

Ideally:

  • We should be able to @mention any number of users
  • We should be able to @mention roles to allow permissions to all users of the role
  • We should be able to add or remove access to/from users after list creation.
  • There should probably be a list "Owner" with ability to add/remove permissions

This begets some new commands as well...

  • !listaccess [<list-name>] to show which users/roles have access to the list (and any "Owners")
  • !addaccess [<list-name>] <*@users> (or) <*@roles> to give permission to users/roles
  • !rmaccess [] *@users (or) *@roles` to revoke permissions from users/roles

Notes:

  • Will need to update cogs/listkeeper_db/lkdb.py models to add columns for Owner, Allowed_Users
  • In the same file, will need to add CRUD functions for accessing these columns from the db'
  • Of course, will need the new commands added to cogs/Listkeeper.py
  • I'm not sure how tricky it will be to add columns to the production db. Will need to fill in values for existing lists? Will need to recreate existing lists but with default values for permission columns?
@spark-c spark-c added enhancement New feature or request python labels Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python
Projects
None yet
Development

No branches or pull requests

1 participant