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)} )