{"action":"created","comment":{"url":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments/121081675","pull_request_review_id":43103542,"id":121081675,"diff_hunk":"@@ -46,6 +46,30 @@ app.controller(function(Message) {\n   })\n \n   /**\n+   * Supprime le message avec l'identifiant indiqué.\n+   *\n+   * @param context\n+   */\n+  this.delete('api/messages/:oid', function(context) {\n+    var login = context.session.utilisateur.login;","path":"sesalab-api/source/message/controller.js","position":9,"original_position":9,"commit_id":"ec5f76d8f06e570ac1f13e11295451e9da2305d5","original_commit_id":"ec5f76d8f06e570ac1f13e11295451e9da2305d5","user":{"login":"adrien-k","id":5595458,"avatar_url":"https://avatars0.githubusercontent.com/u/5595458?v=3","gravatar_id":"","url":"https://api.github.com/users/adrien-k","html_url":"https://github.com/adrien-k","followers_url":"https://api.github.com/users/adrien-k/followers","following_url":"https://api.github.com/users/adrien-k/following{/other_user}","gists_url":"https://api.github.com/users/adrien-k/gists{/gist_id}","starred_url":"https://api.github.com/users/adrien-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrien-k/subscriptions","organizations_url":"https://api.github.com/users/adrien-k/orgs","repos_url":"https://api.github.com/users/adrien-k/repos","events_url":"https://api.github.com/users/adrien-k/events{/privacy}","received_events_url":"https://api.github.com/users/adrien-k/received_events","type":"User","site_admin":false},"body":"Ne pas oublier de vérifier que l'utilisateur loggé est bien gestionnaire.\r\n\r\n(idem pour le put, vérifier que l'utilisateur est gestionnaire + que le message modifié est bien le sien)","created_at":"2017-06-09T09:10:05Z","updated_at":"2017-06-09T09:10:05Z","html_url":"https://github.com/Sesamath/sesalab/pull/270#discussion_r121081675","pull_request_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/270","_links":{"self":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments/121081675"},"html":{"href":"https://github.com/Sesamath/sesalab/pull/270#discussion_r121081675"},"pull_request":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/270"}}},"pull_request":{"url":"https://api.github.com/repos/Sesamath/sesalab/pulls/270","id":124680700,"html_url":"https://github.com/Sesamath/sesalab/pull/270","diff_url":"https://github.com/Sesamath/sesalab/pull/270.diff","patch_url":"https://github.com/Sesamath/sesalab/pull/270.patch","issue_url":"https://api.github.com/repos/Sesamath/sesalab/issues/270","number":270,"state":"open","locked":false,"title":"Allow users to remove messages","user":{"login":"DonoSybrix","id":3781087,"avatar_url":"https://avatars3.githubusercontent.com/u/3781087?v=3","gravatar_id":"","url":"https://api.github.com/users/DonoSybrix","html_url":"https://github.com/DonoSybrix","followers_url":"https://api.github.com/users/DonoSybrix/followers","following_url":"https://api.github.com/users/DonoSybrix/following{/other_user}","gists_url":"https://api.github.com/users/DonoSybrix/gists{/gist_id}","starred_url":"https://api.github.com/users/DonoSybrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonoSybrix/subscriptions","organizations_url":"https://api.github.com/users/DonoSybrix/orgs","repos_url":"https://api.github.com/users/DonoSybrix/repos","events_url":"https://api.github.com/users/DonoSybrix/events{/privacy}","received_events_url":"https://api.github.com/users/DonoSybrix/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-08T15:34:35Z","updated_at":"2017-06-09T09:10:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"028e8be1b4805ceff7d870fe9ac76f6a1d076d25","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/270/commits","review_comments_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/270/comments","review_comment_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sesamath/sesalab/issues/270/comments","statuses_url":"https://api.github.com/repos/Sesamath/sesalab/statuses/ec5f76d8f06e570ac1f13e11295451e9da2305d5","head":{"label":"Sesamath:sesalab-gestion-message-delete","ref":"sesalab-gestion-message-delete","sha":"ec5f76d8f06e570ac1f13e11295451e9da2305d5","user":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"repo":{"id":79142233,"name":"sesalab","full_name":"Sesamath/sesalab","owner":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sesamath/sesalab","description":"Un gestionnaire de séances pédagogiques, utilisé pour labomep.sesamath.net","fork":false,"url":"https://api.github.com/repos/Sesamath/sesalab","forks_url":"https://api.github.com/repos/Sesamath/sesalab/forks","keys_url":"https://api.github.com/repos/Sesamath/sesalab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sesamath/sesalab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sesamath/sesalab/teams","hooks_url":"https://api.github.com/repos/Sesamath/sesalab/hooks","issue_events_url":"https://api.github.com/repos/Sesamath/sesalab/issues/events{/number}","events_url":"https://api.github.com/repos/Sesamath/sesalab/events","assignees_url":"https://api.github.com/repos/Sesamath/sesalab/assignees{/user}","branches_url":"https://api.github.com/repos/Sesamath/sesalab/branches{/branch}","tags_url":"https://api.github.com/repos/Sesamath/sesalab/tags","blobs_url":"https://api.github.com/repos/Sesamath/sesalab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sesamath/sesalab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sesamath/sesalab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sesamath/sesalab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sesamath/sesalab/statuses/{sha}","languages_url":"https://api.github.com/repos/Sesamath/sesalab/languages","stargazers_url":"https://api.github.com/repos/Sesamath/sesalab/stargazers","contributors_url":"https://api.github.com/repos/Sesamath/sesalab/contributors","subscribers_url":"https://api.github.com/repos/Sesamath/sesalab/subscribers","subscription_url":"https://api.github.com/repos/Sesamath/sesalab/subscription","commits_url":"https://api.github.com/repos/Sesamath/sesalab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sesamath/sesalab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sesamath/sesalab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sesamath/sesalab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sesamath/sesalab/contents/{+path}","compare_url":"https://api.github.com/repos/Sesamath/sesalab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sesamath/sesalab/merges","archive_url":"https://api.github.com/repos/Sesamath/sesalab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sesamath/sesalab/downloads","issues_url":"https://api.github.com/repos/Sesamath/sesalab/issues{/number}","pulls_url":"https://api.github.com/repos/Sesamath/sesalab/pulls{/number}","milestones_url":"https://api.github.com/repos/Sesamath/sesalab/milestones{/number}","notifications_url":"https://api.github.com/repos/Sesamath/sesalab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sesamath/sesalab/labels{/name}","releases_url":"https://api.github.com/repos/Sesamath/sesalab/releases{/id}","deployments_url":"https://api.github.com/repos/Sesamath/sesalab/deployments","created_at":"2017-01-16T17:31:11Z","updated_at":"2017-01-16T17:32:00Z","pushed_at":"2017-06-08T15:34:35Z","git_url":"git://github.com/Sesamath/sesalab.git","ssh_url":"git@github.com:Sesamath/sesalab.git","clone_url":"https://github.com/Sesamath/sesalab.git","svn_url":"https://github.com/Sesamath/sesalab","homepage":null,"size":8480,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Sesamath:master","ref":"master","sha":"f2d1935b046de3227e6aafd135c47256fbbb66e5","user":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"repo":{"id":79142233,"name":"sesalab","full_name":"Sesamath/sesalab","owner":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sesamath/sesalab","description":"Un gestionnaire de séances pédagogiques, utilisé pour labomep.sesamath.net","fork":false,"url":"https://api.github.com/repos/Sesamath/sesalab","forks_url":"https://api.github.com/repos/Sesamath/sesalab/forks","keys_url":"https://api.github.com/repos/Sesamath/sesalab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sesamath/sesalab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sesamath/sesalab/teams","hooks_url":"https://api.github.com/repos/Sesamath/sesalab/hooks","issue_events_url":"https://api.github.com/repos/Sesamath/sesalab/issues/events{/number}","events_url":"https://api.github.com/repos/Sesamath/sesalab/events","assignees_url":"https://api.github.com/repos/Sesamath/sesalab/assignees{/user}","branches_url":"https://api.github.com/repos/Sesamath/sesalab/branches{/branch}","tags_url":"https://api.github.com/repos/Sesamath/sesalab/tags","blobs_url":"https://api.github.com/repos/Sesamath/sesalab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sesamath/sesalab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sesamath/sesalab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sesamath/sesalab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sesamath/sesalab/statuses/{sha}","languages_url":"https://api.github.com/repos/Sesamath/sesalab/languages","stargazers_url":"https://api.github.com/repos/Sesamath/sesalab/stargazers","contributors_url":"https://api.github.com/repos/Sesamath/sesalab/contributors","subscribers_url":"https://api.github.com/repos/Sesamath/sesalab/subscribers","subscription_url":"https://api.github.com/repos/Sesamath/sesalab/subscription","commits_url":"https://api.github.com/repos/Sesamath/sesalab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sesamath/sesalab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sesamath/sesalab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sesamath/sesalab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sesamath/sesalab/contents/{+path}","compare_url":"https://api.github.com/repos/Sesamath/sesalab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sesamath/sesalab/merges","archive_url":"https://api.github.com/repos/Sesamath/sesalab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sesamath/sesalab/downloads","issues_url":"https://api.github.com/repos/Sesamath/sesalab/issues{/number}","pulls_url":"https://api.github.com/repos/Sesamath/sesalab/pulls{/number}","milestones_url":"https://api.github.com/repos/Sesamath/sesalab/milestones{/number}","notifications_url":"https://api.github.com/repos/Sesamath/sesalab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sesamath/sesalab/labels{/name}","releases_url":"https://api.github.com/repos/Sesamath/sesalab/releases{/id}","deployments_url":"https://api.github.com/repos/Sesamath/sesalab/deployments","created_at":"2017-01-16T17:31:11Z","updated_at":"2017-01-16T17:32:00Z","pushed_at":"2017-06-08T15:34:35Z","git_url":"git://github.com/Sesamath/sesalab.git","ssh_url":"git@github.com:Sesamath/sesalab.git","clone_url":"https://github.com/Sesamath/sesalab.git","svn_url":"https://github.com/Sesamath/sesalab","homepage":null,"size":8480,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/270"},"html":{"href":"https://github.com/Sesamath/sesalab/pull/270"},"issue":{"href":"https://api.github.com/repos/Sesamath/sesalab/issues/270"},"comments":{"href":"https://api.github.com/repos/Sesamath/sesalab/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/Sesamath/sesalab/statuses/ec5f76d8f06e570ac1f13e11295451e9da2305d5"}}}}
{"actor":{"display_login":"adrien-k"}}