{"action":"created","issue":{"url":"https://api.github.com/repos/betagouv/tps/issues/1677","repository_url":"https://api.github.com/repos/betagouv/tps","labels_url":"https://api.github.com/repos/betagouv/tps/issues/1677/labels{/name}","comments_url":"https://api.github.com/repos/betagouv/tps/issues/1677/comments","events_url":"https://api.github.com/repos/betagouv/tps/issues/1677/events","html_url":"https://github.com/betagouv/tps/issues/1677","id":306897268,"number":1677,"title":"Co-construction impossible pour un utilisateur multi-profil","user":{"login":"kemar","id":281139,"avatar_url":"https://avatars3.githubusercontent.com/u/281139?v=4","gravatar_id":"","url":"https://api.github.com/users/kemar","html_url":"https://github.com/kemar","followers_url":"https://api.github.com/users/kemar/followers","following_url":"https://api.github.com/users/kemar/following{/other_user}","gists_url":"https://api.github.com/users/kemar/gists{/gist_id}","starred_url":"https://api.github.com/users/kemar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kemar/subscriptions","organizations_url":"https://api.github.com/users/kemar/orgs","repos_url":"https://api.github.com/users/kemar/repos","events_url":"https://api.github.com/users/kemar/events{/privacy}","received_events_url":"https://api.github.com/users/kemar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"fredZen","id":356570,"avatar_url":"https://avatars3.githubusercontent.com/u/356570?v=4","gravatar_id":"","url":"https://api.github.com/users/fredZen","html_url":"https://github.com/fredZen","followers_url":"https://api.github.com/users/fredZen/followers","following_url":"https://api.github.com/users/fredZen/following{/other_user}","gists_url":"https://api.github.com/users/fredZen/gists{/gist_id}","starred_url":"https://api.github.com/users/fredZen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredZen/subscriptions","organizations_url":"https://api.github.com/users/fredZen/orgs","repos_url":"https://api.github.com/users/fredZen/repos","events_url":"https://api.github.com/users/fredZen/events{/privacy}","received_events_url":"https://api.github.com/users/fredZen/received_events","type":"User","site_admin":false},"assignees":[{"login":"fredZen","id":356570,"avatar_url":"https://avatars3.githubusercontent.com/u/356570?v=4","gravatar_id":"","url":"https://api.github.com/users/fredZen","html_url":"https://github.com/fredZen","followers_url":"https://api.github.com/users/fredZen/followers","following_url":"https://api.github.com/users/fredZen/following{/other_user}","gists_url":"https://api.github.com/users/fredZen/gists{/gist_id}","starred_url":"https://api.github.com/users/fredZen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredZen/subscriptions","organizations_url":"https://api.github.com/users/fredZen/orgs","repos_url":"https://api.github.com/users/fredZen/repos","events_url":"https://api.github.com/users/fredZen/events{/privacy}","received_events_url":"https://api.github.com/users/fredZen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-03-20T14:45:49Z","updated_at":"2018-03-29T15:17:35Z","closed_at":"2018-03-29T15:16:19Z","author_association":"NONE","body":"Un utilisateur qui a le double profil `usager` et `agent` et qui est invité à co-construire un dossier ne peut pas l'éditer.\r\n\r\n##### Comportement attendu\r\n\r\nL'utilisateur avec double profil `usager` et `agent` peut co-construire le dossier en mode `usager`.\r\n\r\n##### Résultat actuel\r\n\r\nL'utilisateur avec double profil `usager` et `agent`, lorsqu'il est en mode `usager` et qu'il clique sur le bouton \"ÉDITER\" afin de co-construire, est automatiquement basculé en mode `agent` et ne peut pas co-construire le dossier.\r\n\r\n##### Étapes pour répliquer\r\n\r\n1. Déposer un dossier\r\n1. Inviter un co-constructeur multi-profil (`usager` et `agent`) à co-construire le dossier\r\n1. Se déconnecter\r\n1. Suivre le lien envoyé par e-mail au co-constructeur\r\n1. Se connecter en tant que co-constructeur et s'assurer d'être en statut `usager`\r\n1. Trouver le bouton \"ÉDITER\" (cf. screenshot ci-dessous)\r\n1. Cliquer sur \"ÉDITER\"\r\n\r\n![captureds](https://user-images.githubusercontent.com/281139/37661645-96a0ca38-2c55-11e8-9816-7335792eed6e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/betagouv/tps/issues/comments/377269648","html_url":"https://github.com/betagouv/tps/issues/1677#issuecomment-377269648","issue_url":"https://api.github.com/repos/betagouv/tps/issues/1677","id":377269648,"user":{"login":"kemar","id":281139,"avatar_url":"https://avatars3.githubusercontent.com/u/281139?v=4","gravatar_id":"","url":"https://api.github.com/users/kemar","html_url":"https://github.com/kemar","followers_url":"https://api.github.com/users/kemar/followers","following_url":"https://api.github.com/users/kemar/following{/other_user}","gists_url":"https://api.github.com/users/kemar/gists{/gist_id}","starred_url":"https://api.github.com/users/kemar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kemar/subscriptions","organizations_url":"https://api.github.com/users/kemar/orgs","repos_url":"https://api.github.com/users/kemar/repos","events_url":"https://api.github.com/users/kemar/events{/privacy}","received_events_url":"https://api.github.com/users/kemar/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T15:17:35Z","updated_at":"2018-03-29T15:17:35Z","author_association":"NONE","body":"Thanx @fredZen :)"}}
{"actor":{"display_login":"kemar"}}