implement coinbase tests
This commit is contained in:
@@ -14,7 +14,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
rescue_from User::PrivilegeError, :with => :access_denied
|
||||
rescue_from Danbooru::Paginator::PaginationError, :with => :render_pagination_limit
|
||||
rescue_from Exception, :with => :rescue_exception
|
||||
# rescue_from Exception, :with => :rescue_exception
|
||||
|
||||
protected
|
||||
def api_check
|
||||
|
||||
@@ -10,7 +10,9 @@ class UserUpgradesController < ApplicationController
|
||||
user = User.find(user_id)
|
||||
|
||||
if user.level < User::Levels::PLATINUM && level >= User::Levels::GOLD && level <= User::Levels::PLATINUM
|
||||
user.promote_to!(level, :skip_feedback => true)
|
||||
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
|
||||
user.promote_to!(level, :skip_feedback => true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user