This commit is contained in:
joshp 2021-03-12 00:12:04 -05:00
parent 5d37ab7c4d
commit 09ab9fd0e6
No known key found for this signature in database
GPG Key ID: 59903022E9AC64FC

View File

@ -3,7 +3,7 @@
Plugin Name: Auth Manager Plus Plugin Name: Auth Manager Plus
Plugin URI: https://github.com/joshp23/YOURLS-AuthMgrPlus Plugin URI: https://github.com/joshp23/YOURLS-AuthMgrPlus
Description: Role Based Access Controlls with seperated user data for authenticated users Description: Role Based Access Controlls with seperated user data for authenticated users
Version: 2.2.4 Version: 2.2.5
Author: Josh Panter, nicwaller, Ian Barber <ian.barber@gmail.com> Author: Josh Panter, nicwaller, Ian Barber <ian.barber@gmail.com>
Author URI: https://unfettered.net Author URI: https://unfettered.net
*/ */
@ -166,16 +166,12 @@ function amp_admin_sublinks( $links ) {
} }
if( empty( $links['plugins'] ) ) if( empty( $links['plugins'] ) )
yourls_add_filter( 'admin_links', 'amp_admin_links' ); unset($links['plugins']);
else
sort($links['plugins']); sort($links['plugins']);
return $links; return $links;
} }
function amp_admin_links( $links ) {
unset($links['plugins']);
return $links;
}
/* /*
* Cosmetic filter: displays currently available roles * Cosmetic filter: displays currently available roles
* by hovering mouse over the username in logout link. * by hovering mouse over the username in logout link.