Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Added comments to DataObject->can()

  • Loading branch information...
commit 7e5da2744337f036fb2b77cb8d3d887a99c34f80 1 parent 764c5a8
@chillu chillu authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  core/model/DataObject.php
View
2  core/model/DataObject.php
@@ -2371,6 +2371,7 @@ function can($perm, $member = null) {
$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 @@ function can($perm, $member = null) {
$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\""
Please sign in to comment.
Something went wrong with that request. Please try again.