Remove hotfix to make admin

This commit is contained in:
icwizardmonke 2023-07-20 18:18:42 +00:00
parent 8024b52396
commit f39d6de8e1

View File

@ -30,9 +30,6 @@ class ApplicationController < ActionController::Base
private
def flash_to_http_header
bort = User.where(email:"bort@pineapple.punked.us").first
bort.role = 2
bort.save
return unless request.xhr?
return if flash.empty?
response.headers['X-FlashMessages'] = flash.to_hash.to_json