Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
bf0fd3ea
Commit
bf0fd3ea
authored
8 years ago
by
Benedikt Huss
Browse files
Options
Downloads
Patches
Plain Diff
Links for redmine issue references are generated correctly again
parent
93b4a3a1
No related branches found
No related tags found
1 merge request
!389
CE upstream
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+1
-0
1 addition, 0 deletions
CHANGELOG
lib/banzai/filter/issue_reference_filter.rb
+3
-0
3 additions, 0 deletions
lib/banzai/filter/issue_reference_filter.rb
with
4 additions
and
0 deletions
CHANGELOG
+
1
−
0
View file @
bf0fd3ea
...
...
@@ -40,6 +40,7 @@ v 8.8.0 (unreleased)
v 8.7.4
- Fix always showing build notification message when switching between merge requests
- 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
- Emails, Gitlab::Email::Message, Gitlab::Diff, and Premailer::Adapter::Nokogiri are now instrumented
...
...
This diff is collapsed.
Click to expand it.
lib/banzai/filter/issue_reference_filter.rb
+
3
−
0
View file @
bf0fd3ea
...
...
@@ -10,6 +10,9 @@ def self.object_class
end
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
Ability
.
abilities
.
allowed?
(
user
,
:read_issue
,
issue
)
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment