Fossil SCM
Granted access to /setup_timeline to Admin users as well as Setup users.
Commit
cd8c5df51301e2bdc3856a273c6a224867e648a46c937efc083fb0b84f405301
Parent
91e8c1213607ceb…
1 file changed
+5
-3
+5
-3
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -110,12 +110,14 @@ | ||
| 110 | 110 | setup_menu_entry("Security-Audit", "secaudit0", |
| 111 | 111 | "Analyze the current configuration for security problems"); |
| 112 | 112 | if( setup_user ){ |
| 113 | 113 | setup_menu_entry("Settings", "setup_settings", |
| 114 | 114 | "Web interface to the \"fossil settings\" command"); |
| 115 | - setup_menu_entry("Timeline", "setup_timeline", | |
| 116 | - "Timeline display preferences"); | |
| 115 | + } | |
| 116 | + setup_menu_entry("Timeline", "setup_timeline", | |
| 117 | + "Timeline display preferences"); | |
| 118 | + if( setup_user ){ | |
| 117 | 119 | setup_menu_entry("Login-Group", "setup_login_group", |
| 118 | 120 | "Manage single sign-on between this repository and others" |
| 119 | 121 | " on the same server"); |
| 120 | 122 | setup_menu_entry("Tickets", "tktsetup", |
| 121 | 123 | "Configure the trouble-ticketing system for this repository"); |
| @@ -661,11 +663,11 @@ | ||
| 661 | 663 | "2", "YYYY-MM-DD HH:MM", |
| 662 | 664 | "3", "YYMMDD HH:MM", |
| 663 | 665 | "4", "(off)" |
| 664 | 666 | }; |
| 665 | 667 | login_check_credentials(); |
| 666 | - if( !g.perm.Setup ){ | |
| 668 | + if( !g.perm.Admin ){ | |
| 667 | 669 | login_needed(0); |
| 668 | 670 | return; |
| 669 | 671 | } |
| 670 | 672 | |
| 671 | 673 | style_header("Timeline Display Preferences"); |
| 672 | 674 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -110,12 +110,14 @@ | |
| 110 | setup_menu_entry("Security-Audit", "secaudit0", |
| 111 | "Analyze the current configuration for security problems"); |
| 112 | if( setup_user ){ |
| 113 | setup_menu_entry("Settings", "setup_settings", |
| 114 | "Web interface to the \"fossil settings\" command"); |
| 115 | setup_menu_entry("Timeline", "setup_timeline", |
| 116 | "Timeline display preferences"); |
| 117 | setup_menu_entry("Login-Group", "setup_login_group", |
| 118 | "Manage single sign-on between this repository and others" |
| 119 | " on the same server"); |
| 120 | setup_menu_entry("Tickets", "tktsetup", |
| 121 | "Configure the trouble-ticketing system for this repository"); |
| @@ -661,11 +663,11 @@ | |
| 661 | "2", "YYYY-MM-DD HH:MM", |
| 662 | "3", "YYMMDD HH:MM", |
| 663 | "4", "(off)" |
| 664 | }; |
| 665 | login_check_credentials(); |
| 666 | if( !g.perm.Setup ){ |
| 667 | login_needed(0); |
| 668 | return; |
| 669 | } |
| 670 | |
| 671 | style_header("Timeline Display Preferences"); |
| 672 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -110,12 +110,14 @@ | |
| 110 | setup_menu_entry("Security-Audit", "secaudit0", |
| 111 | "Analyze the current configuration for security problems"); |
| 112 | if( setup_user ){ |
| 113 | setup_menu_entry("Settings", "setup_settings", |
| 114 | "Web interface to the \"fossil settings\" command"); |
| 115 | } |
| 116 | setup_menu_entry("Timeline", "setup_timeline", |
| 117 | "Timeline display preferences"); |
| 118 | if( setup_user ){ |
| 119 | setup_menu_entry("Login-Group", "setup_login_group", |
| 120 | "Manage single sign-on between this repository and others" |
| 121 | " on the same server"); |
| 122 | setup_menu_entry("Tickets", "tktsetup", |
| 123 | "Configure the trouble-ticketing system for this repository"); |
| @@ -661,11 +663,11 @@ | |
| 663 | "2", "YYYY-MM-DD HH:MM", |
| 664 | "3", "YYMMDD HH:MM", |
| 665 | "4", "(off)" |
| 666 | }; |
| 667 | login_check_credentials(); |
| 668 | if( !g.perm.Admin ){ |
| 669 | login_needed(0); |
| 670 | return; |
| 671 | } |
| 672 | |
| 673 | style_header("Timeline Display Preferences"); |
| 674 |