def METHOD_NAME(post, user):
	if user.is_staff:
		return True
	if post.user == user:
		return True
	if post._my_subclass == "categorypost":
		if user in post.categorypost.space.coordinators.all():
			return True
	if post._my_subclass == "subjectpost":
		if user in post.subjectpost.space.professor.all():
			return True
		if user in post.subjectpost.space.category.coordinators.all():
			return True
	return False