--- MonthCalendar_old.py	2007-04-02 19:29:04.000000000 +0200
+++ MonthCalendar.py	2007-04-02 19:37:46.000000000 +0200
@@ -376,6 +376,7 @@
 
     maketip_js = []
     restrn = []
+    onmouse = {}
     for week in monthcal:
         restdn = []
         for wkday in r7:
@@ -393,20 +394,21 @@
                     csslink = "cal-usedday"
                     query = {}
                     r, g, b, u = (255, 0, 0, 1)
-                    daycontent = daypage.get_raw_body()
-                    header1_re = re.compile(r'^\s*=\s(.*)\s=$', re.MULTILINE) # re.UNICODE
-                    titletext = []
-                    for match in header1_re.finditer(daycontent):
-                        if match:
-                            title = match.group(1)
-                            title = wikiutil.escape(title).replace("'", "\\'")
-                            titletext.append(title)
-                    tipname = link
-                    tiptitle = link
-                    tiptext = '<br>'.join(titletext)
-                    maketip_js.append("maketip('%s','%s','%s');" % (tipname, tiptitle, tiptext))
-                    onmouse = {'onMouseOver': "tip('%s')" % tipname,
-                               'onMouseOut': "untip()"}
+                    if request.user.may.read(daypage.page_name):
+                        daycontent = daypage.get_raw_body()
+                        header1_re = re.compile(r'^\s*=\s(.*)\s=$', re.MULTILINE) # re.UNICODE
+                        titletext = []
+                        for match in header1_re.finditer(daycontent):
+                            if match:
+                                title = match.group(1)
+                                title = wikiutil.escape(title).replace("'", "\\'")
+                                titletext.append(title)
+                        tipname = link
+                        tiptitle = link
+                        tiptext = '<br>'.join(titletext)
+                        maketip_js.append("maketip('%s','%s','%s');" % (tipname, tiptitle, tiptext))
+                        onmouse = {'onMouseOver': "tip('%s')" % tipname,
+                                   'onMouseOut': "untip()"}
                 else:
                     csslink = "cal-emptyday"
                     if parmtemplate:
