projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0b4e3
)
Fix permission check
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 1 Mar 2018 22:03:57 +0000
(17:03 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 1 Mar 2018 22:03:57 +0000
(17:03 -0500)
when searching the user caps it should look for isset and not the
!isset.
classes/glmPluginSupport.php
patch
|
blob
|
history
diff --git
a/classes/glmPluginSupport.php
b/classes/glmPluginSupport.php
index
c8bfd22
..
7b47336
100644
(file)
--- a/
classes/glmPluginSupport.php
+++ b/
classes/glmPluginSupport.php
@@
-462,7
+462,7
@@
function glmMembersUserCan( $cap, $permit )
}
$glmMembersCaps = $glmUser->allcaps;
- if (
!
isset($glmMembersCaps[$cap])) {
+ if (isset($glmMembersCaps[$cap])) {
return $permit;
}