xenocrat / chyrp-lite

An ultra-lightweight blogging engine, written in PHP.
https://chyrplite.net/
BSD 3-Clause "New" or "Revised" License
417 stars 44 forks source link

Guests can't access posts/pages with - "You are not allowed to view this site." #137

Closed epsilon-0 closed 1 year ago

epsilon-0 commented 3 years ago

For some reason the blog posts become hidden with the error message - "You are not allowed to view this site."

I am unsure what the mistake is with the permissions. I didn't consciously change any random settings.

epsilon-0 commented 3 years ago

I just went back to Admin > Settings > Users and clicked update without changing anything, and it started working.

xenocrat commented 3 years ago

Thanks for the report. I’ll attempt to reproduce it and discover the cause.

epsilon-0 commented 3 years ago

I don't think this could be easily reproducible, the problem might have also happened because I was upgrading from a previous version. Edit: But still best to document it, in case someone else also stumbles across this.

bart7782 commented 1 year ago

I just got this same issue and just clicking "update" fixed it too.

I reinstalled my site with a new webserver, everything was a fresh install exept for the database

xenocrat commented 1 year ago

Thanks for the report. Clearly this is a recurring problem so I'm reopening this issue and I'll try to get it resolved.

xenocrat commented 1 year ago

I've made some changes to the way the installer creates the permissions for each of the default groups. In my testing this reinstall bug has not occurred with these changes to the code, so hopefully it's fixed.