Fossil SCM
API doc clarification for moderation_user_could().
Commit
6e8f6c23d3eb46270ae18ba6b82cfe0c305e8e9a7cbedb78e8a55d65a89b2dd5
Parent
cea22dc04f3265a…
1 file changed
+5
-2
+5
-2
| --- src/moderate.c | ||
| +++ src/moderate.c | ||
| @@ -239,12 +239,15 @@ | ||
| 239 | 239 | ** if the current user matches the artifact. When passing false, it |
| 240 | 240 | ** will only return true for users who have explicit moderation |
| 241 | 241 | ** permissions. The purpose of this is to exclude pending-moderation |
| 242 | 242 | ** from the current user in some contexts but not others. |
| 243 | 243 | ** |
| 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. | |
| 246 | 249 | ** |
| 247 | 250 | ** The moderation rules applied here are: |
| 248 | 251 | ** |
| 249 | 252 | ** - Admins may always moderate. This is a fast path which bypasses |
| 250 | 253 | ** artifact lookup. For non-admins, we look for a record in the |
| 251 | 254 |
| --- 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 |