Skip to content

Commit 7385157

Browse files
author
Jens Krumsieck
committed
another fix for locations
1 parent 04fedee commit 7385157

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

files/lib/system/user/online/location/PageLocation.class.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ public function cache(UserOnline $user) {}
1818

1919
public function get(UserOnline $user, $languageVariable = '') {
2020
$page = PageCache::getInstance()->getPage($user->objectID);
21-
if ($page !== null && $page->pageID != 0) {
22-
return WCF::getLanguage()->getDynamicVariable($languageVariable, array(
21+
22+
if (!$page || !$page->canRead()) {
23+
return '';
24+
}
25+
26+
return WCF::getLanguage()->getDynamicVariable($languageVariable, array(
2327
'page' => $page
2428
));
25-
}
26-
return '';
2729
}
2830
}

package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<packagedescription><![CDATA[CMS for WCF 2.0]]></packagedescription>
66
<isapplication>1</isapplication>
77
<version>2.0.0 Beta 3</version>
8-
<date>2014-07-26</date>
8+
<date>2014-07-11</date>
99
</packageinformation>
1010

1111
<authorinformation>
@@ -62,4 +62,4 @@
6262
<instruction type="acpTemplate">acptemplates.tar</instruction>
6363
<instruction type="template">templates.tar</instruction>
6464
</instructions>
65-
</package>
65+
</package>

0 commit comments

Comments
 (0)