Fix a discrepency between the permissions check for an edit link and the permissions check to actually edit