After rebuilding the node access table a post which is limited to friends is now accessible to everyone. Once you edit and save the node, access works as expected again.

CommentFileSizeAuthor
#1 flag_friend-1274682.patch780 bytesmoonray

Comments

moonray’s picture

Status: Active » Needs review
StatusFileSize
new780 bytes

And here's the fix for that.

mikl’s picture

Status: Needs review » Reviewed & tested by the community

Good catch. Should be merged.

sirkitree’s picture

Status: Reviewed & tested by the community » Fixed
+++ web/sites/all/modules/contrib/flag_friend/flag_friend_access/flag_friend_access.moduleundefined
@@ -24,7 +24,7 @@ function flag_friend_access_node_grants($account, $op) {
-  if (property_exists($node, 'flag_friend_access') && $node->flag_friend_access == 1) {

The && part of this doesn't actually exist in the module. I assume it was something you were trying on your install.

I've changed the property_exists() call into the !empty() call though which should fix the problem.

Committed: http://drupalcode.org/project/flag_friend.git/commitdiff/9a133257bef30d7...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.