Child pages
  • [emails] Incomplete info in user membership expiration e-mails [5.3.0-B1]
Skip to end of metadata
Go to start of metadata

The permission system in In-Portal is based around user groups. The permissions are assigned to the user groups and then user can be added to one or more groups. The user group membership can be:

  • permanent
  • time-based

The time-based group membership have fixed expiration date and:

  • user & administrator will be notified ("USER.MEMBERSHIP.EXPIRATION.NOTICE" e-mail template) X days (configurable) ahead, when their membership is about to expire
  • user & administrator will be notified ("USER.MEMBERSHIP.EXPIRED" e-mail template), when their membership is expired

There are few problems with these e-mails:

  1. the user information is missing
  2. the "u" prefix, that is hardcoded in the e-mail template doesn't match one passed from code, that sends these e-mails

Solution

  1. replace the "<inp2:u_" in the subject and body of both e-mails with "<inp2:" (to use externally provided prefix)
  2. from the "u:OnCheckExpiredMembership" event ("membership_expiration" scheduled task) load the user object (for user, whose membership is affected) before sending the actual e-mail

Related Discussions

Related Tasks

INP-1523 - Getting issue details... STATUS

1 Comment

  1. In 5.2.x version these e-mails are sent out, but have missing info. In the 5.3.x however they aren't sent out and scheduled task is marked as "Running" forever resulting in all memberships never expire.