예제 #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
예제 #2
0
파일: resources.py 프로젝트: withgame/zou
 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)
예제 #3
0
파일: resources.py 프로젝트: ricekab/zou
 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)