[Grok-dev] Re: Local permissions?
    Luis De la Parra 
    lparrab at gmx.net
       
    Tue Jul  3 19:02:48 EDT 2007
    
    
  
Luis De la Parra wrote:
> but how do you allow him to only edit his own files? Is there a way to
> grant the permission only for certain objects?
...ok. never mind.
Just doing it the "obvious" way seems to work. I added this lines in
my "AddForm"
pmanager = IPrincipalPermissionManager( obj ) #obj > content we are creating
pmanager.grantPermissionToPrincipal('yo.edit', principal.id)
and it does the trick. --only the creator can edit the object--
cheers. luis
    
    
More information about the Grok-dev
mailing list