Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#280 closed defect (fixed)

Have a BLOG_POSTER permission

Reported by: athomas Owned by: pacopablo
Priority: low Component: TracBlogPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.10


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 9 years ago by pacopablo

  • Resolution set to fixed
  • Status changed from new to closed

(In [609]) * Added BLOG_POSTER permission. Closes #280.

  • Added [[BlogPost(title=Link name)]] to provide for renaming the macro link. Closes #281

comment:2 Changed 9 years ago by pacopablo

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.

Add Comment

Modify Ticket

as closed The owner will remain pacopablo.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.