mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: Respect topic permissions when loading bookmark metadata
Co-authored-by: Martin Brennan <martin@discourse.org> Co-authored-by: Sam Saffron <sam.saffron@gmail.com>
This commit is contained in:
@@ -1401,7 +1401,7 @@ class UsersController < ApplicationController
|
||||
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
bookmarks = BookmarkQuery.new(user, params).list_all
|
||||
bookmarks = BookmarkQuery.new(user: user, guardian: guardian, params: params).list_all
|
||||
|
||||
if bookmarks.empty?
|
||||
render json: {
|
||||
|
||||
Reference in New Issue
Block a user