* Fix bug #46351, show access denied alert.

This commit is contained in:
liumengyi
2024-03-04 09:57:22 +08:00
committed by caoyanyi
parent 08337fe4fd
commit 4ccdf12c46
+1 -1
View File
@@ -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'));
}