ChangeSet ID: 22395 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/01/18 23:25:52 Modified files: include : user.php Log message: Tony Lambregts <tony.lambregts(a)gmail.com> Users don't have permission to modify application versions if they aren't logged in. Patch: http://cvs.winehq.org/patch.py?id=22395 Old revision New revision Changes Path 1.62 1.63 +3 -0 appdb/include/user.php Index: appdb/include/user.php diff -u -p appdb/include/user.php:1.62 appdb/include/user.php:1.63 --- appdb/include/user.php:1.62 19 Jan 2006 5:25:52 -0000 +++ appdb/include/user.php 19 Jan 2006 5:25:52 -0000 @@ -863,6 +863,9 @@ class User { */ function hasAppVersionModifyPermission($oVersion) { + if(!$this->isLoggedIn()) + return false; + if($this->hasPriv("admin")) return true;