From a1e3c163b5e603ebb763ad20aaf04cdc428fc6ca Mon Sep 17 00:00:00 2001 From: jdub233 Date: Mon, 31 Oct 2016 15:21:00 -0400 Subject: [PATCH] open up permissions for setting api key manage_options is too restrictive, try manage_categories --- admin/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/admin.php b/admin/admin.php index 98c9942..73ab4fe 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -112,7 +112,7 @@ function bu_liaison_inquiry_options_page() { add_options_page( 'Liaison API Keys', 'Liaison API Keys', - 'manage_options', + 'manage_categories', 'bu_liaison_inquiry', 'bu_liaison_inquiry_options_page_html' ); @@ -128,7 +128,7 @@ function bu_liaison_inquiry_options_page() { */ function bu_liaison_inquiry_options_page_html() { // Check user capabilities. - if ( ! current_user_can( 'manage_options' ) ) { + if ( ! current_user_can( 'manage_categories' ) ) { return; }