Phase 1 fix auth redirect API handling and route issues
This commit is contained in:
@@ -38,7 +38,8 @@ def _redirect_login():
|
||||
|
||||
|
||||
def _redirect_denied():
|
||||
return RedirectResponse(url="/employee/dashboard", status_code=303)
|
||||
from app.core.http_responses import ui_access_denied
|
||||
return ui_access_denied()
|
||||
|
||||
|
||||
def _is_partner_user(db: Session, current_user) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user