mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-17 20:52:14 +00:00
cd2a186469
- Add conditional to check for 'createaccount' permissions based on config. - Update relevant template to show/hide create account markup. Note that this solution excludes the use case of extensions using core hooks to disable account creation. See https://phabricator.wikimedia.org/T288428#7303233. Bug: T288428 Change-Id: I89852207ee42f5ddd07e5dd6141461c6bfbcd5ac
11 lines
395 B
Plaintext
11 lines
395 B
Plaintext
{{#data-user-interface-preferences}}{{{html-items}}}{{/data-user-interface-preferences}}
|
|
{{#is-create-account-allowed}}
|
|
<li id="p-createaccount" class="user-links-collapsible-item">
|
|
{{{html-create-account}}}
|
|
</li>
|
|
{{/is-create-account-allowed}}
|
|
{{^is-anon}}
|
|
{{#data-user-page}}{{{html-items}}}{{/data-user-page}}
|
|
{{#data-notifications}}{{{html-items}}}{{/data-notifications}}
|
|
{{/is-anon}}
|