Just a snippet that shows how to check if current user has edit permissions for some node in Drupal 7. Using node_access function like in the example you are also able to check permissions for viewing, creation and deletion.
Source code viewer
$node = node_load($nid); if (node_access('update', $node) === TRUE) { // ... }Programming Language: PHP