MCPcopy Index your code
hub / github.com/codecombat/codecombat / getOwner

Method getOwner

app/models/CocoModel.js:404–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

402 }
403
404 getOwner () {
405 const ownerPermission = _.find(this.get('permissions', true), { access: 'owner' })
406 return (ownerPermission != null ? ownerPermission.target : undefined)
407 }
408
409 watch (doWatch) {
410 if (doWatch == null) { doWatch = true }

Callers 3

hasOwnershipMethod · 0.80
comparatorMethod · 0.80
comparatorMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected