mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-11 21:23:47 +08:00
更正前端权限插件的判断
This commit is contained in:
@@ -20,7 +20,7 @@ const privilege = (value) => {
|
||||
if (!userPointsList) {
|
||||
return false;
|
||||
}
|
||||
return _.some(userPointsList, ['apiPerms', value]);
|
||||
return _.some(userPointsList, ['webPerms', value]);
|
||||
};
|
||||
|
||||
export default {
|
||||
|
||||
@@ -21,7 +21,7 @@ const privilege = (value: string) => {
|
||||
if (!userPointsList) {
|
||||
return false;
|
||||
}
|
||||
return _.some(userPointsList, ['apiPerms', value]);
|
||||
return _.some(userPointsList, ['webPerms', value]);
|
||||
};
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user