Page MenuHomePhabricator

Certain wikis block new page creation for anonymous users - anonymous users are not told this until it's too late
Closed, InvalidPublic

Description

On a wiki where anonymous editors are not allowed to create pages e.g. Commons

$wgGroupPermissions['*']['create'] = false;

A user will be misled into thinking that they can create a page.
They will only be informed upon writing their article and hitting save.

Expected:

  1. Icon should be marked as locked so the user knows that editing may not be possible
  2. When clicking the edit icon they should be informed it is not editable e.g. they should only be able to view source.

Event Timeline

Note that that should be:

$wgGroupPermissions['*']['createpage'] = false;

When the wiki is configured like this, all editors I checked handle it correctly, and offer no way to edit (or an option to view source). It is, however, not set that way on Commons.

I tried the createpage configuration, and Vector looks fine but on Minerva the edit pencil does not show as locked and gives the impression I can edit when I can't. Surely it should be a different icon?

Setting $wgGroupPermissions['*']['createpage'] = false; works correctly for me. Screenshots:

Minerva (mobile)Minerva (desktop)Vector (desktop)
Page doesn't exist
localhost_3080_wiki_Blahblahblah_useformat=mobile(Laptop with small screen).png (576×1 px, 29 KB)
localhost_3080_wiki_Blahblahblah_useskin=minerva(Laptop with small screen).png (576×1 px, 31 KB)
localhost_3080_wiki_Blahblahblah(Laptop with small screen).png (576×1 px, 46 KB)
Page exists
localhost_3080_wiki_Lorem_ipsum_useformat=mobile(Laptop with small screen).png (576×1 px, 38 KB)
localhost_3080_wiki_Lorem_ipsum_useskin=minerva(Laptop with small screen).png (576×1 px, 42 KB)
localhost_3080_wiki_Lorem_ipsum(Laptop with small screen).png (576×1 px, 63 KB)

The Minerva code for this is in ToolbarBuilder::createEditPageAction():

Guessing something wrong with my local setup then?