|
|
@ -31,8 +31,8 @@ function onRequest(context) {
|
|
|
|
var pathParams = [];
|
|
|
|
var pathParams = [];
|
|
|
|
for (var i = 0; i < allControlOps.length; i++) {
|
|
|
|
for (var i = 0; i < allControlOps.length; i++) {
|
|
|
|
var controlOperation = {};
|
|
|
|
var controlOperation = {};
|
|
|
|
var uiPermission = allControlOps[i]["uiPermission"];
|
|
|
|
var uiPermission = allControlOps[i]["permission"];
|
|
|
|
if (uiPermission && !userModule.isAuthorized("/permission/admin/" + uiPermission)) {
|
|
|
|
if (uiPermission && !userModule.isAuthorized("/permission/admin" + uiPermission)) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
controlOperation = allControlOps[i];
|
|
|
|
controlOperation = allControlOps[i];
|
|
|
|