projects
/
WP-Plugins
/
GlmPrototypes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a6c508
)
Fixed wrong capability for Prototype add,delete,edit
author
Chuck Scott
<cscott@gaslightmedia.com>
Tue, 18 Nov 2014 21:29:34 +0000
(16:29 -0500)
committer
Chuck Scott
<cscott@gaslightmedia.com>
Tue, 18 Nov 2014 21:29:34 +0000
(16:29 -0500)
controllers/admin.php
patch
|
blob
|
history
diff --git
a/controllers/admin.php
b/controllers/admin.php
index
1877d65
..
7675e31
100644
(file)
--- 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,