BigW Consortium Gitlab

Commit 52909f8b by Robert Speicher

Add permission check to ReferenceExtractor's user mentions

parent b0ea7b3b
...@@ -32,7 +32,7 @@ module Gitlab ...@@ -32,7 +32,7 @@ module Gitlab
project.team.members.flatten project.team.members.flatten
elsif namespace = Namespace.find_by(path: identifier) elsif namespace = Namespace.find_by(path: identifier)
if namespace.is_a?(Group) if namespace.is_a?(Group)
namespace.users namespace.users if can?(current_user, :read_group, namespace)
else else
namespace.owner namespace.owner
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