def get(self, org_id, location_id, user_id):
user = User.query.get_or_404(user_id)
if not user.is_location_manager(location_id):
return {"message": "User does not exist or not a manager"}, 404
response = {
API_ENVELOPE: marshal(user, user_fields),
"resources": [],
}
return response
评论列表
文章目录