mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
whitelist create and deleted at
This commit is contained in:
parent
6517f9b4ec
commit
3a803260bb
1 changed files with 5 additions and 0 deletions
|
|
@ -257,6 +257,11 @@ module Api
|
|||
return render json: { error: "no perms lmaooo" }, status: :forbidden
|
||||
end
|
||||
|
||||
cool = %w[created_at deleted_at]
|
||||
if query.upcase.match?(/\b(#{not_cool.join('|')})\b/) && !query.upcase.match?(/\b(#{cool.join('|')})\b/)
|
||||
return render json: { error: "no perms lmaooo" }, status: :forbidden
|
||||
end
|
||||
|
||||
begin
|
||||
limited_query = query.strip
|
||||
unless limited_query.upcase.include?("LIMIT")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue