(userID, opts)
| 59 | } |
| 60 | |
| 61 | removeMember (userID, opts) { |
| 62 | const options = { |
| 63 | url: _.result(this, 'url') + '/members', |
| 64 | type: 'DELETE', |
| 65 | data: { userID } |
| 66 | } |
| 67 | _.extend(options, opts) |
| 68 | const jqxhr = this.fetch(options) |
| 69 | if (userID === me.id) { me.set('courseInstances', _.without(me.get('courseInstances'), this.id)) } |
| 70 | return jqxhr |
| 71 | } |
| 72 | |
| 73 | removeMembers (userIDs, opts) { |
| 74 | const options = { |