1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Explicitly render a 404 on non-JS requests to @watchers#new@ (#39894).

Patch by @hjust.

git-svn-id: https://svn.redmine.org/redmine/trunk@22538 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2023-12-21 06:47:32 +00:00
parent 4460861233
commit 539d0f867e

View File

@ -32,7 +32,12 @@ class WatchersController < ApplicationController
accept_api_auth :create, :destroy
def new
@users = users_for_new_watcher
respond_to do |format|
format.html { render_404 }
format.js do
@users = users_for_new_watcher
end
end
end
def create