User "IAlex" posted a comment on MediaWiki.r101793.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/101793#c25382
Commit summary:

* Use WikiPage instead of Article and call doDeleteArticle() with a custom 
error message instead of calling doDelete()
* Call Title::getUserPermissionsErrors() instead of User::isAllowed() to know 
whether the user can delete the page

Comment:

We could also add an User parameter to userCan() :)

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

Reply via email to