From 0760abc42806676a09f14e0e70091380b3f58898 Mon Sep 17 00:00:00 2001
From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
Date: Mon, 6 Oct 2025 20:32:21 +0200
Subject: [PATCH] Refactoring
---
apps/api/src/app/access/access.controller.ts | 5 +----
.../access-table/access-table.component.html | 6 +++++-
...reate-or-update-access-dialog.component.ts | 6 +++---
.../create-or-update-access-dialog.html | 18 ++++++++--------
.../user-account-access.component.ts | 21 ++++++++-----------
5 files changed, 27 insertions(+), 29 deletions(-)
diff --git a/apps/api/src/app/access/access.controller.ts b/apps/api/src/app/access/access.controller.ts
index 177191a6e..cb1e2d4af 100644
--- a/apps/api/src/app/access/access.controller.ts
+++ b/apps/api/src/app/access/access.controller.ts
@@ -41,10 +41,7 @@ export class AccessController {
include: {
granteeUser: true
},
- orderBy: [
- { granteeUserId: 'desc' }, // NULL values first (public access), then user IDs
- { createdAt: 'asc' } // Within each group, order by creation time
- ],
+ orderBy: [{ granteeUserId: 'desc' }, { createdAt: 'asc' }],
where: { userId: this.request.user.id }
});
diff --git a/apps/client/src/app/components/access-table/access-table.component.html b/apps/client/src/app/components/access-table/access-table.component.html
index b7001782a..e61ee0c9e 100644
--- a/apps/client/src/app/components/access-table/access-table.component.html
+++ b/apps/client/src/app/components/access-table/access-table.component.html
@@ -72,7 +72,6 @@
Edit
-
}
@if (element.type === 'PUBLIC') {
}
+ @if (
+ user?.settings?.isExperimentalFeatures || element.type === 'PUBLIC'
+ ) {
+
+ }