summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2015-07-31 09:32:56 +0200
committerINOPIAE <inopiae@cacert.org>2015-07-31 09:43:22 +0200
commite33a8de01c1548d155bf08d362de241906ef16c3 (patch)
tree951166ce60d4cc208a344ec5e98cabb8a86f1f85
parentf97cb26f07258d26bec347ce048d2118ee88b487 (diff)
downloadcacert-mgr-e33a8de01c1548d155bf08d362de241906ef16c3.tar.gz
cacert-mgr-e33a8de01c1548d155bf08d362de241906ef16c3.tar.xz
cacert-mgr-e33a8de01c1548d155bf08d362de241906ef16c3.zip
bug 1391: Ensure current number of assurer's points used for determining maximum points for an assurance.
-rw-r--r--manager/application/models/User.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/manager/application/models/User.php b/manager/application/models/User.php
index 0cb345e..8f9d3da 100644
--- a/manager/application/models/User.php
+++ b/manager/application/models/User.php
@@ -162,12 +162,16 @@ class Default_Model_User {
'`expire` < now()) >= 100';
$query_params['user'] = $this->id;
$this->db->query($query, $query_params);
+
+ $this->refreshPoints();
}
/**
* @return boolean
*/
public function getAssurerStatus() {
+ $this->refreshPoints();
+
$query = 'SELECT 1 FROM `users` WHERE `users`.`id` = :user AND '.
'`assurer_blocked` = 0 AND '.