hasPermission('documentation.view'); } public function view(User $user, DocumentationVersion $documentationVersion): bool { // Not a mistake or typo. Shared rights with Documentation. return $user->hasPermission('documentation.view'); } public function create(User $user): bool { // Not a mistake or typo. Shared rights with Documentation. return $user->hasPermission('documentation.create'); } public function update(User $user, DocumentationVersion $documentationVersion): bool { // Not a mistake or typo. Shared rights with Documentation. return $user->hasPermission('documentation.update'); } public function delete(User $user, DocumentationVersion $documentationVersion): bool { // Not a mistake or typo. Shared rights with Documentation. return $user->hasPermission('documentation.delete'); } }