Initial commit
This commit is contained in:
commit
388079e6bb
1108 changed files with 330121 additions and 0 deletions
22
kirby/src/Cms/LanguagePermissions.php
Normal file
22
kirby/src/Cms/LanguagePermissions.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Kirby\Cms;
|
||||
|
||||
/**
|
||||
* LanguagePermissions
|
||||
*
|
||||
* @package Kirby Cms
|
||||
* @author Ahmet Bora <ahmet@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://getkirby.com/license
|
||||
*/
|
||||
class LanguagePermissions extends ModelPermissions
|
||||
{
|
||||
protected const CATEGORY = 'languages';
|
||||
|
||||
protected function canDelete(): bool
|
||||
{
|
||||
return $this->model->isDeletable() === true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue