Arpit Jalan a7fbca5dcd DEV: Use visibleGroups instead of deprecated user.groups (#77)
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.
2026-09-01 11:27:29 +05:30
2026-05-17 19:04:11 +02:00
2024-10-14 10:04:53 +02:00
2024-03-27 18:32:45 +00:00
2024-10-17 11:11:14 +02:00
2024-10-17 11:11:14 +02:00
2024-03-27 18:32:45 +00:00
2024-06-09 10:17:29 +01:00
2024-10-17 11:11:14 +02:00
2026-03-13 13:14:37 +00:00
2022-04-05 11:28:13 -06:00
2026-03-13 13:14:37 +00:00
2026-03-13 13:14:37 +00:00
2022-04-27 10:56:42 -06:00
2025-03-17 10:44:00 +00:00
2024-06-11 13:36:41 +02:00

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.

image
📖 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? Beginners guide to using Discourse Themes
S
Description
No description provided
Readme MIT
647 KiB
Languages
JavaScript 64.4%
Ruby 27.5%
SCSS 8.1%