Server backup 2026-11-07 of uncommitted work in projects/pharma-web-celtic
Snapshot of the working tree on srv1071960 (branch main), taken during server cleanup. .env files, node_modules, builds, logs and media were excluded.
This commit is contained in:
+2
-2
@@ -32,10 +32,10 @@ async def get_audit_history(
|
||||
if dcr is None:
|
||||
raise NotFoundError("Report not found")
|
||||
await assert_can_view_dcr(db, current_user, dcr)
|
||||
elif current_user.role not in (Role.ADMIN, Role.GM):
|
||||
elif current_user.role not in (Role.ADMIN, Role.AGM):
|
||||
from app.common.exceptions import ForbiddenError
|
||||
|
||||
raise ForbiddenError("Only ADMIN or GM may read non-report audit history")
|
||||
raise ForbiddenError("Only ADMIN or AGM may read non-report audit history")
|
||||
|
||||
return await AuditService(db).history_for(entity_type, entity_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user