+ [task#133247,done,2h] Cne watch events.

This commit is contained in:
zhangxiquan
2024-11-27 17:45:49 +08:00
committed by 翟晓剑
parent 7c10736a67
commit 93b89a0922
+5 -3
View File
@@ -757,10 +757,12 @@ class instance extends control
*/
public function events(int $id): void
{
if (!commonModel::hasPriv('instance', 'manage')) $this->loadModel('common')->deny('instance', 'manage', false);
$instance = $this->instance->getByID($id);
if (!commonModel::hasPriv('instance', 'manage'))
{
$this->loadModel('common')->deny('instance', 'manage', false);
}
$this->view->instance = $instance;
$this->view->instance = $this->instance->getByID($id);
$this->display();
}