diff --git a/src/components/Authorized/CheckPermissions.js b/src/components/Authorized/CheckPermissions.js index 5bc225e345119e75cb299b04ea888202e2c70131..ba83f5b9a14ea01db4824df72db79eb91c19506b 100644 --- a/src/components/Authorized/CheckPermissions.js +++ b/src/components/Authorized/CheckPermissions.js @@ -48,7 +48,7 @@ const checkPermissions = (authority, currentAuthority, target, Exception) => { if (Array.isArray(currentAuthority)) { for (let i = 0; i < currentAuthority.length; i += 1) { const element = currentAuthority[i]; - if (authority.indexOf(element) >= 0) { + if (authority === element) { return target; } }