I have restrict access to edit and createaccount rights for anonymous users in my wiki. But when my login session has expired, those kind of users get access to restricted options. I have see in cookie in my browser and mediawiki_mw__session has epiration time to current session terminated
How can I restrict possibility to edit and createaccount to anonymous users even when admin has expired Thanks!
On 06/03/2011 05:59 PM, Андрій Гончар wrote:
I have restrict access to edit and createaccount rights for anonymous users in my wiki. But when my login session has expired, those kind of users get access to restricted options.
Do you use an extension to restrict the user rights? If so, which one?
-Kilian
I have restrict access by adding
$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createaccount'] = false;
in LocalSettings.php without any extensions
Андрій Гончар wrote:
I have restrict access to edit and createaccount rights for anonymous users in my wiki. But when my login session has expired, those kind of users get access to restricted options. I have see in cookie in my browser and mediawiki_mw__session has epiration time to current session terminated
How can I restrict possibility to edit and createaccount to anonymous users even when admin has expired Thanks!
This looks like a cached page. Your browser may be showing you old pages. Can you perform any of those actions (eg. editign the page) even if you see an edit link?
Unless you mean something different by 'admin has expired'.
I don't think this is cached page, because this problem appear more and more even after changing pages and login/logout operations. I have try set mediawiki_mw__session expiration time the same as in other cookies. So, I have changed includes/GlobalFunctions.php in 2854, where I set first parameter to $wgCookieExpiration instead of 0 Also i change session name by set $wgSessionName variable in my LocalSettings.php I have really not tested, but I think this have fix my problem.
mediawiki-l@lists.wikimedia.org