Skip to content

requiresAuthentication is self-sufficient for ACL's #3784

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

Merged
merged 3 commits into from
May 11, 2017
Merged

Conversation

flovilmart
Copy link
Contributor

Initially, requiresAuthentication CLP would not let through if other CLP's were conflicting (like in #3753)

This PR changes the behaviour of requiresAuthentication to match other CLP processing which is, if it pass, we move forward in the processing.

@codecov
Copy link

codecov bot commented May 10, 2017

Codecov Report

Merging #3784 into master will decrease coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3784      +/-   ##
==========================================
- Coverage   90.26%   90.14%   -0.13%     
==========================================
  Files         114      114              
  Lines        7491     7549      +58     
==========================================
+ Hits         6762     6805      +43     
- Misses        729      744      +15
Impacted Files Coverage Δ
src/Controllers/SchemaController.js 97.29% <100%> (+0.23%) ⬆️
src/Adapters/Auth/meetup.js 84.21% <0%> (-5.27%) ⬇️
src/Routers/PublicAPIRouter.js 91.3% <0%> (-3.22%) ⬇️
src/Controllers/UserController.js 92.24% <0%> (-1.99%) ⬇️
src/ParseServer.js 88.53% <0%> (-1.73%) ⬇️
src/RestWrite.js 93.25% <0%> (-1.26%) ⬇️
src/Config.js 94.89% <0%> (-0.64%) ⬇️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 93.49% <0%> (-0.12%) ⬇️
src/Controllers/DatabaseController.js 94.35% <0%> (+0.04%) ⬆️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 95.58% <0%> (+0.13%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45a9d50...20ff08c. Read the comment docs.

username: 'user',
password: 'password'
})
return Parse.User.signUp('user', 'password').then(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be a more complete test case to check that a query, before user signs up, returns 0 results?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could do that yes :)

@flovilmart flovilmart merged commit 10c7cb0 into master May 11, 2017
@flovilmart flovilmart deleted the fix/3753 branch May 11, 2017 15:09
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.

3 participants