From dda3fac005e3ce476ad4725a44c2b461b70288c1 Mon Sep 17 00:00:00 2001 From: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:05:53 -0500 Subject: [PATCH 1/2] UTCT-27: Correct Admin link in Sleeky config. Signed-off-by: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> --- frontend/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/config.php b/frontend/config.php index f6fee5c..97a5698 100644 --- a/frontend/config.php +++ b/frontend/config.php @@ -53,7 +53,7 @@ "About" => "https://sleeky.flynntes.com/", "Contact" => "https://yourls.org/", "Legal" => "https://yourls.org/", - "Admin" => "/admin" + "Admin" => "/admin/" ]; ?> From 9470c5567ffdb2e317edbcb1c152686d825c5b85 Mon Sep 17 00:00:00 2001 From: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:27:46 -0500 Subject: [PATCH 2/2] UTCT-27: Fix Sleeky Backend plugin "hide admin links for non-auth'd users". Signed-off-by: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> --- user/plugins/sleeky-backend/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/plugins/sleeky-backend/plugin.php b/user/plugins/sleeky-backend/plugin.php index 9868d6f..1470ebb 100755 --- a/user/plugins/sleeky-backend/plugin.php +++ b/user/plugins/sleeky-backend/plugin.php @@ -140,7 +140,7 @@ function sleeky_settings_update() { } // Hide admin links for non-authenticated users -if (yourls_is_valid_user() != 1) { +if(defined( 'YOURLS_USER' ) ) { echo <<ul#admin_menu li:not(.frontend_link) {display: none} HEAD;