summaryrefslogtreecommitdiff
path: root/lookup_page_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-12-23 15:44:22 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-12-23 15:44:22 +0000
commitf0c2c3e7a48e565cab048de62331581184cfb174 (patch)
tree427a5870860bda82818ae5878da9dc9a5009ec7a /lookup_page_inc.php
parentd149f43e0991fd5311c96364ad972118ab656f76 (diff)
downloadwiki-f0c2c3e7a48e565cab048de62331581184cfb174.tar.gz
wiki-f0c2c3e7a48e565cab048de62331581184cfb174.tar.bz2
wiki-f0c2c3e7a48e565cab048de62331581184cfb174.zip
centrally update user permissions if individual page permissions have been set. this might be a bold move, but it might also save us a lot of work and headaches
Diffstat (limited to 'lookup_page_inc.php')
-rw-r--r--lookup_page_inc.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lookup_page_inc.php b/lookup_page_inc.php
index ca0fa1f..f496459 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.17 2006/09/20 02:12:23 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.18 2006/12/23 15:44:22 squareing 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.17 2006/09/20 02:12:23 spiderr Exp $
+ * $Id: lookup_page_inc.php,v 1.18 2006/12/23 15:44:22 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -50,6 +50,10 @@
}
}
+ // Now that gContent is loaded, we can transparently update user
+ // permissions as set by the individual page permissions - if any are set
+ $gContent->updateUserPermissions();
+
// we weren't passed a structure, but maybe this page belongs to one. let's check...
if( empty( $gStructure ) ) {
//Get the structures this page is a member of