lib/osso/graphql/mutations/regenerate_oauth_credentials.rb in osso-0.0.3.16 vs lib/osso/graphql/mutations/regenerate_oauth_credentials.rb in osso-0.0.3.17
- old
+ new
@@ -19,12 +19,10 @@
response_error(errors: oauth_client.errors.full_messages)
end
def ready?(*)
- return true if context[:scope] == :admin
-
- raise ::GraphQL::ExecutionError, 'Only admin users may mutate OauthClients'
+ admin_ready?
end
end
end
end
end