Upgrade to 3.2.5

This commit is contained in:
Bastian Allgeier
2019-09-24 11:00:59 +02:00
parent ff9b5b1861
commit 447a9dd266
234 changed files with 1990 additions and 1224 deletions

View File

@@ -1,8 +1,7 @@
<?php
use Kirby\Exception\NotFoundException;
use Kirby\Exception\InvalidArgumentException;
use Kirby\Exception\PermissionException;
use Kirby\Exception\NotFoundException;
/**
* Authentication

View File

@@ -1,7 +1,5 @@
<?php
use Kirby\Exception\InvalidArgumentException;
/**
* Files Routes
*/

View File

@@ -1,7 +1,5 @@
<?php
use Kirby\Exception\InvalidArgumentException;
/**
* Page Routes
*/

View File

@@ -8,7 +8,14 @@ return [
'pattern' => 'roles',
'method' => 'GET',
'action' => function () {
return $this->kirby()->roles();
switch (get('canBe')) {
case 'changed':
return $this->kirby()->roles()->canBeChanged();
case 'created':
return $this->kirby()->roles()->canBeCreated();
default:
return $this->kirby()->roles();
}
}
],
[

View File

@@ -1,5 +1,8 @@
<?php
use Kirby\Exception\Exception;
use Kirby\Exception\InvalidArgumentException;
/**
* System Routes
*/
@@ -54,11 +57,11 @@ return [
}
if ($system->isInstallable() === false) {
throw new Exception('The panel cannot be installed');
throw new Exception('The Panel cannot be installed');
}
if ($system->isInstalled() === true) {
throw new Exception('The panel is already installed');
throw new Exception('The Panel is already installed');
}
// create the first user