mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 13:46:20 +00:00
fix: si no hay sitio para el panel usar el primer sitio
This commit is contained in:
parent
a27d68cf54
commit
2fdfbb2eaa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue