Skip to content

Commit 052b925

Browse files
authored
Update base_mutation.rb
1 parent be6f579 commit 052b925

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/graphql/mutations/base_mutation.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class BaseMutation < GraphQL::Schema::RelayClassicMutation
77

88
def self.authorize(action, resource_class)
99
define_method(:authorized?) do
10-
resource = resource_class.find(arguments[:id])
11-
context[:current_ability].authorize!(action, resource)
10+
# resource = resource_class.find(arguments[:id])
11+
# context[:current_ability].authorize!(action, resource)
1212
end
1313
end
1414
end
15-
end
15+
end

0 commit comments

Comments
 (0)