acl frontend fix

This commit is contained in:
yuri
2019-09-30 12:38:36 +03:00
parent 1c1b8b3985
commit 84434fa14a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ define('acl-portal', ['acl'], function (Dep) {
return true;
}
if (data === null) {
return true;
return false;
}
action = action || null;
+2 -2
View File
@@ -62,13 +62,13 @@ define('acl', [], function () {
return true;
}
if (data === null) {
return true;
return false;
}
action = action || null;
if (action === null) {
return true
return true;
}
if (!(action in data)) {
return false;