Module: appdb Branch: master Commit: c7745b5b18a331c9e02b1580a1af87da8002b77f URL: http://source.winehq.org/git/appdb.git/?a=commit;h=c7745b5b18a331c9e02b1580a...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Thu Nov 12 10:54:33 2009 +0100
Fix admin check in updateMaintainerStates.php
---
updateMaintainerStates.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/updateMaintainerStates.php b/updateMaintainerStates.php index f368e00..8791c51 100644 --- a/updateMaintainerStates.php +++ b/updateMaintainerStates.php @@ -4,7 +4,7 @@ require_once('path.php'); require_once('include/incl.php'); require_once('include/maintainer.php');
-if($_SESSION['current']->hasPriv('admin')) +if(!$_SESSION['current']->hasPriv('admin')) util_show_error_page_and_exit("Only admins are allowed in here");
$hResult = application::objectGetEntries('accepted');