A free open source IT asset/license management system
Fixed path for translations
snipe5f1566d6ab83
diff --git a/app/Http/Controllers/Api/GroupsController.php b/app/Http/Controllers/Api/GroupsController.phpindex e5119acf9b..b6a06af488 100644--- a/app/Http/Controllers/Api/GroupsController.php+++ b/app/Http/Controllers/Api/GroupsController.php@@ -146,7 +146,7 @@ class GroupsController extends Controller{$this->authorize('superadmin');$group = Group::findOrFail($id);- if (!$group->isDeletable()) {+ if (! $group->isDeletable()) {return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/groups/message.assoc_users')));}diff --git a/app/Http/Controllers/GroupsController.php b/app/Http/Controllers/GroupsController.phpindex cb758bd6e5..9e5587d5da 100755--- a/app/Http/Controllers/GroupsController.php+++ b/app/Http/Controllers/GroupsController.php@@ -207,12 +207,12 @@ class GroupsController extends Controllerpublic function destroy($id): RedirectResponse{if (! config('app.lock_passwords')) {-+if (! $group = Group::find($id)) {return redirect()->route('groups.index')->with('error', trans('admin/groups/message.group_not_found', ['id' => $id]));}- if (!$group->isDeletable()) {+ if (! $group->isDeletable()) {return redirect()->route('groups.index')->with('error', trans('admin/groups/message.assoc_users'));}