/[drupal]/contributions/modules/flag/flag.module
ViewVC logotype

Diff of /contributions/modules/flag/flag.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.11.2.72.2.22, Wed Oct 28 02:38:10 2009 UTC revision 1.11.2.72.2.23, Thu Oct 29 05:06:11 2009 UTC
# Line 1  Line 1 
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
# Line 698  function flag_flag_access($flag, $conten Line 698  function flag_flag_access($flag, $conten
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      }      }

Legend:
Removed from v.1.11.2.72.2.22  
changed lines
  Added in v.1.11.2.72.2.23

  ViewVC Help
Powered by ViewVC 1.1.2