Emiliano wrote:

> "John P . Looney" wrote:
> 
> 
>>>>  I tried this out - it seems to list all the topics on the system - even
>>>> in other sitegroups. Is that supposed to happen ?
>>> 
>>> Absolutely not, unless you're logged in as root.
>> 
>>  Interesting;
>> 
>>  I'm doing the mgd_list_topics() in sitegroup 1 - just the top level ones.
>> As you can see from:
>> 
>>     http://midgard.linux.ie/
>> 
>>  the sidebar is listing all of them (the top one is static). Wierd.
> 
> 
> Nope. All SG0 stuff is available read-only to all sitegroups. If you
> want total
> separation of even the adminsite resources, you'd have to use multidb.

or you can use this ind of script:

if($tlist = mgd_list_topic(0)) while($tlist->fetch()) {
   if($tlist->sitegroup) {
     ... display topic ...
   }
}


> Emile

-- 
Best Regards,
David Guerizec           Free Software Developer
Aurora R&D               [EMAIL PROTECTED]
Midgard core developer   http://www.midgard-project.org/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to