From 136b40a05f05d0d529242960755f6d654f04b988 Mon Sep 17 00:00:00 2001 From: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> Date: Mon, 1 Jan 2024 09:59:50 -0500 Subject: [PATCH] UTCT-46: Fix a bracket and correct plugin name. Signed-off-by: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> --- user/plugins/auth-mgr-plus/plugin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/user/plugins/auth-mgr-plus/plugin.php b/user/plugins/auth-mgr-plus/plugin.php index cf26f56..2587a46 100644 --- a/user/plugins/auth-mgr-plus/plugin.php +++ b/user/plugins/auth-mgr-plus/plugin.php @@ -242,7 +242,8 @@ function amp_require_capability( $capability ) { $errorpage = file_get_contents('user/plugins/auth-mgr-plus/403-error.html'); yourls_status_header( 403 ); echo $errorpage; - die(); } + die(); + } // Otherwise, render errors in admin interface yourls_redirect( yourls_admin_url( '?access=denied' ), 302 ); die(); @@ -504,7 +505,7 @@ function amp_env_check() { if ( !isset( $amp_allowed_plugin_pages ) ) { $amp_allowed_plugin_pages = array( - 'sleeky-backend' + 'sleeky_backend' ); }