From: <gg...@us...> - 2004-02-11 16:17:33
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18229 Modified Files: tiki-index.php Log Message: Show Please Login instead of Permission Denied if anonymous does not have permission to view wiki. Index: tiki-index.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-index.php,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- tiki-index.php 26 Jan 2004 23:09:03 -0000 1.86 +++ tiki-index.php 11 Feb 2004 16:13:16 -0000 1.87 @@ -112,6 +112,11 @@ // Now check permissions to access this page if($tiki_p_view != 'y') { + if (!isset($user)){ + $smarty->assign('msg',tra("Please login.")); + $smarty->display("pleaselogin.tpl"); + die; + } $smarty->assign('msg',tra("Permission denied you cannot view this page")); $smarty->display("error.tpl"); die; |