优化权限控制
This commit is contained in:
@@ -46,7 +46,7 @@ export default function MainLayout({ onLogout }: { onLogout?: () => void }) {
|
||||
}
|
||||
|
||||
// 登录任务
|
||||
if (hasPerm(user, 'login:batch') || hasPerm(user, 'login:view_assigned')) {
|
||||
if (hasPerm(user, 'login:batch') || hasPerm(user, 'login:view_all')) {
|
||||
menuItems.push({ key: '/login-tasks', label: '登录任务', icon: <ApiOutlined /> });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user