Mercurial > defr > drupal > core
comparison modules/user/user.module @ 15:4347c45bb494 6.7
Drupal 6.7
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:32:44 +0100 |
| parents | 589fb7c02327 |
| children | 3edae6ecd6c6 |
comparison
equal
deleted
inserted
replaced
| 14:626fcabfa4b8 | 15:4347c45bb494 |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: user.module,v 1.892.2.8 2008/10/08 20:12:18 goba Exp $ | 2 // $Id: user.module,v 1.892.2.9 2008/11/05 14:13:03 dries Exp $ |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * @file | 5 * @file |
| 6 * Enables the user registration and login system. | 6 * Enables the user registration and login system. |
| 7 */ | 7 */ |
| 480 function user_access($string, $account = NULL, $reset = FALSE) { | 480 function user_access($string, $account = NULL, $reset = FALSE) { |
| 481 global $user; | 481 global $user; |
| 482 static $perm = array(); | 482 static $perm = array(); |
| 483 | 483 |
| 484 if ($reset) { | 484 if ($reset) { |
| 485 unset($perm); | 485 $perm = array(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 if (is_null($account)) { | 488 if (is_null($account)) { |
| 489 $account = $user; | 489 $account = $user; |
| 490 } | 490 } |
