public function isAdminUser($userGroupId = null) { if (!$userGroupId) { return BcUtil::isAdminUser(); } if ($userGroupId == Configure::read('BcApp.adminGroupId')) { return true; } else { return false; } }