Update capabilities check to actually reflect the existing logic
authorChris Flipse <cflipse@gmail.com>
Sun, 10 Jun 2018 17:06:10 +0000 (13:06 -0400)
committerChris Flipse <cflipse@gmail.com>
Sun, 17 Jun 2018 17:57:06 +0000 (13:57 -0400)
commit464c7f863e8413f67b22999fd1c629969731c309
treeda906162a216954b86d5c30cc42521b258e4833f
parent2a44ff581f4c547a3637ea52567a3398b1d8bfe0
Update capabilities check to actually reflect the existing logic

The OAuth capabilities are essentially user permissions that have been
granted to the app.  If the user authenticates through a non-oauth
method, they are assumed to have granted all capabilities to the app
app/models/ability.rb
test/models/abilities_test.rb