Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
0013426: deleteUser fails partly saying you don't have permission #6641
Reported by lab-at-nohl on 10 Sep 2017 23:46
Version: 2017.08.3 Community Edition
On deleting a user my installation says: "Sie sind nicht berechtigt, diese Aktion auszuführen".
The log (additional information) shows: "It is not allowed to delete a contact linked to an user account!"
It seems to me that deleting users is broken but it still works partly.
Steps to reproduce: Anyway, account is removed from Ldap and not shown in admin's list anymore. But you can't create another user with the same name. I guess an ActionQueue job will delete it from database later. But without deleting the account you can't delete the contact meanwhile it seems...
I don't know if account will be removed by ActionQueue finally because I deleted it in Db (didn't realize the ActionQueue before).
Additional information: 55189 6b156 admin - 2017-09-10T23:09:32+00:00 DEBUG (7): Tinebase_User_Ldap::_getLdapEntry::677 filter (&(objectclass=posixaccount)(entryuuid=958ba4f6-2ac8-1037-99f7-e53f52d623db))
Comment posted by pmehrer on 12 Sep 2017 10:50
Thank you for reporting this issue. We have fixed it.
you can resolve it by removing the complete method body of \Addressbook_Controller_Contact::inspectDeleteUser in the file Addressbook/Controller/Contact.php ~ line 1111
one comment on your Redis ActionQueue: is it working properly? If setup correctly it does, but it needs proper setup. So if you are unsure if it is setup correctly, it may not be so. In doubt don't use it. It is a rather advanced feature. Of course you are very welcome to use it if it works for you.