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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user