Skip to content

Commit a4c7dae

Browse files
authored
Update the plugin download interface permission (#659)
1 parent bfda0a2 commit a4c7dae

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

backend/app/admin/api/v1/sys/plugin.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,7 @@ async def update_plugin_status(plugin: Annotated[str, Path(description='插件
8383
return response_base.success()
8484

8585

86-
@router.get(
87-
'/{plugin}',
88-
summary='打包并下载插件',
89-
dependencies=[
90-
Depends(RequestPermission('sys:plugin:zip')),
91-
DependsRBAC,
92-
],
93-
)
86+
@router.get('/{plugin}', summary='打包并下载插件', dependencies=[DependsJwtAuth])
9487
async def build_plugin(plugin: Annotated[str, Path(description='插件名称')]) -> StreamingResponse:
9588
bio = await plugin_service.build(plugin=plugin)
9689
return StreamingResponse(

0 commit comments

Comments
 (0)