Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync capabilities : only of "active member statut" not of "past member statut" #49

Open
jbonlinea opened this issue Oct 11, 2023 · 0 comments

Comments

@jbonlinea
Copy link

Hi there,

I'm updating the implementation I had done of this plug-in and realized something very surprising to me.

Let's say we have a civi membership type that use civi built in membership statut.

In civi-wp-membersync, I can set the syncing setting for this membership type. More specifically, I can use capabilities rather than roles, and I can specify which statut are considered as "current member" and which are considered as "past member". That's great.

However it appears that the capabilities are only synced when the statut is considered as "curent member". If I set that "curent member" include "new, curent, and grace" and change a civi-contact member statut to one of this three statut, the user capabilities are updated.

But If I change a civi-contact member statut to expired or canceled, then the wp-user do not have any civi-capabilities anymore !

That's super weird, no ?As I understand it, one of the main reason to use capabilities rather than roles, is to tune wp behaviour according to a given membership statut (new, current, grace, expire, etc..) and not only give an On/Off approach of member/not-member like with roles. The fact that the capabilities are deleted and not syced for "past members" prevent us to tune wp-behaviour accounding to statut, or force us to set that all statut are understood as "curent members" in wordpress.

Have I missed something or could the desing of civi-wp-member sync be changed so it sync the capabilities or any members of any statute ?

Thank's in advanced for your attention, and for the great work behinf this super usefull plug-in

Cheerrs

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

No branches or pull requests

1 participant