If user is not logged in, then notice-options container shouldn't be
outputted.
This commit is contained in:
parent
d309fd27c5
commit
18593afee7
@ -203,12 +203,15 @@ class NoticeListItem extends Widget
|
|||||||
|
|
||||||
function showNoticeOptions()
|
function showNoticeOptions()
|
||||||
{
|
{
|
||||||
|
$user = common_current_user();
|
||||||
|
if ($user) {
|
||||||
$this->out->elementStart('div', 'notice-options');
|
$this->out->elementStart('div', 'notice-options');
|
||||||
$this->showFaveForm();
|
$this->showFaveForm();
|
||||||
$this->showReplyLink();
|
$this->showReplyLink();
|
||||||
$this->showDeleteLink();
|
$this->showDeleteLink();
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start a single notice.
|
* start a single notice.
|
||||||
|
Loading…
Reference in New Issue
Block a user