MOBILE-3039 workshop: Fix self-assessment

main
Albert Gasset 2019-06-06 15:56:08 +02:00
parent 05f0b0d62e
commit 9aff138f62
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ export class AddonModWorkshopSubmissionPage implements OnInit, OnDestroy {
this.workshop.phase < AddonModWorkshopProvider.PHASE_CLOSED && this.access.canoverridegrades;
this.ownAssessment = false;
if (this.access.canviewallassessments || this.currentUserId == this.userId) {
if (this.access.canviewallassessments) {
// Get new data, different that came from stateParams.
promises.push(this.workshopProvider.getSubmissionAssessments(this.workshopId, this.submissionId)
.then((subAssessments) => {