PDA

Click to See Complete Forum and Search --> : Access to shares and streams



Somar
10-06-2002, 04:47 AM
How can I use the Client.readAccess and Client.writeAccess to allow only reading from a certain SharedObject/Stream.

eg. Something along the lines of:



application.onConnect(newClient,user){
newClient.writeAccess = "";
newClient.readAccess = user+"/";
application.acceptConnection(newClient);
}


Later,
Somar!

psychlonex
10-06-2002, 10:07 AM
Did you try it? It's hard to tell from the docs if it's possible or not. they mention directories but nothing about individual streams other than to imply that it might be possible. I'd try something like this?



application.onConnect(newClient,user){
newClient.writeAccess = "/mystreams/"+user;
newClient.readAccess ="/mystreams/"+user;
application.acceptConnection(newClient);
}



Psx