getGroups()) OR ($action != 'edit' AND $action != 'create')) { $result = null; return true; } // Make sure they're editing their own page if its a user page if ($title->getNamespace() == NS_USER AND $user->getName() == $title->getText()) { $result = true; return true; } // Finally check to see if their user page has content $userPageTitle = Title::makeTitle( NS_USER, $user->getName() ); $userPage = new Article( $userPageTitle ); if ($userPage->exists()) { $result = true; return true; } $result = false; return true; } } ?>