From 37a60707143903e109346fc5cd5d769d44a32f35 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Wed, 6 May 2009 05:00:54 +0000 Subject: [PATCH] BUGFIX: Check owner with less complex logic --- code/BlogHolder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/BlogHolder.php b/code/BlogHolder.php index e766729..ce31665 100644 --- a/code/BlogHolder.php +++ b/code/BlogHolder.php @@ -77,7 +77,7 @@ class BlogHolder extends BlogTree { * @return Boolean */ function IsOwner() { - return Permission::check('ADMIN') || (Member::CurrentMember() && Member::CurrentMember()->ID == $this->OwnerID); + return Permission::check('ADMIN') || (Member::currentUserID() == $this->OwnerID); } /**