Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
56a40a2b
Commit
56a40a2b
authored
Aug 01, 2017
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm unused methods
parent
1ccdd99f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
app/services/notification_recipient_service.rb
app/services/notification_recipient_service.rb
+0
-26
No files found.
app/services/notification_recipient_service.rb
View file @
56a40a2b
...
...
@@ -199,32 +199,6 @@ module NotificationRecipientService
)
end
def
reject_unsubscribed_users
return
unless
target
.
respond_to?
:subscriptions
recipients
.
reject!
do
|
recipient
|
user
=
recipient
.
user
subscription
=
target
.
subscriptions
.
find_by_user_id
(
user
.
id
)
subscription
&&
!
subscription
.
subscribed
end
end
def
reject_users_without_access
recipients
.
select!
{
|
r
|
r
.
user
.
can?
(
:receive_notifications
)
}
return
unless
read_ability
DeclarativePolicy
.
subject_scope
do
recipients
.
select!
do
|
recipient
|
recipient
.
user
.
can?
(
read_ability
,
target
)
end
end
end
def
reject_user
(
user
)
recipients
.
reject!
{
|
r
|
r
.
user
==
user
}
end
def
add_labels_subscribers
(
labels:
nil
)
return
unless
target
.
respond_to?
:labels
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment