[pmwiki-users] hide links for certain groups

Randy Brown alongkiss at aprivatespot.com
Fri Apr 1 02:01:04 CDT 2011


Although Robert's question was specific to Windows active directory, he's touched on a more general problem: how would you check within config whether someone is a member of an authuser group?

I tested this function on a group called "@members" after including authuser.php, but it didn't work:

function isMember($str) {
     $memberarray = $AuthUser['@members'];
     foreach ($memberarray as $m) {
          if ($m==$str) {
               return true;
          }
     }
     return false;
}

Randy

On Mar 31, 2011, at 2:53 PM, Vince Administration wrote:
>> 
> The question I would ask is: "How do you determine if a user is a member of the AD group?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110401/4c332f00/attachment.html>


More information about the pmwiki-users mailing list