mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #157] User type 'User' cannot share password with collection #78
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#78
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 @syserr0r on GitHub (Aug 28, 2018).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/157
A user who has access to the collection (and not 'Readonly') cannot share a password with that collection -- when attempting to do so the following error is shown:

The only work-around is to set the user type to 'Admin' (or 'Owner'), however this allows access to all collections regardless of the explicit collection permissions
@syserr0r commented on GitHub (Aug 28, 2018):
The issue seems to be the
has_full_access()check here:github.com/dani-garcia/bitwarden_rs@781056152a/src/api/core/ciphers.rs (L140-L145)@mprasil commented on GitHub (Aug 28, 2018):
Yeah we seem to call the function from here:
github.com/dani-garcia/bitwarden_rs@781056152a/src/api/core/ciphers.rs (L425-L440)We do check the collection access later, so in this case we might need to somehow relay the information to the function we call, that user doesn't need write access to the entire organization as we will add it to collection later. (and maybe we should do that part first, that way if the collection stuff fails for whatever reason, we won't add the cipher to the organization direct for user that might not have the rights)
@durd commented on GitHub (Jul 22, 2019):
Sorry to reopen this, we are experiencing this issue aswell, albeit it with a different error but same meaning. I do get the same error when trying to remove the item from a collection, not sure if that is intended even if I have write access.
Edit: simple User in above case.
We are running 2.10.1 from docker bitwardenrs/server:latest on Debian 10.