Fossil SCM

API doc clarification for moderation_user_could().

stephan 2026-05-24 09:12 UTC forum-attachments
Commit 6e8f6c23d3eb46270ae18ba6b82cfe0c305e8e9a7cbedb78e8a55d65a89b2dd5
1 file changed +5 -2
+5 -2
--- src/moderate.c
+++ src/moderate.c
@@ -239,12 +239,15 @@
239239
** if the current user matches the artifact. When passing false, it
240240
** will only return true for users who have explicit moderation
241241
** permissions. The purpose of this is to exclude pending-moderation
242242
** from the current user in some contexts but not others.
243243
**
244
-** zWho is an optional user name to consider for ownership. If 0 it
245
-** defaults to login_name().
244
+** zWho is an optional user name to consider for ownership of an
245
+** artifact, as compared to the artifact's matching event.(euser,user)
246
+** fields. If 0 then it defaults to login_name(). This is strictly a
247
+** name comparison - it does not inspect zWho's repo-level
248
+** permissions.
246249
**
247250
** The moderation rules applied here are:
248251
**
249252
** - Admins may always moderate. This is a fast path which bypasses
250253
** artifact lookup. For non-admins, we look for a record in the
251254
--- src/moderate.c
+++ src/moderate.c
@@ -239,12 +239,15 @@
239 ** if the current user matches the artifact. When passing false, it
240 ** will only return true for users who have explicit moderation
241 ** permissions. The purpose of this is to exclude pending-moderation
242 ** from the current user in some contexts but not others.
243 **
244 ** zWho is an optional user name to consider for ownership. If 0 it
245 ** defaults to login_name().
 
 
 
246 **
247 ** The moderation rules applied here are:
248 **
249 ** - Admins may always moderate. This is a fast path which bypasses
250 ** artifact lookup. For non-admins, we look for a record in the
251
--- src/moderate.c
+++ src/moderate.c
@@ -239,12 +239,15 @@
239 ** if the current user matches the artifact. When passing false, it
240 ** will only return true for users who have explicit moderation
241 ** permissions. The purpose of this is to exclude pending-moderation
242 ** from the current user in some contexts but not others.
243 **
244 ** zWho is an optional user name to consider for ownership of an
245 ** artifact, as compared to the artifact's matching event.(euser,user)
246 ** fields. If 0 then it defaults to login_name(). This is strictly a
247 ** name comparison - it does not inspect zWho's repo-level
248 ** permissions.
249 **
250 ** The moderation rules applied here are:
251 **
252 ** - Admins may always moderate. This is a fast path which bypasses
253 ** artifact lookup. For non-admins, we look for a record in the
254

Keyboard Shortcuts

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