Restrict `Edit` link visibility correctly
Merge pull request #1319 from reciprocity/feature/fix-edit-link-permissions

Restrict `Edit` link visibility correctly