Update Kirby and add password guard
This commit is contained in:
parent
aaf1aa7890
commit
55d4e45891
987 changed files with 160116 additions and 66454 deletions
13
private/kirby/config/areas/account/buttons.php
Normal file
13
private/kirby/config/areas/account/buttons.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
use Kirby\Cms\App;
|
||||
use Kirby\Cms\User;
|
||||
use Kirby\Panel\Ui\Buttons\ViewButton;
|
||||
|
||||
return [
|
||||
'user.theme' => function (App $kirby, User $user) {
|
||||
if ($kirby->user()->is($user) === true) {
|
||||
return new ViewButton(component: 'k-theme-view-button');
|
||||
}
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue