What about this use case :

* `$content` has 2 locations, A and B
* User has permission to publish under B, not under A

Will the code above full cover this ? I mean there is no notion of the location the user want to create `$content` under here...