Skip to content

Commit

Permalink
#470 allow admin
Browse files Browse the repository at this point in the history
  • Loading branch information
davvd committed Mar 31, 2024
1 parent 7291fcd commit d792867
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ GEM
ansi (1.5.0)
ast (2.4.2)
aws-eventstream (1.3.0)
aws-partitions (1.895.0)
aws-sdk-core (3.191.3)
aws-partitions (1.904.0)
aws-sdk-core (3.191.5)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.77.0)
aws-sdk-kms (1.78.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.141.0)
Expand All @@ -54,7 +54,7 @@ GEM
backtrace (0.4.0)
base58 (0.2.3)
base64 (0.2.0)
bigdecimal (3.1.6)
bigdecimal (3.1.7)
bitcoin-ruby (0.0.20)
eventmachine
ffi
Expand Down Expand Up @@ -109,8 +109,8 @@ GEM
faraday_middleware (1.2.0)
faraday (~> 1.0)
ffi (1.16.3)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
ffi-compiler (1.3.2)
ffi (>= 1.15.5)
rake
futex (0.8.6)
geoplugin (0.3.1)
Expand All @@ -127,7 +127,7 @@ GEM
tilt
hashdiff (1.1.0)
hashie (5.0.0)
i18n (1.14.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
ipaddr (1.2.6)
Expand Down Expand Up @@ -155,17 +155,17 @@ GEM
ruby-progressbar
mocha (2.1.0)
ruby2_keywords (>= 0.0.5)
money (6.18.0)
money (6.19.0)
i18n (>= 0.6.4, <= 2)
multi_json (1.15.0)
multipart-post (2.4.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
mutex_m (0.2.0)
nokogiri (1.15.5)
nokogiri (1.16.3)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.15.5-x86_64-darwin)
nokogiri (1.16.3-x86_64-darwin)
racc (~> 1.4)
oauth (1.1.0)
oauth-tty (~> 1.0, >= 1.0.1)
Expand Down Expand Up @@ -228,7 +228,7 @@ GEM
rubocop-ast (>= 1.20.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.31.1)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-minitest (0.22.1)
rubocop (>= 0.90, < 2.0)
Expand Down Expand Up @@ -311,7 +311,7 @@ GEM
usagewatch (0.0.7)
usagewatch_ext (0.2.1)
usagewatch (~> 0.0.6)
version_gem (1.1.3)
version_gem (1.1.4)
virtus (2.0.0)
axiom-types (~> 0.1)
coercible (~> 1.0)
Expand Down
1 change: 1 addition & 0 deletions wts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ def confirmed_user(login = @locals[:guser])
# This user is known as Zerocracy contributor.
def known?(login = @locals[:guser])
return false unless login
return true if %w[yegor256 davvd].include?(login)
return true if ENV['RACK_ENV'] == 'test'
return true if login == settings.config['rewards']['login']
return true if login == settings.config['exchange']['login']
Expand Down

0 comments on commit d792867

Please sign in to comment.