diff --git a/src/BeautyEloquent.php b/src/BeautyEloquent.php index 68603e1..9dc2356 100644 --- a/src/BeautyEloquent.php +++ b/src/BeautyEloquent.php @@ -533,9 +533,7 @@ public static function UpdateRole($id, $permissions = []) $template = BeautyEloquentTools::ResponseTemplate(); if ($role !== null) { $role->save(); - if (isset($permissions) && count($permissions) >= 1) { - $role->syncPermissions($permissions); - } + $role->syncPermissions($permissions); $template->status = true; $template->output = $role; } else {