From 488c74dbf016ebf76d7c35758882f4ca20834a38 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Thu, 19 Jan 2006 05:25:52 +0000 Subject: [PATCH] Users don't have permission to modify application versions if they aren't logged in. --- include/user.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/user.php b/include/user.php index 6ea0970..9b195d6 100644 --- a/include/user.php +++ b/include/user.php @@ -863,6 +863,9 @@ class User { */ function hasAppVersionModifyPermission($oVersion) { + if(!$this->isLoggedIn()) + return false; + if($this->hasPriv("admin")) return true;