]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
do not put a link from the welcoXme page to the start.html if there is not a private...
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 18 Dec 2007 01:35:59 +0000 (18:35 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 18 Dec 2007 01:35:59 +0000 (18:35 -0700)
src/allmydata/webish.py

index 0832f61cb78f04af964683988619e367902a26d2..ba1d71ea0d2fb2814aa749c65d1554fafb2c1a31 100644 (file)
@@ -1336,7 +1336,8 @@ class Root(rend.Page):
     def render_private_vdrive(self, ctx, data):
         basedir = IClient(ctx).basedir
         start_html = os.path.abspath(os.path.join(basedir, "private", "start.html"))
-        if os.path.exists(start_html):
+        basedir = IClient(ctx).basedir
+        if os.path.exists(start_html) and os.path.exists(os.path.join(basedir, "private", "my_private_dir.cap")):
             return T.p["To view your personal private non-shared filestore, ",
                        "use this browser to open the following file from ",
                        "your local filesystem:",