Modify ↓
#280 closed defect (fixed)
Have a BLOG_POSTER permission
Reported by: | Alec Thomas | Owned by: | John Hampton |
---|---|---|---|
Priority: | low | Component: | TracBlogPlugin |
Severity: | minor | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
I think this would be useful, just to prevent random people clicking on the "new blog post" link.
Attachments (0)
Change History (2)
comment:1 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 19 years ago by
The only caveat of the fix is that a blank line appears if a user without BLOG_POSTER perms visits a page that has the [[BlogPost()]]
macro
This is due to the fact that wiki_to_html calls the Formatter with escape_lines = True. So a [[BR]]
macro gets appended to each macro line. So if the macro returns nothing, a <br />
tag is still inserted into the HTML. Unfortunately, the fix is non-trivial du to the usage of regexes. So that's just how things will have to be for right now.
Note: See
TracTickets for help on using
tickets.
(In [609]) * Added BLOG_POSTER permission. Closes #280.
[[BlogPost(title=Link name)]]
to provide for renaming the macro link. Closes #281