Merge pull request #69 from edx/jkantor/change-message

changed role error message and don't show during loading
This commit is contained in:
Jansen Kantor
2019-01-03 10:59:37 -05:00
committed by GitHub

View File

@@ -253,9 +253,9 @@ export default class Gradebook extends React.Component {
The grades for this course are now frozen. Editing of grades is no longer allowed.
</div>
}
{ !this.props.canUserViewGradebook &&
{ (this.props.canUserViewGradebook === false) &&
<div className="alert alert-warning" role="alert" >
You are not authorized to view the gradebook for this course. If you have a global role, please enroll in this course and try again.
You are not authorized to view the gradebook for this course.
</div>
}
<hr />