DmitryTsepelev / rubocop-graphql

Rubocop extension for enforcing graphql-ruby best practices
MIT License
226 stars 50 forks source link

Allow can_can_action and pundit_role to cause NotAuthorizedNodeType to pass #144

Closed patch0 closed 1 year ago

patch0 commented 1 year ago

This adds in a node matcher looking for can_can_action or pundit_role to be called on an object implementing GraphQL::Types::Relay::Node. This appears to be the minimum requirement to add in pundit or cancancan auth to a GraphQL type.

closes #140

DmitryTsepelev commented 1 year ago

Hey hey, another rubocop offence to fix and we're good to go :)