VitaliyFilippov has uploaded a new change for review.

Change subject: Give permission hooks a chance to override deny permissions.
......................................................................

Give permission hooks a chance to override deny permissions.

An example application of this could be to allow modifications
of some messages in MediaWiki namespace for some users.
Previous implementation does not allow this.

The patch extends standard MW hook logic to permission hooks:
they are checked first, and if some hook returns 'false' which
means 'stop hook processing', next permission checks are not
performed.

Also &$errors and $short parameters are added to getUserPermissionsErrors,
so hooks can append errors directly to $errors and decide whether
to run checks or not based or previous $errors and $short values.

Change-Id: I62bb977fe9988212bd5e3daffbe52b23d83af7b5
---
M includes/Title.php
1 file changed, 28 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/66/32566/1
--
To view, visit https://gerrit.wikimedia.org/r/32566
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I62bb977fe9988212bd5e3daffbe52b23d83af7b5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: VitaliyFilippov <vita...@yourcmc.ru>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to