salix/front/core/directives/acl.js

17 lines
375 B
JavaScript

import ngModule from '../module';
import getAcls from './acl-common';
function vnAcl(aclService) {
let acls = [];
return {
restrict: 'A',
priority: -1,
link: function(_, $element, $attrs) {
getAcls(acls, aclService, $element, $attrs, false);
}
};
}
vnAcl.$inject = ['aclService'];
ngModule.directive('vnAcl', vnAcl);