Fossil SCM
Fix the setting of authorized editors on the new skin page.
Commit
d8846443b45b0d53d40226764d7b45e5f5bb539c247d7aab2187c44fce733bfd
Parent
49d923bd8193296…
1 file changed
+2
-1
+2
-1
| --- src/skins.c | ||
| +++ src/skins.c | ||
| @@ -845,12 +845,13 @@ | ||
| 845 | 845 | |
| 846 | 846 | /* Initialize the skin, if requested and authorized. */ |
| 847 | 847 | if( P("init3")!=0 && isEditor ){ |
| 848 | 848 | skin_initialize_draft(iSkin, P("initskin")); |
| 849 | 849 | } |
| 850 | - if( P("e3")!=0 && isSetup ){ | |
| 850 | + if( P("submit2")!=0 && isSetup ){ | |
| 851 | 851 | db_set_mprintf("draft%d-users", PD("editors",""), 0, iSkin); |
| 852 | + zAllowedEditors = db_get_mprintf("draft%d-users", "", iSkin); | |
| 852 | 853 | } |
| 853 | 854 | |
| 854 | 855 | /* Publish the draft skin */ |
| 855 | 856 | if( P("pub7")!=0 && PB("pub7ck1") && PB("pub7ck2") ){ |
| 856 | 857 | skin_publish(iSkin); |
| 857 | 858 |
| --- 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 |