Use delegated `Project#member?` instead of `Project.team#member?`
The following discussion from !117897 (merged) should be addressed:
-
@mksionek started a discussion: (+1 comment) nitpick (non-blocking):
member?
is delegated, we can omit.team
here.
@project.team.member?(@current_user, Gitlab::Access::REPORTER)
project.team.member?(user, ProjectFeature.required_minimum_access_level(feature))
project.team.member?(user, Gitlab::Access::REPORTER)
project.team.member?(user)
if project.team.member?(user)
@project.team.member?(@user, Gitlab::Access::REPORTER)
- include_private = @project.team.member?(current_user) || current_user.admin?
unless project.team.member?(user)
return false unless project.team.member?(current_user)
Edited by Peter Leitzen