mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47: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:
parent
4460861233
commit
539d0f867e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user