移除 API Guard 验证
This commit is contained in:
parent
77bafa4f90
commit
ceca3c49ea
@ -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'
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user