This is wrong. The proper check is "can the user edit a random document in this space". This will add more false positives than the false negatives before.

The proper solution is to add checks at the space (and wiki) level, not just at the page level.