File size: 300 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// @flow
/*

    DEPRECATED 2/8/2018 by @brian

*/
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;
};