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

Method spy

app/models/User.js:973–981  ·  view source on GitHub ↗
(user, options = {})

Source from the content-addressed store, hash-verified

971 // Function meant for "me"
972
973 spy (user, options = {}) {
974 user = user.id || user // User instance, user ID, email or username
975 options.url = '/auth/spy'
976 options.type = 'POST'
977 if (options.data == null) { options.data = {} }
978 options.data.user = user
979 this.clearUserSpecificLocalStorage()
980 return this.fetch(options)
981 }
982
983 stopSpying (options = {}) {
984 options.url = '/auth/stop-spying'

Callers 5

switchToStudentModeMethod · 0.95
onSwitchUserFunction · 0.80
onSubmitEspionageFormMethod · 0.80
onClickUserSpyButtonMethod · 0.80
onClickUserSpyButtonMethod · 0.80

Calls 2

fetchMethod · 0.45

Tested by

no test coverage detected