-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Peter wrote:
Is there any reason why you work with pre-defined levels for page protection (default, block unregistered users, users with the sysop right), why not base the protection on the available groups available in the user_groups table?
Are you asking about the actual page_restrictions field/table contents, or the interface for ?action=protect ?
The interface isn't as flexible as the backend in theory allows; currently it only allows you to select one from a presumably rising series of 'levels' (which list is fully customizable via $wgRestrictionLevels), while the backend in theory allows storing multiple allowed groups for each restriction type (edit, move).
Also I think it's a little funky as to whether it's supposed to be checking for permission keys or group names. It's old code that's been hacked over several times for changes, so... it's kind of uggy. ;)
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)