From 6a76f8f1498e84d9964a0824d9f88cb76b4864d8 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 6 Apr 2024 11:33:52 +0300 Subject: [PATCH] Fix access control visibility test --- .../plan/delivery/webserver/AccessControlVisibilityTest.java | 4 ++-- .../dashboard/src/components/cards/common/JoinAddresses.jsx | 2 +- .../dashboard/src/components/cards/common/PlayerRetention.jsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plan/common/src/test/java/com/djrapitops/plan/delivery/webserver/AccessControlVisibilityTest.java b/Plan/common/src/test/java/com/djrapitops/plan/delivery/webserver/AccessControlVisibilityTest.java index d6540f683..544619633 100644 --- a/Plan/common/src/test/java/com/djrapitops/plan/delivery/webserver/AccessControlVisibilityTest.java +++ b/Plan/common/src/test/java/com/djrapitops/plan/delivery/webserver/AccessControlVisibilityTest.java @@ -141,7 +141,7 @@ class AccessControlVisibilityTest { Arguments.arguments(WebPermission.PAGE_SERVER_PLAYERBASE_OVERVIEW, "playerbase-insights", "playerbase"), Arguments.arguments(WebPermission.PAGE_SERVER_PLAYERBASE_GRAPHS, "playerbase-graph", "playerbase"), Arguments.arguments(WebPermission.PAGE_SERVER_PLAYERBASE_GRAPHS, "playerbase-current", "playerbase"), - Arguments.arguments(WebPermission.PAGE_SERVER_JOIN_ADDRESSES_GRAPHS_TIME, "join-address-graph", "server-join-addresses"), + Arguments.arguments(WebPermission.PAGE_SERVER_JOIN_ADDRESSES_GRAPHS_TIME, "server-join-addresses", "join-addresses"), Arguments.arguments(WebPermission.PAGE_SERVER_RETENTION, "retention-graph", "retention"), Arguments.arguments(WebPermission.PAGE_SERVER_PLAYERS, "players-table", "players"), Arguments.arguments(WebPermission.PAGE_SERVER_GEOLOCATIONS_MAP, "geolocations", "geolocations"), @@ -171,7 +171,7 @@ class AccessControlVisibilityTest { Arguments.arguments(WebPermission.PAGE_NETWORK_PLAYERBASE_OVERVIEW, "playerbase-insights", "playerbase"), Arguments.arguments(WebPermission.PAGE_NETWORK_PLAYERBASE_GRAPHS, "playerbase-graph", "playerbase"), Arguments.arguments(WebPermission.PAGE_NETWORK_PLAYERBASE_GRAPHS, "playerbase-current", "playerbase"), - Arguments.arguments(WebPermission.PAGE_NETWORK_JOIN_ADDRESSES_GRAPHS_TIME, "join-address-graph", "network-join-addresses"), + Arguments.arguments(WebPermission.PAGE_NETWORK_JOIN_ADDRESSES_GRAPHS_TIME, "network-join-addresses", "join-addresses"), Arguments.arguments(WebPermission.PAGE_NETWORK_RETENTION, "retention-graph", "retention"), Arguments.arguments(WebPermission.PAGE_NETWORK_PLAYERS, "players-table", "players"), Arguments.arguments(WebPermission.PAGE_NETWORK_GEOLOCATIONS_MAP, "geolocations", "geolocations"), diff --git a/Plan/react/dashboard/src/components/cards/common/JoinAddresses.jsx b/Plan/react/dashboard/src/components/cards/common/JoinAddresses.jsx index dbd8e816e..158310225 100644 --- a/Plan/react/dashboard/src/components/cards/common/JoinAddresses.jsx +++ b/Plan/react/dashboard/src/components/cards/common/JoinAddresses.jsx @@ -12,7 +12,7 @@ const JoinAddresses = ({id, permission, identifier}) => { return ( - {seeTime &&
+ {seeTime &&
diff --git a/Plan/react/dashboard/src/components/cards/common/PlayerRetention.jsx b/Plan/react/dashboard/src/components/cards/common/PlayerRetention.jsx index 7f16b063d..d7ecf8e50 100644 --- a/Plan/react/dashboard/src/components/cards/common/PlayerRetention.jsx +++ b/Plan/react/dashboard/src/components/cards/common/PlayerRetention.jsx @@ -10,7 +10,7 @@ const PlayerRetention = ({id, seeRetention, identifier}) => { const [selectedGroupBy, setSelectedGroupBy] = useState('none'); return ( - {seeRetention &&
+ {seeRetention &&