mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-21 16:23:34 +08:00
fix(agent): grant channel owners admin access
This commit is contained in:
@@ -15,9 +15,15 @@ from app.agent.tools.impl.write_file import WriteFileTool
|
||||
from app.agent.tools.manager import MoviePilotToolsManager
|
||||
from app.agent import MoviePilotAgent
|
||||
from app.core.config import settings
|
||||
from app.modules.feishu import FeishuModule
|
||||
from app.modules.telegram import TelegramModule
|
||||
from app.schemas.types import MessageChannel
|
||||
|
||||
|
||||
# 渠道模块在导入时注册管理员解析器,权限回查测试需显式加载对应模块。
|
||||
_REGISTERED_CHANNEL_MODULES = (FeishuModule, TelegramModule)
|
||||
|
||||
|
||||
def test_non_admin_manager_exposes_resource_flow_helper_tools():
|
||||
"""普通用户应能看到搜索、订阅、下载流程所需的辅助工具。"""
|
||||
site_tool = QuerySitesTool(session_id="session-1", user_id="10001")
|
||||
|
||||
Reference in New Issue
Block a user