wiki.techinc.nl/includes/page
Daimona Eaytoy bbcdb855c9 Check change tags permissions in DeletePage
Checking whether the given tags can be added is permissions-related, so
it should be checked in authorizeDeletion(). Not doing so means that the
caller has to do the check, but this wouldn't work well if the user is
not allowed to add the specified tags AND to delete the page: if tags
are checked before calling deleteIfAllowed(), the caller would
presumably die with a message like "cannot add tags", but it would
make more sense to die with a message like "cannot delete pages".

Also fix broken logic in DeletePage that, when the hook error was the
empty string, caused it to be converted to an array with a single
element (the empty string), and causing the deletion to fail without
errors if mergeLegacyHookErrors is true. This shouldn't be affecting
anything, since the deprecated WikiPage::doDeleteArticleReal sets
mergeLegacyHookErrors to false.

Bug: T288758
Change-Id: Iba51fcf38efbf3acd4f89de10e4221e00043c6ca
2021-09-27 12:38:20 +02:00
..
Hook Drop the ArticleUndeleteLogEntry hook 2021-09-20 13:50:19 +02:00
Article.php Remove Article::delete() Article::confirmDelete() and ImagePage::delete() 2021-09-16 19:10:55 +02:00
CategoryPage.php Remove Title from signatures in CategoryViewer 2021-09-13 16:14:06 +00:00
ContentModelChangeFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
DeletePage.php Check change tags permissions in DeletePage 2021-09-27 12:38:20 +02:00
DeletePageFactory.php Make DeletePage a real service 2021-09-08 11:43:04 +00:00
ExistingPageRecord.php Make WikiPage a ProperPageIdentity 2021-08-30 13:05:18 +00:00
ImageHistoryList.php Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
ImageHistoryPseudoPager.php docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
ImagePage.php Remove Article::delete() Article::confirmDelete() and ImagePage::delete() 2021-09-16 19:10:55 +02:00
LegacyArticleIdAccess.php
MergeHistoryFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MovePageFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
Page.php
PageArchive.php Drop the ArticleUndeleteLogEntry hook 2021-09-20 13:50:19 +02:00
PageCommandFactory.php Title: Make use of BacklinkCacheFactory service 2021-09-09 14:04:02 +01:00
PageIdentity.php
PageIdentityValue.php Add convenience constructors for PageReference/Identity 2021-06-07 07:31:24 -07:00
PageLookup.php PageIdentityValue: apply basic validation of titles 2021-05-07 17:17:45 +02:00
PageRecord.php Make WikiPage a ProperPageIdentity 2021-08-30 13:05:18 +00:00
PageReference.php PageIdentityValue: apply basic validation of titles 2021-05-07 17:17:45 +02:00
PageReferenceValue.php Add convenience constructors for PageReference/Identity 2021-06-07 07:31:24 -07:00
PageSelectQueryBuilder.php PageStore: Use LinkCache 2021-09-01 08:24:34 +00:00
PageStore.php Merge "PageStore: Use LinkCache" 2021-09-09 20:04:47 +00:00
PageStoreFactory.php PageStore: Use LinkCache 2021-09-01 08:24:34 +00:00
PageStoreRecord.php PageStore: Use LinkCache 2021-09-01 08:24:34 +00:00
ParserOutputAccess.php
ProperPageIdentity.php Document ProperPageIdentity::canExist as returning true 2021-08-21 14:36:38 +02:00
RollbackPage.php Move revert detection code from WikiPage to EditResultBuilder 2021-09-16 12:24:34 -07:00
RollbackPageFactory.php
WikiCategoryPage.php
WikiFilePage.php page: Fix debug message in WikiFilePage::getForeignCategories 2021-08-30 20:27:28 +02:00
WikiPage.php docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
WikiPageFactory.php Make WikiPage a ProperPageIdentity 2021-08-30 13:05:18 +00:00