diff --git a/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx b/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx index 046ca9bee5..c732584ce7 100755 --- a/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx @@ -9,6 +9,7 @@ import logoutRouteHandler from '/imports/utils/logoutRouteHandler'; import Rating from './rating/component'; import { styles } from './styles'; import logger from '/imports/startup/client/logger'; +import Users from '/imports/api/users'; const intlMessage = defineMessages({ 410: { @@ -100,6 +101,12 @@ class MeetingEnded extends React.PureComponent { this.state = { selected: 0, }; + + const user = Users.findOne({ userId: Auth.userID }); + if (user) { + this.localUserRole = user.role; + } + this.setSelectedStar = this.setSelectedStar.bind(this); this.sendFeedback = this.sendFeedback.bind(this); this.shouldShowFeedback = getFromUserSettings('askForFeedbackOnLogout', Meteor.settings.public.app.askForFeedbackOnLogout); @@ -134,6 +141,7 @@ class MeetingEnded extends React.PureComponent { authToken: Auth.token, meetingId: Auth.meetingID, comment: MeetingEnded.getComment(), + userRole: this.localUserRole, }; const url = '/html5client/feedback'; const options = {