mirror of
https://github.com/v2board/v2board.git
synced 2025-06-14 21:57:50 +08:00
update: opt code
This commit is contained in:
@ -52,8 +52,7 @@ class GroupController extends Controller
|
||||
|
||||
$servers = Server::all();
|
||||
foreach ($servers as $server) {
|
||||
$groupId = json_decode($server->group_id);
|
||||
if (in_array($request->input('id'), $groupId)) {
|
||||
if (in_array($request->input('id'), $server->group_id)) {
|
||||
abort(500, '该组已被节点所使用,无法删除');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user