Fix permission check
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 1 Mar 2018 22:03:57 +0000 (17:03 -0500)
committerSteve 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

index c8bfd22..7b47336 100644 (file)
@@ -462,7 +462,7 @@ function glmMembersUserCan( $cap, $permit )
     }
     $glmMembersCaps = $glmUser->allcaps;
 
-    if (!isset($glmMembersCaps[$cap])) {
+    if (isset($glmMembersCaps[$cap])) {
         return $permit;
     }