From ef2a395a5a8e8547559dff9d4c55f272a3056cea Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 22 Dec 2025 16:43:49 +0100 Subject: [PATCH] feat: adds the possibility to make a Global Entity only for you --- CouchLog/Components/Pages/GlobalList.razor | 102 +- .../DatabaseModels/Global/GlobalEntity.cs | 3 + ...222140730_PrivateGlobalEntitys.Designer.cs | 961 ++++++++++++++++++ .../20251222140730_PrivateGlobalEntitys.cs | 29 + .../ApplicationDbContextModelSnapshot.cs | 5 +- 5 files changed, 1052 insertions(+), 48 deletions(-) create mode 100644 CouchLog/Migrations/20251222140730_PrivateGlobalEntitys.Designer.cs create mode 100644 CouchLog/Migrations/20251222140730_PrivateGlobalEntitys.cs diff --git a/CouchLog/Components/Pages/GlobalList.razor b/CouchLog/Components/Pages/GlobalList.razor index 5444781..f2045c5 100644 --- a/CouchLog/Components/Pages/GlobalList.razor +++ b/CouchLog/Components/Pages/GlobalList.razor @@ -56,6 +56,9 @@ } +
+ +
@@ -66,65 +69,68 @@
@foreach (var Entity in GlobalEntities) { -
-
+ if (!Entity.IsPrivate || (Entity.IsPrivate && (Entity.CreatorId == AppUser.Id))) + { +
+
- + -