diff --git a/src/Cms/ModelPermissions.php b/src/Cms/ModelPermissions.php index ba9b0010ba..a9e75cc0c0 100644 --- a/src/Cms/ModelPermissions.php +++ b/src/Cms/ModelPermissions.php @@ -16,14 +16,12 @@ abstract class ModelPermissions { protected string $category; - protected ModelWithContent|Language $model; protected array $options; protected Permissions $permissions; protected User $user; - public function __construct(ModelWithContent|Language $model) + public function __construct(protected ModelWithContent|Language $model) { - $this->model = $model; $this->user = $model->kirby()->user() ?? User::nobody(); $this->permissions = $this->user->role()->permissions();