MCPcopy
hub / github.com/chartbrew/chartbrew / getTeamRole

Method getTeamRole

server/controllers/TeamController.js:219–232  ·  view source on GitHub ↗
(teamId, userId)

Source from the content-addressed store, hash-verified

217 }
218
219 getTeamRole(teamId, userId) {
220 return db.TeamRole.findOne({
221 where: {
222 team_id: teamId,
223 user_id: userId,
224 },
225 })
226 .then((role) => {
227 return role;
228 })
229 .catch((error) => {
230 return new Promise((resolve, reject) => reject(error));
231 });
232 }
233
234 getAllTeamRoles(teamId) {
235 return db.TeamRole.findAll({

Callers 15

updateTeamRoleMethod · 0.95
checkAccessFunction · 0.95
handleAuthCompleteMethod · 0.80
hasProjectReadAccessFunction · 0.80
checkPermissionsFunction · 0.80
checkFilterAccessFunction · 0.80
checkPermissionsFunction · 0.80
checkAccessFunction · 0.80
checkPermissionsFunction · 0.80
TeamRoute.jsFile · 0.80
checkPermissionsFunction · 0.80
checkPermissionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected