about summary refs log tree commit diff
path: root/gn_auth/auth/authorisation/resources/checks.py
AgeCommit message (Collapse)Author
11 hoursReplace hard-coded email check with check against privilegesFrederick Muriuki Muriithi
Fix the check: rather than using a hard-coded email to check for authorisation, we instead check against the privileges the user has on the resource, or whether they have global privileges allowing them to act on any data.
2025-07-29Bugfix: Fix typo - we don't pass objects, just their IDs.Frederick Muriuki Muriithi
2025-07-29Deprecate older authorisation-checking functions.Frederick Muriuki Muriithi
2025-07-29Import entire uuid module rather than specific symbols.Frederick Muriuki Muriithi
2025-07-29Add spec-based authorisation checker function.Frederick Muriuki Muriithi
2025-06-11Fix code issues caught by the linter.Frederick Muriuki Muriithi
2025-06-09Check for a user's privileges on a particular resource.Frederick Muriuki Muriithi
Add a general function to check that a particular user has certain privileges on a particular resource.
2023-09-27typing: fix and ignore typing issues.Frederick Muriuki Muriithi
2023-09-26Update queryFrederick Muriuki Muriithi
Replace `group_user_roles_on_resources` table with `user_roles` for the query that checks whether the user has appropriate permissions to act on a specific resource.
2023-08-08Use relative imports to break circular import errorsFrederick Muriuki Muriithi
2023-08-07Change imports to new unified db module.Frederick Muriuki Muriithi
2023-08-07Update module name/pathFrederick Muriuki Muriithi
Change from gn3 to gn_auth
2023-08-04Copy over files from GN3 repository.Frederick Muriuki Muriithi