Skip to content

Commit

Permalink
Merge pull request #56 from dota-web/2.1
Browse files Browse the repository at this point in the history
 update role permission
  • Loading branch information
gravitano committed Oct 11, 2015
2 parents ba25bc1 + e635a7e commit c9c1c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pingpong/Admin/Controllers/RolesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function update(Update $request, $id)
$role->update($data);

if ($role->permissions->count()) {
$role->permissions()->detach($role->permissions->lists('id'));
$role->permissions()->detach($role->permissions->lists('id')->toArray());

$role->permissions()->attach(\Input::get('permissions'));
}
Expand Down

0 comments on commit c9c1c30

Please sign in to comment.