MCPcopy Create free account
hub / github.com/codecombat/codecombat / updatePermissions

Method updatePermissions

app/models/LevelSession.js:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 updatePermissions () {
40 let permissions = this.get('permissions', true)
41 permissions = (Array.from(permissions).filter((p) => p.target !== 'public'))
42 return this.set('permissions', permissions)
43 }
44
45 getSourceFor (spellKey) {
46 // spellKey ex: 'hero-placeholder/plan'

Callers

nothing calls this directly

Calls 3

filterMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected