We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6f579 commit 052b925Copy full SHA for 052b925
app/graphql/mutations/base_mutation.rb
@@ -7,9 +7,9 @@ class BaseMutation < GraphQL::Schema::RelayClassicMutation
7
8
def self.authorize(action, resource_class)
9
define_method(:authorized?) do
10
- resource = resource_class.find(arguments[:id])
11
- context[:current_ability].authorize!(action, resource)
+ # resource = resource_class.find(arguments[:id])
+ # context[:current_ability].authorize!(action, resource)
12
end
13
14
15
-end
+end
0 commit comments