Add test that creating prototype checklist in camp prototype is denied for unrelated user
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start with the 403 case around line 112 of api/tests/Api/ChecklistItems/CreateChecklistItemTest.php, and check how the markAsPrototype('checklist1campPrototype') fixture helper is used elsewhere in the test suite. Add a case where an unrelated user creates a checklist item in a camp prototype, then run that test class to confirm it returns 403. Done when the new case passes and the prototype fixture is actually marked as a prototype.
Written by the indexing model from the issue text.
Description
Could we also run this 403 check with markAsPrototype('checklist1campPrototype')? The fixture currently leaves isPrototype false, so the test doesn’t cover the case affected by this change.
Originally posted by @manuelmeister in https://github.com/ecamp/ecamp3/pull/11345#discussion_r4658116102
- Dominant language
- PHP
- Stars
- 160
- Forks
- 74
- Avg merge
- 15h 47m
- Merged PRs (30d)
- 251
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ecamp/ecamp3
-
type: Print
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ecamp/ecamp3#11203 · 1 reaction ·
Maintainers usually reply within 1 day
-
Explicitly set permissions for the tokens used in github action workflowsPossibly taken @bacluc-agent claimed this 73 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ecamp/ecamp3#9971 · 5 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
Similar issues
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100