/[drupal]/contributions/modules/ldap_integration/ldapdata.module
ViewVC logotype

Diff of /contributions/modules/ldap_integration/ldapdata.module

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

revision 1.30, Tue Aug 25 14:17:59 2009 UTC revision 1.31, Tue Oct 27 14:29:17 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: ldapdata.module,v 1.29 2009/07/28 14:03:05 miglius Exp $  // $Id: ldapdata.module,v 1.30 2009/08/25 14:17:59 miglius Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 130  function _ldapdata_user_categories() { Line 130  function _ldapdata_user_categories() {
130   * Checks if LDAP data category should be printed.   * Checks if LDAP data category should be printed.
131   */   */
132  function ldapdata_category_access($account) {  function ldapdata_category_access($account) {
133      global $user;
134    
135      if (!($user->uid > 0 && $user->uid == $account->uid || user_access('administer users')))
136        return FALSE;
137    
138    if (!isset($account->ldap_authentified))    if (!isset($account->ldap_authentified))
139      return FALSE;      return FALSE;
140    

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.2