[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
As for the "bug", I have not been able yet to find a pattern. It happens with some users, but not with others. And I am not able to find the differences between them concerning rights assignments. Come back as soon as possible.
Thanks!
The differences comes from the number/order of the spaces each user has access to. Given three fora, each of them with its own space, see these results... José Carlos can only view the first one: http://mire.environmentalchange.net/~webmaster/images/BBCodeViewFirst.png Cruz, the first and the second ones: http://mire.environmentalchange.net/~webmaster/images/BBCodeViewFirstSecond.... My own user has view access to all three fora: http://mire.environmentalchange.net/~webmaster/images/BBCodeViewAllThree.png Flavio, second and third: http://mire.environmentalchange.net/~webmaster/images/BBCodeViewSecondThird.... Manuel, just second: http://mire.environmentalchange.net/~webmaster/images/BBCodeViewSecond.png Arturo, only to the third: http://mire.environmentalchange.net/~webmaster/images/BBCodeViewThird.png And Mónica no view access to any fora: http://mire.environmentalchange.net/~webmaster/images/BBCodeViewNone.png "Extra" links point to the right forum even though access is denied when clicked. This code works fine for me... #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") #foreach($item in $xwiki.searchDocuments($sql)) #if($xwiki.getDocument($item).hasAccessLevel('view', $context.user) == 'true') #if ($xwiki.getDocument($item).getValue('bbtitle') != "") * [$xwiki.getDocument($item).display('bbtitle')>$item] #else * [$item] #end #end #end The only difference is that I've removed #set ($bbdoc = $xwiki.getDocument($item)) and used $xwiki.getDocument($item) instead of $bbdoc. The point seems to be how $bbdoc is assigned within the control structure #foreach. Does this make sense for you? Thanks! Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team