Merge pull request #12565 from ramonlsouza/fix-presentation-upload
fix: check for presenter status at presentation upload modal
This commit is contained in:
commit
6b2e070786
@ -295,6 +295,10 @@ class PresentationUploader extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentWillUnmount() {
|
||||||
|
Session.set('showUploadPresentationView', false);
|
||||||
|
}
|
||||||
|
|
||||||
isDefault(presentation) {
|
isDefault(presentation) {
|
||||||
const { defaultFileName } = this.props;
|
const { defaultFileName } = this.props;
|
||||||
return presentation.filename === defaultFileName
|
return presentation.filename === defaultFileName
|
||||||
|
@ -155,17 +155,12 @@ const parseCurrentSlideContent = (yesValue, noValue, abstentionValue, trueValue,
|
|||||||
};
|
};
|
||||||
|
|
||||||
const isPresenter = (podId) => {
|
const isPresenter = (podId) => {
|
||||||
// a main presenter in the meeting always owns a default pod
|
|
||||||
if (podId !== 'DEFAULT_PRESENTATION_POD') {
|
|
||||||
// if a pod is not default, then we check whether this user owns a current pod
|
|
||||||
const selector = {
|
const selector = {
|
||||||
meetingId: Auth.meetingID,
|
meetingId: Auth.meetingID,
|
||||||
podId,
|
podId,
|
||||||
};
|
};
|
||||||
const pod = PresentationPods.findOne(selector);
|
const pod = PresentationPods.findOne(selector);
|
||||||
return pod.currentPresenterId === Auth.userID;
|
return pod?.currentPresenterId === Auth.userID;
|
||||||
}
|
|
||||||
return true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
Reference in New Issue
Block a user