/**
  * @inheritDoc
  */
 public function delete(AccountInterface $current, BaseModel $resource)
 {
     /** @var Model $resource */
     $idx = $resource->getKey();
     // if admin, not build-in admin and can't delete himself
     return $this->isAdmin($current) && $idx !== 1 && $idx !== $current->getAuthIdentifier();
 }
 /**
  * Run seeders.
  *
  * @return void
  *
  * @SuppressWarnings(PHPMD.StaticAccess)
  */
 public function run()
 {
     Model::unguard();
     try {
         foreach ($this->seederClasses as $seederClass) {
             $this->parentSeeder->call($seederClass);
         }
     } finally {
         Model::reguard();
     }
 }