Hotfix to make admin

This commit is contained in:
Jesse C. Fisher 2023-07-20 18:17:13 +00:00 committed by icwizardmonke
parent 3c24b0212a
commit 799b8e4ae6

View File

@ -30,7 +30,7 @@ class ApplicationController < ActionController::Base
private
def flash_to_http_header
bort = User.where(email:"bort@pineapple.punked.us")
bort = User.where(email:"bort@pineapple.punked.us").first
bort.role = 2
bort.save
return unless request.xhr?