I've seen a handful of posts on this topic which are closed, but the issue persists, so I am starting a new one.
We manage several sites on an install of Multi Site using the Domain Mapping plugin. When a user clicks preview draft they get an error page that says "You do not have permission to preview drafts."
All of our sites are mapped domains, but WP-Admin is accessible only from a subdomain.
- Mapped Domain: http://www.mapped-domain-name.com
- Corresponding Subdomain: http://mapped-domain-name.master-domain.com
Since the user is creating/editing the page in the WP-Admin Subdomain, when they click preview the page is redirected from http://mapped-domain-name.master-domain.com/page-name/?preview=true&preview_id=xxx&preview_nonce=xxxxxxx to http://www.master-domain.com/page-name/?preview=true&preview_id=xxx&preview_nonce=xxxxxxx
This is definitely where the problem lies. You can edit the cookies to spoof WP into thinking you are logged in on that domain, but that is not a viable workaround.
I've seen comments where folks have said removing the &preview_nonce=xxxxxxx param string fixes this, which only removes the error page, but does not load the new preview content. Even if that were to work it's still not a great workaround for users.
Has anybody had any luck patching this?
This plugin is invaluable to us, but this bug has become quite a nuisance.
Thanks in advance,