From ba407a7b7d417eac30e92fb9dc6e293c06e3dc9b Mon Sep 17 00:00:00 2001 From: nbm Date: Tue, 16 Nov 2004 11:35:01 +0000 Subject: [PATCH] Don't reference old iDocumentId or null document objects --- lib/security/Permission.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/security/Permission.inc b/lib/security/Permission.inc index e4ff42c..5042646 100644 --- a/lib/security/Permission.inc +++ b/lib/security/Permission.inc @@ -36,7 +36,7 @@ class Permission { * o have write permission for the folder in which the document resides * o be assigned a role which has write permission for the document * - * @param $iDocumentID Primary key of document to check + * @param $oDocument Document to check * * @return boolean true if the current user has document write permission, false otherwise and set $_SESSION["errorMessage"] */ @@ -44,7 +44,7 @@ class Permission { global $default; if ($oDocument == null) { - $default->log->info("Failed to retrieve document with ID $iDocumentID from database"); + $default->log->info("Failed to retrieve document from database"); return false; } if (Permission::userHasFolderWritePermission(Folder::get($oDocument->getFolderID())) || @@ -62,7 +62,7 @@ class Permission { * o have read permission for the folder in which the document resides * o be assigned a role which has read permission for the document * - * @param $iDocumentID Primary key of document to check + * @param $oDocument Document to check * * @return boolean true if the current user has document read permission, false otherwise and set $_SESSION["errorMessage"] */ @@ -70,7 +70,7 @@ class Permission { global $default; if ($oDocument == null) { - $default->log->info("Failed to retrieve document with ID " . $oDocument->getID() . " from database"); + $default->log->info("Failed to retrieve document from database"); return false; } if (Permission::userHasWriteRoleForDocument($oDocument) || -- libgit2 0.21.4