Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

restrictToOwner -Fix check for methodNotAllowed #335

Merged
merged 4 commits into from
Oct 28, 2016
Merged

Conversation

daffl
Copy link
Member

@daffl daffl commented Oct 28, 2016

Closes #332, closes #319

aengushearne and others added 4 commits October 26, 2016 17:22
methodNotAllowed was being checked as "if (!hook.id)", leading to erroneous or misleading error messages.
Changed to check against hook.method 

This also fixes #319.
Fix works but integration test failure, trying alternative syntax.
@daffl daffl merged commit 875bbe4 into master Oct 28, 2016
@daffl daffl deleted the restrict-to-owner branch October 28, 2016 04:21
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

restrict-to-owner throws error when user id is 0
2 participants