mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +00:00
fix: 修复切换组织时的错误提示
This commit is contained in:
@@ -80,6 +80,11 @@ export function hasUserPagePerm(userPerm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function hasPerm(source, target) {
|
export function hasPerm(source, target) {
|
||||||
|
if (target === null) {
|
||||||
|
return true
|
||||||
|
} else if (source === null) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if (typeof source !== 'object') {
|
if (typeof source !== 'object') {
|
||||||
source = [source]
|
source = [source]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user