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