Revert "fix: [tenant-console] 테넌트 콘솔 분리작업"

This reverts commit 8da1702e
This commit is contained in:
2026-03-13 21:24:18 +09:00
parent c3bc7912dd
commit 432888980b
70 changed files with 423 additions and 1173 deletions

View File

@@ -2,8 +2,6 @@
namespace App\Http\Controllers;
use App\Helpers\TenantHelper;
use App\Models\Tenants\Tenant;
use App\Services\BoardService;
use Illuminate\View\View;
@@ -19,10 +17,7 @@ public function __construct(
public function index(): View
{
$boardTypes = $this->boardService->getBoardTypes();
$consoleTenantId = TenantHelper::getEffectiveTenantId();
$currentTenant = TenantHelper::isTenantConsole()
? Tenant::find($consoleTenantId)
: auth()->user()->currentTenant();
$currentTenant = auth()->user()->currentTenant();
return view('boards.index', compact('boardTypes', 'currentTenant'));
}
@@ -37,12 +32,9 @@ public function create(): View
/**
* 게시판 수정 화면
* tenant-console/{tenantId}/boards/{id}/edit 에서
* $id에 tenantId가 들어오는 문제 방지 → route('id')로 명시적 추출
*/
public function edit(int $id): View
{
$id = (int) (request()->route('id') ?? $id);
// systemOnly=false: 테넌트 게시판도 수정 가능
$board = $this->boardService->getBoardById($id, true, false);