Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 protected function isWriteGranted(ProgramYearInterface $programYear, $user)
 {
     // prevent modifications and deletions of locked or archived program years
     if ($programYear->isLocked() || $programYear->isArchived()) {
         return false;
     }
     return parent::isWriteGranted($programYear, $user);
 }