Fossil SCM

Granted access to /setup_timeline to Admin users as well as Setup users.

wyoung 2018-11-30 23:18 trunk
Commit cd8c5df51301e2bdc3856a273c6a224867e648a46c937efc083fb0b84f405301
1 file changed +5 -3
+5 -3
--- src/setup.c
+++ src/setup.c
@@ -110,12 +110,14 @@
110110
setup_menu_entry("Security-Audit", "secaudit0",
111111
"Analyze the current configuration for security problems");
112112
if( setup_user ){
113113
setup_menu_entry("Settings", "setup_settings",
114114
"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 ){
117119
setup_menu_entry("Login-Group", "setup_login_group",
118120
"Manage single sign-on between this repository and others"
119121
" on the same server");
120122
setup_menu_entry("Tickets", "tktsetup",
121123
"Configure the trouble-ticketing system for this repository");
@@ -661,11 +663,11 @@
661663
"2", "YYYY-MM-DD HH:MM",
662664
"3", "YYMMDD HH:MM",
663665
"4", "(off)"
664666
};
665667
login_check_credentials();
666
- if( !g.perm.Setup ){
668
+ if( !g.perm.Admin ){
667669
login_needed(0);
668670
return;
669671
}
670672
671673
style_header("Timeline Display Preferences");
672674
--- 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

Keyboard Shortcuts

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