-- fix 项目权限

This commit is contained in:
yuping
2023-03-10 15:56:29 +08:00
parent 2494933f9e
commit fa33f4f9de
2 changed files with 15 additions and 4 deletions

View File

@@ -38,13 +38,13 @@ export function checkPer(per,createId) {
if (store?.state?.userInfo?.roleList.some(t => t.code === "system-admin")) {
return true;
}
if(per){
return (per + "").split(",").some(t => admin.some(s => s == t));
}
if (store?.state?.userInfo?.isHrbp) {
return true;
}
if (!per) {
return false;
}
return (per + "").split(",").some(t => admin.some(s => s == t));
return false
}
const adminOwner = [6, 9, 12];