ChangeSet ID: 26364 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/07/09 21:21:47
Modified files: include : form_edit.php
Log message: Tony Lambregts tony.lambregts@gmail.com Fix editing of a users administrative rights
Patch: http://cvs.winehq.org/patch.py?id=26364
Old revision New revision Changes Path 1.9 1.10 +2 -2 appdb/include/form_edit.php
Index: appdb/include/form_edit.php diff -u -p appdb/include/form_edit.php:1.9 appdb/include/form_edit.php:1.10 --- appdb/include/form_edit.php:1.9 10 Jul 2006 2:21:47 -0000 +++ appdb/include/form_edit.php 10 Jul 2006 2:21:47 -0000 @@ -3,7 +3,7 @@ require_once(BASE."include/util.php");
$aClean = array(); //array of filtered user input
-$aClean['userId'] = makeSafe($_REQUEST['userId']); +$aClean['iUserId'] = makeSafe($_REQUEST['iUserId']); /*********************/ /* Edit Account Form */ /*********************/ @@ -28,7 +28,7 @@ $aClean['userId'] = makeSafe($_REQUEST[' </tr> <?php // if we manage another user we can give him administrator rights -if($oUser->iUserId == $aClean['userId']) +if($oUser->iUserId == $aClean['iUserId']) { ?> <tr>