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

@@ -33,10 +33,6 @@ module TestHelpers
CurrentUser.as(@user, &block)
end
def as_admin(&block)
CurrentUser.as_admin(&block)
end
def load_pixiv_tokens!
if ENV["DANBOORU_PERSIST_PIXIV_SESSION"] && Cache.get("pixiv-papi-access-token")
Cache.put("pixiv-papi-access-token", Thread.current[:pixiv_papi_access_token])