EZP-22457: fixed incorrect usage of Repository::canUser()
Merge pull request #819 from ezsystems/fix-EZP-22457-xmltext-embed-canuser

Fix EZP-22457: XMLText uses canUser API wrong on location embeds