front > menu > account : link conditionally to panel or front account depending on user role
This commit is contained in:
parent
c3119a5cab
commit
4113c69ccf
2 changed files with 45 additions and 38 deletions
|
|
@ -18,6 +18,9 @@ return function ($page, $kirby, $site) {
|
|||
"name" => (string) $kirby->user()->client()->toPage()->title(),
|
||||
"uuid" => (string) $kirby->user()->client()->toPage()->uuid()
|
||||
];
|
||||
if ($kirby->user()->client()->toPage()->logo()->isNotEmpty()) {
|
||||
$userData['client']["logo"] = $kirby->user()->client()->toPage()->logo()->toFile()->url();
|
||||
}
|
||||
}
|
||||
|
||||
if ($kirby->user()->projects()->exists() && $kirby->user()->projects()->isNotEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue