Modify ↓
#36 closed defect (fixed)
Small Fix to AddComment.py to enable anonymous comments
Reported by: | Owned by: | Alec Thomas | |
---|---|---|---|
Priority: | normal | Component: | AddCommentMacro |
Severity: | minor | Keywords: | |
Cc: | Trac Release: |
Description
With Revision 61, the GUI widgets are disabled if the user doesn't have Modify rights. This quick fix re-enables the widgets to allow anonymous comments, without giving "Site Admin" access.
--- AddComment.oob Fri Aug 12 13:20:19 2005 +++ AddComment.py Fri Aug 12 13:20:41 2005 @@ -47,7 +47,8 @@ def execute(hdf, args, env):
comment = re.sub('(|[!])(\[\[AddComment)', '
1\\2', comment)
out = StringIO()
- if wikipreview or not perm.has_permission('WIKI_MODIFY'):
+ + if wikipreview or not (perm.has_permission('WIKI_MODIFY') or appendonly):
disabled = ' disabled="disabled"'
# If we are submitting or previewing, inject comment as it should look
Attachments (0)
Change History (2)
comment:1 Changed 19 years ago by
comment:2 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
D'oh.. let's try that again...