Skip to content
Snippets Groups Projects
Commit 780c48c1 authored by Danae Savvidi's avatar Danae Savvidi :laughing:
Browse files

Merge branch '224-instructor-can-apply-to-own-job-offer' into 'development'

Draft: Resolve "Instructor can apply to own job offer"

Closes #224

See merge request !408
parents 4d2ec002 aa918828
No related branches found
No related tags found
No related merge requests found
Pipeline #1226509 passed
......@@ -242,6 +242,7 @@ public class AuthorisationService {
JobOffer jobOffer = jobOfferService.findByIdOrThrow(offerId);
return !applicationService.appExistsFor(getAuthPerson().getId(), offerId) &&
!jobOffer.getHidden() &&
!canManageEdition(jobOffer.getEditionId()) &&
(jobOffer.getDeadline() == null || !LocalDate.now().isAfter(jobOffer.getDeadline()));
}
......
......
......@@ -78,7 +78,7 @@
th:text="#{general.close}"
data-cancel></button>
<button
th:unless="${app.exists()}"
th:unless="${app.exists() || !@authorisationService.canSubmitApplication(offer.id)}"
type="submit"
class="button p-less"
th:aria-label="#{jobOffer.apply}"
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment