Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)