* Fix bugs.

This commit is contained in:
zenggang
2023-08-15 06:13:29 +00:00
parent f0d0ae469d
commit 2d4bc1d0a3
12 changed files with 178 additions and 76 deletions
+1 -1
View File
@@ -2059,7 +2059,7 @@ class InstanceModel extends model
if($action == 'uninstall') return $instance->type != 'external' && $this->canDo('uninstall', $instance);
if($action == 'visit') return $instance->type != 'external' ? ($instance->domain && $this->canDo('visit', $instance)) : true;
if($action == 'upgrade') return !empty($instance->latestVersion);
if($action == 'bindUser') return ($instance->externalID && in_array($instance->appName, array('Gitlab', 'Gitea', 'Gogs'))) ? true : false;
if($action == 'bindUser') return ($instance->externalID && in_array($instance->appName, array('GitLab', 'Gitea', 'Gogs'))) ? true : false;
if($action == 'edit') return $instance->type != 'external' ? false : true;
return true;