[MokoJoomMembership] [FEATURE] AccessService -- Joomla user group sync #52
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Manages Joomla user group assignments based on active subscriptions.
Responsibilities
Location
admin/src/Service/AccessService.phpKey Methods
grantAccess(int $userId, int $planId): voidrevokeAccess(int $userId, int $planId): voidsyncAll(): arrayhasAccess(int $userId, int $planId): boolNotes
This is the core mechanism for content restriction via standard Joomla ACL. The plans table has a
user_group_idcolumn for this purpose.Built: AccessService already fully implemented (72 lines) — addUserToGroup, hasActiveSubscription.