mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #364] Error trying manage a collection's users #212
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#212
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/364
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.