Skip to content

Commit

Permalink
Fixed missing change to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
local-minimum committed Dec 23, 2017
1 parent 49a2835 commit db23639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public-api/vx/notification.php
Expand Up @@ -58,7 +58,7 @@ function SetSubscription($value, &$RESPONSE) {

// Verify that this node makes sense to subscribe to (use the same rules as note posting)
$node = node_GetById($node_id);
if ( !note_IsNotePublicByNode($node) ) {
if ( !comment_IsCommentPublicByNode($node) ) {
json_EmitFatalError_Permission("You don't have permission to subscribe to this node.", $RESPONSE);
}

Expand Down

0 comments on commit db23639

Please sign in to comment.