Skip to content

fix: only enable again the users disabled for billing - #38

Merged
vitormattos merged 1 commit into
fix/record-wordpress-login-linkfrom
fix/reenable-only-billing-disabled-users
Nov 14, 2026
Merged

vitormattos merged 1 commit into
fix/record-wordpress-login-linkfrom
fix/reenable-only-billing-disabled-users

Conversation

@YvesCesar

Copy link
Copy Markdown
Member

Depends on #37.

Purpose

users-of-group/set-enabled with enabled=1, and every new call to admin-group for an existing group (renewal, plan change), enabled all the members of the group. Users disabled on purpose by the group admin, such as people who left the company, got their access back on the next billing event.

Changes

  • set-enabled with enabled=0 marks each user it disables with the user preference admin_group_manager / disabled_by_billing. Users already disabled are left unmarked.
  • set-enabled with enabled=1 and the re-provisioning path of admin-group only enable users that carry the mark, and remove it.
  • CHANGELOG entry: users disabled for billing before this version are not enabled again automatically; the group admin enables them in the users settings.
  • Endpoint description and OpenAPI spec updated.

Verification

  • Psalm, PHP CS Fixer, PHP lint and composer run openapi pass locally.
  • The repository has no PHPUnit or Behat suite yet, so this was checked against a local Nextcloud 33 with the app installed:
    • a member disabled by the group admin stays disabled after admin-group and after set-enabled with enabled=1;
    • a member disabled by set-enabled with enabled=0 is enabled again by enabled=1, and the mark is removed.

Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
@YvesCesar
YvesCesar force-pushed the fix/record-wordpress-login-link branch from ace3dd2 to 7c1fa32 Compare November 14, 2026 15:20
@YvesCesar
YvesCesar force-pushed the fix/reenable-only-billing-disabled-users branch from e4d2148 to 7900796 Compare November 14, 2026 15:20
@vitormattos
vitormattos merged commit 33115ca into fix/record-wordpress-login-link Nov 14, 2026
25 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants