knock icon indicating copy to clipboard operation
knock copied to clipboard

Test case for namespaced model

Open fernandes opened this issue 8 years ago • 1 comments

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!

fernandes avatar Aug 19 '17 20:08 fernandes

atm my workaround is:

class User < Namespace::User
end

and use Knock with User defaults

fernandes avatar Aug 21 '17 19:08 fernandes