Skip to content

Commit

Permalink
open up permissions for setting api key
Browse files Browse the repository at this point in the history
manage_options is too restrictive, try manage_categories
  • Loading branch information
jdub233 committed Oct 31, 2016
1 parent 0037ddc commit a1e3c16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand All @@ -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;
}

Expand Down

0 comments on commit a1e3c16

Please sign in to comment.