forked from GNUsocial/gnu-social
		
	Only show training buttons if you can train
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user