mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-08-27 05:35:03 -05:00
[GH-ISSUE #163] As an org admin, assigning myself (or other admin) to a collection results in an error #12870
Reference in New Issue
Block a user
Originally created by @janost on GitHub (Aug 30, 2018).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/163
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.