Fossil SCM

Fix the setting of authorized editors on the new skin page.

drh 2017-12-03 02:11 skin-setup-refactor
Commit d8846443b45b0d53d40226764d7b45e5f5bb539c247d7aab2187c44fce733bfd
1 file changed +2 -1
+2 -1
--- src/skins.c
+++ src/skins.c
@@ -845,12 +845,13 @@
845845
846846
/* Initialize the skin, if requested and authorized. */
847847
if( P("init3")!=0 && isEditor ){
848848
skin_initialize_draft(iSkin, P("initskin"));
849849
}
850
- if( P("e3")!=0 && isSetup ){
850
+ if( P("submit2")!=0 && isSetup ){
851851
db_set_mprintf("draft%d-users", PD("editors",""), 0, iSkin);
852
+ zAllowedEditors = db_get_mprintf("draft%d-users", "", iSkin);
852853
}
853854
854855
/* Publish the draft skin */
855856
if( P("pub7")!=0 && PB("pub7ck1") && PB("pub7ck2") ){
856857
skin_publish(iSkin);
857858
--- src/skins.c
+++ src/skins.c
@@ -845,12 +845,13 @@
845
846 /* Initialize the skin, if requested and authorized. */
847 if( P("init3")!=0 && isEditor ){
848 skin_initialize_draft(iSkin, P("initskin"));
849 }
850 if( P("e3")!=0 && isSetup ){
851 db_set_mprintf("draft%d-users", PD("editors",""), 0, iSkin);
 
852 }
853
854 /* Publish the draft skin */
855 if( P("pub7")!=0 && PB("pub7ck1") && PB("pub7ck2") ){
856 skin_publish(iSkin);
857
--- src/skins.c
+++ src/skins.c
@@ -845,12 +845,13 @@
845
846 /* Initialize the skin, if requested and authorized. */
847 if( P("init3")!=0 && isEditor ){
848 skin_initialize_draft(iSkin, P("initskin"));
849 }
850 if( P("submit2")!=0 && isSetup ){
851 db_set_mprintf("draft%d-users", PD("editors",""), 0, iSkin);
852 zAllowedEditors = db_get_mprintf("draft%d-users", "", iSkin);
853 }
854
855 /* Publish the draft skin */
856 if( P("pub7")!=0 && PB("pub7ck1") && PB("pub7ck2") ){
857 skin_publish(iSkin);
858

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button