示例#1
0
 def get(self, person_id):
     permissions.check_admin_permissions()
     persons_service.invite_person(person_id)
     return {
         "success": True,
         "message": "Email sent"
     }
示例#2
0
 def get(self, person_id):
     """
     Sends an email to given person to invite him/her to connect to Kitsu.
     ---
     tags:
     - Persons
     parameters:
       - in: path
         name: person_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
     responses:
         200:
             description: Email sent
     """
     permissions.check_admin_permissions()
     persons_service.invite_person(person_id)
     return {"success": True, "message": "Email sent"}