diff --git a/README.md b/README.md index 821ec261..1367f22c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,11 @@ - Mysql: 5.7最新版或以上版本 - Redis:可选 +## 捐赠 +此程序由个人维护,如果对你有帮助,可以请我喝杯咖啡。感谢以下捐赠者: + +**初心、陌路つ** + ## 更多信息 博客:[https://nexusphp.org](http://nexusphp.org/) 论坛:[https://discuss.nexusphp.org](https://discuss.nexusphp.org/) diff --git a/app/Models/User.php b/app/Models/User.php index 5bfc06b7..bee6a3eb 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -249,7 +249,7 @@ class User extends Authenticatable public function canAccessAdmin() { - $targetClass = self::CLASS_MODERATOR; + $targetClass = self::CLASS_SYSOP; if (!$this->class || $this->class < $targetClass) { do_log(sprintf('user: %s, no class or class < %s, can not access admin.', $this->id, $targetClass)); return false; diff --git a/include/functions.php b/include/functions.php index 6e7a1c90..3357ef26 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2483,7 +2483,7 @@ else { Torrents seeding Torrents leeching   - = UC_MODERATOR) { ?> [] + = UC_SYSOP) { ?> []
diff --git a/nexus/Install/Install.php b/nexus/Install/Install.php index b0b450a3..54fe3bb4 100644 --- a/nexus/Install/Install.php +++ b/nexus/Install/Install.php @@ -2,6 +2,7 @@ namespace Nexus\Install; +use Illuminate\Support\Str; use Nexus\Database\DB; class Install @@ -220,6 +221,9 @@ class Install $value = $oldGroupValues[$key]; } } + if ($prefix == 'basic' && Str::startsWith($value, 'localhost')) { + $value = ''; + } if (isset($requireDirs[$prefix]) && in_array($key, $requireDirs[$prefix])) { $dir = getFullDirectory($value); $tableRows[] = [