mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-01 07:17:48 +02:00
12 lines
254 B
PHP
12 lines
254 B
PHP
|
<?php
|
||
|
|
||
|
class WidgetFormProxy extends Controller {
|
||
|
function getFormOwner() {
|
||
|
$widget = DataObject::get_by_id("Widget", $this->urlParams['ID']);
|
||
|
|
||
|
// Put this in once widget->canView is implemented
|
||
|
//if($widget->canView())
|
||
|
return $widget;
|
||
|
|
||
|
}
|
||
|
}
|