Hi Sachin, The programming rights work a bit different. The check is not if the current logged user has programming rights, but if the person that saved the page(document) last time has them. For example, if the page that executes the search is created/saved by an admin that has programming rights, inside it you can execute scripts that require programming rights even though the current user doesn't have them.
Hope this helps, Cristian > > Hi, > I am working on an application that relies heavily on custom search to get > the data to client. > I have looked at the xwiki api and it seems that seerch method needs > programming rights. > > Now every user would not have programming rights. > > So could you please let me know how can I execute such search methods from > within my velocity code. > > One way would be to use my custom search plugin to bypass the xwiki > programming rights. > > I have also see the xwiki reference page for search queries and there are > some where no result is displayed, and this is probably because when we > access the page there is no access for guest user or logged in user to > execute those queries. > http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamplesMacro > > So again can't the search apis move out of programming rights? > > Thanks > Sachin > > > ----- > http://www.assembla.com/wiki/show/sachin_mittal about me: > -- > View this message in context: > http://www.nabble.com/Using-search-apis-tp17315167p17315167.html > Sent from the XWiki- Dev mailing list archive at Nabble.com. > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

