Fix edit restriction handling

No need to do all these additional checks as that's already
part of the wbUserCanEdit global which is being checked
anyway.

Bug: 58474
Change-Id: Icfdccf3fb2b2fdd563a1abc55ce112f496781756
(cherry picked from commit 389cafeb4e92f09caf16aedc92e6f14b3305f386)
Merge "Fix edit restriction handling" into mw1.23-wmf21