From 0151fd5711d89b64fdab77d1fb7bbab9ef88ae2e Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 18 Aug 2025 05:40:15 +0000 Subject: [PATCH] * [misc] modify alert. --- module/story/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index 486cacc726..61e4f17c9d 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -523,7 +523,7 @@ class story extends control return $this->send(array('result' => 'success', 'load' => array('alert' => $this->lang->notFound, 'locate' => $this->createLink($locateModule, $locateMethod)))); } - if(!$this->app->user->admin and strpos(",{$this->app->user->view->products},", ",$story->product,") === false) return $this->send(array('result' => 'success', 'message' => $this->lang->product->accessDenied, 'load' => array('back' => true))); + if(!$this->app->user->admin and strpos(",{$this->app->user->view->products},", ",$story->product,") === false) return $this->send(array('result' => 'fail', 'load' => array('alert' => $this->lang->product->accessDenied, 'locate' => $this->createLink('my', 'index')))); $this->session->set('productList', $uri . "#app={$tab}", 'product'); if(!empty($story->fromBug)) $this->session->set('bugList', $uri, 'qa');