discourse/lib/guardian/bookmark_guardian.rb

8 lines
129 B
Ruby

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