From e5bca7e526a9c090ac7ad5793de9ac1d9ea2d713 Mon Sep 17 00:00:00 2001 From: jansenk Date: Wed, 2 Jan 2019 16:35:06 -0500 Subject: [PATCH] changed role error message and don't show during loading --- src/components/Gradebook/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Gradebook/index.jsx b/src/components/Gradebook/index.jsx index 694b7e0..169e05a 100644 --- a/src/components/Gradebook/index.jsx +++ b/src/components/Gradebook/index.jsx @@ -252,9 +252,9 @@ export default class Gradebook extends React.Component { The grades for this course are now frozen. Editing of grades is no longer allowed. } - { !this.props.canUserViewGradebook && + { (this.props.canUserViewGradebook === false) &&
- 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.
}