Use CanCanCan for changeset comments
This introduces different deny_access handlers for web and api requests, since we want to avoid sending redirects as API responses. See #2064 for discussion.
This commit is contained in:
parent
b29c173ac7
commit
8f70fb2114
6 changed files with 89 additions and 3 deletions
6
test/factories/access_tokens.rb
Normal file
6
test/factories/access_tokens.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :access_token do
|
||||
user
|
||||
client_application
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue