Problem/Motivation

The "Your image has been approved" message is displayed every time a user logs in. I think that makes sense only for the other 2 states (pending or disapproved).

Steps to reproduce

Approve a user image.
Log in as the approved user -> the message is visible.
Log out and log in again -> the message is still visible.

Proposed resolution

Show the message only if the approval timestamp is greater than the user's last access time.

Comments

kyberman created an issue. See original summary.

kyberman’s picture

Status: Active » Needs review
StatusFileSize
new3.36 KB

I'm attaching the patch, which also includes a few minor improvements.

prethiee’s picture

Assigned: Unassigned » prethiee
Status: Needs review » Patch (to be ported)

Thanks for the patch, Will review and port it other changes in the upcoming release.