There may be use cases to limit creation of new short URL to a specific user group.
After this, we can grant the right to all users in meta, then remove $wgUrlShortenerReadOnly.
There may be use cases to limit creation of new short URL to a specific user group.
After this, we can grant the right to all users in meta, then remove $wgUrlShortenerReadOnly.
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/extensions/UrlShortener | master | +14 -5 | Add user right requirement for creating new short urls |
It should be fairly trivial to add this user right requirement to the special page and the api. Given that currently no user right is required, I'll also edit the extension.json to grant the user right to all (*) by default. Currently, there is a user right for managing short urls, urlshortener-manage-url - for the user right to create them, what about urlshortener-create-url?
Note after the right is added it should be revoked from all Wikimedia wikis except meta.
In addition, it should be assigned to a proper grant.
There may be use cases to limit creation of new short URL to a specific user group.
Please given an example. I don't yet see such a use case.
This is useful in 3rd party installation of this extension. It's logical to require user to be logged in to use the feature if the feature have been spammed.
Change 525188 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/UrlShortener@master] Add user right requirement for creating new short urls
@Bugreporter I've uploaded a patch that should cover this, with the default settings (i.e. not changing any user rights) having the same result as the current default
Change 525188 merged by jenkins-bot:
[mediawiki/extensions/UrlShortener@master] Add user right requirement for creating new short urls