Fossil

Check-in [d8846443]
Login

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

Overview
Comment:Fix the setting of authorized editors on the new skin page.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | skin-setup-refactor
Files: files | file ages | folders
SHA3-256:d8846443b45b0d53d40226764d7b45e5f5bb539c247d7aab2187c44fce733bfd
User & Date: drh 2017-12-03 02:11:33
Context
2017-12-03
11:18
Rework the Setup/Skin page so that all edits are done on a draft, then tested, then the draft is published to become the default skin. check-in: 106fe618 user: drh tags: trunk
02:11
Fix the setting of authorized editors on the new skin page. Closed-Leaf check-in: d8846443 user: drh tags: skin-setup-refactor
01:57
On the Skins admin page, add Step 8 which gives administrators a link to the legacy Skin control page, with updates to deal with drafts. check-in: 49d923bd user: drh tags: skin-setup-refactor
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/skins.c.

843
844
845
846
847
848
849
850
851

852
853
854
855
856
857
858
    }
  }

  /* Initialize the skin, if requested and authorized. */
  if( P("init3")!=0 && isEditor ){
    skin_initialize_draft(iSkin, P("initskin"));
  }
  if( P("e3")!=0 && isSetup ){
    db_set_mprintf("draft%d-users", PD("editors",""), 0, iSkin);

  }

  /* Publish the draft skin */
  if( P("pub7")!=0 && PB("pub7ck1") && PB("pub7ck2") ){
    skin_publish(iSkin);
  }








|

>







843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
    }
  }

  /* Initialize the skin, if requested and authorized. */
  if( P("init3")!=0 && isEditor ){
    skin_initialize_draft(iSkin, P("initskin"));
  }
  if( P("submit2")!=0 && isSetup ){
    db_set_mprintf("draft%d-users", PD("editors",""), 0, iSkin);
    zAllowedEditors = db_get_mprintf("draft%d-users", "", iSkin);
  }

  /* Publish the draft skin */
  if( P("pub7")!=0 && PB("pub7ck1") && PB("pub7ck2") ){
    skin_publish(iSkin);
  }