first commit
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-28 10:01:09 +02:00
commit 250ac35fd1
481 changed files with 92144 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App\Services;
use App\Models\User;
final class InvestmentZoneAccess
{
public static function requireRole(User $user, string $role): void
{
abort_unless(in_array(strtolower($user->email), config('investment-zones.'.$role, []), true), 403,
'O perfil não está designado para esta revisão. A configuração de funções é feita pela administração.');
}
}