From 8d4cabf5c69be3d53f401eef1c79dcc262e383a1 Mon Sep 17 00:00:00 2001 From: misha Date: Tue, 10 Nov 2026 12:35:09 +0300 Subject: [PATCH] fix: comments fixed, version changed --- lib/features/insights/services/insights_service.dart | 2 +- lib/features/profile/presentation/pages/profile_screen.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/features/insights/services/insights_service.dart b/lib/features/insights/services/insights_service.dart index df06a571..f0e64028 100644 --- a/lib/features/insights/services/insights_service.dart +++ b/lib/features/insights/services/insights_service.dart @@ -19,7 +19,7 @@ abstract class InsightsService { @Query('intra_date') String? intraDate, }); - /// Чужие графики целиком (клиент консультанта, публичный профиль). + /// Чужие графики целиком (клиент консультанта; остальным 403). @GET('/api/profile/insights/{slug}') Future getInsightsBySlug({ @Path() required String slug, diff --git a/lib/features/profile/presentation/pages/profile_screen.dart b/lib/features/profile/presentation/pages/profile_screen.dart index 80d169c9..817fdd02 100644 --- a/lib/features/profile/presentation/pages/profile_screen.dart +++ b/lib/features/profile/presentation/pages/profile_screen.dart @@ -260,8 +260,8 @@ class _ProfileScreenState extends State { padding: const EdgeInsets.only(bottom: 16), child: _badges(state), ), - // Доступ решает сервер: консультант видит клиента, пока консультация - // не завершена, остальные — только публичные профили; иначе 403 и блок скрыт. + // Доступ решает сервер (UserPolicy::viewInsights): консультант видит + // клиента, пока консультация не завершена; всем остальным 403 и блок скрыт. if (!state.profile.isBlockedByMe && !state.profile.isBlockedByAuthor) Padding( diff --git a/pubspec.yaml b/pubspec.yaml index b8218101..bb1d567f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: eatvio_app description: A new Flutter project. -version: 1.3.71+160 +version: 1.3.72+161 publish_to: "none" environment: