260707_2
This commit is contained in:
@@ -142,6 +142,7 @@ async def require_system_admin(
|
||||
async def require_company(
|
||||
session: dict[str, Any] = Depends(verify_session),
|
||||
) -> dict[str, Any]:
|
||||
if session["company_id"] is None:
|
||||
if session["company_id"] is None and session["role"] != "SYSTEM_ADMIN":
|
||||
raise HTTPException(status_code=403, detail="회사 연결이 필요합니다.")
|
||||
return session
|
||||
|
||||
|
||||
Reference in New Issue
Block a user