[xwiki-users] Displaying restricted content on a Document
Good Morning All, I was wondering if there was a way to display a Paragraph that only a set group can see within a document that is set to be viewed by everybody. I have tried to use the include and display Macros that link to a document that has had there access rights restricted, but when I visit the page on a user who doesn't have access they see *"Failed to execute the [include] macro"* Any Suggestions? Thanks -- View this message in context: http://xwiki.475771.n2.nabble.com/Displaying-restricted-content-on-a-Documen... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On Feb 15, 2013, at 11:50 AM, CarlJ <carl@host-factory.co.uk> wrote:
Good Morning All,
I was wondering if there was a way to display a Paragraph that only a set group can see within a document that is set to be viewed by everybody.
I have tried to use the include and display Macros that link to a document that has had there access rights restricted, but when I visit the page on a user who doesn't have access they see *"Failed to execute the [include] macro"*
Any Suggestions?
Sure you can do that by using a script and using the hasAccessLevel API. For example: http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Rights+For+A+User... Thanks -Vincent
Sure you can do that by using a script and using the hasAccessLevel API.
For example: http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Rights+For+A+User...
Thanks -Vincent
Thanks for getting back to me Vincent, so what do I need to use so that only the XWikiSampleGroup can view, I can get it to work using $hasEdit, $hasAdmin, etc. I don't know what to call so that a only group mentioned above can see this infomation Thanks -- View this message in context: http://xwiki.475771.n2.nabble.com/Displaying-restricted-content-on-a-Documen... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
CarlJ -
Vincent Massol