Created
April 4, 2016 13:51
-
-
Save alansemenov/3f19510135b7da1a9bf9d812f0f052a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function saveChanges() { | |
if (!this.hasChanges()) { | |
return; | |
} | |
var user = this.getCurrentUser(); | |
if (!user.isAuthenticated() || !user.hasWriteAccess()) | |
this.showMessage(“Not authorised for saving changes”); | |
return; | |
} | |
// Main code here.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment