mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
Owners and Admins should be able to hide collections from there main vault overview/filter. #1512
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 @BlackDex on GitHub.
Subject of the issue
Owners and Admins of Organizations should be able to hide collections from there Filters section as upstream calls it.
You are able to uncheck the checkboxes when managing peoples even on owners and admins when you select the
This user can access only the selected collections.. This doesn't prevent a user with owner or admin level privileges to still access them, but it should hide those collections from the main vault overview.Also hiding and read-only checkboxes seem to work. But only when you are not viewing those items via the organization page.
Your environment
Steps to reproduce
Expected behaviour
Only see the selected collections.
Actual behaviour
Seeing all collections
Also see: https://bitwarden.com/help/article/user-types-access-control/#access-control
Where it states this behavior
@assid2 commented on GitHub:
@BlackDex commented on GitHub:
@assid2 i just tried this again, and I am not able to reproduce this issue anymore for some reason.
Could you please test and verify this with the current
testingtagged version (which is just released a few minutes/hours ago?@BlackDex commented on GitHub:
I do see some other logic issue compared to upstream.
There when opening an item from the main overview (first page after login) it doesn't matter if you are admin or owner (except if you are owner of that specific cipher i think) and it is configured that you have read-only access, you shouldn't be able to save that item. When opened/saved via the org overview you should be able.
This could be fixed if we are going to check the entry-point of the request. But for now i don't see that as a big issue.
@BlackDex commented on GitHub:
I think that is different, but not sure.
Also, it could be that i have created a regression if it was working before when i added the manager support.
@jjlin commented on GitHub:
Is this different from #1123? AFAIK, that was fixed before, but perhaps some other change (either in bitwarden_rs or upstream) has caused a regression.
@jjlin commented on GitHub:
I didn't see any issues with hidden collections being displayed, but going to the
Managetab for the org, clickingCollections, and selecting the hidden collection ends up hitting/organizations/<org_id>/collections/<coll_id>/details, which results in the log messageUnauthorized Error: The current user isn't a manager for this collectionand the user being logged out.This seems to be a regression introduced when adding support for the manager user type. I have a PR that should fix this.