I am encountering problems when I attempt to disallow anonymous editing in version 1.5 RC4. I am using the $wgGroupPermissions settings as follows:
$wgGroupPermissions = array(); $wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true;
This indeed does not allow anonymous users to edit. But, it also prevents registered users from editing and saving. When they hit the "Save page" button, they get the message, "Remember that this is only a preview, and has not yet been saved!" as if they had hit the "Show preview."
And, in fact, when I take $wgGroupPermissions settings out, only anonymous users can edit and logged in users see the same behavior as above. Arrgh!
This was also happening in 1.4, which I just upgraded our site to 1.5 RC4 hoping that it fix the problem that was preventing this from working correctly. But, the same stubborn problem persists.
Any tips for me? Thanks.
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Henry Kumagai Tech Support Manager Email: henry(at)compumentor.org
http://www.compumentor.org Bringing people and technology together to strengthen our communities
http://www.techsoup.org Technology served the way nonprofits need it, powered by CompuMentor ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
Henry Kumagai wrote: [snip]
This indeed does not allow anonymous users to edit. But, it also prevents registered users from editing and saving. When they hit the "Save page" button, they get the message, "Remember that this is only a preview, and has not yet been saved!" as if they had hit the "Show preview."
And, in fact, when I take $wgGroupPermissions settings out, only anonymous users can edit and logged in users see the same behavior as above. Arrgh!
Sounds like you have a problem with session data; this is unrelated to the group permissions, and will cause edits and other actions by logged-in users to fail due to the failure of a security check to protect against hijacked sessions.
Make sure that PHP's sessions are configured correctly to save to a path that actually exists. If you're on Windows, the default is almost always wrong. If you're on a shared server farm like Sourceforge, you may need to customize the path to a shared network location instead of the local hard drive of each server.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org