discourse/lib/guardian/bookmark_guardian.rb

Failed to ignore revisions in .git-blame-ignore-revs.

12 lines
208 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module BookmarkGuardian
def can_delete_bookmark?(bookmark)
@user == bookmark.user
end
def can_create_bookmark?(bookmark)
can_see_topic?(bookmark.topic)
end
end