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
Merge "Fix edit restriction handling"