Skip to content

Commit 77d002a

Browse files
committed
Use null for role as well
Signed-off-by: snipe <[email protected]>
1 parent 9469989 commit 77d002a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Transformers/UsersTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function transformUsers(Collection $users, $total)
2222
public function transformUser(User $user)
2323
{
2424

25-
$role = '';
25+
$role = null;
2626
if ($user->isSuperUser()) {
2727
$role = 'superadmin';
2828
} elseif ($user->isAdmin()) {

0 commit comments

Comments
 (0)