A free open source IT asset/license management system
Fixed path for non-deletable path info
snipe87c5e3e01e98
diff --git a/app/Http/Controllers/Api/GroupsController.php b/app/Http/Controllers/Api/GroupsController.phpindex 2498a9f361..e5119acf9b 100644--- a/app/Http/Controllers/Api/GroupsController.php+++ b/app/Http/Controllers/Api/GroupsController.php@@ -148,7 +148,7 @@ class GroupsController extends Controller$group = Group::findOrFail($id);if (!$group->isDeletable()) {return response()- ->json(Helper::formatStandardApiResponse('error', null, trans('admin/locations/message.assoc_users')));+ ->json(Helper::formatStandardApiResponse('error', null, trans('admin/groups/message.assoc_users')));}$group->delete();diff --git a/app/Http/Controllers/GroupsController.php b/app/Http/Controllers/GroupsController.phpindex c6593f2c12..cb758bd6e5 100755--- a/app/Http/Controllers/GroupsController.php+++ b/app/Http/Controllers/GroupsController.php@@ -213,7 +213,7 @@ class GroupsController extends Controller}if (!$group->isDeletable()) {- return redirect()->route('groups.index')->with('error', trans('admin/locations/message.assoc_users'));+ return redirect()->route('groups.index')->with('error', trans('admin/groups/message.assoc_users'));}$group->delete();