Use `if 'edit-space' in g.permissions`