detail pages for customers and projects (#1371)

This commit is contained in:
Kevin Papst
2020-01-16 16:25:28 +01:00
committed by GitHub
parent 28c5357f11
commit 6a44dbfe83
131 changed files with 3055 additions and 1742 deletions

View File

@@ -93,8 +93,12 @@ class ActivityVoter extends AbstractVoter
}
}
if (null === ($customer = $project->getCustomer())) {
return false;
}
/** @var Team $team */
foreach ($project->getCustomer()->getTeams() as $team) {
foreach ($customer->getTeams() as $team) {
if ($hasTeamleadPermission && $user->isTeamleadOf($team)) {
return true;
}