johndoh/roundcube-globaladdressbook

Copy contact from global address book to private moves it, does not create copy

Closed this issue · 7 comments

I'm using the plugin with RC 1.0. It works fine, it's configured to allow all users to edit global entries. When trying to copy a contact to a private address book then it moves the whole contact from the global to the privat address book, i.e. the contact is not in the global address book any more. Is it needed to limit write/edit access to admin users to make a copy to the private address book?

What method are you using to copy the contact? I think what you are referring too is just how Roundcube works.

I'm just using the web interface, clicking the contact in the global address book and dragging into the private address book. This moves it to the private one, removing it from the public one. I'm not using any additional plugin (like a customized version of 'additional_addressbook'). I know from former testing that copy contacts between addressbooks is possible: The Carddav-Plugin allows this. Therefore, I assumed that it's just a matter of the plugin code/config. Thanks for giving me some idea. I still have not checked what will happen if the global address book is readonly and the user tries to drag a contact into his own private address book.

confirmed, this is intended behaviour. see this commit roundcube/roundcubemail@a45f9b7 you can get a menu so you can choose copy or move if you hold down shift.

i can also see what you mean as far as the globaladdressbook goes. it is possible an admin might want to allow users to add or edit entries but not delete them.

ah, that's the solution! holding down shift allows to create a copy. great hint! many thanks for your patience and support.

more granular user permissions added in git-master. and an optoin to force copy rather than move.

Dear JohnDoh, your software works great, I really appreciate your work. I have one question where I would appreciate some guidance: My use scenario holds contacts in the Public Address Book with subsets in user address books. When updating a contact, I cannot simply update the one in PAB, then "copy over" the one in private AB - Roundcube tells me that contact with same name already exists and therefore copy cannot be done. I haven't found any indication so far how to solve this, and I'm not a pro with knowledge about RC structure and programming. Therefore I would appreciate if you could give me a hint... :-) Sorry in advance for raising this "off-topic" question.

I think thats just now RC works, it wont let you overwrite. I think the solution would be to use a plugin that syncronised the two - as you edit one it automatically updates the other.