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
..
2020-12-02 22:50:51 +01:00
2020-11-18 12:04:16 +01:00
2020-12-02 22:50:51 +01:00
2020-11-18 12:07:08 +01:00
2020-11-18 12:07:08 +01:00
2020-11-18 12:07:08 +01:00
2020-11-29 02:31:49 +01:00