FIX: only create reopen link when user has sufficiant permissions

A simple user has the possibility to click the link to reopen a closed issue, which then leads to a 500 response due to missing permissions. This patch makes sure that the link is only being created when the user has sufficient rights.