Added a check for the options page to only load if the user has sufficient rights

This commit is contained in:
2026-07-21 17:32:21 +02:00
parent 4bf2d4c049
commit 5193324625
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -75,6 +75,10 @@ function wp_jdt_settings()
function wp_jdt_settings_page()
{
// Admin side page options
if (!current_user_can('manage_options')) {
return;
}
$wp_jdt_info = get_option('wp_jdt_info');
$wp_jdt_paging = get_option('wp_jdt_paging');
$wp_jdt_page_length = get_option('wp_jdt_page_length');