From 9c43e8fc7a192dfe768c76a539373915bddaa0aa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 29 Jun 2001 22:08:57 +0000 Subject: Extremely large commit: - Fixed tiny quote problem in account.php. - Fixed tiny bug in comment.inc. - Fixed tiny bug in comment.module. - Fixed tiny bug in meta.module. - Simplified user_access() API. - Rewrote link system: still needs fine-tuning and testing so don't upgrade if you are running a production site. ;) Updated all modules and themes to reflect this change. All other themes and modules need updating too! --- modules/aggregator.module | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index 447090738..44f0b480a 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -12,7 +12,15 @@ function import_help() { } function import_perm() { - return array("add and edit news feeds"); + return array("administer news feeds"); +} + +function import_link($type) { + if ($type == "admin") { + $links[] = "news feeds"; + } + + return $links ? $links : array(); } function import_cron() { @@ -241,9 +249,9 @@ function import_view_item() { } function import_admin() { - global $user, $op, $id, $type, $edit; + global $op, $id, $type, $edit; - if (user_access($user, "add and edit news feeds")) { + if (user_access("administer news feeds")) { print "add new bundle | add new feed | available bundles | available items | overview | help
"; -- cgit v1.2.3