There's a problem indeed... 

Here is the code : 

#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='BBCode.BBClass' and obj.name<>'BBCode.BBClassTemplate' order by doc.date desc")

#set($bbs = $xwiki.searchDocuments($sql))


#foreach ($item in $bbs)

#set ($bbdoc = $xwiki.getDocument($item))


#if ($bbdoc.hasAccessLevel('view', $context.user) == 'true')

#if ($bbdoc.getValue('bbtitle') != "") 

* [$bbdoc.display('bbtitle')>$item] 

#else

* [$item] 

#end

#end

#end


-> the check on rights is done before the moment each Bulletin Board is displayed, so it may have something to do with the rights configuration... Do you explicitely deny the view right to your user ? 

(Locally when I deny view right to an user he cannot see the bulletin boards he can't access in the list, ie I don't get the bug)


In the meanwhile I've updated the XAR for the panel to read My instead of Your ;-)


Guillaume


On 21/02/2008, [Ricardo Rodriguez] <webmaster@environmentalchange.net> wrote:
Hi!
Guillaume Lerouge wrote:
This version adds a few layout changes and introduces a new panel that lists the bulletin boards an user has access to in a given wiki, available at [ Panels.BulletinBoardList] Hope you will like it, Guillaume
I do! At least for us, this is a longly desired application/feature. Of course we will use it and report back any issue. I know it will be desirable we can contribute in a more active way, but I am afraid we have to keep learning prior to be helpful. Just a detail and another thing that could be considered as a bug: 1. The title of the panel list reads: "Your Bulleting Boards". There is another useful panel listing recent modifications that reads "My Recent Modifications". I do prefer the "my" instead of the "your": the user has this nice feeling of control over what s/he is accessing. Of course it is quite easy to modify this, but you have to do that each time the panel is reimported. I don't know it if is worthing to consider this. 2. See this... http://mire.environmentalchange.net/~webmaster/images/BBCodeRRodriguez.png I've rights to read all three BB created in this wiki. So, the panel shows the right contents. But see this... http://mire.environmentalchange.net/~webmaster/images/BBCodeXPontevedra.png User Xabier has access only to BB Red Natura 2000. Each one of the three links points to one of the three created BB to which I've access, but access is correctly denied. Perhaps this makes sense for your before I am able to dig into the code to see what is happening here. Thanks! Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team

View this message in context: Re: Bulletin Board cannot display topic title and first post !?
Sent from the XWiki- Users mailing list archive at Nabble.com.

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users




--
http://wikibc.blogspot.com/