public function permissionSource() {
		if ($this->ParentID) {
			return $this->Parent();
		}
		if ($this->PermSourceID) {
			return $this->PermSource();
		}

		if ($this->ID && $this->Target && strpos($this->Target, ',')) {
			list($type, $id) = explode(',', $this->Target);
			$item = DataList::create($type)->byID($id);
			if ($item) {
				return $item;
			}
		}
	}
public function permissionSource() {
		if ($this->ParentID) {
			return $this->Parent();
		}
		if ($this->PermSourceID) {
			return $this->PermSource();
		}

		if ($this->ID && $this->Target && strpos($this->Target, ',')) {
			list($type, $id) = explode(',', $this->Target);
			$item = DataList::create($type)->byID($id);
			if ($item) {
				return $item;
			}
		}
	}
public function permissionSource ( ) { if ( $ this -> ParentID ) { return $ this -> Parent ( ) ; } if ( $ this -> PermSourceID ) { return $ this -> PermSource ( ) ; } if ( $ this -> ID && $ this -> Target && strpos ( $ this -> Target , ',' ) ) { list ( $ type , $ id ) = explode ( ',' , $ this -> Target ) ; $ item = DataList :: create ( $ type ) -> byID ( $ id ) ; if ( $ item ) { return $ item ; } } }
We need to define a  permission source to ensure the
ParentID isn't used for permission inheritance
We need to define a permission source to ensure the ParentID isn t used for permission inheritance