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