{"action":"created","issue":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1391","labels_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1391/labels{/name}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1391/comments","events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1391/events","html_url":"https://github.com/Cockatrice/Cockatrice/pull/1391","id":101984501,"number":1391,"title":"Allows admins to promote users to mod and demote mod to user","user":{"login":"woogerboy21","id":1361287,"avatar_url":"https://avatars.githubusercontent.com/u/1361287?v=3","gravatar_id":"","url":"https://api.github.com/users/woogerboy21","html_url":"https://github.com/woogerboy21","followers_url":"https://api.github.com/users/woogerboy21/followers","following_url":"https://api.github.com/users/woogerboy21/following{/other_user}","gists_url":"https://api.github.com/users/woogerboy21/gists{/gist_id}","starred_url":"https://api.github.com/users/woogerboy21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woogerboy21/subscriptions","organizations_url":"https://api.github.com/users/woogerboy21/orgs","repos_url":"https://api.github.com/users/woogerboy21/repos","events_url":"https://api.github.com/users/woogerboy21/events{/privacy}","received_events_url":"https://api.github.com/users/woogerboy21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-19T19:56:33Z","updated_at":"2015-08-20T00:48:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1391","html_url":"https://github.com/Cockatrice/Cockatrice/pull/1391","diff_url":"https://github.com/Cockatrice/Cockatrice/pull/1391.diff","patch_url":"https://github.com/Cockatrice/Cockatrice/pull/1391.patch"},"body":"Fix #1377 \r\n\r\nThis PR adds the ability for administrators to promote a user to admin status, or demote a moderator to user status.  A new right click context menu item has been added when a moderator right clicks on the username from the user list (as long as the admin tools are  unlocked).\r\n\r\nThings to point out about this change.\r\n* A extension to the session event protocol has been put in place.\r\n* Right click menu option evaluates users current position and only adds promote or demote\r\n* When a user is promoted, the user is sent a notification about so mentioning they need to log out / in\r\n* When a mod is demoted, the moderator is immediately removed from the server.\r\n* Admin performing the command always gets notified of the commands results (success/fail)\r\n* The new event notifications logic has been put in place to also accommodate #190.\r\n\r\n(Items not pictured are the context menu items and failure popup boxes if the commands fail.)\r\n\r\nEdit:\r\nPlease ignore the commit message, it mis-states \"moderators to promote\".  It should read \"Admins to promote\".  Moderators do not get the menu options and the new menu items are located in the processExtendedAdminCommands function."},"comment":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/comments/132838816","html_url":"https://github.com/Cockatrice/Cockatrice/pull/1391#issuecomment-132838816","issue_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1391","id":132838816,"user":{"login":"Daenyth","id":14644,"avatar_url":"https://avatars.githubusercontent.com/u/14644?v=3","gravatar_id":"","url":"https://api.github.com/users/Daenyth","html_url":"https://github.com/Daenyth","followers_url":"https://api.github.com/users/Daenyth/followers","following_url":"https://api.github.com/users/Daenyth/following{/other_user}","gists_url":"https://api.github.com/users/Daenyth/gists{/gist_id}","starred_url":"https://api.github.com/users/Daenyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daenyth/subscriptions","organizations_url":"https://api.github.com/users/Daenyth/orgs","repos_url":"https://api.github.com/users/Daenyth/repos","events_url":"https://api.github.com/users/Daenyth/events{/privacy}","received_events_url":"https://api.github.com/users/Daenyth/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T00:48:41Z","updated_at":"2015-08-20T00:48:41Z","body":"Your concerns with user info handling promotion automatically are very reasonable. Notification isnt out of line."}}