Re: [xwiki-users] Displaying restricted content on a Document

2013-02-15 Thread CarlJ
>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+On+A+Page

>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-Document-tp7583892p7583894.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Displaying restricted content on a Document

2013-02-15 Thread Vincent Massol
Hi,

On Feb 15, 2013, at 11:50 AM, CarlJ  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+On+A+Page

Thanks
-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Displaying restricted content on a Document

2013-02-15 Thread CarlJ
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-Document-tp7583892.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users