Hi Paul,

You can use this :
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/5.2/xwiki-platform-oldcore-5.2-javadoc.jar/!/com/xpn/xwiki/api/Document.html#hasAccessLevel(java.lang.String,
java.lang.String)

Or this since 6.1RC

http://extensions.xwiki.org/xwiki/bin/view/Extension/Security+Module#HScriptingAPI28since6.1RC129

Sidali

2015-02-13 7:51 GMT+01:00 Paul Libbrecht <[email protected]>:

> That's what I understand too and do not know how to make.
> I see no ways to invoke checkAccess indicating a user.
>
> paul
>
>
> On 13/02/15 01:23, Eduard Moraru wrote:
>
>> Hi,
>>
>> What do you mean by that?
>>
>> What I understand is that you want to check view rights on the user
>> XWiki.XWikiGuest.
>>
>> Thanks,
>> Eduard
>>
>> On Fri, Feb 13, 2015 at 12:39 AM, Paul Libbrecht <[email protected]>
>> wrote:
>>
>>  Hello dear fellow XWikiers,
>>>
>>> what can I do to check if a document is publicly readable?
>>>
>>> thanks in advance.
>>>
>>> Paul
>>> _______________________________________________
>>> devs mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>
>>>  _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to