{"action":"created","issue":{"url":"https://api.github.com/repos/artragis/zds-site/issues/207","labels_url":"https://api.github.com/repos/artragis/zds-site/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/artragis/zds-site/issues/207/comments","events_url":"https://api.github.com/repos/artragis/zds-site/issues/207/events","html_url":"https://github.com/artragis/zds-site/issues/207","id":95996681,"number":207,"title":"Supprimer le contenu doit enlever de la liste d'auteur","user":{"login":"pierre-24","id":7889675,"avatar_url":"https://avatars.githubusercontent.com/u/7889675?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-24","html_url":"https://github.com/pierre-24","followers_url":"https://api.github.com/users/pierre-24/followers","following_url":"https://api.github.com/users/pierre-24/following{/other_user}","gists_url":"https://api.github.com/users/pierre-24/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-24/subscriptions","organizations_url":"https://api.github.com/users/pierre-24/orgs","repos_url":"https://api.github.com/users/pierre-24/repos","events_url":"https://api.github.com/users/pierre-24/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/artragis/zds-site/labels/need-QA","name":"need-QA","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-20T06:34:01Z","updated_at":"2015-07-20T10:02:53Z","closed_at":null,"body":"Autrement dit,\r\n\r\n+ Si il y a plusieurs auteurs et que l'un clique sur \"supprimer\", c'est lui qui est retiré de la liste d'auteur et le contenu n'est pas supprimé\r\n+ Si il n'y a qu'un seul auteur, le contenu est supprimé normalement\r\n\r\n(comme c'est un comportement de *prod*, autant le remettre pour éviter les surprises)"},"comment":{"url":"https://api.github.com/repos/artragis/zds-site/issues/comments/122832163","html_url":"https://github.com/artragis/zds-site/issues/207#issuecomment-122832163","issue_url":"https://api.github.com/repos/artragis/zds-site/issues/207","id":122832163,"user":{"login":"pierre-24","id":7889675,"avatar_url":"https://avatars.githubusercontent.com/u/7889675?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-24","html_url":"https://github.com/pierre-24","followers_url":"https://api.github.com/users/pierre-24/followers","following_url":"https://api.github.com/users/pierre-24/following{/other_user}","gists_url":"https://api.github.com/users/pierre-24/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-24/subscriptions","organizations_url":"https://api.github.com/users/pierre-24/orgs","repos_url":"https://api.github.com/users/pierre-24/repos","events_url":"https://api.github.com/users/pierre-24/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-24/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T10:02:53Z","updated_at":"2015-07-20T10:02:53Z","body":"En fait:\r\n\r\n1. En *prod*, actuellement, quand il y a plusieurs auteurs et que l'un deux clique sur \"supprimer\", l'auteur est juste retiré de la liste (et le contenu n'est pas supprimé). Puis tu te mange une 403\r\n2. Le comportement actuel de la ZEP-12 est le suivant: quelque soit le nombre d'auteurs, si y'en a un qui clique sur \"supprimer\", le contenu est détruit, et on est bien redirigé.\r\n\r\nDonc cette PR fait en sorte qu'on soit *iso*-prod, on a le bon comportement quand on a plusieurs auteurs ET on est bien redirigé sans 403 :-)\r\n\r\nAutrement dit, ton bug est corrigé sur la ZEP-12, mais je corrige le fait que la ZEP-12 ne se comporte pas comme ce qui est actuellement."}}