Skip to content

Commit 362fd17

Browse files
authored
Merge pull request #44 from martijnr17/patch-1
Update UsersManagementController.php
2 parents 915245a + db46b07 commit 362fd17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App/Http/Controllers/UsersManagementController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ public function edit($id)
156156
{
157157
$user = config('laravelusers.defaultUserModel')::findOrFail($id);
158158
$roles = [];
159-
$currentRole = '';
159+
$currentRole = [];
160160

161161
if ($this->_rolesEnabled) {
162162
$roles = config('laravelusers.roleModel')::all();
163163

164164
foreach ($user->roles as $user_role) {
165-
$currentRole = $user_role;
165+
$currentRole[] = $user_role->id;
166166
}
167167
}
168168

0 commit comments

Comments
 (0)