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:
@@ -1,4 +1,4 @@
|
||||
"""An Area Manager can manage any number of headquarters; only an Admin can change that."""
|
||||
"""An Area Business Manager can manage any number of headquarters; only an Admin can change that."""
|
||||
|
||||
import uuid
|
||||
|
||||
@@ -104,7 +104,7 @@ class TestAreaManagerHeadquarters:
|
||||
for who in ("gm", "am1", "mr1"):
|
||||
put = await client.put(f"{API}/area-managers/{org['am1'].id}", headers=auth[who], json=body)
|
||||
assert put.status_code == 403, (who, put.text)
|
||||
# GM may read the mappings (to see who manages what), AM and MR may not.
|
||||
# AGM may read the mappings (to see who manages what), ABM and MR may not.
|
||||
assert (await client.get(f"{API}/area-managers", headers=auth["gm"])).status_code == 200
|
||||
for who in ("am1", "mr1"):
|
||||
assert (await client.get(f"{API}/area-managers", headers=auth[who])).status_code == 403
|
||||
|
||||
Reference in New Issue
Block a user