-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
Describe the bug
When Topcoder releases challenge and it is not yet started, but visible on "All challenges" tab. Registration button is disabled on UI. However, user can still register to this challenge via API and access to forum and private description etc. I think this will not be fair for others who don't know this method and needs to be fixed.
To Reproduce
Steps to reproduce the behavior:
0. Login to your account.
- Go to https://qa-community-app.topcoder-dev.com/challenges/6b06a3c6-15d2-410d-8a50-d76ceea8aea3 or any stalled challenge
- Copy your bearer token. (Open developer tool and go to network tab. You can see your bearer token there.)
- Send below request via curl:
curl --location --request POST 'api.topcoder.com/v5/resources' \
--header 'Authorization: Bearer.<Insert Token here>' \
--header 'Content-Type: application/json' \
--data-raw '{
"challengeId": "<INSERT CHALLENGE ID>",
"memberHandle": "<YOUR HANDLE>",
"roleId": "732339e7-8e30-49d7-9198-cccf9451e221"
}'
- See user can register to a challenge without problem.
Expected behavior
API should return error when challenge's registration phase is not started.
Metadata
Metadata
Assignees
Labels
No labels