(options)
| 449 | isGoogleClassroom () { return __guard__(this.get('googleClassroomId'), x => x.length) > 0 } |
| 450 | |
| 451 | hasReadPermission (options) { |
| 452 | if (options == null) { options = { showNoty: false } } |
| 453 | const showNoty = options.showNoty || false |
| 454 | const result = classroomUtils.hasPermission('read', { |
| 455 | ownerId: this.get('ownerID'), |
| 456 | permissions: this.get('permissions') |
| 457 | }) || this.hasWritePermission() |
| 458 | if (!result && showNoty) { |
| 459 | noty({ text: 'teacher.not_read_permission', type: 'error', timeout: 4000, killer: true }) |
| 460 | } |
| 461 | return result |
| 462 | } |
| 463 | |
| 464 | hasWritePermission (options) { |
| 465 | if (options == null) { options = { showNoty: false } } |
no test coverage detected