Fossil SCM
Always allow the administrator to moderate attachments.
Commit
41d9de6e14bd37760067b86761abbe69eabe70f3
Parent
dd357f7f064a6c0…
1 file changed
+3
-1
+3
-1
| --- src/attach.c | ||
| +++ src/attach.c | ||
| @@ -445,11 +445,13 @@ | ||
| 445 | 445 | @ <p>Confirm you want to delete the attachment shown below. |
| 446 | 446 | @ <input type="submit" name="confirm" value="Confirm"> |
| 447 | 447 | @ </form> |
| 448 | 448 | } |
| 449 | 449 | |
| 450 | - isModerator = (zTktUuid && g.perm.ModTkt) || (zWikiName && g.perm.ModWiki); | |
| 450 | + isModerator = g.perm.Admin || | |
| 451 | + (zTktUuid && g.perm.ModTkt) || | |
| 452 | + (zWikiName && g.perm.ModWiki); | |
| 451 | 453 | if( isModerator && (zModAction = P("modaction"))!=0 ){ |
| 452 | 454 | if( strcmp(zModAction,"delete")==0 ){ |
| 453 | 455 | moderation_disapprove(rid); |
| 454 | 456 | if( zTktUuid ){ |
| 455 | 457 | cgi_redirectf("%R/tktview/%s", zTktUuid); |
| 456 | 458 |
| --- src/attach.c | |
| +++ src/attach.c | |
| @@ -445,11 +445,13 @@ | |
| 445 | @ <p>Confirm you want to delete the attachment shown below. |
| 446 | @ <input type="submit" name="confirm" value="Confirm"> |
| 447 | @ </form> |
| 448 | } |
| 449 | |
| 450 | isModerator = (zTktUuid && g.perm.ModTkt) || (zWikiName && g.perm.ModWiki); |
| 451 | if( isModerator && (zModAction = P("modaction"))!=0 ){ |
| 452 | if( strcmp(zModAction,"delete")==0 ){ |
| 453 | moderation_disapprove(rid); |
| 454 | if( zTktUuid ){ |
| 455 | cgi_redirectf("%R/tktview/%s", zTktUuid); |
| 456 |
| --- src/attach.c | |
| +++ src/attach.c | |
| @@ -445,11 +445,13 @@ | |
| 445 | @ <p>Confirm you want to delete the attachment shown below. |
| 446 | @ <input type="submit" name="confirm" value="Confirm"> |
| 447 | @ </form> |
| 448 | } |
| 449 | |
| 450 | isModerator = g.perm.Admin || |
| 451 | (zTktUuid && g.perm.ModTkt) || |
| 452 | (zWikiName && g.perm.ModWiki); |
| 453 | if( isModerator && (zModAction = P("modaction"))!=0 ){ |
| 454 | if( strcmp(zModAction,"delete")==0 ){ |
| 455 | moderation_disapprove(rid); |
| 456 | if( zTktUuid ){ |
| 457 | cgi_redirectf("%R/tktview/%s", zTktUuid); |
| 458 |