5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-21 17:00:47 +00:00

fix: si no hay sitio para el panel usar el primer sitio

This commit is contained in:
f 2024-03-26 12:28:40 -03:00
parent a27d68cf54
commit 2fdfbb2eaa
No known key found for this signature in database

View file

@ -4,7 +4,7 @@ class EnvController < ActionController::Base
skip_before_action :verify_authenticity_token
def index
@site = Site.find_by_name('panel')
@site = Site.find_by_name('panel') || Site.first
stale? @site if @site
end