Overview
SHA1 Hash: | 19f5d0b15fc7b6109bf1c0daeb5ebe6ea37807f4 |
---|---|
Date: | 2008-11-20 23:15:30 |
User: | drh |
Comment: | Require wiki read permission in order to visit the /home URL. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/wiki.c from [8673214ab7] to [2a9c0eaad3].
@@ -78,20 +78,22 @@ ** WEBPAGE: index ** WEBPAGE: not_found */ void home_page(void){ char *zPageName = db_get("project-name",0); + login_check_credentials(); + if( !g.okRdWiki ){ + cgi_redirect("/login?g=/home"); + } if( zPageName ){ login_check_credentials(); g.zExtra = zPageName; cgi_set_parameter_nocopy("name", g.zExtra); - g.okRdWiki = 1; g.argv[1] = "home"; wiki_page(); return; } - login_check_credentials(); style_header("Home"); @ <p>This is a stub home-page for the project. @ To fill in this page, first go to @ <a href="%s(g.zBaseURL)/setup_config">setup/config</a> @ and establish a "Project Name". Then create a