From 9cb9ff511c5765f628987d1207f7016f5207220b Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 4 Feb 2026 13:22:22 +0100 Subject: [PATCH] feat(club): refine access control in loadOpenRequests method - Added a check for access permissions before loading open requests to enhance security and prevent unauthorized access. - Updated the mounted lifecycle hook to conditionally call loadOpenRequests based on access permissions, improving user experience and performance. --- frontend/src/views/ClubView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/ClubView.vue b/frontend/src/views/ClubView.vue index bcc85120..b1755485 100644 --- a/frontend/src/views/ClubView.vue +++ b/frontend/src/views/ClubView.vue @@ -135,6 +135,7 @@ export default { }, async loadOpenRequests() { try { + if (!this.accessAllowed) return; const clubId = this.getClubId(); const response = await apiClient.get(`/clubmembers/notapproved/${clubId}`); this.openRequests = response.data; @@ -191,7 +192,9 @@ export default { }, async mounted() { await this.loadClub(); - await this.loadOpenRequests(); + if (this.accessAllowed) { + await this.loadOpenRequests(); + } } }