From e46b5e9c0ee1b31271a54f3618711c70e3e74834 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Mon, 26 Jan 2004 09:24:30 +0000 Subject: [PATCH] marketing n'est plus, modification du nom de fonction --- plugins/{block.min_perms.php => block.perms.php} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename plugins/{block.min_perms.php => block.perms.php} (76%) diff --git a/plugins/block.min_perms.php b/plugins/block.perms.php similarity index 76% rename from plugins/block.min_perms.php rename to plugins/block.perms.php index 56244eb..061478d 100644 --- a/plugins/block.min_perms.php +++ b/plugins/block.perms.php @@ -8,12 +8,11 @@ * Purpose: * ------------------------------------------------------------- */ -function smarty_block_min_perms($params, $content, &$smarty) +function smarty_block_perms($params, $content, &$smarty) { if( empty($content) || empty($params['level'] )) return; if( ($params['level'] == 'public') || - ($params['level'] == 'marketing' && has_perms($marketing_admin)) || ($params['level'] == 'admin' && has_perms()) ) return $content; } -- 2.1.4