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

Test case for namespaced model #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fernandes
Copy link

Instead of just opening an issue reporting the bug, I'm sending the code to the case I'm discussing on.

Controller is expected to return unauthorized for namespaced model
(specially in this case where even the key is being passed), but is
returns ok.

I'm tried to implement a solution, but I've just discovered knock last week, so I'm reporting this bug hope it helps someone else.

Thank you!

Controller is expected to return unauthorized for namespaced model
(specially in this case where even the key is being passed), but is
returns ok.
@fernandes
Copy link
Author

fernandes commented Aug 21, 2017

atm my workaround is:

class User < Namespace::User
end

and use Knock with User defaults

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant