Skip to content

Commit

Permalink
Change check with tech prompt prerequisite to canManageAnySignUpSheet
Browse files Browse the repository at this point in the history
  • Loading branch information
markspolakovs committed Sep 12, 2024
1 parent 782437c commit 217ce54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/(authenticated)/calendar/[eventID]/SignupSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ export function SignupSheetsView({
!event.is_cancelled &&
dayjs(event.start_date).isAfter(new Date()) &&
(event.created_by === me.user_id ? (
// No need for this to be a canManageAnySignUpSheet, because there isn't one yet
<Alert
variant="light"
color="blue"
Expand Down
2 changes: 1 addition & 1 deletion app/(authenticated)/calendar/[eventID]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function CheckWithTechPrompt({
event: EventObjectType;
me: UserType;
}) {
if (me.user_id !== event.host) {
if (!canManageAnySignupSheet(event, me)) {
return null;
}
if (event.adam_rms_project_id || event.check_with_tech_status) {
Expand Down

0 comments on commit 217ce54

Please sign in to comment.