permissions

This commit is contained in:
2023-10-17 22:57:25 +03:00
parent 4b9e9cb4f6
commit 632684f514
29 changed files with 370 additions and 223 deletions
+2
View File
@@ -22,6 +22,8 @@ class CollectionSchema implements Schema
public string $color = "",
public string $titleTemplate = "",
public int $revisions = 0,
public array $read = [],
public array $write = [],
)
{
}
+2
View File
@@ -23,6 +23,8 @@ class FilesSchema implements Schema
public string $color = "",
public string $titleTemplate = "",
public int $revisions = 0,
public array $read = [],
public array $write = [],
)
{
}
+6
View File
@@ -26,6 +26,8 @@ class SchemaService
color: $schemaArr["color"] ?? "",
titleTemplate: $schemaArr["titleTemplate"] ?? "",
revisions: $schemaArr["revisions"] ?? 0,
read: $schemaArr["read"] ?? [],
write: $schemaArr["write"] ?? [],
),
"files" => new FilesSchema(
name: $schemaArr["name"],
@@ -37,6 +39,8 @@ class SchemaService
color: $schemaArr["color"] ?? "",
titleTemplate: $schemaArr["titleTemplate"] ?? "",
revisions: $schemaArr["revisions"] ?? 0,
read: $schemaArr["read"] ?? [],
write: $schemaArr["write"] ?? [],
),
"block" => new BlockSchema(
name: $schemaArr["name"],
@@ -62,6 +66,8 @@ class SchemaService
}
//
// /**
// * @param array<string> $visible