Fixed wrong capability for Prototype add,delete,edit
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 18 Nov 2014 21:29:34 +0000 (16:29 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 18 Nov 2014 21:29:34 +0000 (16:29 -0500)
controllers/admin.php

index 1877d65..7675e31 100644 (file)
@@ -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,