Problem/Motivation

Notifications of expiring passwords continue to be sent for disabled policies.

Proposed resolution

Run cron tasks only for enabled policies.

Remaining tasks

I am unaware of any need to run cron tasks for disabled policies, but someone with more familiarity with this module should chime in if there is a need to do so. It looks like 7.x-1.x ran cron tasks only for enabled policies. Patch to be attached shortly.

CommentFileSizeAuthor
#1 notifications_are_sent-2332373-1.patch806 bytescspiker

Comments

cspiker’s picture

Status: Active » Needs review
StatusFileSize
new806 bytes

Patch attached for review. Can apply using git am.

  • AohRveTPV committed 43b7a02 on 7.x-2.x authored by cspiker
    Issue #2332373 by cspiker: Notifications are sent for disabled policies
    
aohrvetpv’s picture

Status: Needs review » Fixed

Looks good to me. Don't know any reason why a disabled policy would need its cron methods invoked. The only item currently implementing cron() is PasswordPolicyExpire, and it does not seem to make sense for its cron() to be executed when the policy is disabled. Committed/pushed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.