habitica-self-host/website/server
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
..
controllers 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
libs New inbox client (#10644) 2018-08-30 14:50:03 -05:00
middlewares remove auth with url 2018-08-15 10:40:25 +02:00
models 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
.eslintrc Upgrade ESLint to v3 (#8299) 2016-12-20 22:31:36 +01:00
api-doc.js Improved API documentation for hall #8087 (#8536) 2017-06-06 11:48:11 -07:00
index.js remove stackimpact 2018-04-30 19:07:46 +02:00
server.js Api quest restrictions - no purchase/start without fulfilling eligibility requirements (#10387) 2018-05-27 16:41:56 +02:00