diff options
author | Frederick Muriuki Muriithi | 2023-09-27 10:09:53 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-09-27 10:37:07 +0300 |
commit | a8ebba8266618ec53fe485ee84d09d0cdff898a1 (patch) | |
tree | fd019b3672e62573813123c43e9fa9843153bb10 /gn_auth/auth/authorisation/resources/checks.py | |
parent | 938efc6d8d2713d5f8dd399e9c878b95832ac882 (diff) | |
download | gn-auth-a8ebba8266618ec53fe485ee84d09d0cdff898a1.tar.gz |
typing: fix and ignore typing issues.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/checks.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/checks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/checks.py b/gn_auth/auth/authorisation/resources/checks.py index 717e5e4..d8e3a9f 100644 --- a/gn_auth/auth/authorisation/resources/checks.py +++ b/gn_auth/auth/authorisation/resources/checks.py @@ -16,7 +16,9 @@ def __organise_privileges_by_resource_id__(rows): } return reduce(__organise__, rows, {}) -def authorised_for(conn: db.DbConnection, user: User, privileges: tuple[str], +def authorised_for(conn: db.DbConnection, + user: User, + privileges: tuple[str, ...], resource_ids: Sequence[UUID]) -> dict[UUID, bool]: """ Check whether `user` is authorised to access `resources` according to given |