Explorar el Código

allow status to all users

tripeur hace 5 días
padre
commit
1ad8a2ab28
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/api/endpoints/sms_sender.py

+ 1 - 1
app/api/endpoints/sms_sender.py

@@ -79,7 +79,7 @@ async def list_future_sms(
 @router.post("/status")
 async def update_status(
     request: Request,
-    current_user: User = Depends(deps.require_super_admin),
+    current_user: User = Depends(deps.get_current_user),
     session: Session = Depends(deps.get_session),
 ):
     """Update the status of the SMS server"""