fix missing global (how did this pass tests? o.o)
This commit is contained in:
		
							parent
							
								
									c0279565f4
								
							
						
					
					
						commit
						be4ae9da32
					
				| @ -54,6 +54,7 @@ xanax | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	public function onCommentPosting(CommentPostingEvent $event) { | 	public function onCommentPosting(CommentPostingEvent $event) { | ||||||
|  | 		global $user; | ||||||
| 		if(!$user->can("bypass_comment_checks")) { | 		if(!$user->can("bypass_comment_checks")) { | ||||||
| 			$this->test_text($event->comment, new CommentPostingException("Comment contains banned terms")); | 			$this->test_text($event->comment, new CommentPostingException("Comment contains banned terms")); | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user