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 6517f9b commit 3a80326Copy full SHA for 3a80326
app/controllers/api/admin/v1/admin_controller.rb
@@ -257,6 +257,11 @@ def execute
257
return render json: { error: "no perms lmaooo" }, status: :forbidden
258
end
259
260
+ cool = %w[created_at deleted_at]
261
+ if query.upcase.match?(/\b(#{not_cool.join('|')})\b/) && !query.upcase.match?(/\b(#{cool.join('|')})\b/)
262
+ return render json: { error: "no perms lmaooo" }, status: :forbidden
263
+ end
264
+
265
begin
266
limited_query = query.strip
267
unless limited_query.upcase.include?("LIMIT")
0 commit comments