| 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 |
| 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 |
|
|