OpenSlides/client/src/app/shared/models/users/group.ts
2019-02-08 17:28:23 +01:00

22 lines
497 B
TypeScript

import { BaseModel } from '../base/base-model';
/**
* Representation of user group.
* @ignore
*/
export class Group extends BaseModel<Group> {
public static COLLECTIONSTRING = 'users/group';
public id: number;
public name: string;
public permissions: string[];
public constructor(input?: any) {
super(Group.COLLECTIONSTRING, input);
if (!input) {
// permissions are required for new groups
this.permissions = [];
}
}
}