project creation request notification working
This commit is contained in:
parent
c750001a2c
commit
c75c5e1d8a
7 changed files with 93 additions and 13 deletions
|
|
@ -16,7 +16,7 @@ function getProjectData($project) {
|
|||
}
|
||||
|
||||
try {
|
||||
$children = $kirby->user()->role() == "admin" ? $page->children()->map(fn($project) => getProjectData($project))->values() : $kirby->user()->projects()->toPages()->map(fn($project) => getProjectData($project))->values();
|
||||
$children = $kirby->user()->role() == "admin" ? $page->childrenAndDrafts()->map(fn($project) => getProjectData($project))->values() : $kirby->user()->projects()->toPages()->map(fn($project) => getProjectData($project))->values();
|
||||
} catch (\Throwable $th) {
|
||||
throw new Exception($th->getMessage() . " line " . $th->getLine(), 1);
|
||||
$children = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue