Commit f4c60a91 authored by Matthew Taylor's avatar Matthew Taylor Committed by GitHub

Merge pull request #761 from mewtaylor/issue/gh-757

Fix GH-757: Redirect to `/educators/classes` if a confirmed teacher
parents 1c7dc73e 806fd25e
......@@ -762,7 +762,8 @@ module.exports = {
getDefaultProps: function () {
return {
email: null,
invited: false
invited: false,
confirmed: false
};
},
render: function () {
......
......@@ -10,6 +10,11 @@ require('./teacherwaitingroom.scss');
var TeacherWaitingRoom = React.createClass({
displayName: 'TeacherWaitingRoom',
componentWillReceiveProps: function (nextProps) {
if (nextProps.session.permissions.educator && nextProps.session.permissions.social) {
window.location.href = '/educators/classes/';
}
},
render: function () {
var permissions = this.props.session.permissions || {};
var user = this.props.session.user || {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment