Merge pull request #7892 from capilkey/fix-cursor-send
Allow negative cursor updates to publish
This commit is contained in:
commit
cf94072b80
9
bigbluebutton-html5/imports/api/cursor/server/methods/publishCursorUpdate.js
Normal file → Executable file
9
bigbluebutton-html5/imports/api/cursor/server/methods/publishCursorUpdate.js
Normal file → Executable file
@ -21,10 +21,15 @@ export default function publishCursorUpdate(credentials, payload) {
|
|||||||
whiteboardId: String,
|
whiteboardId: String,
|
||||||
});
|
});
|
||||||
|
|
||||||
const { whiteboardId } = payload;
|
const {
|
||||||
|
whiteboardId,
|
||||||
|
xPercent,
|
||||||
|
yPercent,
|
||||||
|
} = payload;
|
||||||
|
|
||||||
const allowed = isPodPresenter(meetingId, whiteboardId, requesterUserId)
|
const allowed = isPodPresenter(meetingId, whiteboardId, requesterUserId)
|
||||||
|| getMultiUserStatus(meetingId, whiteboardId);
|
|| getMultiUserStatus(meetingId, whiteboardId)
|
||||||
|
|| (xPercent < 0 && yPercent < 0);
|
||||||
if (!allowed) {
|
if (!allowed) {
|
||||||
throw new Meteor.Error('not-allowed', `User ${requesterUserId} is not allowed to move the cursor`);
|
throw new Meteor.Error('not-allowed', `User ${requesterUserId} is not allowed to move the cursor`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user