From 7e5da2744337f036fb2b77cb8d3d887a99c34f80 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 23 Mar 2011 12:05:44 +1300 Subject: [PATCH] MINOR Added comments to DataObject->can() --- core/model/DataObject.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 2ca99fc1a..1d3e53d57 100755 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -2371,6 +2371,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity $groupList = implode(', ', $groups->column("ID")); + // TODO Fix relation table hardcoding $query = new SQLQuery( "\"Page_Can$perm\".PageID", array("\"Page_Can$perm\""), @@ -2379,6 +2380,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity $permissionCache[$memberID][$perm] = $query->execute()->column(); if($perm == "View") { + // TODO Fix relation table hardcoding $query = new SQLQuery("\"SiteTree\".\"ID\"", array( "\"SiteTree\"", "LEFT JOIN \"Page_CanView\" ON \"Page_CanView\".\"PageID\" = \"SiteTree\".\"ID\""