Fossil

Check-in [2a3e85f2]
Login

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

Overview
Comment:Require wiki edit privilege in order to edit the Sandbox wiki page, just like any other wiki page.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2a3e85f2d5d34b20a5663990e3ee156aa7d90fb4
User & Date: drh 2008-12-26 17:36:08.000
Context
2008-12-26
17:41
Omit the hyperlinks to the wiki edit for the Sandbox if editing is not allowed. ... (check-in: b12a0315 user: drh tags: trunk)
17:36
Require wiki edit privilege in order to edit the Sandbox wiki page, just like any other wiki page. ... (check-in: 2a3e85f2 user: drh tags: trunk)
2008-12-21
16:36
cli docs ... (check-in: aef81bf3 user: kejoki tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/wiki.c.
216
217
218
219
220
221
222




223
224
225
226
227
228
229
    zBody = mprintf("%s", zBody);
  }
  login_check_credentials();
  zPageName = PD("name","");
  if( check_name(zPageName) ) return;
  isSandbox = is_sandbox(zPageName);
  if( isSandbox ){




    if( zBody==0 ){
      zBody = db_get("sandbox","");
    }
  }else{
    zTag = mprintf("wiki-%s", zPageName);
    rid = db_int(0, 
      "SELECT rid FROM tagxref"







>
>
>
>







216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
    zBody = mprintf("%s", zBody);
  }
  login_check_credentials();
  zPageName = PD("name","");
  if( check_name(zPageName) ) return;
  isSandbox = is_sandbox(zPageName);
  if( isSandbox ){
    if( !g.okWrWiki ){
      login_needed();
      return;
    }
    if( zBody==0 ){
      zBody = db_get("sandbox","");
    }
  }else{
    zTag = mprintf("wiki-%s", zPageName);
    rid = db_int(0, 
      "SELECT rid FROM tagxref"