public function matchGroup($user){
        if($this->groups == '*'){
            return true;
        }
        return empty($this->groups) || in_array($user->identity->getGroup(), $this->groups, true);
    }