Exemplo n.º 1
0
 public function getCredential()
 {
     $list = $this->retrieveSkinnyList();
     if ($list && $this->getUser()->isOwnerOf($list)) {
         $this->getUser()->addCredential('owner');
     } else {
         $this->getUser()->removeCredential('owner');
     }
     // the hijack is over, let the normal flow continue:
     return parent::getCredential();
 }
 public function getCredential()
 {
     $this->checkOwnership();
     return parent::getCredential();
 }