Fossil

Check-in [75e23ea9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove an unnecessary permissions check on the /hash-color-test web page.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 75e23ea9c212c2c0306222c16b1f25a76b189c72
User & Date: drh 2015-04-27 01:37:38
Context
2015-04-27
10:07
Don't reference removed "fossil forks" command any more. check-in: 3a497793 user: jan.nijtmans tags: trunk
01:37
Remove an unnecessary permissions check on the /hash-color-test web page. check-in: 75e23ea9 user: drh tags: trunk
01:27
Remove unnecessary text at the top of the /sitemap page. check-in: 4cacd894 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
** testing the hash_color() function.
*/
void test_hash_color_page(void){
  const char *zBr;
  char zNm[10];
  int i, cnt;
  login_check_credentials();
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }

  style_header("Hash Color Test");
  for(i=cnt=0; i<10; i++){
    sqlite3_snprintf(sizeof(zNm),zNm,"b%d",i);
    zBr = P(zNm);
    if( zBr && zBr[0] ){
      @ <p style='border:1px solid;background-color:%s(hash_color(zBr));'>







<







161
162
163
164
165
166
167

168
169
170
171
172
173
174
** testing the hash_color() function.
*/
void test_hash_color_page(void){
  const char *zBr;
  char zNm[10];
  int i, cnt;
  login_check_credentials();


  style_header("Hash Color Test");
  for(i=cnt=0; i<10; i++){
    sqlite3_snprintf(sizeof(zNm),zNm,"b%d",i);
    zBr = P(zNm);
    if( zBr && zBr[0] ){
      @ <p style='border:1px solid;background-color:%s(hash_color(zBr));'>