BUGFIX: Check owner with less complex logic

This commit is contained in:
Hamish Friedlander 2009-05-06 05:00:54 +00:00
parent 16c7b2d431
commit 37a6070714

View File

@ -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);
}
/**