Skip to content

M26 prevent unenroll #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Sarosim
Copy link
Contributor

@Sarosim Sarosim commented Dec 8, 2021

Description

In order to avoid participants withdrawing if hackathon status is in-progress or anything further, the withdraw button is disabled based on hackathon.status

Pull request type

Related Issue

Configuration instructions

Testing

Manual testing: checked all hackathon statuses and "Withdraw as Participant" button is behaving as expected.

Screenshots

Additional Information

Does this introduce a breaking change

  • Yes
  • No

Copy link
Member

@stefdworschak stefdworschak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually as per #229, this should be for participants which is in enrollpart.html not in enrollstaff.html which is the logic for Judges/Facilitators.
Also, unenrollment should not be allowed as soon as teams are assigned or the status is hack_in_progress, judging, finished or deleted.

@Sarosim
Copy link
Contributor Author

Sarosim commented Dec 15, 2021

I'll fix this @stefdworschak just still not feeling well, recovering from COVID :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants