fix: library IDs stay hidden without library access (ruling P13)
Outline, node-get, write outlines, the render summary and replace-text's opaque-node match name no library ID unless the library group is visible and the user has divi_library; read-only still names them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,12 @@ final class DiviPageLoader
|
||||
return $this->library;
|
||||
}
|
||||
|
||||
/** Ruling P13: whether the Divi tools may name library IDs (no library access = never). */
|
||||
public function libraryIdsVisible(): bool
|
||||
{
|
||||
return $this->library?->revealsIds() ?? false;
|
||||
}
|
||||
|
||||
/** Readers pass $forWrite = false (trashed entries may be read, like lit-content-get). */
|
||||
public function load(mixed $postId, bool $forWrite): DiviPage|WP_Error
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user