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) {
|
2018-03-01 09:54:02 +00:00
|
|
|
let acls = [];
|
|
|
|
|
2017-05-25 09:48:10 +00:00
|
|
|
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);
|
2017-05-25 09:48:10 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
2019-10-18 19:36:30 +00:00
|
|
|
vnAcl.$inject = ['aclService'];
|
2017-05-25 09:48:10 +00:00
|
|
|
|
2018-02-10 15:18:01 +00:00
|
|
|
ngModule.directive('vnAcl', vnAcl);
|