mirror of
https://github.com/discourse/discourse-gated-topics-in-category.git
synced 2026-09-17 07:32:15 -04:00
main
discourse/discourse#42711 renamed `user.groups` to `user.visibleGroups` and made `groups` a getter-only alias that emits a deprecation warning. This broke all five group-based acceptance tests. `needs.user({ groups })` routes through `updateCurrentUser`, which calls `setProperties` on the already-created current user rather than going through `User.create` (which still translates the `groups` arg). Ember's `set` reads the property, emitting the deprecation, then throws `TypeError: Cannot set property groups of [object Object] which has only a getter`. The failure happened in `beforeEach`, so the tests never reached an assertion. Switches the test fixtures to `visibleGroups`, matching how core updated its own tests in that PR.
discourse-gated-topics-in-category
This theme component allows site admins to show a login prompt that covers the topic contents in specific categories as a way to encourage readers to sign up and log in.
| 📖 | Learn More | https://meta.discourse.org/t/gated-topics-in-category/225454 |
| ❓ | Install Guide | How to install a theme or theme component |
| 🧠 | New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Languages
JavaScript
64.4%
Ruby
27.5%
SCSS
8.1%