mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 19:37:13 -05:00
15 lines
287 B
CoffeeScript
15 lines
287 B
CoffeeScript
|
define [
|
||
|
"models/User"
|
||
|
"libs/backbone"
|
||
|
], (User) ->
|
||
|
ProjectMemberList = Backbone.Collection.extend
|
||
|
model: User
|
||
|
|
||
|
numberOfCollaborators: () ->
|
||
|
collaborators = 0
|
||
|
for member in @models
|
||
|
if member.get("privileges") != "owner"
|
||
|
collaborators += 1
|
||
|
return collaborators
|
||
|
|