pending commit, finished during MQ/S download ...
[platal.git] / plugins / block.perms.php
index 4f8dda9..51ff85d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -33,7 +33,7 @@ function smarty_block_perms($params, $content, &$smarty)
     if( empty($content) || empty($params['level'] ))
         return;
     if( ($params['level'] == 'public') ||
-        ($params['level'] == 'admin' && has_perms()) )
+        ($params['level'] == 'admin' && S::has_perms()) )
         return $content;
 }
 ?>