feat: review comments

This commit is contained in:
Christy Jacob
2021-06-04 00:35:11 +05:30
parent b954e148b5
commit ef36e9ef49
+2 -1
View File
@@ -285,7 +285,8 @@ App::post('/v1/teams/:teamId/memberships')
$isPrivilegedUser = Auth::isPrivilegedUser(Authorization::$roles);
$isAppUser = Auth::isAppUser(Authorization::$roles);
$email = \strtolower($email);
$name = (empty($name)) ? $email : $name;
$team = $projectDB->getDocument($teamId);