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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
fd0dcf41
Commit
fd0dcf41
authored
Mar 26, 2019
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use more generic bot? instead of support_bot?
We kept support_bot? where the actual Service Desk user is checked
parent
1342da95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/models/ee/issue.rb
ee/app/models/ee/issue.rb
+2
-2
ee/lib/banzai/reference_parser/ee/base_parser.rb
ee/lib/banzai/reference_parser/ee/base_parser.rb
+1
-1
No files found.
ee/app/models/ee/issue.rb
View file @
fd0dcf41
...
...
@@ -24,7 +24,7 @@ module EE
# override
def
check_for_spam?
author
.
support_
bot?
||
super
author
.
bot?
||
super
end
# override
...
...
@@ -48,7 +48,7 @@ module EE
# 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
.
bot?
||
super
end
# override
...
...
ee/lib/banzai/reference_parser/ee/base_parser.rb
View file @
fd0dcf41
...
...
@@ -9,7 +9,7 @@ module Banzai
# the policies framework, but CE currently
# manually checks for team membership and the like.
def
nodes_user_can_reference
(
user
,
nodes
)
return
[]
if
user
.
support_
bot?
return
[]
if
user
.
bot?
super
end
...
...
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