* Remove test code.

This commit is contained in:
zhaoke
2023-07-26 19:45:18 +08:00
parent 5c4cb46b14
commit 5880a43440
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -2049,7 +2049,7 @@ class InstanceModel extends model
if($action == 'stop') return empty($instance->type) ? $this->canDo('stop', $instance) : false;
if($action == 'uninstall') return empty($instance->solution) && $this->canDo('uninstall', $instance);
if($action == 'visit') return empty($instance->type) ? ($instance->domain && $this->canDo('visit', $instance)) : true;
if($action == 'upgrade') return true || !empty($instance->latestVersion);
if($action == 'upgrade') return !empty($instance->latestVersion);
if($action == 'bindUser') return empty($instance->type) ? false : true;
if($action == 'edit') return empty($instance->type) ? false : true;