mirror of
https://github.com/dataease/dataease.git
synced 2026-05-23 22:08:34 +08:00
feat: 数据源管理权限 控制到数据
This commit is contained in:
@@ -7,3 +7,11 @@ export function checkPermission(pers) {
|
||||
})
|
||||
return hasPermission
|
||||
}
|
||||
|
||||
export function hasDataPermission(pTarget, pSource) {
|
||||
debugger
|
||||
if (pSource && pTarget) {
|
||||
return pSource.indexOf(pTarget) > -1
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user