Преглед на файлове

allow status to all users

tripeur преди 5 дни
родител
ревизия
1ad8a2ab28
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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"""