Skip to content

Instantly share code, notes, and snippets.

@jperkelens
Created January 24, 2013 21:00
Show Gist options
  • Save jperkelens/4627685 to your computer and use it in GitHub Desktop.
Save jperkelens/4627685 to your computer and use it in GitHub Desktop.
Safe security decision?
function SecModel() {
var user = getCurrentUser() //server call to user
return {
allowEdit: function() {
return user == profile.user
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment