From e65eef2b1c587ea3be621a6a41d19d2e7b828037 Mon Sep 17 00:00:00 2001 From: Laurent Date: Sun, 23 Jun 2024 17:25:50 +0200 Subject: [PATCH] Adds patch button for the right user only --- PadelClub/Views/Navigation/Toolbox/ToolboxView.swift | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/PadelClub/Views/Navigation/Toolbox/ToolboxView.swift b/PadelClub/Views/Navigation/Toolbox/ToolboxView.swift index 899cf2f..ca96e56 100644 --- a/PadelClub/Views/Navigation/Toolbox/ToolboxView.swift +++ b/PadelClub/Views/Navigation/Toolbox/ToolboxView.swift @@ -20,10 +20,13 @@ struct ToolboxView: View { Section { Text("Version de l'application").badge(PadelClubApp.appVersion) SupportButtonView(contentIsUnavailable: false) - Button { - Patcher.applyIfNeeded() - } label: { - Text("Patch") + + if Store.main.userId == "94f45ed2-8938-4c32-a4b6-e4525073dd33" { + Button { + Patcher.applyIfNeeded() + } label: { + Text("Patch") + } } }