Skip to content

Commit

Permalink
Use WSI entity ID
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Mar 7, 2024
1 parent 97f385f commit e835746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/quizzes-report-ap/quizzes-report-ap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class QuizzesReportApComponent implements OnInit {

readonly MEMBER_ID_WSI = 1;

readonly WS_ENTITY_ID_WSI = 1;

readonly QUIZZES_APP_ID = 1300;

readonly TRAINING_ACCESS_PROGRAMME_ID = 1;
Expand Down Expand Up @@ -86,7 +88,7 @@ export class QuizzesReportApComponent implements OnInit {
this.event = event;

if (currentUser && currentUser.roles) {
const canViewAllMembers = UserRoleUtil.userHasRolesOfEntity(currentUser, this.QUIZZES_APP_ID, event.ws_entity.id, 'Admin', 'ViewAllAttempts');
const canViewAllMembers = UserRoleUtil.userHasRolesOfEntity(currentUser, this.QUIZZES_APP_ID, this.WS_ENTITY_ID_WSI, 'Admin', 'ViewAllAttempts');
if (canViewAllMembers) {
this.members = members.members;
} else {
Expand Down

0 comments on commit e835746

Please sign in to comment.