Skip to content

Conversation

@kchadha
Copy link
Contributor

@kchadha kchadha commented Nov 27, 2018

Proposed Changes

  • Add logic to disconnect the cloud provider as soon as a user views someone else's project in editor mode. If the user has ever entered editor mode in this session and cannot save the project, they should not be able to modify cloud data.

Reason for Changes

Prevents users from modifying cloud data when editing someone else's project.

Test Coverage

Added unit tests for the new functionality.

Browser Coverage

Check the OS/browser combinations tested (At least 2)

Mac

  • Chrome
  • Firefox
  • Safari

Windows

  • Chrome
  • Firefox
  • Edge

Chromebook

  • Chrome

iPad

  • Safari

Android Tablet

  • Chrome

// This should cover info about the website specifically, like scrather status
return !!(props.cloudHost && props.username && props.vm && props.projectId);
}
shouldNotModifyCloudData (props) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a great name, but writing this function so that the name is not a negative check makes the code less readable...

rschamp
rschamp previously approved these changes Nov 28, 2018
@kchadha kchadha force-pushed the editor-cloud-disconnect branch from 7e9d7a3 to 9fc6d85 Compare November 28, 2018 23:37
@kchadha kchadha merged commit ede6d2f into scratchfoundation:develop Nov 29, 2018
@kchadha kchadha deleted the editor-cloud-disconnect branch November 29, 2018 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants