dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update RELEASE-NOTES-1.34 for various backports
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiManageTags.php
diff --git
a/includes/api/ApiManageTags.php
b/includes/api/ApiManageTags.php
index
3c08093
..
6cd717a
100644
(file)
--- a/
includes/api/ApiManageTags.php
+++ b/
includes/api/ApiManageTags.php
@@
-31,10
+31,10
@@
class ApiManageTags extends ApiBase {
// make sure the user is allowed
if ( $params['operation'] !== 'delete'
// make sure the user is allowed
if ( $params['operation'] !== 'delete'
- && !$this->get
User()->isAllowed(
'managechangetags' )
+ && !$this->get
PermissionManager()->userHasRight( $user,
'managechangetags' )
) {
$this->dieWithError( 'tags-manage-no-permission', 'permissiondenied' );
) {
$this->dieWithError( 'tags-manage-no-permission', 'permissiondenied' );
- } elseif ( !$this->get
User()->isAllowed(
'deletechangetags' ) ) {
+ } elseif ( !$this->get
PermissionManager()->userHasRight( $user,
'deletechangetags' ) ) {
$this->dieWithError( 'tags-delete-no-permission', 'permissiondenied' );
}
$this->dieWithError( 'tags-delete-no-permission', 'permissiondenied' );
}
@@
-125,6
+125,6
@@
class ApiManageTags extends ApiBase {
}
public function getHelpUrls() {
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Tag_management';
+ return 'https://www.mediawiki.org/wiki/
Special:MyLanguage/
API:Tag_management';
}
}
}
}