Commit 9d397b2b authored by Michael Kozono's avatar Michael Kozono

Merge branch 'fix-a-typo-issue-sidebar-extras-entity' into 'master'

Fix a typo in IssueSidebarExtrasEntity

See merge request gitlab-org/gitlab!68742
parents 3d355bb7 c56bedbe
......@@ -5,7 +5,7 @@ module EE
extend ActiveSupport::Concern
prepended do
expose :epic, if: -> (issuable, _) { cen_read_epic?(issuable) } do
expose :epic, if: -> (issuable, _) { can_read_epic?(issuable) } do
expose :epic, merge: true, using: EpicBaseEntity
expose :epic_issue_id do |issuable|
issuable.epic_issue&.id
......@@ -13,7 +13,7 @@ module EE
end
expose :weight
def cen_read_epic?(issuable)
def can_read_epic?(issuable)
can?(request.current_user, :read_epic, issuable.epic)
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