Fix evaluation for subject change
This commit is contained in:
		
							parent
							
								
									4c877cfb9c
								
							
						
					
					
						commit
						54776f5877
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -485,7 +485,7 @@ class MucCapsCache:
 | 
			
		|||
 | 
			
		||||
    def is_subject_change_allowed(self, jid, affiliation):
 | 
			
		||||
        allowed = True
 | 
			
		||||
        if affiliation in ('owner, admin'):
 | 
			
		||||
        if affiliation in ('owner', 'admin'):
 | 
			
		||||
            return allowed
 | 
			
		||||
 | 
			
		||||
        if jid in self.cache:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue