Bugfix: hide savedsearch butten and subthread button for non local_users

This commit is contained in:
rabuzarus 2018-06-19 18:27:54 +02:00
parent fc06980dcd
commit 0a97a3f822
2 changed files with 7 additions and 2 deletions

View file

@ -346,7 +346,12 @@ function frio_display_item(App $a, &$arr)
{
// Add subthread to the item menu
$subthread = [];
if (local_user() == $arr['item']['uid'] && $arr['item']['parent'] == $arr['item']['id'] && !$arr['item']['self']) {
if (
local_user()
&& local_user() == $arr['item']['uid']
&& $arr['item']['parent'] == $arr['item']['id']
&& !$arr['item']['self'])
{
$subthread = [
'menu' => 'follow_thread',
'title' => L10n::t('Follow Thread'),