From 2a100db981325b48fae044c269722a427ea25a64 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 14 Feb 2023 14:32:03 +0100 Subject: [PATCH] Fixed scopes --- extensions/videos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/videos.py b/extensions/videos.py index d35e1c0..69dfa16 100644 --- a/extensions/videos.py +++ b/extensions/videos.py @@ -81,7 +81,7 @@ async def video_upload(file: UploadFile, album: str, caption: Union[str, None] = ) @app.get("/videos/{id}", description="Get a video by id") -async def video_get(id: str, current_user: User = Security(get_current_active_user, scopes=["videos.view"])): +async def video_get(id: str, current_user: User = Security(get_current_active_user, scopes=["videos.read"])): try: video = col_videos.find_one( {"_id": ObjectId(id)} )