docs: def check_share_permission(self, user_id):
          """
              Check whether this user can write this project
          """
  
          if _is_admin(user_id):
              return
  
          if int(self.created_by) == int(user_id):
              return
  
          for owner in self.owners:
              if owner.user_id == int(user_id):
                  if owner.view == 'Y' and owner.share == 'Y':
                      break
          else:
              raise PermissionError("Permission denied. User %s does not have share"
                               " access on network %s" %
                               (user_id, self.id))