Reverted r92364 (per-namespace permissions).
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 12 Dec 2011 06:03:01 +0000 (06:03 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 12 Dec 2011 06:03:01 +0000 (06:03 +0000)
commit3da36a9103bafe8963686764c7a837805c9b2339
tree173ac284e6e20ad8b0f8dbf4bef6add3ab4e5719
parentd319d386604be267ba439efba6c5c7cddf00a7e0
Reverted r92364 (per-namespace permissions).

This is the wrong configuration format for such a feature, and the wrong interface. We already have certain per-namespace permissions in the Title class, and we didn't need to add extra formal parameters to a whole lot of User methods in order to get them. The feature should be implemented wholly in Title, and the concept of user rights should remain relatively simple and easy to understand, and independent of its many applications, i.e. a user either has a right or doesn't. Rights are just a tool for developing access policies; the complexity should be in the caller.

The revert was mostly done by hand, since there were a lot of conflicts. I tried to preserve the gist of conflicting changes in r102187 and r102873. The test changes are not simple reverts, rather I just edited out the per-namespace tests. I reverted the followups r92589 and r104310.
docs/hooks.txt
includes/DefaultSettings.php
includes/Title.php
includes/User.php
tests/phpunit/includes/ArticleTablesTest.php
tests/phpunit/includes/TitlePermissionTest.php
tests/phpunit/includes/UserTest.php