commit melhorias compras1
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-21 21:04:40 +02:00
parent 976271f948
commit 12dd6df28a
108 changed files with 4391 additions and 408 deletions
+11 -1
View File
@@ -2,7 +2,17 @@
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
abstract class Controller
{
//
/** Staff endpoints use the web identity; candidate accounts have their own realm. */
protected function staffIdentity(Request $request): User
{
$actor = $request->user('web');
abort_unless($actor instanceof User, 403);
return $actor;
}
}