When a user try to open Special:MathStatus without sufficient authorization, MediaWiki shows the permission error page, but the message <action-purge> is missing.
Screenshot from enwiki:
Beta16 | |
Sep 25 2015, 8:54 AM |
F2633793: Cattura.JPG | |
Sep 25 2015, 8:54 AM |
When a user try to open Special:MathStatus without sufficient authorization, MediaWiki shows the permission error page, but the message <action-purge> is missing.
Screenshot from enwiki:
Subject | Repo | Branch | Lines /- | |
---|---|---|---|---|
Add action-purge message to Math extension | mediawiki/extensions/Math | master | 6 -4 |
Failing to purge if the purge right is not there doesn't seem right as purge right doesn't actually prevent from purging the cache - it only asks for a confirmation when the user doesn't have this right.
From https://github.com/wikimedia/mediawiki-extensions-Math/blob/master/SpecialMathStatus.php#L29-L30
// The effect of loading this page is comparable to purge a page. // If desired a dedicated right e.g. "viewmathstatus" could be used instead.
That seems the right thing to do here.
That seems the right thing to do here.
@Glaisher: I think this is not super hard to implement. I just did not know how to initialize the new right with a reasonable default.
I will do the code review if a patch will be submitted;-)
Change 265916 had a related patch set uploaded (by IoannisKydonis):
Add action-purge message to Math extension
Change 265916 abandoned by Physikerwelt:
Add action-purge message to Math extension
Reason:
Gerrit cleanup. Please resubmit, if this patch is still relevant.