Bug 1606094: Stop sending quota notifications to everyone
This patch changes that bad left (outer) join to an inner
join, so that we only check for notifications for users
who are in the affected institution.
As a further safeguard, it also removes the line that
compared each user's file usage to the institution's
new quota. Now, we'll instead compare each user's
file usage to that user's current quota (which, for
members of the institution, will be the institution's
new quota.)
Change-Id: I4db6068221d1238c8a755434e78e6cc006a84aa8
behatnotneeded: Test to come later
Reviewed: https:/ /reviews. mahara. org/6748 /git.mahara. org/mahara/ mahara/ commit/ 2c262cdf8d3ddb8 c9c66565c084b67 e2f24825e6
Committed: https:/
Submitter: Son Nguyen (<email address hidden>)
Branch: master
commit 2c262cdf8d3ddb8 c9c66565c084b67 e2f24825e6
Author: Aaron Wells <email address hidden>
Date: Mon Jul 25 13:46:14 2016 +1200
Bug 1606094: Stop sending quota notifications to everyone
This patch changes that bad left (outer) join to an inner
join, so that we only check for notifications for users
who are in the affected institution.
As a further safeguard, it also removes the line that
compared each user's file usage to the institution's
new quota. Now, we'll instead compare each user's
file usage to that user's current quota (which, for
members of the institution, will be the institution's
new quota.)
Change-Id: I4db6068221d123 8c8a755434e78e6 cc006a84aa8
behatnotneeded: Test to come later