ChristophWurst / weinstein_server

🍷 Multi user wine tasting, evaluation and management tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

refactor this logic into better permission/state checks

todo opened this issue · comments

commented

// TODO: refactor this logic into better permission/state checks
if (array_key_exists('approvalnr', $data) && $competitionState->id > CompetitionState::STATE_ENROLLMENT) {
unset($data['approvalnr']);
}
$validator = $this->validatorFactory->newWineValidator($wine, $data);


This issue was generated by todo based on a TODO comment in fcd121e when #199 was merged. cc @ChristophWurst.