lcdservices / CiviCRM-Group-Sync

Two-way synchronize CiviCRM groups with Joomla ACL groups.
4 stars 1 forks source link

removed from group when activated #1

Closed thoudahl closed 10 years ago

thoudahl commented 12 years ago

Hi,

I have just tested the module and plugin. When I activate the user in the control panel the user is set to joomla rights and not rights according to CiviCRM group. This means that when a user signs up via an civi profile he/she wont end up in the acl as inteded based on civi group.

Is there anything to do about this?

lcdservices commented 12 years ago

We'll take a look. I assume you're using the admin activation setting for user account registration? -brian


Brian Shaughnessy Lighthouse Consulting & Design www.lcdservices.biz 518.894.9214 brian.p.shaughnessy (skype)

-----Original Message----- From: thoudahl [mailto:reply@reply.github.com] Sent: Saturday, March 17, 2012 12:04 AM To: Brian Shaughnessy Subject: [CiviCRM-Group-Sync] removed from group when activated (#1)

Hi,

I have just tested the module and plugin. When I activate the user in the control panel the user is set to joomla rights and not rights according to CiviCRM group. This means that when a user signs up via an civi profile he/she wont end up in the acl as inteded based on civi group.

Is there anything to do about this?


Reply to this email directly or view it on GitHub: https://github.com/lcdservices/CiviCRM-Group-Sync/issues/1

thoudahl commented 12 years ago

Hey Brian et al,

Yes I used the admin activation setting since I am currently testing on my home wamp server with no mail send.

I appreciate your work.

/Christian

Den 17. mar. 2012 16.45 skrev Brian Shaughnessy < reply@reply.github.com

:

We'll take a look. I assume you're using the admin activation setting for user account registration? -brian


Brian Shaughnessy Lighthouse Consulting & Design www.lcdservices.biz 518.894.9214 brian.p.shaughnessy (skype)

-----Original Message----- From: thoudahl [mailto:reply@reply.github.com] Sent: Saturday, March 17, 2012 12:04 AM To: Brian Shaughnessy Subject: [CiviCRM-Group-Sync] removed from group when activated (#1)

Hi,

I have just tested the module and plugin. When I activate the user in the control panel the user is set to joomla rights and not rights according to CiviCRM group. This means that when a user signs up via an civi profile he/she wont end up in the acl as inteded based on civi group.

Is there anything to do about this?


Reply to this email directly or view it on GitHub: https://github.com/lcdservices/CiviCRM-Group-Sync/issues/1


Reply to this email directly or view it on GitHub:

https://github.com/lcdservices/CiviCRM-Group-Sync/issues/1#issuecomment-4554815

Q Please consider the environment before printing this email.

lcdservices commented 12 years ago

just reviewing this again. originally i thought the issue was that we needed to trigger a sync action on the activation action. but the issue is that in the user signup process via a profile, the CiviCRM contact is created first -- at which point there is no Joomla user to sync with -- then the Joomla user account is created. therefore, the sync action happens from Joomla -> CiviCRM. but your joomla user only has the registered group, and thus that's the only one being synced.

which is just to say -- I don't think anything is broken. it's just that because of the system workflow order, you can't control the ACL via the CiviCRM group during signup. note that you can change the default Joomla ACL group that is assigned on registration. but Joomla only gives you the option of selecting one group.

i'll continue chewing it around, but i'm not sure there's a clean solution from the perspective of this extension.

lcdservices commented 12 years ago

one other note -- i just uploaded a new version that improves a few things, including creating a civicrm contact if one does not exist, during user registration.