This topic contains 5 replies, has 2 voices, and was last updated by seddonm1 9 years, 10 months ago.
- Topic
Hi,
I have a question which I will do my best to ask here using an example.Scenario:
User creates account and links a contact to that account. User wants the new contact joined to that account to have edit access to that account so they can maintain it themselves and update details.This would require a new user to be created with maybe a role of ‘Account Maintainer’. This user would then have to be assigned to the contact through some intermediary table (in this example MY_NEW_CONTACT_TO_USER_TABLE which would be one-to-one). This would allow a join like this:
These people would be used in the ACL:
select * from orocrm_account
inner join orocrm_account_to_contact on orocrm_account.id = orocrm_account_to_contact.account_id
inner join MY_NEW_CONTACT_TO_USER_TABLE on orocrm_account_to_contact.contact_id = MY_NEW_CONTACT_TO_USER_TABLE.contact_id
where MY_NEW_CONTACT_TO_USER_TABLE.user_id = {CurrentUser}
or
orocrm_account.user_owner_id = {CurrentUser}Current model:
My problem is that in my understanding of oro_security it uses the annotations on the Account entity which only supports one field:
* “ownership”={
* “owner_type”=”USER”,
* “owner_field_name”=”owner”,
* “owner_column_name”=”user_owner_id”
* },Assuming that we already had a way of linking the orocrm_contact entity to the oro_user entity how would you go about providing multiple ownership fields in the entity?
Thanks,
Mike
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.