mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:43:24 +08:00
2968fb6a5c
* Why was this change necessary? The current logic in the user.hbs template file does not render the trust level element for the user's info panel when the user is TL0, because 0 is treated as falsey in the `if` conditional block. Ref: https://meta.discourse.org/t/tl0-not-displayed-on-users-profile-pages/271779/10 * How does it address the problem? This PR adds a predicate helper method local to the user controller that includes an additional check which returns true if the trust_level of the user is 0 on top of the existing logic. This allows TL0 users to have their trust level rendered correctly in their profile's info panel. |
||
---|---|---|
.. | ||
admin | ||
bootstrap-json | ||
confirm-new-email | ||
deprecation-silencer | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-hbr | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
ember-production-deprecations | ||
locales | ||
patches | ||
pretty-text | ||
select-kit | ||
truth-helpers | ||
wizard | ||
.licensee.json | ||
.npmrc | ||
discourse-js-processor.js | ||
handlebars-shim.js | ||
package.json | ||
polyfills.js | ||
service-worker.js.erb | ||
yarn.lock |