|
Re: [CDO] How to list a folder content taking into account permissions [message #1062986 is a reply to message #1062952] |
Tue, 11 June 2013 15:42 |
|
Am 11.06.2013 16:12, schrieb Marc Gil:
> Hi, I'm having problems listing the available resources for a user. The folder structure looks like following:
>
> ROOT
> |-> folder1
> |-> folderA
> |-> resourceA1
> |-> resourceA2
> |-> resourceB
> |-> resourceC
>
>
> The user "User" has WRITE Resource Permission on the pattern "/folder1/folderA.*", so in principle he can list
> "folderA" contents.
>
> But the fact is that he can't list it, due to he has not permission on "folder1".
Well, he actually can list the contents of folder, but not the contents of folder1. If you set folderA as the input of
your viewer all should be good.
>
> There exist any way to indicate that he can list only the contents of "folderA", but not the resources "resourceB" and
> "resourceC"? The result should be the following:
>
> ROOT
> |-> folder1
> |-> folderA
> |-> resourceA1
> |-> resourceA2
Hmm, maybe the array of path segments could be derived from just accessing folderA. I would have to play with it.
In general you seem to have the problem that we do not support partial permissions on objects, i.e., permissions on
feature subsets. You can't grant access to folder1's name and parent folder, but not to its (child) nodes list.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03535 seconds