Ticket #1704 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

RoleRecipientsRules don't work for role pseudo groups

Reported by: gracinet Assigned to: trac
Priority: P2 Milestone: CPS 3.4.3
Component: CPSSubscriptions Version: TRUNK
Severity: normal Keywords:
Cc:

Description

If one notifies SectionReader? and role:Authenticated has this role, no mail is sent.

I believe this is due to the switch to CPSUserFolder. Extract from CPSSubscriptions/RecipientsRules.py, at line 846

                        if entry.startswith('group:'):
                            group_id = entry.split(':')[1]
                            aclu = getattr(self, 'acl_users', None)
                            if group_id == 'role':
                                group_id = group_id + ':' + entry.split(':')[2]
                            group = aclu.getGroupById(group_id)
                            member_ids = group.getUsers()

Change History

10/10/06 18:22:16 changed by ogrisel

  • status changed from new to closed.
  • resolution set to fixed.

already fixed earlier and enhanced by [49505]