{"action":"opened","issue":{"url":"https://api.github.com/repos/kanboard/kanboard/issues/2905","repository_url":"https://api.github.com/repos/kanboard/kanboard","labels_url":"https://api.github.com/repos/kanboard/kanboard/issues/2905/labels{/name}","comments_url":"https://api.github.com/repos/kanboard/kanboard/issues/2905/comments","events_url":"https://api.github.com/repos/kanboard/kanboard/issues/2905/events","html_url":"https://github.com/kanboard/kanboard/issues/2905","id":197420298,"number":2905,"title":"Bug: Private projects removed after deleting a user","user":{"login":"marienfressinaud","id":1436309,"avatar_url":"https://avatars.githubusercontent.com/u/1436309?v=3","gravatar_id":"","url":"https://api.github.com/users/marienfressinaud","html_url":"https://github.com/marienfressinaud","followers_url":"https://api.github.com/users/marienfressinaud/followers","following_url":"https://api.github.com/users/marienfressinaud/following{/other_user}","gists_url":"https://api.github.com/users/marienfressinaud/gists{/gist_id}","starred_url":"https://api.github.com/users/marienfressinaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marienfressinaud/subscriptions","organizations_url":"https://api.github.com/users/marienfressinaud/orgs","repos_url":"https://api.github.com/users/marienfressinaud/repos","events_url":"https://api.github.com/users/marienfressinaud/events{/privacy}","received_events_url":"https://api.github.com/users/marienfressinaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-23T20:00:13Z","updated_at":"2016-12-23T20:00:13Z","closed_at":null,"body":"### Expected behaviour\r\n\r\nAfter deleting a user which is not the owner of a private project, I expect project to not be deleted.\r\n\r\n### Actual behaviour\r\n\r\nAfter deleting a user associated to a private project, the project disappears. It makes sense if there is only one user associated to the project… but it was not the case (which may be the real bug).\r\n\r\n### Steps to reproduce\r\n\r\n1. Create a project and change to \"private project\"\r\n2. Create a user and associate it to this project \r\n3. Delete the user\r\n\r\nOr\r\n\r\n1. Create a project\r\n2. Associate some users to it\r\n3. Change to \"private project\"\r\n4. Delete a user\r\n\r\n### Configuration\r\n\r\n    Version de l'application : 1.0.34\r\n    Version de PHP : 5.6\r\n    Type de base de données : sqlite\r\n    Version de la base de donnée : 3.8.7.1\r\n    Navigateur web : Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0\r\n\r\n\r\n"}}
{"actor":{"display_login":"marienfressinaud"}}