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)
|
||||
{
|
||||
$profile = Profile::current();
|
||||
|
||||
if (!empty($profile) && $profile->hasRight(self::TRAINSPAM)) {
|
||||
|
||||
$notice = $nli->getNotice();
|
||||
$out = $nli->getOut();
|
||||
|
||||
@ -186,6 +190,7 @@ class ActivitySpamPlugin extends Plugin
|
||||
$form->show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user