summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-04-11 13:08:40 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-04-11 13:08:40 +0000
commit6ae1f4212926bbeedf9455d1bbd06bb2b835c423 (patch)
treeba3e6db9768f46c509d19fa8f89daf41776dc417
parent275032c2f4da575362eccf88edb28817d80f7aee (diff)
downloadsearch-6ae1f4212926bbeedf9455d1bbd06bb2b835c423.tar.gz
search-6ae1f4212926bbeedf9455d1bbd06bb2b835c423.tar.bz2
search-6ae1f4212926bbeedf9455d1bbd06bb2b835c423.zip
rename permissions to new standard using: p_<package>_<verb>_[<noun>]
-rw-r--r--search_lib.php14
-rw-r--r--stats.php6
2 files changed, 10 insertions, 10 deletions
diff --git a/search_lib.php b/search_lib.php
index a2f70a1..d20f545 100644
--- a/search_lib.php
+++ b/search_lib.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_search/search_lib.php,v 1.22 2006/04/05 13:30:34 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_search/search_lib.php,v 1.23 2006/04/11 13:08:40 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: search_lib.php,v 1.22 2006/04/05 13:30:34 squareing Exp $
+ * $Id: search_lib.php,v 1.23 2006/04/11 13:08:40 squareing Exp $
* @author Luis Argerich (lrargerich@yahoo.com)
* @package search
*/
@@ -203,11 +203,11 @@ class SearchLib extends BitBase {
global $gBitUser;
$ret = false;
switch ($pContentType) {
- case "bitarticle" : $perm = "bit_p_read_article"; break;
- case "bitpage" : $perm = "bit_p_view"; break;
- case "bitblogpost" : $perm = "bit_p_read_blog"; break;
- case "bitcomment" : $perm = "bit_p_read_comments"; break;
- case "fisheyegallery" : $perm = "bit_p_view_fisheye"; break;
+ case "bitarticle" : $perm = "p_articles_read"; break;
+ case "bitpage" : $perm = "p_wiki_view_page"; break;
+ case "bitblogpost" : $perm = "p_blogs_view"; break;
+ case "bitcomment" : $perm = "p_liberty_read_comments"; break;
+ case "fisheyegallery" : $perm = "p_fisheye_view"; break;
default : $perm = ""; break;
}
return $gBitUser->hasPermission($perm);
diff --git a/stats.php b/stats.php
index b901a86..56ec502 100644
--- a/stats.php
+++ b/stats.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_search/stats.php,v 1.6 2006/02/06 22:56:48 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_search/stats.php,v 1.7 2006/04/11 13:08:40 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: stats.php,v 1.6 2006/02/06 22:56:48 squareing Exp $
+ * $Id: stats.php,v 1.7 2006/04/11 13:08:40 squareing Exp $
* @author Luis Argerich (lrargerich@yahoo.com)
* @package search
* @subpackage functions
@@ -22,7 +22,7 @@ require_once( '../bit_setup_inc.php' );
include_once( SEARCH_PKG_PATH.'searchstats_lib.php');
$gBitSystem->verifyFeature( 'search_stats' );
-$gBitSystem->verifyPermission( 'bit_p_admin' );
+$gBitSystem->verifyPermission( 'p_admin' );
if (isset($_REQUEST["clear"])) {
$searchstatslib->clear_search_stats();