def get(self, project_id, news_id): projects_service.get_project(project_id) user_service.check_project_access(project_id) user_service.block_access_to_vendor() news = news_service.get_news(project_id, news_id) if len(news["data"]) > 0: return news["data"][0] else: raise NewsNotFoundException
def get(self, project_id, news_id): projects_service.get_project(project_id) user_service.check_project_access(project_id) user_service.block_access_to_vendor() return news_service.get_news(project_id, news_id)
def get(self, project_id, news_id): projects_service.get_project(project_id) user_service.check_project_access(project_id) return news_service.get_news(project_id, news_id)