From e19a3cf42d73942e37ca644f8ba5fa271b983e3d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 23 Nov 2004 21:52:13 +0000 Subject: - Patch #12363: fixed glitch in user_access() as pointed out by TDobes. --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/user.module b/modules/user.module index f9337d1d3..2a1e2e09c 100644 --- a/modules/user.module +++ b/modules/user.module @@ -312,7 +312,7 @@ function user_access($string, $account = NULL) { } // User #1 has all privileges: - if ($user->uid == 1) { + if ($account->uid == 1) { return 1; } diff --git a/modules/user/user.module b/modules/user/user.module index f9337d1d3..2a1e2e09c 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -312,7 +312,7 @@ function user_access($string, $account = NULL) { } // User #1 has all privileges: - if ($user->uid == 1) { + if ($account->uid == 1) { return 1; } -- cgit v1.2.3