Closed fields37 closed 3 years ago
Fixed by changing "host_required" to "zoom_user_required" and removing it from meetings.views functions that don't require zoom auth.
But now a non-host could change the call by going to certain URLs. assigning fix for that to #55
When host isn't authenticated with zoom, freezing/unfreezing doesn't happen at all when opening/closing modal! Following error shows up in javascript console:
api.js:24 POST http://localhost:8000/F4rHhr/freeze 403 (Forbidden) post @ api.js:24 close @ Meeting.jsx:239 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:306 executeDispatch @ react-dom.development.js:389 executeDispatchesInOrder @ react-dom.development.js:414 executeDispatchesAndRelease @ react-dom.development.js:3278 executeDispatchesAndReleaseTopLevel @ react-dom.development.js:3287 forEachAccumulated @ react-dom.development.js:3259 runEventsInBatch @ react-dom.development.js:3304 runExtractedPluginEventsInBatch @ react-dom.development.js:3514 handleTopLevel @ react-dom.development.js:3558 batchedEventUpdates$1 @ react-dom.development.js:21871 batchedEventUpdates @ react-dom.development.js:795 dispatchEventForLegacyPluginEventSystem @ react-dom.development.js:3568 attemptToDispatchEvent @ react-dom.development.js:4267 dispatchEvent @ react-dom.development.js:4189 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 discreteUpdates$1 @ react-dom.development.js:21887 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 VM77:2 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 1