Protect application form management with organizer login

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
nilsandopenhands committed 2026-11-30 00:20:44 +01:00
1 parent 4bf6014766
commit af044ab501
11 files changed
+213 -41

No files matched your search

+3 -1
View File
@@ -2,6 +2,8 @@
namespace App\Providers;
use App\Models\User;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -19,6 +21,6 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
//
Gate::define('manage-bewerbungen', fn (User $user): bool => $user->is_admin === true);
}
}