mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Legacy pages
This commit is contained in:
parent
db5192e2bb
commit
2bbbb541c5
@ -65,4 +65,14 @@ class ObjectGraphQlEx extends Extension
|
||||
// TODO: GraphQL form response /element/*id*/action
|
||||
return $req->requestVar('SecurityID') || $req->httpMethod() === 'POST' || preg_match('!element/([0-9]+)/([A-z]+)!', $req->getURL());
|
||||
}
|
||||
|
||||
public function isLegacy()
|
||||
{
|
||||
$object = $this->owner;
|
||||
|
||||
return $object->config()->get('legacy') || in_array($object->ClassName, [
|
||||
RedirectorPage::class,
|
||||
ErrorPage::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user