1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

feat: review comments

This commit is contained in:
Christy Jacob 2021-06-04 00:35:11 +05:30
parent b954e148b5
commit ef36e9ef49

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);