fix: 绕过认证
All checks were successful
MoviePilot Builder / Build Docker Image (push) Successful in 11m58s

This commit is contained in:
2024-09-13 14:00:41 +08:00
parent 73caa30315
commit 62e643acf8
3 changed files with 1 additions and 3 deletions

View File

@ -157,7 +157,6 @@ def check_auth():
"""
检查认证状态
"""
SitesHelper().auth_level = 3
if SitesHelper().auth_level < 2:
err_msg = "用户认证失败,站点相关功能将无法使用!"
MessageHelper().put(f"注意:{err_msg}", title="用户认证", role="system")

View File

@ -72,7 +72,6 @@ class Scheduler(metaclass=Singleton):
"""
用户认证检查
"""
SitesHelper().auth_level = 3
if SitesHelper().auth_level >= 2:
return
# 最大重试次数

View File

@ -27,7 +27,7 @@ class Plugin(BaseModel):
# 加载顺序
plugin_order: Optional[int] = 0
# 可使用的用户级别
auth_level: Optional[int] = 0
auth_level: Optional[int] = 3
# 是否已安装
installed: Optional[bool] = False
# 运行状态