<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -167,10 +167,17 @@ class syntax_plugin_cloud extends DokuWiki_Syntax_Plugin {
     function _getTagCloud($num, &amp;$min, &amp;$max, &amp;$tag) {
         $cloud = array();
         foreach ($tag-&gt;topic_idx as $key =&gt; $value) {
-            if (!is_array($value) || empty($value) || (!trim($value[0]))) continue;
-            $cloud[$key] = count($value);
+            if (!is_array($value) || empty($value) || (!trim($value[0]))) {
+                continue;
+            } else {
+                $pages = array();
+                foreach($value as $page) {
+                    if(auth_quickaclcheck($page) &lt; AUTH_READ) continue;
+                    array_push($pages, $page);
+                }
+                if(!empty($pages)) $cloud[$key] = count($pages);
+            }
         }
-
         return $this-&gt;_sortCloud($cloud, $num, $min, $max);
     }
 </diff>
      <filename>syntax.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>beda572abda009d4109dc8de853dc1fc3790579f</id>
    </parent>
  </parents>
  <author>
    <name>Michael Klier</name>
    <login>chimeric</login>
    <email>chi@chimeric.de</email>
  </author>
  <url>http://github.com/dokufreaks/plugin-cloud/commit/ee31c507705eafe78c35943a930aa72d89f22276</url>
  <id>ee31c507705eafe78c35943a930aa72d89f22276</id>
  <committed-date>2009-03-03T06:32:44-08:00</committed-date>
  <authored-date>2009-03-03T06:32:44-08:00</authored-date>
  <message>make cloud respect ACLs

darcs-hash:20090303143244-23886-e8dd0f1f6b8d6b273e4e801e902dee3a50aa9b35.gz</message>
  <tree>eae9b9b01c9b2912dfb7dc32d759c1d863d69427</tree>
  <committer>
    <name>Michael Klier</name>
    <login>chimeric</login>
    <email>chi@chimeric.de</email>
  </committer>
</commit>
