Fossil SCM

Change the message for the 'user elevation' notification to help clarify that it's not necessarily an elevation. Help/message text changes only - no functional changes.

stephan 2025-04-08 12:43 trunk
Commit eabccae174afdf0f344c1a6aefd2e7ce73e1a532982d08f4b96d74fad1810c79
2 files changed +3 -3 +3 -3
+3 -3
--- src/alerts.c
+++ src/alerts.c
@@ -51,11 +51,11 @@
5151
@ -- f - Forum posts
5252
@ -- k - ** Special: Unsubscribed using /oneclickunsub
5353
@ -- n - New forum threads
5454
@ -- r - Replies to my own forum posts
5555
@ -- t - Ticket changes
56
-@ -- u - Elevation of users' permissions (admins only)
56
+@ -- u - Potential elevation of users' permissions (admins only)
5757
@ -- w - Wiki changes
5858
@ -- x - Edits to forum posts
5959
@ -- Probably different codes will be added in the future. In the future
6060
@ -- we might also add a separate table that allows subscribing to email
6161
@ -- notifications for specific branches or tags or tickets.
@@ -1721,11 +1721,11 @@
17211721
@ <label><input type="checkbox" name="sw" %s(PCK("sw"))> \
17221722
@ Wiki</label><br>
17231723
}
17241724
if( g.perm.Admin ){
17251725
@ <label><input type="checkbox" name="su" %s(PCK("su"))> \
1726
- @ User permission elevation</label>
1726
+ @ User permission additions</label>
17271727
}
17281728
di = PB("di");
17291729
@ </td></tr>
17301730
@ <tr>
17311731
@ <td class="form_label">Delivery:</td>
@@ -2131,11 +2131,11 @@
21312131
/* Corner-case bug: if an admin assigns 'u' to a non-admin, that
21322132
** subscription will get removed if the user later edits their
21332133
** subscriptions, as non-admins are not permitted to add that
21342134
** subscription. */
21352135
@ <label><input type="checkbox" name="su" %s(su?"checked":"")>\
2136
- @ User permission elevation</label>
2136
+ @ User permission additions</label>
21372137
}
21382138
@ </td></tr>
21392139
if( strchr(ssub,'k')!=0 ){
21402140
@ <tr><td></td><td>&nbsp;&uarr;&nbsp;
21412141
@ Note: User did a one-click unsubscribe</td></tr>
21422142
--- src/alerts.c
+++ src/alerts.c
@@ -51,11 +51,11 @@
51 @ -- f - Forum posts
52 @ -- k - ** Special: Unsubscribed using /oneclickunsub
53 @ -- n - New forum threads
54 @ -- r - Replies to my own forum posts
55 @ -- t - Ticket changes
56 @ -- u - Elevation of users' permissions (admins only)
57 @ -- w - Wiki changes
58 @ -- x - Edits to forum posts
59 @ -- Probably different codes will be added in the future. In the future
60 @ -- we might also add a separate table that allows subscribing to email
61 @ -- notifications for specific branches or tags or tickets.
@@ -1721,11 +1721,11 @@
1721 @ <label><input type="checkbox" name="sw" %s(PCK("sw"))> \
1722 @ Wiki</label><br>
1723 }
1724 if( g.perm.Admin ){
1725 @ <label><input type="checkbox" name="su" %s(PCK("su"))> \
1726 @ User permission elevation</label>
1727 }
1728 di = PB("di");
1729 @ </td></tr>
1730 @ <tr>
1731 @ <td class="form_label">Delivery:</td>
@@ -2131,11 +2131,11 @@
2131 /* Corner-case bug: if an admin assigns 'u' to a non-admin, that
2132 ** subscription will get removed if the user later edits their
2133 ** subscriptions, as non-admins are not permitted to add that
2134 ** subscription. */
2135 @ <label><input type="checkbox" name="su" %s(su?"checked":"")>\
2136 @ User permission elevation</label>
2137 }
2138 @ </td></tr>
2139 if( strchr(ssub,'k')!=0 ){
2140 @ <tr><td></td><td>&nbsp;&uarr;&nbsp;
2141 @ Note: User did a one-click unsubscribe</td></tr>
2142
--- src/alerts.c
+++ src/alerts.c
@@ -51,11 +51,11 @@
51 @ -- f - Forum posts
52 @ -- k - ** Special: Unsubscribed using /oneclickunsub
53 @ -- n - New forum threads
54 @ -- r - Replies to my own forum posts
55 @ -- t - Ticket changes
56 @ -- u - Potential elevation of users' permissions (admins only)
57 @ -- w - Wiki changes
58 @ -- x - Edits to forum posts
59 @ -- Probably different codes will be added in the future. In the future
60 @ -- we might also add a separate table that allows subscribing to email
61 @ -- notifications for specific branches or tags or tickets.
@@ -1721,11 +1721,11 @@
1721 @ <label><input type="checkbox" name="sw" %s(PCK("sw"))> \
1722 @ Wiki</label><br>
1723 }
1724 if( g.perm.Admin ){
1725 @ <label><input type="checkbox" name="su" %s(PCK("su"))> \
1726 @ User permission additions</label>
1727 }
1728 di = PB("di");
1729 @ </td></tr>
1730 @ <tr>
1731 @ <td class="form_label">Delivery:</td>
@@ -2131,11 +2131,11 @@
2131 /* Corner-case bug: if an admin assigns 'u' to a non-admin, that
2132 ** subscription will get removed if the user later edits their
2133 ** subscriptions, as non-admins are not permitted to add that
2134 ** subscription. */
2135 @ <label><input type="checkbox" name="su" %s(su?"checked":"")>\
2136 @ User permission additions</label>
2137 }
2138 @ </td></tr>
2139 if( strchr(ssub,'k')!=0 ){
2140 @ <tr><td></td><td>&nbsp;&uarr;&nbsp;
2141 @ Note: User did a one-click unsubscribe</td></tr>
2142
+3 -3
--- src/setupuser.c
+++ src/setupuser.c
@@ -349,21 +349,21 @@
349349
char * zSubject;
350350
351351
if( !alert_enabled() ) return;
352352
zSubject = bIsNew
353353
? mprintf("New user created: [%q]", zLogin)
354
- : mprintf("User [%q] permissions elevated", zLogin);
354
+ : mprintf("User [%q] capabilities changed", zLogin);
355355
zURL = db_get("email-url",0);
356356
zSubname = db_get("email-subname", "[Fossil Repo]");
357357
blob_init(&body, 0, 0);
358358
blob_init(&hdr, 0, 0);
359359
if( bIsNew ){
360
- blob_appendf(&body, "User [%q] was created by with "
360
+ blob_appendf(&body, "User [%q] was created with "
361361
"permissions [%q] by user [%q].\n",
362362
zLogin, zNewCaps, g.zLogin);
363363
} else {
364
- blob_appendf(&body, "Permissions for user [%q] where elevated "
364
+ blob_appendf(&body, "Permissions for user [%q] where changed "
365365
"from [%q] to [%q] by user [%q].\n",
366366
zLogin, zOrigCaps, zNewCaps, g.zLogin);
367367
}
368368
if( zURL ){
369369
blob_appendf(&body, "\nUser editor: %s/setup_uedit?uid=%d\n", zURL, uid);
370370
--- src/setupuser.c
+++ src/setupuser.c
@@ -349,21 +349,21 @@
349 char * zSubject;
350
351 if( !alert_enabled() ) return;
352 zSubject = bIsNew
353 ? mprintf("New user created: [%q]", zLogin)
354 : mprintf("User [%q] permissions elevated", zLogin);
355 zURL = db_get("email-url",0);
356 zSubname = db_get("email-subname", "[Fossil Repo]");
357 blob_init(&body, 0, 0);
358 blob_init(&hdr, 0, 0);
359 if( bIsNew ){
360 blob_appendf(&body, "User [%q] was created by with "
361 "permissions [%q] by user [%q].\n",
362 zLogin, zNewCaps, g.zLogin);
363 } else {
364 blob_appendf(&body, "Permissions for user [%q] where elevated "
365 "from [%q] to [%q] by user [%q].\n",
366 zLogin, zOrigCaps, zNewCaps, g.zLogin);
367 }
368 if( zURL ){
369 blob_appendf(&body, "\nUser editor: %s/setup_uedit?uid=%d\n", zURL, uid);
370
--- src/setupuser.c
+++ src/setupuser.c
@@ -349,21 +349,21 @@
349 char * zSubject;
350
351 if( !alert_enabled() ) return;
352 zSubject = bIsNew
353 ? mprintf("New user created: [%q]", zLogin)
354 : mprintf("User [%q] capabilities changed", zLogin);
355 zURL = db_get("email-url",0);
356 zSubname = db_get("email-subname", "[Fossil Repo]");
357 blob_init(&body, 0, 0);
358 blob_init(&hdr, 0, 0);
359 if( bIsNew ){
360 blob_appendf(&body, "User [%q] was created with "
361 "permissions [%q] by user [%q].\n",
362 zLogin, zNewCaps, g.zLogin);
363 } else {
364 blob_appendf(&body, "Permissions for user [%q] where changed "
365 "from [%q] to [%q] by user [%q].\n",
366 zLogin, zOrigCaps, zNewCaps, g.zLogin);
367 }
368 if( zURL ){
369 blob_appendf(&body, "\nUser editor: %s/setup_uedit?uid=%d\n", zURL, uid);
370

Keyboard Shortcuts

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