File size: 258 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 |
// @flow
import type { GraphQLContext } from '../../';
import type { DBThread } from 'shared/types';
export default ({ creatorId }: DBThread, _: any, { user }: GraphQLContext) => {
if (!creatorId || !user) return false;
return user.id === creatorId;
};
|