diff options
| author | Christian Fowler <spider@viovio.com> | 2007-03-23 21:30:00 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-03-23 21:30:00 +0000 |
| commit | e30e6e75d4778a4ebc07c3609876a7f75002b423 (patch) | |
| tree | 1ce3b5f468513ea1b1fc867dd2703dd3d3629962 /print_multi_pages.php | |
| parent | e1377ef637b724aac214e6ea4cf3600e130a1967 (diff) | |
| download | wiki-e30e6e75d4778a4ebc07c3609876a7f75002b423.tar.gz wiki-e30e6e75d4778a4ebc07c3609876a7f75002b423.tar.bz2 wiki-e30e6e75d4778a4ebc07c3609876a7f75002b423.zip | |
break hasUserPermission with fatal param into separate verifyPermission function, convert hasPermission into much more useful checkContentPermission
Diffstat (limited to 'print_multi_pages.php')
| -rw-r--r-- | print_multi_pages.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/print_multi_pages.php b/print_multi_pages.php index 3837359..0601442 100644 --- a/print_multi_pages.php +++ b/print_multi_pages.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/print_multi_pages.php,v 1.7 2006/04/11 13:10:33 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/print_multi_pages.php,v 1.8 2007/03/23 21:30:00 spiderr 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: print_multi_pages.php,v 1.7 2006/04/11 13:10:33 squareing Exp $ + * $Id: print_multi_pages.php,v 1.8 2007/03/23 21:30:00 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -34,7 +34,8 @@ if (isset($_REQUEST["print"])) { $pages = array(); foreach( $printpages as $contentId ) { $page = new BitPage( NULL, $contentId ); - if( $page->load() && $page->hasUserPermission( 'p_wiki_view_page', TRUE )) { + if( $page->load() ) { + $page->verifyPermission( 'p_wiki_view_page' ); $page_info = $page->mInfo; $page_info["parsed"] = $page->parseData( $page_info ); $pages[] = $page_info; |
