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?
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:
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
[Notes:
cogs/listkeeper_db/lkdb.py
models to add columns for Owner, Allowed_Userscogs/Listkeeper.py