refactor: kb & station & terminal

This commit is contained in:
2026-03-23 20:17:17 +08:00
parent 63ea2686e1
commit b74ba1a3f8
81 changed files with 1016 additions and 2492 deletions

View File

@@ -15,16 +15,7 @@ class DocumentService
*/
public function validateDocumentAccess(Document $document, User $user): bool
{
if ($document->type === 'global') {
return true;
}
if ($document->type === 'dedicated') {
$userGroupIds = $user->groups()->pluck('groups.id')->toArray();
return in_array($document->group_id, $userGroupIds);
}
return false;
return true;
}
/**