移除 API Guard 验证

This commit is contained in:
iVampireSP.com 2023-02-22 19:10:51 +08:00
parent 77bafa4f90
commit ceca3c49ea
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -145,7 +145,7 @@ public function markAsRead(): bool
if (auth('admin')->check() && $this->status !== 'replied') {
$this->status = 'read';
} elseif (
(auth('api')->check() || auth('sanctum')->check())
auth('sanctum')->check()
&&
$this->status !== 'user_replied'
) {