From 4de873fb2cabaa36a580ca03de18ad1abb9c7c1f Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 21 Nov 2022 20:14:47 +0800 Subject: [PATCH] fix(web/blog): comment login check --- web/app/controllers/subdomain/blog/blog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/subdomain/blog/blog.php b/web/app/controllers/subdomain/blog/blog.php index 88c3ffe..5150047 100644 --- a/web/app/controllers/subdomain/blog/blog.php +++ b/web/app/controllers/subdomain/blog/blog.php @@ -25,7 +25,7 @@ $comment_form->addVTextArea( '内容', '', function ($comment) { - if (Auth::check()) { + if (!Auth::check()) { return '请先登录'; } if (!$comment) {