34 lines
800 B
JavaScript
34 lines
800 B
JavaScript
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('vnAclMailCreate', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|