Model for teams that collaborate on reviews of a certain type. A team can also publish blog posts. Teams can be open for anyone, or require moderator approval for new members. This model is versioned.
- Source:
Methods
(async, static) getWithData(id, optionsopt) → {Team}
Retrieve a team and some of the joined data like reviews or members
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
String | the team to look up |
|||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
query critera Properties
|
- Source:
Returns:
- Type
- Team
populateUserInfo(user)
Populate the virtual permission and metadata fields for this team with
information for a given user. This includes properties like userIsMember
and userIsModerator
.
Parameters:
Name | Type | Description |
---|---|---|
user |
User | whose permissions and metadata to use to populate the fields |
- Source: