This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/app/models/CollectionGroupMembership.js

23 lines
440 B
JavaScript

// @flow
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;