Fossil SCM

Changed internal docs on capability 6 (AdminForum) to remove the claim that it can be used to revoke capabilty 4 (WrTForum) from users. I think that feature was planned, but no UI was ever created to support it. Maybe that feature will come someday, but the forum feature is over a year old now. Doing it on this branch because this is all part of the capability documentation improvements. Without this checkin, the cap ref doesn't match the code's internal docs.

wyoung 2019-08-29 02:44 caps-doc
Commit fd9ba57a6a80b0efb9b9e56381e00bf23c591db67953ec28a615ca1038b41eba
2 files changed +1 -1 +1 -1
--- src/capabilities.c
+++ src/capabilities.c
@@ -297,11 +297,11 @@
297297
{ '4', CAPCLASS_FORUM, 0,
298298
"Forum-Trusted", "Create forum messages that bypass moderation" },
299299
{ '5', CAPCLASS_FORUM|CAPCLASS_SUPER, 0,
300300
"Forum-Mod", "Moderator for forum messages" },
301301
{ '6', CAPCLASS_FORUM|CAPCLASS_SUPER, 0,
302
- "Forum-Admin", "Set or remove capability '4' from other users" },
302
+ "Forum-Admin", "Grant capability '4' to other users" },
303303
{ '7', CAPCLASS_ALERT, 0,
304304
"Alerts", "Sign up for email alerts" },
305305
{ 'A', CAPCLASS_ALERT|CAPCLASS_SUPER, 0,
306306
"Announce", "Send announcements to all subscribers" },
307307
{ 'D', CAPCLASS_OTHER, 0,
308308
--- src/capabilities.c
+++ src/capabilities.c
@@ -297,11 +297,11 @@
297 { '4', CAPCLASS_FORUM, 0,
298 "Forum-Trusted", "Create forum messages that bypass moderation" },
299 { '5', CAPCLASS_FORUM|CAPCLASS_SUPER, 0,
300 "Forum-Mod", "Moderator for forum messages" },
301 { '6', CAPCLASS_FORUM|CAPCLASS_SUPER, 0,
302 "Forum-Admin", "Set or remove capability '4' from other users" },
303 { '7', CAPCLASS_ALERT, 0,
304 "Alerts", "Sign up for email alerts" },
305 { 'A', CAPCLASS_ALERT|CAPCLASS_SUPER, 0,
306 "Announce", "Send announcements to all subscribers" },
307 { 'D', CAPCLASS_OTHER, 0,
308
--- src/capabilities.c
+++ src/capabilities.c
@@ -297,11 +297,11 @@
297 { '4', CAPCLASS_FORUM, 0,
298 "Forum-Trusted", "Create forum messages that bypass moderation" },
299 { '5', CAPCLASS_FORUM|CAPCLASS_SUPER, 0,
300 "Forum-Mod", "Moderator for forum messages" },
301 { '6', CAPCLASS_FORUM|CAPCLASS_SUPER, 0,
302 "Forum-Admin", "Grant capability '4' to other users" },
303 { '7', CAPCLASS_ALERT, 0,
304 "Alerts", "Sign up for email alerts" },
305 { 'A', CAPCLASS_ALERT|CAPCLASS_SUPER, 0,
306 "Announce", "Send announcements to all subscribers" },
307 { 'D', CAPCLASS_OTHER, 0,
308
+1 -1
--- src/main.c
+++ src/main.c
@@ -105,11 +105,11 @@
105105
char WrUnver; /* y: can push unversioned content */
106106
char RdForum; /* 2: Read forum posts */
107107
char WrForum; /* 3: Create new forum posts */
108108
char WrTForum; /* 4: Post to forums not subject to moderation */
109109
char ModForum; /* 5: Moderate (approve or reject) forum posts */
110
- char AdminForum; /* 6: Set or remove capability 4 on other users */
110
+ char AdminForum; /* 6: Grant capability 4 to other users */
111111
char EmailAlert; /* 7: Sign up for email notifications */
112112
char Announce; /* A: Send announcements */
113113
char Debug; /* D: show extra Fossil debugging features */
114114
/* These last two are included to block infinite recursion */
115115
char XReader; /* u: Inherit all privileges of "reader" */
116116
--- src/main.c
+++ src/main.c
@@ -105,11 +105,11 @@
105 char WrUnver; /* y: can push unversioned content */
106 char RdForum; /* 2: Read forum posts */
107 char WrForum; /* 3: Create new forum posts */
108 char WrTForum; /* 4: Post to forums not subject to moderation */
109 char ModForum; /* 5: Moderate (approve or reject) forum posts */
110 char AdminForum; /* 6: Set or remove capability 4 on other users */
111 char EmailAlert; /* 7: Sign up for email notifications */
112 char Announce; /* A: Send announcements */
113 char Debug; /* D: show extra Fossil debugging features */
114 /* These last two are included to block infinite recursion */
115 char XReader; /* u: Inherit all privileges of "reader" */
116
--- src/main.c
+++ src/main.c
@@ -105,11 +105,11 @@
105 char WrUnver; /* y: can push unversioned content */
106 char RdForum; /* 2: Read forum posts */
107 char WrForum; /* 3: Create new forum posts */
108 char WrTForum; /* 4: Post to forums not subject to moderation */
109 char ModForum; /* 5: Moderate (approve or reject) forum posts */
110 char AdminForum; /* 6: Grant capability 4 to other users */
111 char EmailAlert; /* 7: Sign up for email notifications */
112 char Announce; /* A: Send announcements */
113 char Debug; /* D: show extra Fossil debugging features */
114 /* These last two are included to block infinite recursion */
115 char XReader; /* u: Inherit all privileges of "reader" */
116

Keyboard Shortcuts

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