users: remove as_admin and as_current methods.

This commit is contained in:
evazion
2020-03-21 20:44:14 -05:00
parent 94d78287eb
commit b21e1d219c
4 changed files with 2 additions and 18 deletions

View File

@@ -91,7 +91,8 @@ else
user = User.find_by_name("albert")
end
CurrentUser.as_admin
CurrentUser.user = User.admins.first
CurrentUser.ip_addr = "127.0.0.1"
if Upload.count == 0
ENV["SKIP_CLOUDFLARE_CHECK"] = "true"