mirror of
https://github.com/outline/outline.git
synced 2026-11-29 16:40:27 +03:00
22 lines
431 B
TypeScript
22 lines
431 B
TypeScript
import { computed } from "mobx";
|
|
import BaseModel from "./BaseModel";
|
|
|
|
class CollectionGroupMembership extends BaseModel {
|
|
id: string;
|
|
groupId: string;
|
|
collectionId: string;
|
|
permission: string;
|
|
|
|
@computed
|
|
get isEditor(): boolean {
|
|
return this.permission === "read_write";
|
|
}
|
|
|
|
@computed
|
|
get isMaintainer(): boolean {
|
|
return this.permission === "maintainer";
|
|
}
|
|
}
|
|
|
|
export default CollectionGroupMembership;
|