isAdmin() || $user->hasPermission('create_invoice'); } }