mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-22 06:20:47 -05:00
As an org admin, assigning myself (or other admin) to a collection results in an error #80
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 @janost on GitHub (Aug 30, 2018).
Reproduction steps:
Expected result:
The request succeeds and the edited user gains access to the selected collections.
Actual result:
Red error message pops up saying "Only Owners can grant Admin or Owner type".
Background:
Failing request is:
PUT https:///api/organizations/<ORG_ID>/users/<USER_ID>
@mprasil commented on GitHub (Aug 30, 2018):
Thanks for reporting this. Have you tested this in upstream to see how that works there? I'm not sure how to handle this as granting admin ability to edit himself and other admins essentially gives him owner-level privileges.
@janost commented on GitHub (Aug 30, 2018):
I just tested this upstream.
As an organization admin, I was able to edit my own access to collections using the procedure I described in the issue. Unfortunately I can't test if I can edit other admins, because I only have a free account on upstream.
@mprasil commented on GitHub (Aug 30, 2018):
Thanks for that. I guess it's safe to assume, that it would work for other admin accounts.
@mprasil commented on GitHub (Sep 4, 2018):
Submitted PR #170 that should also resolve this issue.