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

Method canRevokeLicensesViaUI

app/models/User.js:369–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 canManageLicensesViaUI () { return this.clientPermissions?.manageLicensesViaUI != null ? this.clientPermissions?.manageLicensesViaUI : true }
368
369 canRevokeLicensesViaUI () {
370 if (!this.clientPermissions || (this.clientPermissions.manageLicensesViaUI && this.clientPermissions.revokeLicensesViaUI)) {
371 return true
372 }
373 return false
374 }
375
376 setRole (role, force = false) {
377 const oldRole = this.get('role')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected