Upgrade to 3.7.0
This commit is contained in:
10
kirby/config/api/routes/roles.php
Normal file → Executable file
10
kirby/config/api/routes/roles.php
Normal file → Executable file
@@ -8,13 +8,15 @@ return [
|
||||
'pattern' => 'roles',
|
||||
'method' => 'GET',
|
||||
'action' => function () {
|
||||
switch (get('canBe')) {
|
||||
$kirby = $this->kirby();
|
||||
|
||||
switch ($kirby->request()->get('canBe')) {
|
||||
case 'changed':
|
||||
return $this->kirby()->roles()->canBeChanged();
|
||||
return $kirby->roles()->canBeChanged();
|
||||
case 'created':
|
||||
return $this->kirby()->roles()->canBeCreated();
|
||||
return $kirby->roles()->canBeCreated();
|
||||
default:
|
||||
return $this->kirby()->roles();
|
||||
return $kirby->roles();
|
||||
}
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user