fixes profile edit permission.