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

Diff of /contributions/modules/og_vocab/og_vocab.module

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

revision 1.18.2.21, Tue May 5 12:13:02 2009 UTC revision 1.18.2.22, Sun Oct 4 09:27:53 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: og_vocab.module,v 1.18.2.18 2009/01/23 09:56:17 amitaibu Exp $  // $Id: og_vocab.module,v 1.18.2.21 2009/05/05 12:13:02 amitaibu Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 493  function og_vocab_get_accessible_vocabs( Line 493  function og_vocab_get_accessible_vocabs(
493   * Access function to determine if a user has access to the menu item.   * Access function to determine if a user has access to the menu item.
494   */   */
495  function og_vocab_determine_access($node, $perm) {  function og_vocab_determine_access($node, $perm) {
496    return og_is_group_type($node->type) && og_is_group_member($node->nid) && (user_access($perm) || user_access('administer organic groups'));    // Group admin should have access regardless of permissions.
497      // Otherwise check the user is a member with the right permissions.
498      return (og_is_group_type($node->type) && (og_is_group_admin($node) || (og_is_group_member($node->nid) && (user_access($perm) || user_access('administer organic groups')))));
499  }  }
500    
501    

Legend:
Removed from v.1.18.2.21  
changed lines
  Added in v.1.18.2.22

  ViewVC Help
Powered by ViewVC 1.1.2