jot: show settings icon only to local profile owner
This commit is contained in:
parent
009e03c3ba
commit
5e7c9b9d4a
@ -1462,7 +1462,8 @@ function hz_status_editor($a, $x, $popup = false) {
|
||||
'$expanded' => ((x($x, 'expanded')) ? $x['expanded'] : false),
|
||||
'$bbcode' => ((x($x, 'bbcode')) ? $x['bbcode'] : false),
|
||||
'$parent' => ((array_key_exists('parent',$x) && $x['parent']) ? $x['parent'] : 0),
|
||||
'$reset' => $reset
|
||||
'$reset' => $reset,
|
||||
'$is_owner' => ((local_channel() && (local_channel() == $x['profile_uid'])) ? true : false)
|
||||
));
|
||||
|
||||
if ($popup === true) {
|
||||
|
@ -43,7 +43,9 @@
|
||||
{{/if}}
|
||||
<div id="jot-text-wrap">
|
||||
<div id="profile-jot-tools" class="btn-group d-none">
|
||||
{{if $is_owner}}
|
||||
<a id="profile-jot-settings" class="btn btn-outline-secondary btn-sm border-0" href="/settings/editor/?f=&rpath=/{{$return_path}}"><i class="fa fa-cog"></i></a>
|
||||
{{/if}}
|
||||
{{if $reset}}
|
||||
<button id="profile-jot-reset" class="btn btn-outline-secondary btn-sm border-0" title="{{$reset}}" onclick="itemCancel(); return false;">
|
||||
<i class="fa fa-close"></i>
|
||||
|
Reference in New Issue
Block a user