(classroom)
| 55 | } |
| 56 | |
| 57 | fetchForClassroom (classroom) { |
| 58 | if (classroom.isOwner()) { |
| 59 | return this.fetchMineAndShared() |
| 60 | } else if (classroom.hasReadPermission()) { |
| 61 | const options = { |
| 62 | data: { |
| 63 | includeShared: true, |
| 64 | sharedClassroomId: classroom.id |
| 65 | } |
| 66 | } |
| 67 | return this.fetchByCreator(classroom.get('ownerID'), options) |
| 68 | } else { |
| 69 | return this.fetchMineAndShared() |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | Prepaids.initClass() |
| 74 | return Prepaids |
nothing calls this directly
no test coverage detected