From 4ccdf12c465ff1f675bca4530f695dd4ad56da89 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 1 Mar 2024 14:01:10 +0800 Subject: [PATCH] * Fix bug #46351, show access denied alert. --- module/tutorial/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tutorial/control.php b/module/tutorial/control.php index 2cf0de54cf..1e476fb96c 100644 --- a/module/tutorial/control.php +++ b/module/tutorial/control.php @@ -128,7 +128,7 @@ class tutorial extends control if(!$hasPriv && $module == 'my' && $method == 'index') $hasPriv = true; if(!$hasPriv) { - if(helper::isAjaxRequest()) return $this->send(array('result' => 'fail', 'message' => $this->lang->error->accessDenied, 'load' => array('back' => true))); + if(helper::isAjaxRequest()) return $this->send(array('result' => 'success', 'message' => $this->lang->error->accessDenied, 'load' => array('alert' => $this->lang->error->accessDenied))); return print(js::locate('back')); }