diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-02-18 15:14:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-02-18 15:14:56 +0000 |
commit | 4371b627d51ffc5af9498fa1877d8e519a5f2c6e (patch) | |
tree | bc83240be6329005e30a5c21ff83163397ca0fd1 /includes/function.inc | |
parent | c93bcff8b85a24fe200fe27bd4c8f860f7d01b9c (diff) | |
download | brdo-4371b627d51ffc5af9498fa1877d8e519a5f2c6e.tar.gz brdo-4371b627d51ffc5af9498fa1877d8e519a5f2c6e.tar.bz2 |
- 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
Diffstat (limited to 'includes/function.inc')
-rw-r--r-- | includes/function.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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) ? "<A HREF=\"admin.php?mod=account&op=view&name=$username\">$username</A>" : "<A HREF=\"account.php?op=view&name=$username\">$username</A>"); + if ($username) return (user_access($user, "account") ? "<A HREF=\"admin.php?mod=account&op=view&name=$username\">$username</A>" : "<A HREF=\"account.php?op=view&name=$username\">$username</A>"); else { global $anonymous; return $anonymous; } } |