Skip to content

Commit c8ac6bb

Browse files
committed
fix:游客上传
1 parent e66e668 commit c8ac6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def banner(request: Request, s: AsyncSession = Depends(get_session)):
119119
# 如果不存在config,就返回默认的banner
120120
return {
121121
'detail': 'banner',
122-
'enable': request.headers.get('pwd', '') == settings.ADMIN_PASSWORD,
122+
'enable': request.headers.get('pwd', '') == settings.ADMIN_PASSWORD or settings.ENABLE_UPLOAD,
123123
'data': [{
124124
'text': 'FileCodeBox',
125125
'url': 'https://github.com/vastsa/FileCodeBox',

0 commit comments

Comments
 (0)