Hi,
Following code prints to the page even when users does not have access to nodestack.

function nodestack_nodeapi(&$node, $op) {
if (user_access(nodestack_perm())) {
switch ($op) {
case 'alter':
drupal_add_js(array('nodestack' => array('node-'. $node->nid => array(
'title' => $node->title,
'url' => url('node/'. $node->nid),
))), 'setting');
break;
}
}
}

Other parts of the code may have this problem as well.
Patch is attached, hope it helps

CommentFileSizeAuthor
disable_js_for_anonymous_visitors.patch917 bytessinasalek