GEWIS / gewisweb

GEWIS Website

Home Page:https://gewis.nl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Job postings: attachment URL always visible

rinkp opened this issue · comments

commented

Current behaviour

<?php if (null !== $this->localiseText($job->getAttachment())): ?>

This statement seems to be always true resulting in the attachment URL to always be shown

Other layouts use a different check:

<?php if (null !== ($attachment = $job->getAttachment()->getValueNL())): ?>

Desired behaviour

The attachment hyperlink is only shown when there is an attachment that can be downloaded

Steps to reproduce

  1. Open any of the job listings of https://gewis.nl/en/career/company/infiniot
  2. The attachment button is visible
  3. Clicking the attachment button results in a 403 for /data

Website version

cd42dec

What operating are you seeing the problem on?

Linux, Other

What browsers are you seeing the problem on?

Firefox

Other information

No response

Caused by GH-1821.