mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-11 10:40:18 +08:00
refactor: load share admins from server
This commit is contained in:
@@ -491,7 +491,7 @@ async def get_user_global_setting(_: User = Depends(get_current_active_user_asyn
|
||||
info["LLM_SUPPORT_AUDIO_OUTPUT"] = False
|
||||
|
||||
# 追加用户唯一ID和订阅分享管理权限
|
||||
share_admin = MoviePilotServerHelper.is_admin_user()
|
||||
share_admin = await MoviePilotServerHelper.async_is_admin_user()
|
||||
info.update(
|
||||
{
|
||||
"USER_UNIQUE_ID": MoviePilotServerHelper.get_user_uuid(),
|
||||
|
||||
Reference in New Issue
Block a user