fix: skip column permission checks for super admin and IRIS

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-02-26 16:14:01 +08:00
parent dad7ffdc66
commit 57c2c532ca

View File

@ -522,6 +522,11 @@ const permissionMap: Record<string, string> = {
// 根据用户权限初始化列显示状态
const initColumnPermissions = () => {
// 超级管理员跳过权限检查,显示所有列
if (userStore.role === 'SUPER_ADMIN' || userStore.username === 'IRIS') {
return;
}
Object.keys(columns).forEach(key => {
const code = permissionMap[key];
if (code) {