Skip to content

Commit 472651f

Browse files
author
Robert Mosolgo
authored
Merge pull request #3444 from rmosolgo/skip-mutation-check
Skip checking @mutation during authorization
2 parents 6b2f72f + a5a2c74 commit 472651f

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

lib/graphql/schema/member/base_dsl_methods.rb

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,27 +113,15 @@ def default_graphql_name
113113
end
114114

115115
def visible?(context)
116-
if @mutation
117-
@mutation.visible?(context)
118-
else
119-
true
120-
end
116+
true
121117
end
122118

123119
def accessible?(context)
124-
if @mutation
125-
@mutation.accessible?(context)
126-
else
127-
true
128-
end
120+
true
129121
end
130122

131123
def authorized?(object, context)
132-
if @mutation
133-
@mutation.authorized?(object, context)
134-
else
135-
true
136-
end
124+
true
137125
end
138126
end
139127
end

0 commit comments

Comments
 (0)