fix
This commit is contained in:
parent
3b135ba578
commit
5a2cde2e0a
@ -34,7 +34,7 @@ export const hasPermission = (userPermission) => {
|
||||
: [];
|
||||
console.log(
|
||||
"jjajaj",
|
||||
userPermissionList.some((e) => permissionList.includes(e))
|
||||
userPermissionList.some((e) => permissionList.includes(e), userPermission)
|
||||
);
|
||||
return userPermissionList.some((e) => permissionList.includes(e));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user