bitwarden_rs/src/api/core
BlackDex 7cf8809d77 Adding Manager Role support
This has been requested a few times (#1136 & #246 & forum), and there already were two
(1:1 duplicate) PR's (#1222 & #1223) which needed some changes and no
followups or further comments unfortunally.

This PR adds two auth headers.
- ManagerHeaders
  Checks if the user-type is Manager or higher and if the manager is
part of that collection or not.
- ManagerHeadersLoose
  Check if the user-type is Manager or higher, but does not check if the
user is part of the collection, needed for a few features like
retreiving all the users of an org.

I think this is the safest way to implement this instead of having to
check this within every function which needs this manually.

Also some extra checks if a manager has access to all collections or
just a selection.

fixes #1136
2020-12-02 22:50:51 +01:00
..
two_factor Removed try_trait and some formatting, particularly around imports 2020-07-14 18:34:22 +02:00
accounts.rs Correction of verify_email error message 2020-10-23 10:30:25 +02:00
ciphers.rs Add missing admin endpoints for deleting ciphers 2020-10-23 03:42:22 -07:00
folders.rs Removed try_trait and some formatting, particularly around imports 2020-07-14 18:34:22 +02:00
mod.rs Removed try_trait and some formatting, particularly around imports 2020-07-14 18:34:22 +02:00
organizations.rs Adding Manager Role support 2020-12-02 22:50:51 +01:00