public function admin_ajax_delete($id = null)
{
$this->_checkSubmitToken();
/* 除外処理 */
if (!$id) {
$this->ajaxError(500, '無効な処理です。');
}
// メッセージ用にデータを取得
$post = $this->Permission->read(null, $id);
/* 削除処理 */
if ($this->Permission->delete($id)) {
$message = 'アクセス制限設定「' . $post['Permission']['name'] . '」 を削除しました。';
exit(true);
}
exit;
}