Added banking edit to players edit form

This commit is contained in:
Torsten 2017-12-21 08:36:05 +01:00
parent 29cc34590d
commit b41a8f4051
5 changed files with 47 additions and 3 deletions

View file

@ -71,5 +71,15 @@ class Season extends Model
return false;
}
public static function hasGreenShirtGame($seasonId=-1) {
$season=null;
if ($seasonId==-1) {
$season = Season::getCurrent();
if (!$season) return false;
$seasonId=$season->id;
}
$quota=Quota::getQuota("Gruenes Trikot");
return $quota>0;
}
}