Skip to content

Commit

Permalink
Merge pull request #28 from UTCGilligan/bugfix/UTCT-27-admin-link
Browse files Browse the repository at this point in the history
Bugfix: UTCT-27 admin link
  • Loading branch information
UTCGilligan authored Nov 14, 2023
2 parents bf6cf6e + 9470c55 commit e58cd28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"About" => "https://sleeky.flynntes.com/",
"Contact" => "https://yourls.org/",
"Legal" => "https://yourls.org/",
"Admin" => "/admin"
"Admin" => "/admin/"
];

?>
2 changes: 1 addition & 1 deletion user/plugins/sleeky-backend/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<<HEAD
<style>ul#admin_menu li:not(.frontend_link) {display: none}</style>
HEAD;
Expand Down

0 comments on commit e58cd28

Please sign in to comment.