/** {@inheritdoc} */ protected function action_delete() { if ($this->bean->application == 'Google') { require_once 'include/externalAPI/Google/ExtAPIGoogle.php'; $api = new ExtAPIGoogle(); $api->revokeToken(); } else { parent::action_delete(); } }
protected function action_delete() { $this->dieIfNotAdmin(); parent::action_delete(); }