Compare commits

..

No commits in common. "208decc6f4580dab7dbe64ab2d91912f8a89b997" and "4947caed396e114b273069c92c6a3a881c582cf8" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -33,10 +33,7 @@ class ManagementMiddleware
}
// 運営元コードの正当性検証のため、DBで存在確認
$management = DB::table('management')
->where('management_code', $managementCode)
->where('valid_flag', 1) // 有効フラグが1の場合のみ
->first();
$management = DB::table('management')->where('management_code', $managementCode)->first();
if (!$management) {
// 不正アクセス防止のため、エラーログでシステム例外を記録

View File

@ -17,7 +17,7 @@ return new class extends Migration
$table->string('management_code', 10)->unique(); // varchar(10), NOT NULL, UNIQUE
$table->boolean('municipality_flag')->nullable(); // tinyint(1), NULL
$table->boolean('government_approval_required')->nullable(); // tinyint(1), NULL
$table->boolean('valid_flag'); // tinyint(1)
$table->boolean('valid_flag '); // tinyint(1)
$table->timestamps(); // created_at, updated_at (datetime), NOT NULL
$table->unsignedInteger('operator_id')->nullable(); // int(10), NULL
$table->foreign('operator_id')->references('ope_id')->on('ope'); // 外部キーopeテーブルのope_idを参照