mirror of
https://github.com/neocities/neocities.git
synced 2025-05-28 16:30:06 +02:00
de-prioritize shooting yourself in the foot
This commit is contained in:
parent
08026ac235
commit
19ad676df6
3 changed files with 33 additions and 5 deletions
4
app.rb
4
app.rb
|
@ -1154,11 +1154,9 @@ end
|
|||
post '/site/delete' do
|
||||
require_login
|
||||
if current_site.username != params[:username]
|
||||
errors.add :username, 'Could not delete site, site name did not match.'
|
||||
current_site.errors.add :username, 'Could not delete site, site name did not match.'
|
||||
halt erb(:settings)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
def require_admin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue