@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $user->servers()->sync($fields['servers']); |
| 61 | 61 | DB::table('permissions') |
| 62 | 62 | ->where('entity_id', '=', $user->id) |
| 63 | - ->whereIn('ability_id', function ($query) use ($fields) { |
|
| 63 | + ->whereIn('ability_id', function($query) use ($fields) { |
|
| 64 | 64 | $query->select('id') |
| 65 | 65 | ->from('abilities') |
| 66 | 66 | ->where('entity_type', '=', Server::class) |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $user->servers()->detach(); |
| 72 | 72 | DB::table('permissions') |
| 73 | 73 | ->where('entity_id', '=', $user->id) |
| 74 | - ->whereIn('ability_id', function ($query) { |
|
| 74 | + ->whereIn('ability_id', function($query) { |
|
| 75 | 75 | $query->select('id') |
| 76 | 76 | ->from('abilities') |
| 77 | 77 | ->where('entity_type', '=', Server::class); |