|
@@ -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;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|