public function deleteAction($id = false) { $this->permission('delete'); if (!$id) { return Brightery::error404(); } $commerce = new \modules\commerce\models\Commerce_shares(); $commerce->commerce_shares_id = $id; if ($commerce->delete()) { Uri_helper::redirect("management/commerce_shares"); } }