cvs: php-gtk-web /manual add-note.php

[email protected] ("Steph Fox") Fri, 07 Jul 2006 15:22:56 -0000
Newsgroups php.gtk.webmaster
Message-ID <cvssfox1152285776@cvsserver>
sfox		Fri Jul  7 15:22:56 2006 UTC

  Modified files:              
    /php-gtk-web/manual	add-note.php 
  Log:
  Allow admin to know about it when the db's missing
  
http://cvs.php.net/viewvc.cgi/php-gtk-web/manual/add-note.php?r1=1.15&r2=1.16&diff_format=u
Index: php-gtk-web/manual/add-note.php
diff -u php-gtk-web/manual/add-note.php:1.15 php-gtk-web/manual/add-note.php:1.16
--- php-gtk-web/manual/add-note.php:1.15	Fri Jul  7 14:32:56 2006
+++ php-gtk-web/manual/add-note.php	Fri Jul  7 15:22:56 2006
@@ -43,8 +43,8 @@
 	exit;
 }
 
-/* hide everything while we sort it all out */
-if (file_exists(DB_DIR."/$notesfile")) {
+/* hide everything from non-administrators while we sort it all out */
+if (file_exists(DB_DIR."/$notesfile") || $user = get_user()) {
 
 if (isset($_POST['add']) || isset($_POST['preview'])) {