コード例 #1
0
ファイル: actions.class.php プロジェクト: nacmartin/skinny
 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();
 }
コード例 #2
0
 public function getCredential()
 {
     $this->checkOwnership();
     return parent::getCredential();
 }