admin/index.php should ensure the user is an admin, otherwise normal users

can display the userlist and see the email addresses of all users.
This commit is contained in:
Stefan Pflüger
2004-12-10 00:11:10 +00:00
committed by WineHQ
parent f4d2205cdd
commit 06a0ea4812

View File

@@ -9,8 +9,7 @@ include("path.php");
include(BASE."include/"."incl.php");
include(BASE."include/"."tableve.php");
//FIXME: need to check for admin privs
if(!loggedin())
if(!loggedin() || !havepriv("admin"))
{
errorpage();
exit;