salix/front/core/directives/acl.js

17 lines
375 B
JavaScript
Raw Normal View History

2018-02-10 15:18:01 +00:00
import ngModule from '../module';
2023-06-16 06:56:38 +00:00
import getAcls from './acl-common';
2019-10-18 19:36:30 +00:00
function vnAcl(aclService) {
let acls = [];
return {
restrict: 'A',
2017-09-21 08:23:51 +00:00
priority: -1,
2019-10-18 19:36:30 +00:00
link: function(_, $element, $attrs) {
2023-06-16 06:56:38 +00:00
getAcls(acls, aclService, $element, $attrs, false);
}
};
}
2019-10-18 19:36:30 +00:00
vnAcl.$inject = ['aclService'];
2018-02-10 15:18:01 +00:00
ngModule.directive('vnAcl', vnAcl);