diff options
| author | Lester Caine <lester@lsces.co.uk> | 2008-01-13 14:53:46 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2008-01-13 14:53:46 +0000 |
| commit | e94b668681c174256907315ddd8f5a6d0efafb84 (patch) | |
| tree | a0feb3e9978b24c975f7abd202a68e6512ff517b /lookup_page_inc.php | |
| parent | 88881a908762c6d1787f77e14dad220bf0baf616 (diff) | |
| download | wiki-e94b668681c174256907315ddd8f5a6d0efafb84.tar.gz wiki-e94b668681c174256907315ddd8f5a6d0efafb84.tar.bz2 wiki-e94b668681c174256907315ddd8f5a6d0efafb84.zip | |
Add protected flag to content object so that we generate a 'Permission denied.' error message rather than 'Page not found' for content items that are hidden by protector.
Need to add a setProtector() to other packages so we can produce a similar responce as only wiki's are handled at present.
Diffstat (limited to 'lookup_page_inc.php')
| -rw-r--r-- | lookup_page_inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lookup_page_inc.php b/lookup_page_inc.php index b25261d..cf556ba 100644 --- a/lookup_page_inc.php +++ b/lookup_page_inc.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.22 2007/07/06 15:43:23 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.23 2008/01/13 14:53:46 lsces Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: lookup_page_inc.php,v 1.22 2007/07/06 15:43:23 squareing Exp $ + * $Id: lookup_page_inc.php,v 1.23 2008/01/13 14:53:46 lsces Exp $ * @package wiki * @subpackage functions */ @@ -44,6 +44,8 @@ if( empty( $gContent ) || !is_object( $gContent ) || strtolower( get_class( $gCo die; } else { $gContent->mPageId = $existsInfo[0]['page_id']; + $gContent->mContentId = $existsInfo[0]['content_id']; + $gContent->setProtected(); } } } elseif( $loadPage ) { |
