Users can read all articles, when not any group

Found a bug? Tell us!!
Post Reply
bigbear
Regular
Posts: 6
Joined: Wed May 07, 2008 12:19 am

Users can read all articles, when not any group

Post by bigbear »

Hi all,

I think i found a bug.

I write a private blog and all readers must be logged in to read. I use the groups and user management to manage user reading-rights. So certain entries can only be read by certain people.

When i tried to deactivate my blog for moving it from one server to another, i removed all users from all groups, to ensure that no one can read any entry.

But suddenly all users could read all entries.

I created a dummy-group, added all users and the entries were hidden.

During deactivating, i found out that at least one user has to be in a group in order to save the changes made to the group.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Users can read all articles, when not any group

Post by garvinhicking »

Hi!

That's a very interesting way to prepare a move :-)))

(It would be much much better to edit your .htaccess file to prevent access from anyone but you)

To answer your question properly, though: When a user is removed from ALL authorgroups, a failsafe mechanism of s9y takes effect and applies the user permissions based on the userlevel attribute. In your case that might have been an "editor" privilege, and that would grant access to all articles.

Hope that clears things for you :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply