2018-10-11 13:56:14 -04:00
|
|
|
module.exports =
|
|
|
|
group:
|
|
|
|
modelName: 'Subscription'
|
|
|
|
readOnly: true
|
|
|
|
hasMembersLimit: true
|
|
|
|
fields:
|
2018-10-24 09:50:34 -04:00
|
|
|
primaryKey: '_id'
|
2018-10-11 13:56:14 -04:00
|
|
|
read: ['invited_emails', 'teamInvites', 'member_ids']
|
|
|
|
write: null
|
|
|
|
access: 'manager_ids'
|
|
|
|
baseQuery:
|
|
|
|
groupPlan: true
|
|
|
|
translations:
|
|
|
|
title: 'group_account'
|
|
|
|
remove: 'remove_from_group'
|
2018-10-25 11:10:02 -04:00
|
|
|
pathsFor: (id) ->
|
|
|
|
addMember: "/manage/groups/#{id}/invites"
|
|
|
|
removeMember: "/manage/groups/#{id}/user"
|
|
|
|
removeInvite: "/manage/groups/#{id}/invites"
|
|
|
|
exportMembers: "/manage/groups/#{id}/members/export"
|
2018-10-11 13:56:14 -04:00
|
|
|
|
2018-10-25 11:08:36 -04:00
|
|
|
team: # for metrics only
|
|
|
|
modelName: 'Subscription'
|
|
|
|
fields:
|
|
|
|
primaryKey: 'overleaf.id'
|
|
|
|
access: 'manager_ids'
|
|
|
|
baseQuery:
|
|
|
|
groupPlan: true
|
|
|
|
|
2018-10-11 13:56:14 -04:00
|
|
|
groupManagers:
|
|
|
|
modelName: 'Subscription'
|
|
|
|
fields:
|
2018-10-24 09:50:34 -04:00
|
|
|
primaryKey: '_id'
|
2018-10-11 13:56:14 -04:00
|
|
|
read: ['manager_ids']
|
|
|
|
write: 'manager_ids'
|
|
|
|
access: 'manager_ids'
|
|
|
|
baseQuery:
|
|
|
|
groupPlan: true
|
|
|
|
translations:
|
|
|
|
title: 'group_managers'
|
|
|
|
remove: 'remove_manager'
|
|
|
|
pathsFor: (id) ->
|
|
|
|
addMember: "/manage/groups/#{id}/managers"
|
|
|
|
removeMember: "/manage/groups/#{id}/managers"
|
|
|
|
|
|
|
|
institution:
|
|
|
|
modelName: 'Institution'
|
|
|
|
fields:
|
2018-10-24 09:50:34 -04:00
|
|
|
primaryKey: 'v1Id'
|
2018-10-11 13:56:14 -04:00
|
|
|
read: ['managerIds']
|
|
|
|
write: 'managerIds'
|
|
|
|
access: 'managerIds'
|
|
|
|
translations:
|
|
|
|
title: 'institution_managers'
|
|
|
|
remove: 'remove_manager'
|
|
|
|
pathsFor: (id) ->
|
|
|
|
addMember: "/manage/institutions/#{id}/managers"
|
|
|
|
removeMember: "/manage/institutions/#{id}/managers"
|