Fossil SCM
The additional db_unprotect() work of check-in [b9fa7e28712c5981] was incomplete. Here is an attempt to finish the job.
Commit
50f61b7ad1b651870c7a8a731693f26fba4fe511ba30dde398b5c38fb9868498
Parent
45fc083bbfd73a8…
1 file changed
+2
-2
+2
-2
| --- src/security_audit.c | ||
| +++ src/security_audit.c | ||
| @@ -604,18 +604,18 @@ | ||
| 604 | 604 | if( P("cancel") ){ |
| 605 | 605 | /* User pressed the cancel button. Go back */ |
| 606 | 606 | cgi_redirect("secaudit0"); |
| 607 | 607 | } |
| 608 | 608 | if( P("apply") ){ |
| 609 | - db_unprotect(PROTECT_USER|PROTECT_CONFIG); | |
| 609 | + db_unprotect(PROTECT_ALL); | |
| 610 | 610 | db_multi_exec( |
| 611 | 611 | "UPDATE user SET cap=''" |
| 612 | 612 | " WHERE login IN ('nobody','anonymous');" |
| 613 | 613 | "DELETE FROM config WHERE name='public-pages';" |
| 614 | 614 | ); |
| 615 | - db_protect_pop(); | |
| 616 | 615 | db_set("self-register","0",0); |
| 616 | + db_protect_pop(); | |
| 617 | 617 | cgi_redirect("secaudit0"); |
| 618 | 618 | } |
| 619 | 619 | style_header("Make This Website Private"); |
| 620 | 620 | @ <p>Click the "Make It Private" button below to disable all |
| 621 | 621 | @ anonymous access to this repository. A valid login and password |
| 622 | 622 |
| --- src/security_audit.c | |
| +++ src/security_audit.c | |
| @@ -604,18 +604,18 @@ | |
| 604 | if( P("cancel") ){ |
| 605 | /* User pressed the cancel button. Go back */ |
| 606 | cgi_redirect("secaudit0"); |
| 607 | } |
| 608 | if( P("apply") ){ |
| 609 | db_unprotect(PROTECT_USER|PROTECT_CONFIG); |
| 610 | db_multi_exec( |
| 611 | "UPDATE user SET cap=''" |
| 612 | " WHERE login IN ('nobody','anonymous');" |
| 613 | "DELETE FROM config WHERE name='public-pages';" |
| 614 | ); |
| 615 | db_protect_pop(); |
| 616 | db_set("self-register","0",0); |
| 617 | cgi_redirect("secaudit0"); |
| 618 | } |
| 619 | style_header("Make This Website Private"); |
| 620 | @ <p>Click the "Make It Private" button below to disable all |
| 621 | @ anonymous access to this repository. A valid login and password |
| 622 |
| --- src/security_audit.c | |
| +++ src/security_audit.c | |
| @@ -604,18 +604,18 @@ | |
| 604 | if( P("cancel") ){ |
| 605 | /* User pressed the cancel button. Go back */ |
| 606 | cgi_redirect("secaudit0"); |
| 607 | } |
| 608 | if( P("apply") ){ |
| 609 | db_unprotect(PROTECT_ALL); |
| 610 | db_multi_exec( |
| 611 | "UPDATE user SET cap=''" |
| 612 | " WHERE login IN ('nobody','anonymous');" |
| 613 | "DELETE FROM config WHERE name='public-pages';" |
| 614 | ); |
| 615 | db_set("self-register","0",0); |
| 616 | db_protect_pop(); |
| 617 | cgi_redirect("secaudit0"); |
| 618 | } |
| 619 | style_header("Make This Website Private"); |
| 620 | @ <p>Click the "Make It Private" button below to disable all |
| 621 | @ anonymous access to this repository. A valid login and password |
| 622 |