• Luke Duncalfe's avatar
    Sanity check for GraphQL authorized? · b2a615c3
    Luke Duncalfe authored
    Raise an exception if a developer calls any of the GraphQL authorization
    methods and a `authorize :permission` is missing from a mutation class.
    
    Previously `authorized?` would return `true` in this situation, which
    although technically is accurate is not what a developer is intending.
    b2a615c3
authorize_resource.rb 2.24 KB