mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
3d94be22b1
Manage Group Members GitOrigin-RevId: f0b120630ded1874dfc0352055633afff0015da9
58 lines
1.4 KiB
CoffeeScript
58 lines
1.4 KiB
CoffeeScript
module.exports =
|
|
group:
|
|
modelName: 'Subscription'
|
|
readOnly: true
|
|
hasMembersLimit: true
|
|
fields:
|
|
primaryKey: '_id'
|
|
read: ['invited_emails', 'teamInvites', 'member_ids']
|
|
write: null
|
|
access: 'manager_ids'
|
|
baseQuery:
|
|
groupPlan: true
|
|
translations:
|
|
title: 'group_account'
|
|
remove: 'remove_from_group'
|
|
pathsFor: (id) ->
|
|
addMember: "/manage/groups/#{id}/invites"
|
|
removeMember: "/manage/groups/#{id}/user"
|
|
removeInvite: "/manage/groups/#{id}/invites"
|
|
exportMembers: "/manage/groups/#{id}/members/export"
|
|
|
|
team: # for metrics only
|
|
modelName: 'Subscription'
|
|
fields:
|
|
primaryKey: 'overleaf.id'
|
|
access: 'manager_ids'
|
|
baseQuery:
|
|
groupPlan: true
|
|
|
|
groupManagers:
|
|
modelName: 'Subscription'
|
|
fields:
|
|
primaryKey: '_id'
|
|
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:
|
|
primaryKey: 'v1Id'
|
|
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"
|