{"action":"opened","issue":{"url":"https://api.github.com/repos/learning-unlimited/ESP-Website/issues/2022","repository_url":"https://api.github.com/repos/learning-unlimited/ESP-Website","labels_url":"https://api.github.com/repos/learning-unlimited/ESP-Website/issues/2022/labels{/name}","comments_url":"https://api.github.com/repos/learning-unlimited/ESP-Website/issues/2022/comments","events_url":"https://api.github.com/repos/learning-unlimited/ESP-Website/issues/2022/events","html_url":"https://github.com/learning-unlimited/ESP-Website/issues/2022","id":131897924,"number":2022,"title":"ClassSection.preregister_student should fail if the section is not scheduled","user":{"login":"luac","id":1305639,"avatar_url":"https://avatars.githubusercontent.com/u/1305639?v=3","gravatar_id":"","url":"https://api.github.com/users/luac","html_url":"https://github.com/luac","followers_url":"https://api.github.com/users/luac/followers","following_url":"https://api.github.com/users/luac/following{/other_user}","gists_url":"https://api.github.com/users/luac/gists{/gist_id}","starred_url":"https://api.github.com/users/luac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luac/subscriptions","organizations_url":"https://api.github.com/users/luac/orgs","repos_url":"https://api.github.com/users/luac/repos","events_url":"https://api.github.com/users/luac/events{/privacy}","received_events_url":"https://api.github.com/users/luac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-06T20:40:22Z","updated_at":"2016-02-06T20:40:22Z","closed_at":null,"body":"Currently, preregister_student allows students to be enrolled in sections that are not scheduled, and by inspection it doesn't seem like anything else in the stack checks for this either, so hypothetically a student might be able to register for it by hitting the /addclass view.\r\n\r\nWe probably want to disallow this, since we don't show those sections in the catalog."}}