From 3d5927b9826d34a10c7efd78214b5dd3d1749476 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 18 Nov 2014 16:29:34 -0500 Subject: [PATCH] Fixed wrong capability for Prototype add,delete,edit --- controllers/admin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/admin.php b/controllers/admin.php index 1877d65..7675e31 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -197,10 +197,9 @@ class glmProtoAdmin // See if user is permitted to add, edit, and delete prototypes $canEdit = current_user_can('glm_proto_edit'); - $user_ID = get_current_user_id(); if ($canEdit) { add_submenu_page('glm-proto-admin-menu-prototypes', - 'Site Prototypes', 'Add', 'manage_options', + 'Site Prototypes', 'Add', 'glm_proto_edit', 'glm-proto-admin-menu-add', array( $this, -- 2.17.1