Fixed EZP-23132: "user/selfedit" policy requires at least one "content/c...

...reate" or one "content/edit" policy

I'm doubtful about this hardcoded hack, but the nature of the beast seems to be that one way or another it must be hardcoded. I set up the checks to minimize the performance impact for other requests than content/edit.

https://jira.ez.no/browse/EZP-23132