mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
Error trying manage a collection's users #213
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @srwhite on GitHub (Jan 25, 2019).
If you view the collections for an organisation (https://server/#/organizations/.../manage/collections) you should be able to click on the "Cog" menu next to each one and manage the list of users.
With bitwarden_rs the pop-up dialog showing the user list never loads for me, instead my browser's console reports:
I have something that appears to fix this, although I have spotted two other issues that I don't yet have have fixes for:
@srwhite commented on GitHub (Jan 25, 2019):
The issue is that get_collection_users should return an array rather than a map. The contents of the array are not the values from the existing "user_list" variable, but should be simply a list of user Ids and whether they are read-only or not, i.e. if there is one user it would look like this (but with a real UUID):
@dani-garcia commented on GitHub (Jan 25, 2019):
About the users list, they appear selected for me correctly, but the save button doesn't work, that isn't implemented, same as the managers.
@srwhite commented on GitHub (Jan 25, 2019):
Yeah, sorry, between the original report on here and making the pull request I worked out the fix for making the selections show up correctly.
I also note I failed to delete the line:
from to_json_collection_user_details, which is now redundant as we don't need any of the extra details it obtains.
I'm interested in the manager functionality, so I might have a go at implementing it if I can find time.
@dani-garcia commented on GitHub (Jan 25, 2019):
I pushed a fix for the unimplemented save from that dialog, so that should work now.
If you need any help with the implamentation of the manager functionality, I'm usually available in the matrix chat, link in readme.
With that, I think we can close this.