Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit 90a9e62

Browse files
committed
fixes #399
fixes #399
1 parent 89ca15d commit 90a9e62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Hyyan/WPI/Admin/Settings.php

+2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ public function init()
5252
*/
5353
public function registerMenu()
5454
{
55+
if ( current_user_can( 'manage_options' ) ) {
5556
add_options_page(
5657
__('Hyyan WooCommerce Polylang Integration', 'woo-poly-integration'), __('WooPoly', 'woo-poly-integration'), 'delete_posts', 'hyyan-wpi', array($this, 'outputPage')
5758
);
59+
}
5860
}
5961

6062
/**

0 commit comments

Comments
 (0)