Fix typo in role name

This commit is contained in:
DariusIII
2026-02-13 13:28:07 +01:00
parent 623c30cc27
commit 26090fdf5a
@@ -271,7 +271,7 @@ class InvitationController extends BasePageController
public function cleanup(): JsonResponse
{
// Check if user is admin
if (! auth()->user()->hasRole('admin')) {
if (! auth()->user()->hasRole('Admin')) {
abort(403, 'Unauthorized');
}