Commit 98671f66 authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

update the comment to be a little more accurate

parent 367cfefa
...@@ -7,24 +7,20 @@ module EE ...@@ -7,24 +7,20 @@ module EE
# override # override
def subscribed_without_subscriptions?(user, *) def subscribed_without_subscriptions?(user, *)
# TODO: this really shouldn't be necessary, because # TODO: this really shouldn't be necessary, because the support
# the support bot should be a participant (which is # bot should be a participant (which is what the superclass
# what the superclass method checks for). However, # method checks for). However, the support bot gets filtered out
# the support bot is not permitted to :read_project # at the end of Participable#raw_participants as not being able
# the project, so it gets filtered out at the end of # to read the project. Overriding *that* behavior is problematic
# Participable#raw_participants. Overriding *that* # because it doesn't use the Policy framework, and instead uses a
# behavior is problematic because it doesn't use the # custom-coded Ability.users_that_can_read_project, which is...
# Policy framework, and instead uses a custom-coded # a pain to override in EE. So... here we say, the support bot
# Ability.users_that_can_read_project, which is... # is subscribed by default, until an unsubscribed record appears,
# a pain to override in EE. So... here we say, the # even though it's not *technically* a participant in this issue.
# support bot is subscribed by default, until an
# unsubscribed record appears, even though it's not # Making the support bot subscribed to every issue is not as bad as it
# *technically* a participant in this issue. # seems, though, since it isn't permitted to :receive_notifications,
# # and doesn't actually show up in the participants list.
# Making the support bot subscribed to every issue
# is not as bad as it seems, though, since it isn't
# permitted to :receive_notifications, and doesn't
# actually show up in the participants list.
user.support_bot? || super user.support_bot? || super
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment