update kirby to v5 and add refresh cache panel view button
This commit is contained in:
commit
9a86d41254
466 changed files with 19960 additions and 10497 deletions
|
|
@ -13,7 +13,15 @@ namespace Kirby\Cms;
|
|||
*/
|
||||
class FilePermissions extends ModelPermissions
|
||||
{
|
||||
protected string $category = 'files';
|
||||
protected const CATEGORY = 'files';
|
||||
|
||||
/**
|
||||
* Used to cache once determined permissions in memory
|
||||
*/
|
||||
protected static function cacheKey(ModelWithContent|Language $model): string
|
||||
{
|
||||
return $model->template() ?? '__none__';
|
||||
}
|
||||
|
||||
protected function canChangeTemplate(): bool
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue