From 7c20481f95193ebcda0080eadfe77a43f9ca21d1 Mon Sep 17 00:00:00 2001 From: rasstislav Date: Sun, 25 Sep 2016 14:14:27 +0200 Subject: [PATCH] added canView function --- code/model/Widget.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/model/Widget.php b/code/model/Widget.php index 62c29e1..bfefa62 100644 --- a/code/model/Widget.php +++ b/code/model/Widget.php @@ -316,4 +316,9 @@ class Widget extends DataObject $this->Name = $this->class . $this->ID; $this->write(); } + + public function canView($member = null) + { + return true; + } }