| 1 |
<?php |
<?php |
| 2 |
// $Id: flag.module,v 1.11.2.72.2.21 2009/10/28 01:51:39 quicksketch Exp $ |
// $Id: flag.module,v 1.11.2.72.2.22 2009/10/28 02:38:10 quicksketch Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 698 |
// Restrict access by comment authorship. |
// Restrict access by comment authorship. |
| 699 |
if ($flag->content_type == 'comment') { |
if ($flag->content_type == 'comment') { |
| 700 |
$comment = _comment_load($content_id); |
$comment = _comment_load($content_id); |
| 701 |
$node = node_load($content_id); |
$node = node_load($comment->nid); |
| 702 |
if ($flag->access_author == 'node_own' && $node->uid != $account->uid) { |
if ($flag->access_author == 'node_own' && $node->uid != $account->uid) { |
| 703 |
return FALSE; |
return FALSE; |
| 704 |
} |
} |