// make sure the user is allowed
if ( $params['operation'] !== 'delete'
- && !$this->getUser()->isAllowed( 'managechangetags' )
+ && !$this->getPermissionManager()->userHasRight( $user, 'managechangetags' )
) {
$this->dieWithError( 'tags-manage-no-permission', 'permissiondenied' );
- } elseif ( !$this->getUser()->isAllowed( 'deletechangetags' ) ) {
+ } elseif ( !$this->getPermissionManager()->userHasRight( $user, 'deletechangetags' ) ) {
$this->dieWithError( 'tags-delete-no-permission', 'permissiondenied' );
}
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Tag_management';
+ return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Tag_management';
}
}