Wikimedia

Do not display heading for empty grant list on OAuth Application details page

Extension OAuth is MediaWiki extension that allows third party developers to develop applications ("consumers"), to which users can give a limited set of permissions ("grants"), so that the application can use the MediaWiki action API on the user's behalf.

Special:OAuthListConsumers is a special page that lists all OAuth applications and from there, you can click ("details") to see further information about individual app.

On the details page, when the consumer has only basic rights (useoauth) and nothing else, the special page will display an empty line for "Applicable grants"; for example: Special:OAuthListConsumers/view/05049b0cdf829996e7668844f478e2d0

Your work in this task is to conditionally hide the "Applicable grants" when there are no rights to show; i.e when the right is only "useroauth".

Extension repo: https://gerrit.wikimedia.org/g/mediawiki/extensions/OAuth

Task tags

  • php

Students who completed this task

Crutishnyk

Task type

  • code Code
close

2019