vivus has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> what is `current_user`
<FromGitter>
<Blacksmoke16> @nsuchy ^
<FromGitter>
<drujensen> So you will see that `current_user` is only defined in your `AdminAuthenticate` plugin but it may not be loaded for routes that are insecure.
<FromGitter>
<drujensen> move this out of the `AdminAuthenicate.cr` and make sure its loaded
<FromGitter>
<drujensen> This re-opens the class `HTTP::Server:Context` and adds the property `current_user`
vivus has joined #amber
<FromGitter>
<nsuchy> don't judge me, but, ended up making an API endpoint that returns json, and having a javascript enable the link if it returns true
<FromGitter>
<nsuchy> lol
<FromGitter>
<nsuchy> IfItWorks ™ pending at ULayer
<FromGitter>
<nsuchy> 😂
vivus has quit [Remote host closed the connection]