In my use case website visitors have no access to unpublished content when the author / username is not an email-address,
which - when I come to think of it, is weird - the users->name field is a text string. varchar(60)

I installed the module on an existing production site.
I did not rebuild permissions.
upon changing the username, access was granted.

I'm not sure this is a bug. Reporting it anyway

Comments

ph7 created an issue.

ishani.addweb’s picture

@ph7, I think you have to reinstall or set up a fresh Drupal7 & enable the module. Add content as per your requirement and keep it unpublish as if you do not want to access for visitors. The content author takes the only name of author/user, not the email id if I get your point correctly.

As you mention you do not rebuild any permission module have set the default set permission for admin that admin can view unpublish content and other users not.
If you enable permission that 'View any unpublished content' for anonymous and authenticated user then they can only get an access to the unpublish content, and also by this only visitor can view your unpublished content.

Thanks.