Skip to content

Commit

Permalink
fix(client): supervisors without mgmt permission should not see new a…
Browse files Browse the repository at this point in the history
…nnouncement button (#562)
  • Loading branch information
fushar authored Dec 16, 2023
1 parent 5c6db43 commit f9dda1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ContestAnnouncementsPage extends Component {
if (!response) {
return null;
}
if (!response.config.canSupervise) {
if (!response.config.canManage) {
return null;
}

Expand All @@ -123,7 +123,7 @@ class ContestAnnouncementsPage extends Component {
if (!response) {
return null;
}
if (!response.config.canSupervise) {
if (!response.config.canManage) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ describe('ContestAnnouncementsPage', () => {
announcements = [];
});

describe('when not canSupervise', () => {
describe('when not canManage', () => {
beforeEach(async () => {
canSupervise = false;
canManage = false;
await render();
});

Expand All @@ -67,9 +67,9 @@ describe('ContestAnnouncementsPage', () => {
});
});

describe('when canSupervise', () => {
describe('when canManage', () => {
beforeEach(async () => {
canSupervise = true;
canManage = true;
await render();
});

Expand Down

0 comments on commit f9dda1b

Please sign in to comment.