*
* @param $action The action or configuration entry plus prefix the user wants to perform
* @return $hasRequired Wether the user has the required points
+ * @todo Finish loading part of points
*/
public function ifUserHasRequiredPoints ($action) {
// Default is that everyone is poor... ;-)
// Now get a search criteria and set the user's name as criteria
$criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
- $criteriaInstance->addCriteria('points_uid', $this->getUserInstance()->getUserName());
+ $criteriaInstance->addCriteria("points_uid", $this->getUserInstance()->getUserName());
$criteriaInstance->setLimit(1);
// Get result back