"give away" object

Author Message

paul bolger

Thursday 14 April 2011 6:47:40 pm

I'm building a site where logged in users can create and edit some objects, events and a custom organisation class. I would like to provide a method for the owners of an object to be able to give away, transfer ownership, an object to another registered user without having to ask an administrator to step in. Can anyone suggest how I would do this?

Paul Bolger

Ivo Lukac

Friday 15 April 2011 12:25:29 am

Try this one: http://projects.ez.no/change_owner

Would need some adjustments...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Marko Žmak

Saturday 16 April 2011 5:27:03 am

P.S. You should be very carefull about giving users the ability to change ownership of and object. If you don't set the permissions or restrictions right it might happen than a user takes ownership of the entire site. Or even take ownership of the admin user and then change it's password.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

paul bolger

Sunday 17 April 2011 1:24:26 pm

"

Try this one: http://projects.ez.no/change_owner

Would need some adjustments.

"

Thanks Ivo, although I discovered that the readme is a bit, er, wrong. To construct a browse link you need to use

/owner/change/<node id> rather than /owner/browse/<node id.

Unfortunately it's not a great deal of use though, as it doesn't allow role setting beyond 'allow full access'. In my case I need 'allow only on self-owned objects' and, as Žmak points out, I'd be certifiable to allow this to users with no restrictions.

So, it's a great little extension (come back Xavier, we miss you!), but would be a killer with a bit of improvement. Any takers?

/owner/browse/

Paul Bolger

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.