OpenSlides/client/src/app/shared/models/users/group.ts

22 lines
497 B
TypeScript
Raw Normal View History

import { BaseModel } from '../base/base-model';
2018-06-30 16:56:18 +02:00
/**
* Representation of user group.
* @ignore
*/
export class Group extends BaseModel<Group> {
public static COLLECTIONSTRING = 'users/group';
2019-02-08 16:02:46 +01:00
2018-08-29 13:21:25 +02:00
public id: number;
public name: string;
public permissions: string[];
2018-06-30 16:56:18 +02:00
2018-09-04 11:33:28 +02:00
public constructor(input?: any) {
super(Group.COLLECTIONSTRING, input);
if (!input) {
// permissions are required for new groups
this.permissions = [];
}
2018-06-30 16:56:18 +02:00
}
}