lib/wiki_patches/wiki_page_patch.rb
#Check if the wiki page as any private parent
Check if the wiki page as any private parent
Check if the wiki page as any private parent
def has_private_parent?()
                @res = self.parent_title
                while @res != nil
                    if self.project.wiki.find_page(@res).private?
                        return true
                    else
                        @res = self.project.wiki.find_page(@res).parent_title
                    end
                end
                return false;
            end
def has_private_parent? ( ) @res = self . parent_title while @res != nil if self . project . wiki . find_page ( @res ) . private? return true else @res = self . project . wiki . find_page ( @res ) . parent_title end end return false ; end
Check if the wiki page as any private parent
Check if the wiki page as any private parent