mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
check for current site
This commit is contained in:
parent
b886f6021c
commit
90eb054e5e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def browse_sites_dataset
|
|||
end
|
||||
end
|
||||
|
||||
if current_site.is_admin && params[:sites]
|
||||
if current_site && current_site.is_admin && params[:sites]
|
||||
ds = ds.where sites__username: params[:sites].split(',')
|
||||
return ds
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue