models/program: target user groups in ProgramQuerySet
This commit is contained in:
		@ -34,7 +34,7 @@ class ProgramQuerySet(PageQuerySet):
 | 
				
			|||||||
        """
 | 
					        """
 | 
				
			||||||
        if user.is_superuser:
 | 
					        if user.is_superuser:
 | 
				
			||||||
            return self
 | 
					            return self
 | 
				
			||||||
        groups = self.request.user.groups.all()
 | 
					        groups = user.groups.all()
 | 
				
			||||||
        return self.filter(editors_group__in=groups)
 | 
					        return self.filter(editors_group__in=groups)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user