Remove hotfix to make admin
This commit is contained in:
parent
39e04014bb
commit
1242c02779
@ -30,9 +30,6 @@ class ApplicationController < ActionController::Base
|
|||||||
private
|
private
|
||||||
|
|
||||||
def flash_to_http_header
|
def flash_to_http_header
|
||||||
bort = User.where(email:"bort@pineapple.punked.us").first
|
|
||||||
bort.role = 2
|
|
||||||
bort.save
|
|
||||||
return unless request.xhr?
|
return unless request.xhr?
|
||||||
return if flash.empty?
|
return if flash.empty?
|
||||||
response.headers['X-FlashMessages'] = flash.to_hash.to_json
|
response.headers['X-FlashMessages'] = flash.to_hash.to_json
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user