summaryrefslogtreecommitdiff
path: root/search_lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'search_lib.php')
-rw-r--r--search_lib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/search_lib.php b/search_lib.php
index a9966ed..c0d2b27 100644
--- a/search_lib.php
+++ b/search_lib.php
@@ -309,11 +309,11 @@ class SearchLib extends BitBase {
}
}
- function has_permission($pContentType = NULL) {
+ public static function has_permission($pContentType = NULL) {
global $gBitUser, $gLibertySystem;
if ( ! empty( $pContentType ) ) {
- $object = $gLibertySystem->getLibertyObject(1, $pContentType, FALSE);
+ $object = LibertyBase::getLibertyObject(1, $pContentType, FALSE);
if ( ! empty( $object ) ) {
// Note that we can't do verify access here because
// we are using a generic object but we can at least get a