mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
SECURITY: Prevent access to other user's bookmark lists
This commit is contained in:
@ -1397,6 +1397,7 @@ class UsersController < ApplicationController
|
||||
|
||||
def bookmarks
|
||||
user = fetch_user_from_params
|
||||
guardian.ensure_can_edit!(user)
|
||||
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
|
Reference in New Issue
Block a user