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
bf0fd3ea
Commit
bf0fd3ea
authored
May 05, 2016
by
Benedikt Huss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Links for redmine issue references are generated correctly again
parent
93b4a3a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
CHANGELOG
CHANGELOG
+1
-0
lib/banzai/filter/issue_reference_filter.rb
lib/banzai/filter/issue_reference_filter.rb
+3
-0
No files found.
CHANGELOG
View file @
bf0fd3ea
...
@@ -40,6 +40,7 @@ v 8.8.0 (unreleased)
...
@@ -40,6 +40,7 @@ v 8.8.0 (unreleased)
v 8.7.4
v 8.7.4
- Fix always showing build notification message when switching between merge requests
- Fix always showing build notification message when switching between merge requests
- Fix links on wiki pages for relative url setups. !4026 (Artem Sidorenko)
- Fix links on wiki pages for relative url setups. !4026 (Artem Sidorenko)
- Links for Redmine issue references are generated correctly again (Benedikt Huss)
v 8.7.3
v 8.7.3
- Emails, Gitlab::Email::Message, Gitlab::Diff, and Premailer::Adapter::Nokogiri are now instrumented
- Emails, Gitlab::Email::Message, Gitlab::Diff, and Premailer::Adapter::Nokogiri are now instrumented
...
...
lib/banzai/filter/issue_reference_filter.rb
View file @
bf0fd3ea
...
@@ -10,6 +10,9 @@ module Banzai
...
@@ -10,6 +10,9 @@ module Banzai
end
end
def
self
.
user_can_see_reference?
(
user
,
node
,
context
)
def
self
.
user_can_see_reference?
(
user
,
node
,
context
)
# It is not possible to check access rights for external issue trackers
return
true
if
context
[
:project
].
try
(
:external_issue_tracker
)
issue
=
Issue
.
find
(
node
.
attr
(
'data-issue'
))
rescue
nil
issue
=
Issue
.
find
(
node
.
attr
(
'data-issue'
))
rescue
nil
Ability
.
abilities
.
allowed?
(
user
,
:read_issue
,
issue
)
Ability
.
abilities
.
allowed?
(
user
,
:read_issue
,
issue
)
end
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