From 4371b627d51ffc5af9498fa1877d8e519a5f2c6e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 18 Feb 2001 15:14:56 +0000 Subject: - added fine-grained user permission system which allows us to give certain users access to specific administration sections only. Ex. a FAQ maintainer can only edit the FAQ, and members of an "editorial board" can only edit comments, diaries and stories, .. - code review => rewrote include/user.inc which is much easier now - fixed 4 small bugs --- includes/function.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/function.inc') diff --git a/includes/function.inc b/includes/function.inc index 04402f5a7..44ec40baa 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -76,7 +76,7 @@ function format_date($timestamp, $type = "medium") { function format_username($username) { global $user; - if ($username) return (user_permission($user) ? "$username" : "$username"); + if ($username) return (user_access($user, "account") ? "$username" : "$username"); else { global $anonymous; return $anonymous; } } -- cgit v1.2.3