1
0
Fork 0
vaultwarden-test/src
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
..
api Adding Manager Role support 2020-12-02 22:50:51 +01:00
db Ensure that a user is actually in an org when applying policies 2020-11-08 01:14:17 +03:00
static Fixed plain/text email format 2020-11-18 12:04:16 +01:00
auth.rs Adding Manager Role support 2020-12-02 22:50:51 +01:00
config.rs Updated email processing. 2020-11-18 12:07:08 +01:00
crypto.rs Generate tokens more simply and uniformly 2020-08-22 16:07:53 -07:00
error.rs Log proper namespace in the err!() macro 2020-11-22 00:09:45 +01:00
mail.rs Updated email processing. 2020-11-18 12:07:08 +01:00
main.rs Updated email processing. 2020-11-18 12:07:08 +01:00
util.rs Read config vars from files 2020-11-29 02:31:49 +01:00