import ngModule from '../../module'; import Section from 'salix/components/section'; export default class Controller extends Section { constructor(...args) { super(...args); this.accessTypes = [ {name: '*'}, {name: 'READ'}, {name: 'WRITE'} ]; this.permissions = [ {name: 'ALLOW'}, {name: 'DENY'} ]; this.models = []; for (let model in window.validations) this.models.push({name: model}); this.acl = { property: '*', principalType: 'ROLE', accessType: 'READ', permission: 'ALLOW' }; } } ngModule.component('vnAclCreate', { template: require('./index.html'), controller: Controller });