refactor: code style changes
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
@@ -37,11 +37,9 @@ class TeamPolicy
|
||||
return $user->isOwnerOfTeam($team) || $user->hasPermissionTo('teams.update');
|
||||
}
|
||||
|
||||
|
||||
public function invite(User $user, Team $team)
|
||||
{
|
||||
if (!$team->openJoin && $user->isOwnerOfTeam($team) || !$team->openJoin && $user->hasPermissionTo('teams.invite'))
|
||||
{
|
||||
if (! $team->openJoin && $user->isOwnerOfTeam($team) || ! $team->openJoin && $user->hasPermissionTo('teams.invite')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user