Commit e11cb4af authored by Nuoky's avatar Nuoky Committed by 陈帅

fix: #2508,string type not equal will still pass (#2523)

parent d2ccbedc
...@@ -48,7 +48,7 @@ const checkPermissions = (authority, currentAuthority, target, Exception) => { ...@@ -48,7 +48,7 @@ const checkPermissions = (authority, currentAuthority, target, Exception) => {
if (Array.isArray(currentAuthority)) { if (Array.isArray(currentAuthority)) {
for (let i = 0; i < currentAuthority.length; i += 1) { for (let i = 0; i < currentAuthority.length; i += 1) {
const element = currentAuthority[i]; const element = currentAuthority[i];
if (authority.indexOf(element) >= 0) { if (authority === element) {
return target; return target;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment