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