isTeamShipFromSystem static method

bool isTeamShipFromSystem(
  1. TeamShip ship, {
  2. required Team team,
  3. required dynamic self,
})

是否为来源于系统级的群组关系

Implementation

static bool isTeamShipFromSystem(TeamShip ship, {required Team team, required ObjectId self}) {
  return (ship.from == Constant.shipFromSystemHelper || ship.from == Constant.shipFromServiceHelper) && !isTeamAdmin(team, self);
}