Re: Access modifiers

Adam Tauno Williams <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Organization Morrison Industries
Message-ID <[email protected]>
> > Does anyone have any notes or code snippets concerning these methods:
> > access.operationAllowedOnObjectsForAccess
> > access.setOperationOnObjectForAccess
> Did you see:
>    http://mail.opengroupware.org/pipermail/xmlrpc/2004-July/000213.html
> and the original message?

Yes.

<quote>
>> is there any way to set the access rights (Zugriffsrechte) with rpc?
> Looking at the source code I see implementations of
> bool access.operationAllowedOnObjectsForAccessAction(op, objects, 
access)
> bool access.setOperationOnObjectForAccessAction(op, object, access)
> "op" should be a string like "r" or "rw"
> "objects" should be an array of strings containing the object-pkeys
> I think you should pass "None" for "access" (apparently for addressing 
> specific ACL entries)
</quote>

> >  - which I presume are for modifying the access permissions on an
> > object?

It just isn't entirely clear to me.

One always passes "None" to "access"?

operationAllowedOnObjectsForAccessAction returns true or false IF the
operation specified in "op" is permitted in all objects listed in
object?

Testing with xmlrpc_call never gets me anything but zero -
$ xmlrpc_call http://throw/RPC2
'access.operationAllowedOnObjectsForAccess' 'w' '619730' 'None'
login:    adam
password:
0
- would test write access to object 619730 by current user`?

setOperationOnObjectForAccessAction sets a permission on objects (param
#2) to the permissions specified in op (param #1)?  And param #3 is
always "None"?
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBCVTH5LRePpNle04MRAjrhAJ0RzOQ+YACrAP1FKRXd8BHLS8dO8ACfX6Yl
1KxLtqFfhTiJRgFMbumswew=
=3Ft4
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.