Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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 12 years ago by John Hampton

Resolution: fixed
Status: newclosed

(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 12 years ago by John Hampton

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.