habitica/test/api/v3/integration/challenges
Alys eb2d320d1f allow challenge leader/owner to view/join/modify challenge in private group they've left - fixes #9753 (#10606)
* rename hasAccess to canJoin for challenges

This is so the function won't be used accidentally for other
purposes, since hasAccess could be misinterpretted.

* add isLeader function for challenges

* allow challenge leader to join/modify/end challenge when they're not in the private group it's in

* delete duplicate test

* clarify title of existing tests

* add tests and adjust existing tests to reduce privileges of test users

* fix lint errors

* remove pointless isLeader check (it's checked in canJoin)
2018-09-09 11:53:59 +02:00
..
DELETE-challenges_challengeId.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
GET-challenges_challengeId.test.js allow challenge leader/owner to view/join/modify challenge in private group they've left - fixes #9753 (#10606) 2018-09-09 11:53:59 +02:00
GET-challenges_challengeId_export_csv.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
GET-challenges_challengeId_members.test.js allow challenge leader/owner to view/join/modify challenge in private group they've left - fixes #9753 (#10606) 2018-09-09 11:53:59 +02:00
GET-challenges_challengeId_members_memberId.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
GET-challenges_group_groupid.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
GET-challenges_user.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
POST-challenges.test.js allow challenge leader/owner to view/join/modify challenge in private group they've left - fixes #9753 (#10606) 2018-09-09 11:53:59 +02:00
POST-challenges_challengeId_join.test.js allow challenge leader/owner to view/join/modify challenge in private group they've left - fixes #9753 (#10606) 2018-09-09 11:53:59 +02:00
POST-challenges_challengeId_leave.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
POST-challenges_challengeId_winner_winnerId.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
POST_challenges_id_clone.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
PUT-challenges_challengeId.test.js API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00