forked from GNUsocial/gnu-social
Only show training buttons if you can train
This commit is contained in:
parent
717bb5f456
commit
cfef7af2ae
@ -168,6 +168,10 @@ class ActivitySpamPlugin extends Plugin
|
|||||||
|
|
||||||
function onEndShowNoticeOptionItems($nli)
|
function onEndShowNoticeOptionItems($nli)
|
||||||
{
|
{
|
||||||
|
$profile = Profile::current();
|
||||||
|
|
||||||
|
if (!empty($profile) && $profile->hasRight(self::TRAINSPAM)) {
|
||||||
|
|
||||||
$notice = $nli->getNotice();
|
$notice = $nli->getNotice();
|
||||||
$out = $nli->getOut();
|
$out = $nli->getOut();
|
||||||
|
|
||||||
@ -186,6 +190,7 @@ class ActivitySpamPlugin extends Plugin
|
|||||||
$form->show();
|
$form->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user