Commit ba2f7053 authored by pbair's avatar pbair

Fix missing current_user on MemberEntity

Move the `current_user` to MemberEntity from the EE module, to fix a
helper that needs it for a permissions check.
parent d90198ee
......@@ -63,6 +63,12 @@ class MemberEntity < Grape::Entity
member.respond_to?(:invited_user_state) ? member.invited_user_state : ""
end
end
private
def current_user
options[:current_user]
end
end
MemberEntity.prepend_mod_with('MemberEntity')
......@@ -24,10 +24,6 @@ module EE
private
def current_user
options[:current_user]
end
def group
options[:group]
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