Restrict `Edit` link visibility correctly