X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fblock.perms.php;h=51ff85d65ebc06cabf48836b52004ea70c15cfa7;hb=cab0809050d58f8484608e91f7555ebd69dcb451;hp=56299f23cca74bb7c1ffac970e37b470c4751e07;hpb=68a269916d88ab4f635de4c96367af1ad82ff135;p=platal.git diff --git a/plugins/block.perms.php b/plugins/block.perms.php index 56299f2..51ff85d 100644 --- a/plugins/block.perms.php +++ b/plugins/block.perms.php @@ -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; } ?>